@mocanvas/editor · constant

BUILTIN_ASSET_MIGRATION_SEQUENCE_PREFIX

declare const BUILTIN_ASSET_MIGRATION_SEQUENCE_PREFIX = "com.mocanvas.asset"

As ASSET_MIGRATION_SEQUENCE_PREFIX, for asset types **this library ships**.

Same reasoning as BUILTIN_SHAPE_MIGRATION_SEQUENCE_PREFIX: registering com.tldraw.asset.image at version 1 would claim the reference implementation's migration line, and every file it wrote — whose image asset sequence is further along — would fail to load as "data from a newer version". An app's own asset types keep the default prefix, which nothing else claims.

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.