diff --git a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap index a7e84378c0..11cf56caf2 100644 --- a/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/contextmenu.test.tsx.snap @@ -906,6 +906,7 @@ exports[`contextMenu element > right-clicking on a group should select whole gro "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1108,6 +1109,7 @@ exports[`contextMenu element > selecting 'Add to library' in context menu adds e "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1325,6 +1327,7 @@ exports[`contextMenu element > selecting 'Bring forward' in context menu brings "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1659,6 +1662,7 @@ exports[`contextMenu element > selecting 'Bring to front' in context menu brings "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1993,6 +1997,7 @@ exports[`contextMenu element > selecting 'Copy styles' in context menu copies st "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2210,6 +2215,7 @@ exports[`contextMenu element > selecting 'Delete' in context menu deletes elemen "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2454,6 +2460,7 @@ exports[`contextMenu element > selecting 'Duplicate' in context menu duplicates "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2755,6 +2762,7 @@ exports[`contextMenu element > selecting 'Group selection' in context menu group "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3130,6 +3138,7 @@ exports[`contextMenu element > selecting 'Paste styles' in context menu pastes s "currentItemStrokeColor": "#e03131", "currentItemStrokeStyle": "dotted", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "bold", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3653,6 +3662,7 @@ exports[`contextMenu element > selecting 'Send backward' in context menu sends e "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3979,6 +3989,7 @@ exports[`contextMenu element > selecting 'Send to back' in context menu sends el "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4305,6 +4316,7 @@ exports[`contextMenu element > selecting 'Ungroup selection' in context menu ung "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5593,6 +5605,7 @@ exports[`contextMenu element > shows 'Group selection' in context menu for multi "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -6813,6 +6826,7 @@ exports[`contextMenu element > shows 'Ungroup selection' in context menu for gro "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7773,6 +7787,7 @@ exports[`contextMenu element > shows context menu for canvas > [end of test] app "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8776,6 +8791,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9770,6 +9786,7 @@ exports[`contextMenu element > shows context menu for element > [end of test] ap "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", diff --git a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap index 7c8747f94c..d0f60b386a 100644 --- a/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/history.test.tsx.snap @@ -32,6 +32,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -668,6 +669,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1232,6 +1234,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1595,6 +1598,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1960,6 +1964,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2226,6 +2231,7 @@ exports[`history > multiplayer undo/redo > conflicts in arrows and their bindabl "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2682,6 +2688,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2988,6 +2995,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3310,6 +3318,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3607,6 +3616,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3896,6 +3906,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4134,6 +4145,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4394,6 +4406,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4668,6 +4681,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4900,6 +4914,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5132,6 +5147,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5382,6 +5398,7 @@ exports[`history > multiplayer undo/redo > conflicts in bound text elements and "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5641,6 +5658,7 @@ exports[`history > multiplayer undo/redo > conflicts in frames and their childre "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5902,6 +5920,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -6234,6 +6253,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -6664,6 +6684,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7041,6 +7062,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7356,6 +7378,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7651,6 +7674,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7884,6 +7908,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8239,6 +8264,7 @@ exports[`history > multiplayer undo/redo > should iterate through the history wh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8594,6 +8620,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9003,6 +9030,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9124,7 +9152,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte 0, 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -9230,7 +9257,6 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte 0, 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -9293,6 +9319,7 @@ exports[`history > multiplayer undo/redo > should not let remote changes to inte "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9560,6 +9587,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9828,6 +9856,7 @@ exports[`history > multiplayer undo/redo > should not override remote changes on "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10063,6 +10092,7 @@ exports[`history > multiplayer undo/redo > should override remotely added groups "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10363,6 +10393,7 @@ exports[`history > multiplayer undo/redo > should override remotely added points "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10683,6 +10714,7 @@ exports[`history > multiplayer undo/redo > should redistribute deltas when eleme "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10922,6 +10954,7 @@ exports[`history > multiplayer undo/redo > should redraw arrows on undo > [end o "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -11850,6 +11883,7 @@ exports[`history > multiplayer undo/redo > should update history entries after r "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -12113,6 +12147,7 @@ exports[`history > singleplayer undo/redo > remounting undo/redo buttons should "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -12351,6 +12386,7 @@ exports[`history > singleplayer undo/redo > should clear the redo stack on eleme "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -12591,6 +12627,7 @@ exports[`history > singleplayer undo/redo > should create entry when selecting f "currentItemStrokeColor": "#e03131", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -12737,7 +12774,6 @@ exports[`history > singleplayer undo/redo > should create entry when selecting f "pressures": [ 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -12791,7 +12827,6 @@ exports[`history > singleplayer undo/redo > should create entry when selecting f "pressures": [ 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -12934,7 +12969,6 @@ exports[`history > singleplayer undo/redo > should create entry when selecting f "pressures": [ 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -12997,6 +13031,7 @@ exports[`history > singleplayer undo/redo > should create new history entry on e "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -13210,6 +13245,7 @@ exports[`history > singleplayer undo/redo > should create new history entry on e "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -13420,6 +13456,7 @@ exports[`history > singleplayer undo/redo > should create new history entry on i "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -13724,6 +13761,7 @@ exports[`history > singleplayer undo/redo > should create new history entry on i "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -14025,6 +14063,7 @@ exports[`history > singleplayer undo/redo > should create new history entry on s "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -14273,6 +14312,7 @@ exports[`history > singleplayer undo/redo > should disable undo/redo buttons whe "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -14513,6 +14553,7 @@ exports[`history > singleplayer undo/redo > should end up with no history entry "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -14753,6 +14794,7 @@ exports[`history > singleplayer undo/redo > should iterate through the history w "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -15003,6 +15045,7 @@ exports[`history > singleplayer undo/redo > should not clear the redo stack on s "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -15337,6 +15380,7 @@ exports[`history > singleplayer undo/redo > should not collapse when applying co "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -15510,6 +15554,7 @@ exports[`history > singleplayer undo/redo > should not end up with history entry "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -15797,6 +15842,7 @@ exports[`history > singleplayer undo/redo > should not end up with history entry "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -16063,6 +16109,7 @@ exports[`history > singleplayer undo/redo > should not modify anything on unrela "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -16219,6 +16266,7 @@ exports[`history > singleplayer undo/redo > should not override appstate changes "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -16504,6 +16552,7 @@ exports[`history > singleplayer undo/redo > should support appstate name or view "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -16669,6 +16718,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -17420,6 +17470,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -18069,6 +18120,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -18718,6 +18770,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -19470,6 +19523,7 @@ exports[`history > singleplayer undo/redo > should support bidirectional binding "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -20241,6 +20295,7 @@ exports[`history > singleplayer undo/redo > should support changes in elements' "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -20724,6 +20779,7 @@ exports[`history > singleplayer undo/redo > should support duplication of groups "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -21238,6 +21294,7 @@ exports[`history > singleplayer undo/redo > should support element creation, del "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -21700,6 +21757,7 @@ exports[`history > singleplayer undo/redo > should support linear element creati "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", diff --git a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap index c58cdb5ad9..b0563e2fe1 100644 --- a/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap +++ b/packages/excalidraw/tests/__snapshots__/regressionTests.test.tsx.snap @@ -32,6 +32,7 @@ exports[`given element A and group of elements B and given both are selected whe "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -461,6 +462,7 @@ exports[`given element A and group of elements B and given both are selected whe "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -880,6 +882,7 @@ exports[`regression tests > Cmd/Ctrl-click exclusively select element under poin "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1449,6 +1452,7 @@ exports[`regression tests > Drags selected element when hitting only bounding bo "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -1659,6 +1663,7 @@ exports[`regression tests > adjusts z order when grouping > [end of test] appSta "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2046,6 +2051,7 @@ exports[`regression tests > alt-drag duplicates an element > [end of test] appSt "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2294,6 +2300,7 @@ exports[`regression tests > arrow keys > [end of test] appState 1`] = ` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2477,6 +2484,7 @@ exports[`regression tests > can drag element that covers another element, while "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -2805,6 +2813,7 @@ exports[`regression tests > change the properties of a shape > [end of test] app "currentItemStrokeColor": "#1971c2", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3063,6 +3072,7 @@ exports[`regression tests > click on an element and drag it > [dragged] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3307,6 +3317,7 @@ exports[`regression tests > click on an element and drag it > [end of test] appS "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3546,6 +3557,7 @@ exports[`regression tests > click to select a shape > [end of test] appState 1`] "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -3807,6 +3819,7 @@ exports[`regression tests > click-drag to select a group > [end of test] appStat "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4124,6 +4137,7 @@ exports[`regression tests > deleting last but one element in editing group shoul "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -4563,6 +4577,7 @@ exports[`regression tests > deselects group of selected elements on pointer down "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "down", @@ -4849,6 +4864,7 @@ exports[`regression tests > deselects group of selected elements on pointer up w "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5128,6 +5144,7 @@ exports[`regression tests > deselects selected element on pointer down when poin "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "down", @@ -5339,6 +5356,7 @@ exports[`regression tests > deselects selected element, on pointer up, when clic "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5542,6 +5560,7 @@ exports[`regression tests > double click to edit a group > [end of test] appStat "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -5938,6 +5957,7 @@ exports[`regression tests > drags selected elements from point inside common bou "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -6238,6 +6258,7 @@ exports[`regression tests > draw every type of shape > [end of test] appState 1` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -6970,7 +6991,6 @@ exports[`regression tests > draw every type of shape > [end of test] undo stack "pressures": [ 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -7033,6 +7053,7 @@ exports[`regression tests > given a group of selected elements with an element t "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7370,6 +7391,7 @@ exports[`regression tests > given a selected element A and a not selected elemen "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7652,6 +7674,7 @@ exports[`regression tests > given selected element A with lower z-index than uns "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -7890,6 +7913,7 @@ exports[`regression tests > given selected element A with lower z-index than uns "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8133,6 +8157,7 @@ exports[`regression tests > key 2 selects rectangle tool > [end of test] appStat "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8316,6 +8341,7 @@ exports[`regression tests > key 3 selects diamond tool > [end of test] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8499,6 +8525,7 @@ exports[`regression tests > key 4 selects ellipse tool > [end of test] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8682,6 +8709,7 @@ exports[`regression tests > key 5 selects arrow tool > [end of test] appState 1` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -8917,6 +8945,7 @@ exports[`regression tests > key 6 selects line tool > [end of test] appState 1`] "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9150,6 +9179,7 @@ exports[`regression tests > key 7 selects freedraw tool > [end of test] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9286,7 +9316,6 @@ exports[`regression tests > key 7 selects freedraw tool > [end of test] undo sta "pressures": [ 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -9349,6 +9378,7 @@ exports[`regression tests > key a selects arrow tool > [end of test] appState 1` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9584,6 +9614,7 @@ exports[`regression tests > key d selects diamond tool > [end of test] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -9767,6 +9798,7 @@ exports[`regression tests > key l selects line tool > [end of test] appState 1`] "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10000,6 +10032,7 @@ exports[`regression tests > key o selects ellipse tool > [end of test] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10183,6 +10216,7 @@ exports[`regression tests > key p selects freedraw tool > [end of test] appState "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10319,7 +10353,6 @@ exports[`regression tests > key p selects freedraw tool > [end of test] undo sta "pressures": [ 0, 0, - 0, ], "roughness": 1, "roundness": null, @@ -10382,6 +10415,7 @@ exports[`regression tests > key r selects rectangle tool > [end of test] appStat "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -10565,6 +10599,7 @@ exports[`regression tests > make a group and duplicate it > [end of test] appSta "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -11099,6 +11134,7 @@ exports[`regression tests > noop interaction after undo shouldn't create history "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -11382,6 +11418,7 @@ exports[`regression tests > pinch-to-zoom works > [end of test] appState 1`] = ` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "down", @@ -11508,6 +11545,7 @@ exports[`regression tests > shift click on selected element should deselect it o "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -11711,6 +11749,7 @@ exports[`regression tests > shift-click to multiselect, then drag > [end of test "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -12033,6 +12072,7 @@ exports[`regression tests > should group elements and ungroup them > [end of tes "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -12465,6 +12505,7 @@ exports[`regression tests > single-clicking on a subgroup of a selected group sh "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -13108,6 +13149,7 @@ exports[`regression tests > spacebar + drag scrolls the canvas > [end of test] a "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -13237,6 +13279,7 @@ exports[`regression tests > supports nested groups > [end of test] appState 1`] "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -13871,6 +13914,7 @@ exports[`regression tests > switches from group of selected elements to another "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "down", @@ -14213,6 +14257,7 @@ exports[`regression tests > switches selected element on pointer down > [end of "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "down", @@ -14480,6 +14525,7 @@ exports[`regression tests > two-finger scroll works > [end of test] appState 1`] "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "down", @@ -14606,6 +14652,7 @@ exports[`regression tests > undo/redo drawing an element > [end of test] appStat "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -14973,6 +15020,7 @@ exports[`regression tests > updates fontSize & fontFamily appState > [end of tes "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", @@ -15099,6 +15147,7 @@ exports[`regression tests > zoom hotkeys > [end of test] appState 1`] = ` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up", diff --git a/packages/utils/tests/__snapshots__/export.test.ts.snap b/packages/utils/tests/__snapshots__/export.test.ts.snap index 7ed9208e80..31413e61d3 100644 --- a/packages/utils/tests/__snapshots__/export.test.ts.snap +++ b/packages/utils/tests/__snapshots__/export.test.ts.snap @@ -32,6 +32,7 @@ exports[`exportToSvg > with default arguments 1`] = ` "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeVariability": "constant", + "currentItemStrokeWidth": 2, "currentItemStrokeWidthKey": "medium", "currentItemTextAlign": "left", "cursorButton": "up",