Moveable: Undo & Redo support

Created on 25 Jun 2020  路  4Comments  路  Source: daybrush/moveable

Environments

  • Framework name: react
  • Framework version: 16.13.1
  • Moveable Component version: 0.20.10

Description

Hi Daybrush

First of all kudos to your team. I just want to check with you. Do we have undo & redo , copy & paste features support in library. If not any plans or suggestions that could be helpful for us.

Thanks, Prasanth

question wontfix

Most helpful comment

@prasanthLalapeta @happylinks

https://daybrush.com/moveable/

in demo, the history function was implemented.
But this feature doesn't have to be in moveable.

https://github.com/daybrush/scena/blob/master/packages/react-editor/src/Editor/Viewport/MoveableMananger.tsx#L157-L200

All 4 comments

@prasanthLalapeta

It looks like an external function. Is there any reason to do that in moveable?

@daybrush

Yes. If we are using moveable package in UI designing tool. Wherein actions like dragging, resizing, scaling and multi selection are involved.

It actually requires actions like undo , redo , copy and paste on elements.

It will be good if there is scope for above events in our package itself like we have resize, drag events etc., because almost every product which performs dragging, resizing etc., obviously they need undo, redo, copy & paste features too :)

In tella.tv we do this in our data structure (https://github.com/automerge/automerge), it natively has undo/redo and we implement copy and paste ourselves as well. Not sure how it would work in moveable, since it's only the dragging etc part, not the data layer? But for sure interesting :)

@prasanthLalapeta @happylinks

https://daybrush.com/moveable/

in demo, the history function was implemented.
But this feature doesn't have to be in moveable.

https://github.com/daybrush/scena/blob/master/packages/react-editor/src/Editor/Viewport/MoveableMananger.tsx#L157-L200

Was this page helpful?
0 / 5 - 0 ratings