Function drag

    • Bind pointer drag on shape directly to a writable Vec (no handle dot); returns a disposer. target is in the SVG-root frame and coords are read via toWorld, so the grab offset survives bwd writes back through shape.translate. Grab offset is captured on pointerdown; optional dragging reports active state. Defaults cursor to "grab".

      Parameters

      Returns () => void