Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

dropPoint

Finds a position at or around the given position where the given slice can be inserted. Will look at parent nodes' nearest boundary and try there, even if the original position wasn't directly at the start or end of that node. Returns null when no position was found.

function dropPoint(
doc: Node,
pos: number,
slice: Slice,
): number | null;
§
dropPoint(doc: Node, pos: number, slice: Slice): number | null
[src]

§Parameters

§
pos: number
[src]

§Return Type

§
number | null
[src]