fix: do not strip invisible elements from array (#9844)

This commit is contained in:
David Luzar
2025-08-12 11:56:11 +02:00
committed by GitHub
parent 54c148f390
commit dda3affcb0
9 changed files with 104 additions and 46 deletions

View File

@@ -2344,7 +2344,7 @@ class App extends React.Component<AppProps, AppState> {
}
const scene = restore(initialData, null, null, {
repairBindings: true,
deleteEmptyTextElements: true,
deleteInvisibleElements: true,
});
scene.appState = {
...scene.appState,
@@ -3204,7 +3204,7 @@ class App extends React.Component<AppProps, AppState> {
fitToContent?: boolean;
}) => {
const elements = restoreElements(opts.elements, null, {
deleteEmptyTextElements: true,
deleteInvisibleElements: true,
});
const [minX, minY, maxX, maxY] = getCommonBounds(elements);