imageAssetMigrations

See source code

Migration sequence for image assets. Handles the evolution of the image asset schema over time, providing both forward (up) and backward (down) migration functions to maintain compatibility across different versions of the tldraw data model.

The sequence includes migrations for: - Adding the isAnimated property to track animated images - Renaming width/height properties to shorter w/h names - Ensuring URLs are valid format - Adding file size tracking - Making file size optional

imageAssetMigrations: import("@tldraw/store").MigrationSequence;
Prev
highlightShapeProps
Next
imageAssetProps