pull/3299/head
Mitja Bezenšek 2024-03-30 22:42:41 +01:00
rodzic a59ff81a7d
commit 8eca0620d2
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1375,7 +1375,7 @@ export interface MatModel {
export const MAX_PAGES = 40;
// @internal (undocumented)
export const MAX_SHAPES_PER_PAGE = 2000;
export const MAX_SHAPES_PER_PAGE = 20000;
// @internal (undocumented)
export const MAX_ZOOM = 8;

Wyświetl plik

@ -382,10 +382,10 @@ function ShapesToDisplay() {
}
} else if (shapePortalInfo.addedToDom && shape.isCulled) {
wrapperDiv.current?.removeChild(shapePortalInfo.container)
portalInfo.set(shape.id, { container: shapePortalInfo.container, addedToDom: false })
shapePortalInfo.addedToDom = false
} else if (!shapePortalInfo.addedToDom && !shape.isCulled) {
wrapperDiv.current?.appendChild(shapePortalInfo.container)
portalInfo.set(shape.id, { container: shapePortalInfo.container, addedToDom: true })
shapePortalInfo.addedToDom = true
}
})
}