(node: Node | undefined)
| 4 | import { YTarget } from './types' |
| 5 | |
| 6 | export function getEditorNodeYLength(node: Node | undefined): number { |
| 7 | if (!node) { |
| 8 | return 0 |
| 9 | } |
| 10 | |
| 11 | return Text.isText(node) ? node.text.length : 1 |
| 12 | } |
| 13 | |
| 14 | export function editorPathOffsetToYOffset(element: Element, pathOffset: number) { |
| 15 | return element.children |
no outgoing calls
no test coverage detected
searching dependent graphs…