From f93b040fff74a9ffd070b39d23998b1ad10d90fc Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Fri, 20 Jun 2025 17:28:15 +1000 Subject: [PATCH] test: snapshots --- .../data/__snapshots__/transform.test.ts.snap | 98 ++++++++++--------- 1 file changed, 51 insertions(+), 47 deletions(-) diff --git a/packages/excalidraw/data/__snapshots__/transform.test.ts.snap b/packages/excalidraw/data/__snapshots__/transform.test.ts.snap index 48337288a..12d8d83c7 100644 --- a/packages/excalidraw/data/__snapshots__/transform.test.ts.snap +++ b/packages/excalidraw/data/__snapshots__/transform.test.ts.snap @@ -314,7 +314,7 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing t "versionNonce": Any, "verticalAlign": "top", "width": 100, - "x": 560, + "x": 355, "y": 226.5, } `; @@ -334,8 +334,8 @@ exports[`Test Transform > Test arrow bindings > should bind arrows to existing t "endArrowhead": "arrow", "endBinding": { "elementId": "text-2", - "focus": 0, - "gap": 14, + "focus": -0, + "gap": 1, }, "fillStyle": "solid", "frameId": null, @@ -2141,10 +2141,10 @@ exports[`Test Transform > should transform to labelled arrows when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 50, + "height": 0, "id": Any, "index": "a6", "isDeleted": false, @@ -2159,17 +2159,19 @@ exports[`Test Transform > should transform to labelled arrows when label provide "strokeColor": "#1098ad", "strokeStyle": "solid", "strokeWidth": 2, - "text": "ANOTHER STYLED -LABELLED ARROW", + "text": "ANOTHER +STYLED +LABELLE +D ARROW", "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", - "width": 140, - "x": 80, - "y": 275, + "width": 70, + "x": 115, + "y": 300, } `; @@ -2183,10 +2185,10 @@ exports[`Test Transform > should transform to labelled arrows when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 50, + "height": 0, "id": Any, "index": "a7", "isDeleted": false, @@ -2201,17 +2203,19 @@ exports[`Test Transform > should transform to labelled arrows when label provide "strokeColor": "#099268", "strokeStyle": "solid", "strokeWidth": 2, - "text": "ANOTHER STYLED -LABELLED ARROW", + "text": "ANOTHER +STYLED +LABELLE +D ARROW", "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", - "width": 140, - "x": 80, - "y": 375, + "width": 70, + "x": 115, + "y": 400, } `; @@ -2229,7 +2233,7 @@ exports[`Test Transform > should transform to text containers when label provide "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": 35, + "height": 10, "id": Any, "index": "a0", "isDeleted": false, @@ -2266,7 +2270,7 @@ exports[`Test Transform > should transform to text containers when label provide "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": 85, + "height": 14, "id": Any, "index": "a1", "isDeleted": false, @@ -2303,7 +2307,7 @@ exports[`Test Transform > should transform to text containers when label provide "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": 170, + "height": 20, "id": Any, "index": "a2", "isDeleted": false, @@ -2340,7 +2344,7 @@ exports[`Test Transform > should transform to text containers when label provide "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": 120, + "height": 20, "id": Any, "index": "a3", "isDeleted": false, @@ -2377,7 +2381,7 @@ exports[`Test Transform > should transform to text containers when label provide "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": 85, + "height": 10, "id": Any, "index": "a4", "isDeleted": false, @@ -2414,7 +2418,7 @@ exports[`Test Transform > should transform to text containers when label provide "fillStyle": "solid", "frameId": null, "groupIds": [], - "height": 120, + "height": 14, "id": Any, "index": "a5", "isDeleted": false, @@ -2447,10 +2451,10 @@ exports[`Test Transform > should transform to text containers when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 25, + "height": 0, "id": Any, "index": "a6", "isDeleted": false, @@ -2469,7 +2473,7 @@ exports[`Test Transform > should transform to text containers when label provide "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", "width": 240, @@ -2488,10 +2492,10 @@ exports[`Test Transform > should transform to text containers when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 50, + "height": 0, "id": Any, "index": "a7", "isDeleted": false, @@ -2511,12 +2515,12 @@ CONTAINER", "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", "width": 120, "x": 539.7893218813452, - "y": 117.44796179957173, + "y": 107.05025253169417, } `; @@ -2530,10 +2534,10 @@ exports[`Test Transform > should transform to text containers when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 75, + "height": 0, "id": Any, "index": "a8", "isDeleted": false, @@ -2555,12 +2559,12 @@ CONTAINER", "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", "width": 90, "x": 195, - "y": 197.5, + "y": 160, } `; @@ -2574,10 +2578,10 @@ exports[`Test Transform > should transform to text containers when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 50, + "height": 0, "id": Any, "index": "a9", "isDeleted": false, @@ -2597,12 +2601,12 @@ TEXT CONTAINER", "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", "width": 140, "x": 180, - "y": 435, + "y": 410, } `; @@ -2616,10 +2620,10 @@ exports[`Test Transform > should transform to text containers when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 75, + "height": 0, "id": Any, "index": "aA", "isDeleted": false, @@ -2640,7 +2644,7 @@ CONTAINER", "textAlign": "left", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "top", "width": 160, @@ -2659,10 +2663,10 @@ exports[`Test Transform > should transform to text containers when label provide "customData": undefined, "fillStyle": "solid", "fontFamily": 5, - "fontSize": 20, + "fontSize": 0, "frameId": null, "groupIds": [], - "height": 75, + "height": 0, "id": Any, "index": "aB", "isDeleted": false, @@ -2683,11 +2687,11 @@ CONTAINER", "textAlign": "center", "type": "text", "updated": 1, - "version": 3, + "version": 4, "versionNonce": Any, "verticalAlign": "middle", "width": 120, "x": 539.7893218813452, - "y": 522.5735931288071, + "y": 507.0502525316942, } `;