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

Function setStoredPosition

packages/yjs-transform/src/position.ts:114–120  ·  view source on GitHub ↗
(
  sharedRoot: Y.XmlText,
  key: string,
  position: Y.RelativePosition,
)

Source from the content-addressed store, hash-verified

112}
113
114export function setStoredPosition(
115 sharedRoot: Y.XmlText,
116 key: string,
117 position: Y.RelativePosition,
118) {
119 sharedRoot.setAttribute(STORED_POSITION_PREFIX + key, Y.encodeRelativePosition(position))
120}
121
122function getAbsolutePositionsInTextRange(
123 absolutePositions: Record<string, Y.AbsolutePosition>,

Callers 2

storePositionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…