( sharedRoot: Y.XmlText, editorRoot: Node, range: BaseRange, )
| 232 | } |
| 233 | |
| 234 | export function editorRangeToRelativeRange( |
| 235 | sharedRoot: Y.XmlText, |
| 236 | editorRoot: Node, |
| 237 | range: BaseRange, |
| 238 | ): RelativeRange { |
| 239 | return { |
| 240 | anchor: editorPointToRelativePosition(sharedRoot, editorRoot, range.anchor), |
| 241 | focus: editorPointToRelativePosition(sharedRoot, editorRoot, range.focus), |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | export function relativeRangeToEditorRange( |
| 246 | sharedRoot: Y.XmlText, |
no test coverage detected
searching dependent graphs…