tldraw/tldraw

Clone arrows when alt-dragging shapes

Open

#7.528 aberto em 1 de jan. de 2026

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (3.212 forks)batch import
featuregood first issuesdk

Métricas do repositório

Stars
 (47.037 stars)
Métricas de merge de PR
 (Mesclagem média 5d 4h) (227 fundiu PRs em 30d)

Description

Description

When alt-dragging (cloning) a shape that has arrows connected to it, the arrows should also be cloned with their bindings updated appropriately.

Current behavior

  • Clone a shape by alt-dragging it
  • The shape is duplicated, but any arrows connected to it are not cloned
  • The cloned shape has no arrow connections

Desired behavior

When alt-dragging a shape to clone it, any arrows connected to that shape should also be cloned. The bindings should be updated to reference both the original and cloned shapes.

Example

Before cloning:

  • Box A → (arrow) → Box B

After alt-dragging Box B to create Box C:

  • Box A → (arrow) → Box B
  • Box A → (arrow) → Box C (newly cloned arrow)

This should work for arrows pointing to the cloned shape, arrows pointing from the cloned shape, or both.

Use case

This would make it much faster to duplicate parts of a diagram while preserving the connections, instead of having to manually recreate the arrows for cloned shapes.

Guia do colaborador