kopia lustrzana https://github.com/Tldraw/Tldraw
refactor.
rodzic
a59ff81a7d
commit
8eca0620d2
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue