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

Function createYRange

packages/plugins/codeblock/src/plugin/yjs/range.ts:18–29  ·  view source on GitHub ↗
(yanchor: Y.RelativePosition, yhead: Y.RelativePosition)

Source from the content-addressed store, hash-verified

16}
17
18export const createYRange = (yanchor: Y.RelativePosition, yhead: Y.RelativePosition) => {
19 return {
20 yanchor,
21 yhead,
22 toJSON() {
23 return {
24 yanchor: Y.relativePositionToJSON(this.yanchor),
25 yhead: Y.relativePositionToJSON(this.yhead),
26 }
27 },
28 }
29}

Callers 2

toYRangeMethod · 0.90
fromJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…