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

Method constructor

packages/editor/src/context/selection.ts:82–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 lastYCoordinate: number
81
82 constructor() {
83 this.rootNode = null
84 this.cursorMap = new CursorMap()
85 this.selectionStart = null
86 this.insertBox = null
87 this.editBox = null
88 this.state = SelectionState.Empty
89 this.dragState = null
90 this.lastXCoordinate = 0
91 this.lastYCoordinate = 0
92 this.cursor = { lineIndex: 0, entryIndex: 0 }
93 }
94
95 setRootNode(rootNode: NodeBlock) {
96 this.rootNode = rootNode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected