MCPcopy Create free account
hub / github.com/editablejs/editable / reverseRelativePosition

Function reverseRelativePosition

packages/editor/src/plugin/editable.ts:1096–1100  ·  view source on GitHub ↗
(editor: Editor, x: number, y: number)

Source from the content-addressed store, hash-verified

1094 },
1095
1096 reverseRelativePosition(editor: Editor, x: number, y: number): [number, number] {
1097 const container = Editable.toDOMNode(editor, editor)
1098 const rootRect = container.getBoundingClientRect()
1099 return [x + rootRect.left, y + rootRect.top]
1100 },
1101
1102 scrollIntoView(editor: Editor, range = editor.selection) {
1103 if (!range) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…