tldraw / tldraw-v1

A tiny little drawing app. This is the original 2021-2022 version, released under MIT.
https://old.tldraw.com
MIT License
61 stars 36 forks source link

[feature] Chaining duplication could have a dynamic position offset #79

Closed DavidDNA closed 8 months ago

DavidDNA commented 1 year ago

Currently when we duplicate an element, the copy gets its position based on the source element (position + offset).

The offset is constant const offset = [16, 16].

If we position the new element (el 1) and duplicate it again, the third element (el 2) will be positioned with that fixed offset again.

An enhancement could be to use the delta pos between el 2 and el 1 as the next offset as long as we keep the duplicated elemente (el 2 and so on) selected. As far as I know it's a quite common behaviour.

What do you think ?

steveruizok commented 8 months ago

Hi, closing this as we won't be adding new features to this version of tldraw. Check https://github.com/tldraw/tldraw for the latest!