arrowShapeVersions
Migration version identifiers for arrow shape properties.
These track the evolution of the arrow shape schema over time, with each version representing a specific change to the arrow shape structure or properties.
arrowShapeVersions: {
readonly AddElbow: "com.tldraw.shape.arrow/6";
readonly AddIsPrecise: "com.tldraw.shape.arrow/2";
readonly AddLabelColor: "com.tldraw.shape.arrow/1";
readonly AddLabelPosition: "com.tldraw.shape.arrow/3";
readonly AddRichText: "com.tldraw.shape.arrow/7";
readonly AddRichTextAttrs: "com.tldraw.shape.arrow/8";
readonly AddScale: "com.tldraw.shape.arrow/5";
readonly ExtractBindings: "com.tldraw.shape.arrow/4";
};Example
// Used internally for migration system
if (version < arrowShapeVersions.AddLabelColor) {
// Apply label color migration
}Prev
arrowShapePropsNext
assetIdValidator