mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-12 16:54:26 +01:00
fix: do not strip invisible elements from array (#9844)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user