MCPcopy Create free account
hub / github.com/SplootCode/splootcode / placeCursor

Method placeCursor

packages/editor/src/context/selection.ts:155–158  ·  view source on GitHub ↗
(listBlock: RenderedChildSetBlock, index: number, updateXY = true)

Source from the content-addressed store, hash-verified

153
154 @action
155 placeCursor(listBlock: RenderedChildSetBlock, index: number, updateXY = true) {
156 this.cursor = listBlock.getCursorPosition(this.cursorMap, index)
157 this.placeCursorPosition(this.cursor, true, updateXY)
158 }
159
160 placeCursorPosition(position: CursorPosition, isCursor: boolean, updateXY = true) {
161 if (isCursor) {

Callers 3

deleteSelectedNodeMethod · 0.95
insertFragmentMethod · 0.95

Calls 2

placeCursorPositionMethod · 0.95
getCursorPositionMethod · 0.80

Tested by

no test coverage detected