MCPcopy Index your code
hub / github.com/pascalorg/editor / onGridDoubleClick

Function onGridDoubleClick

packages/nodes/src/ceiling/tool.tsx:211–219  ·  view source on GitHub ↗
(_event: GridEvent)

Source from the content-addressed store, hash-verified

209 }
210
211 const onGridDoubleClick = (_event: GridEvent) => {
212 if (!currentLevelId) return
213 if (points.length >= 3) {
214 const ceilingId = commitCeilingDrawing(currentLevelId, points)
215 setSelection({ selectedIds: [ceilingId] })
216 setPoints([])
217 useAlignmentGuides.getState().clear()
218 }
219 }
220
221 const onCancel = () => {
222 if (points.length > 0) markToolCancelConsumed()

Callers

nothing calls this directly

Calls 2

commitCeilingDrawingFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…