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

Function fromJSON

packages/plugins/codeblock/src/plugin/yjs/range.ts:10–15  ·  view source on GitHub ↗
(json: any)

Source from the content-addressed store, hash-verified

8
9export const YRange = {
10 fromJSON(json: any) {
11 return createYRange(
12 Y.createRelativePositionFromJSON(json.yanchor),
13 Y.createRelativePositionFromJSON(json.yhead),
14 )
15 },
16}
17
18export const createYRange = (yanchor: Y.RelativePosition, yhead: Y.RelativePosition) => {

Callers

nothing calls this directly

Calls 1

createYRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…