MCPcopy
hub / github.com/pascalorg/editor / onGridDoubleClick

Function onGridDoubleClick

packages/nodes/src/slab/tool.tsx:188–196  ·  view source on GitHub ↗
(_event: GridEvent)

Source from the content-addressed store, hash-verified

186 }
187
188 const onGridDoubleClick = (_event: GridEvent) => {
189 if (!currentLevelId) return
190 if (points.length >= 3) {
191 const slabId = commitSlabDrawing(currentLevelId, points)
192 setSelection({ selectedIds: [slabId] })
193 setPoints([])
194 useAlignmentGuides.getState().clear()
195 }
196 }
197
198 const onCancel = () => {
199 if (points.length > 0) markToolCancelConsumed()

Callers

nothing calls this directly

Calls 2

commitSlabDrawingFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…