feat: split gridSize from enabled state & support custom gridStep (#8364)

This commit is contained in:
David Luzar
2024-08-14 14:59:14 +02:00
committed by GitHub
parent 4320a3cf41
commit 3cfcc7b489
31 changed files with 737 additions and 278 deletions

View File

@ -49,7 +49,9 @@ exports[`exportToSvg > with default arguments 1`] = `
"outline": true,
},
"frameToHighlight": null,
"gridSize": null,
"gridModeEnabled": false,
"gridSize": 20,
"gridStep": 5,
"isBindingEnabled": true,
"isLoading": false,
"isResizing": false,

View File

@ -19,7 +19,7 @@ describe("embedding scene data", () => {
elements: sourceElements,
appState: {
viewBackgroundColor: "#ffffff",
gridSize: null,
gridModeEnabled: false,
exportEmbedScene: true,
},
files: null,
@ -50,7 +50,7 @@ describe("embedding scene data", () => {
elements: sourceElements,
appState: {
viewBackgroundColor: "#ffffff",
gridSize: null,
gridModeEnabled: false,
exportEmbedScene: true,
},
files: null,