forked from FINAKON/HelpProject
1. Initial Commit - a boiler plate code and POC to realize the concept of context sensitive help 2. Frontend code written in ReactJS 3. Backend code written in Java, Spring Boot Framework 4. Frontend Start: pre-requisites : node, npm npm run dev ==> to start the frontend vite server 5. Backend Start: pre-requisites : java, mvn mvn spring-boot:run ==> to start the backend server 6. Visit http://localhost:5173/ for basic demo of help, press F1 in textboxes 7. Visit http://localhost:5173/editor and enter "admin123" to add/modify texts. Happy Coding !!! Thank you, Bhargava.
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
/**
|
|
* Get the positional info of `node`.
|
|
*
|
|
* @param {Node | NodeLike | null | undefined} [node]
|
|
* Node.
|
|
* @returns {Position | undefined}
|
|
* Position.
|
|
*/
|
|
export function position(
|
|
node?: Node | NodeLike | null | undefined
|
|
): Position | undefined
|
|
/**
|
|
* Get the point info of `node` at a bound side.
|
|
*
|
|
* @param {Node | NodeLike | null | undefined} [node]
|
|
* @returns {Point | undefined}
|
|
*/
|
|
export function pointEnd(
|
|
node?: Node | NodeLike | null | undefined
|
|
): Point | undefined
|
|
/**
|
|
* Get the point info of `node` at a bound side.
|
|
*
|
|
* @param {Node | NodeLike | null | undefined} [node]
|
|
* @returns {Point | undefined}
|
|
*/
|
|
export function pointStart(
|
|
node?: Node | NodeLike | null | undefined
|
|
): Point | undefined
|
|
export type Node = import('unist').Node
|
|
export type Point = import('unist').Point
|
|
export type Position = import('unist').Position
|
|
export type NodeLike = {
|
|
type: string
|
|
position?: PositionLike | null | undefined
|
|
}
|
|
export type PositionLike = {
|
|
start?: PointLike | null | undefined
|
|
end?: PointLike | null | undefined
|
|
}
|
|
export type PointLike = {
|
|
line?: number | null | undefined
|
|
column?: number | null | undefined
|
|
offset?: number | null | undefined
|
|
}
|