MCPcopy
hub / github.com/yjs/yjs / createRelativePositionFromJSON

Function createRelativePositionFromJSON

src/utils/RelativePosition.js:105–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 * @function
104 */
105export const createRelativePositionFromJSON = json => new RelativePosition(json.type == null ? null : createID(json.type.client, json.type.clock), json.tname ?? null, json.item == null ? null : createID(json.item.client, json.item.clock), json.assoc == null ? 0 : json.assoc)
106
107export class AbsolutePosition {
108 /**

Callers

nothing calls this directly

Calls 1

createIDFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…