Skip to content
Search
Search the documentation
Copy on drag
GitHub 0

Copy on drag

Drag copies out of a palette and leave the originals in place.

Palette

  • Circle
  • Square
  • Triangle

Canvas

The palette keeps its shapes while you drag them to the canvas. When a drag starts, onconsider sees the trigger DRAG_STARTED, finds the item with e.info.id and puts a copy with a new id at the same index, in a list without the shadow item, so the palette shows no gap. The dragged item keeps its original id and lands on the canvas, because ids have to stay unique. dropFromOthersDisabled stops anything from being dropped back into the palette. See the options for it, and how it works for the shadow item.

The recipes show a copy on drop into a slot that holds one item.

Edit this page Last updated: Nov 22, 2026