How to undo operations via API

Try to make a small plugin for penpot , but stuck with undo functionality . penpot object have undoblockbegin and undoblockfinish but still no idea how to use it.

As an example, you can see it here —> replace-shapes-penpot/src/plugin.ts at main · girafic/replace-shapes-penpot · GitHub

1 Like