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

Method startDrag

packages/editor/src/context/selection.ts:868–874  ·  view source on GitHub ↗
(fragment: RenderedFragment, offsetX: number, offestY: number)

Source from the content-addressed store, hash-verified

866 }
867
868 startDrag(fragment: RenderedFragment, offsetX: number, offestY: number) {
869 this.dragState = {
870 node: fragment,
871 offsetX: offsetX,
872 offsetY: offestY,
873 }
874 }
875
876 handleClick(x: number, y: number, shiftKey: boolean) {
877 const [cursor, isCursor] = this.cursorMap.getCursorPositionByCoordinate(x, y)

Callers 1

EditorSideMenuPaneClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected