@mocanvas/editor · function

createShapePropsMigrationSequence

declare function createShapePropsMigrationSequence(migrations: PropsMigrations): PropsMigrations

Check a props migration sequence and hand it back.

The ids must all belong to one sequence and be numbered 1, 2, 3, … in order — the same rule the store applies, checked here so that a mistake surfaces where the sequence is written rather than when a document is loaded. An empty sequence is valid.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.