From 205d90592a298228c5b09b8f15524abf5f7167a6 Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Mon, 23 Mar 2026 17:30:23 +1100 Subject: [PATCH] test: refresh snapshots for schema changes --- .../__snapshots__/transform.test.ts.snap | 62 +++++ .../__snapshots__/contextmenu.test.tsx.snap | 52 ++++ .../__snapshots__/dragCreate.test.tsx.snap | 5 + .../tests/__snapshots__/export.test.tsx.snap | 2 +- .../tests/__snapshots__/history.test.tsx.snap | 249 ++++++++++++++++++ .../tests/__snapshots__/move.test.tsx.snap | 6 + .../multiPointCreate.test.tsx.snap | 2 + .../regressionTests.test.tsx.snap | 103 ++++++++ .../__snapshots__/selection.test.tsx.snap | 5 + .../data/__snapshots__/restore.test.ts.snap | 10 + .../scene/__snapshots__/export.test.ts.snap | 2 +- 11 files changed, 496 insertions(+), 2 deletions(-) diff --git a/packages/element/src/__tests__/__snapshots__/transform.test.ts.snap b/packages/element/src/__tests__/__snapshots__/transform.test.ts.snap index afef25eeff..96658c8694 100644 --- a/packages/element/src/__tests__/__snapshots__/transform.test.ts.snap +++ b/packages/element/src/__tests__/__snapshots__/transform.test.ts.snap @@ -27,6 +27,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing s "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#66a80f", "strokeStyle": "solid", @@ -64,6 +65,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing s "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#9c36b5", "strokeStyle": "solid", @@ -116,6 +118,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing s ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -177,6 +180,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing s ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -223,6 +227,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing s "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -266,6 +271,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing t "originalText": "HEYYYYY", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#c2255c", "strokeStyle": "solid", @@ -312,6 +318,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing t "originalText": "Whats up ?", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -372,6 +379,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing t ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -419,6 +427,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing t "originalText": "HELLO WORLD!!", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -479,6 +488,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to shapes whe ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -526,6 +536,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to shapes whe "originalText": "HELLO WORLD!!", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -566,6 +577,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to shapes whe "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -603,6 +615,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to shapes whe "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -660,6 +673,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to text when ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -707,6 +721,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to text when "originalText": "HELLO WORLD!!", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -753,6 +768,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to text when "originalText": "HEYYYYY", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -799,6 +815,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to text when "originalText": "WHATS UP ?", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -834,6 +851,7 @@ exports[`Test Transform > should not allow duplicate ids 1`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -879,6 +897,7 @@ exports[`Test Transform > should transform linear elements 1`] = ` ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -926,6 +945,7 @@ exports[`Test Transform > should transform linear elements 2`] = ` ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": "dot", "startBinding": null, @@ -973,6 +993,7 @@ exports[`Test Transform > should transform linear elements 3`] = ` "polygon": false, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -1020,6 +1041,7 @@ exports[`Test Transform > should transform linear elements 4`] = ` "polygon": false, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -1054,6 +1076,7 @@ exports[`Test Transform > should transform regular shapes 1`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1086,6 +1109,7 @@ exports[`Test Transform > should transform regular shapes 2`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1118,6 +1142,7 @@ exports[`Test Transform > should transform regular shapes 3`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1150,6 +1175,7 @@ exports[`Test Transform > should transform regular shapes 4`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1182,6 +1208,7 @@ exports[`Test Transform > should transform regular shapes 5`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "dotted", @@ -1214,6 +1241,7 @@ exports[`Test Transform > should transform regular shapes 6`] = ` "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1971c2", "strokeStyle": "dashed", @@ -1252,6 +1280,7 @@ exports[`Test Transform > should transform text element 1`] = ` "originalText": "HELLO WORLD!", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1293,6 +1322,7 @@ exports[`Test Transform > should transform text element 2`] = ` "originalText": "STYLED HELLO WORLD!", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#5f3dc4", "strokeStyle": "solid", @@ -1339,6 +1369,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1378,6 +1409,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1421,6 +1453,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1468,6 +1501,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1527,6 +1561,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "roundness": { "type": 2, }, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -1591,6 +1626,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "roundness": { "type": 2, }, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": { @@ -1640,6 +1676,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "originalText": "B", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1683,6 +1720,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "originalText": "A", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1726,6 +1764,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "originalText": "Alice", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1769,6 +1808,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "originalText": "Bob", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1810,6 +1850,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "originalText": "How are you?", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1851,6 +1892,7 @@ exports[`Test Transform > should transform the elements correctly when linear el "originalText": "Friendship", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1904,6 +1946,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -1956,6 +1999,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -2008,6 +2052,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -2060,6 +2105,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide ], "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "startArrowhead": null, "startBinding": null, @@ -2100,6 +2146,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide "originalText": "LABELED ARROW", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2141,6 +2188,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide "originalText": "STYLED LABELED ARROW", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#099268", "strokeStyle": "solid", @@ -2182,6 +2230,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide "originalText": "ANOTHER STYLED LABELLED ARROW", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1098ad", "strokeStyle": "solid", @@ -2224,6 +2273,7 @@ exports[`Test Transform > should transform to labelled arrows when label provide "originalText": "ANOTHER STYLED LABELLED ARROW", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#099268", "strokeStyle": "solid", @@ -2265,6 +2315,7 @@ exports[`Test Transform > should transform to text containers when label provide "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2302,6 +2353,7 @@ exports[`Test Transform > should transform to text containers when label provide "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2339,6 +2391,7 @@ exports[`Test Transform > should transform to text containers when label provide "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2376,6 +2429,7 @@ exports[`Test Transform > should transform to text containers when label provide "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2413,6 +2467,7 @@ exports[`Test Transform > should transform to text containers when label provide "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#c2255c", "strokeStyle": "solid", @@ -2450,6 +2505,7 @@ exports[`Test Transform > should transform to text containers when label provide "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#f08c00", "strokeStyle": "solid", @@ -2488,6 +2544,7 @@ exports[`Test Transform > should transform to text containers when label provide "originalText": "RECTANGLE TEXT CONTAINER", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2529,6 +2586,7 @@ exports[`Test Transform > should transform to text containers when label provide "originalText": "ELLIPSE TEXT CONTAINER", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2572,6 +2630,7 @@ exports[`Test Transform > should transform to text containers when label provide TEXT CONTAINER", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2615,6 +2674,7 @@ exports[`Test Transform > should transform to text containers when label provide "originalText": "STYLED DIAMOND TEXT CONTAINER", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#099268", "strokeStyle": "solid", @@ -2657,6 +2717,7 @@ exports[`Test Transform > should transform to text containers when label provide "originalText": "TOP LEFT ALIGNED RECTANGLE TEXT CONTAINER", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#c2255c", "strokeStyle": "solid", @@ -2700,6 +2761,7 @@ exports[`Test Transform > should transform to text containers when label provide "originalText": "STYLED ELLIPSE TEXT CONTAINER", "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": Any, "strokeColor": "#c2255c", "strokeStyle": "solid", diff --git a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap index b8467c20ab..6382ec5c80 100644 --- a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap @@ -1020,6 +1020,7 @@ exports[`contextMenu element > right-clicking on a group should select whole gro "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1054,6 +1055,7 @@ exports[`contextMenu element > right-clicking on a group should select whole gro "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1216,6 +1218,7 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1271,6 +1274,7 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -1431,6 +1435,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1014066025, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1463,6 +1468,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1518,6 +1524,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -1572,6 +1579,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -1765,6 +1773,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1014066025, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1797,6 +1806,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -1852,6 +1862,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -1906,6 +1917,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -2101,6 +2113,7 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2156,6 +2169,7 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -2314,6 +2328,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2369,6 +2384,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -2560,6 +2576,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2592,6 +2609,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1014066025, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2647,6 +2665,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -2701,6 +2720,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -2868,6 +2888,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2902,6 +2923,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1014066025, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -2957,6 +2979,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -3011,6 +3034,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -3238,6 +3262,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s "opacity": 60, "roughness": 2, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#e03131", "strokeStyle": "dotted", @@ -3270,6 +3295,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s "opacity": 60, "roughness": 2, "roundness": null, + "schemaVersion": 2, "seed": 1898319239, "strokeColor": "#e03131", "strokeStyle": "dotted", @@ -3325,6 +3351,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -3379,6 +3406,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -3732,6 +3760,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 238820263, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -3764,6 +3793,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -3819,6 +3849,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -3873,6 +3904,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -4058,6 +4090,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1014066025, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -4090,6 +4123,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -4145,6 +4179,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -4199,6 +4234,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -4387,6 +4423,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -4419,6 +4456,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 238820263, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -4474,6 +4512,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -4528,6 +4567,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -5675,6 +5715,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -5707,6 +5748,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 400692809, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -5762,6 +5804,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -5816,6 +5859,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -6899,6 +6943,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -6933,6 +6978,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 238820263, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -6988,6 +7034,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -7042,6 +7089,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, @@ -9830,6 +9878,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -9862,6 +9911,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -9894,6 +9944,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] el "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -9955,6 +10006,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] un "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "strokeColor": "#1e1e1e", "strokeStyle": "solid", "strokeWidth": 2, diff --git a/packages/excalidraw/tests/__snapshots__/dragCreate.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/dragCreate.test.tsx.snap index a538500c25..e363d6330e 100644 --- a/packages/excalidraw/tests/__snapshots__/dragCreate.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/dragCreate.test.tsx.snap @@ -35,6 +35,7 @@ exports[`Test dragCreate > add element to the scene when pointer dragging long e "roundness": { "type": 2, }, + "schemaVersion": 2, "seed": 1278240551, "startArrowhead": null, "startBinding": null, @@ -71,6 +72,7 @@ exports[`Test dragCreate > add element to the scene when pointer dragging long e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -105,6 +107,7 @@ exports[`Test dragCreate > add element to the scene when pointer dragging long e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", @@ -150,6 +153,7 @@ exports[`Test dragCreate > add element to the scene when pointer dragging long e "polygon": false, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "startArrowhead": null, "startBinding": null, @@ -186,6 +190,7 @@ exports[`Test dragCreate > add element to the scene when pointer dragging long e "opacity": 100, "roughness": 1, "roundness": null, + "schemaVersion": 2, "seed": 1278240551, "strokeColor": "#1e1e1e", "strokeStyle": "solid", diff --git a/packages/excalidraw/tests/__snapshots__/export.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/export.test.tsx.snap index 5d9b80e0b0..166fd59fcf 100644 --- a/packages/excalidraw/tests/__snapshots__/export.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/export.test.tsx.snap @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`export > export svg-embedded scene > svg-embdedded scene export output 1`] = ` -"eyJ2ZXJzaW9uIjoiMSIsImVuY29kaW5nIjoiYnN0cmluZyIsImNvbXByZXNzZWQiOnRydWUsImVuY29kZWQiOiJ4nHVTTW/bMFxmve9XXHUwMDE47rVYnVx1MDAxNN0ht35ccuuhOyzDdlx1MDAxOHZQLcYmokiCRDfJglx1MDAwMPtcdTAwMTm77S/uJ4xSXFwrclpcdTAwMWIwoEeKfHx83r0ripK2XHUwMDE2yllRwqZcdTAwMTZcbqVcdTAwMTPr8jzgz+A8XHUwMDFhzaFpPPu6hZX4NkZN5+p4vyWys4tcdTAwMGJluExrPM0uq6o6lFx1MDAwMlx1MDAwNSvQ5DntXHUwMDA3n4tiXHUwMDE3v1x1MDAxY0FcdTAwMTmuXse0XGK8sCHYUEI3XGZVw2mbndYoqWVk8mGAWsCmpVx1MDAxY1x1MDAxM7pRkF305MxcdTAwMTJujTIudDybQHhT0ydRL1x1MDAxYmc6LYdcdTAwMWNyQnsrXHUwMDFjXHUwMDBmk/JcdTAwMTao1Jy2sTrrwVx1MDAxYZajXHUwMDFl33uK01x1MDAxMf7WLW7atFx1MDAxYXxcdTAwMTBsMqDGilx1MDAxYSlcZj+p0lx1MDAxNIGhfZBR25+Jk1x1MDAxMyt4XGLi6k6pXHUwMDAxRi1hM1x1MDAwNuOIfbcs4Fx1MDAwMWTGIFniXHUwMDA0+2x0ncuL/o73TrHEQihcdTAwMGZJ2NDwPnlcImvaWSlo1FehXo7z2GfLV2pH37Ci//7++X20XCKjaY6/XHUwMDAywWmVoVx1MDAxZsVcblXQ9Corca2wXHRzllxuXHUwMDE2R6vmYVx02d9DmIxN0ZrrXHTU4E6FN1x1MDAwZVx1MDAxYtRCfX2VnujIfFx1MDAwMX8gSK6D48nh0+Dm99OrXHUwMDE42PM37rpcdTAwMTTWzon14ujhn2I/oFx1MDAxY416wFxibFx1MDAxYTNCj0bCvVx1MDAxNk9qrGP5jLC+ObX/2VwiPj3xflx1MDAwNY+dXCKc86prYlx1MDAxZoR97lx1MDAwMr995Mf/XHUwMDA29ND+P2sqLvcifQ==