MCPcopy
hub / github.com/tldraw/tldraw / startDraggingOwnHandle

Function startDraggingOwnHandle

packages/tldraw/src/test/customSnapping.test.tsx:468–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466 })
467 })
468 function startDraggingOwnHandle() {
469 const shape = editor.select(ids.test2).getOnlySelectedShape()!
470 const handles = editor.getShapeHandles(shape)!
471 editor.pointerDown(0, 0, { target: 'handle', shape, handle: handles[0] })
472 }
473 function ownHandlePosition() {
474 const shape = editor.select(ids.test2).getOnlySelectedShape()!
475 const handle = editor.getShapeHandles(shape)![0]

Callers 1

Calls 4

getOnlySelectedShapeMethod · 0.80
selectMethod · 0.80
getShapeHandlesMethod · 0.80
pointerDownMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…