chore: Logging and fixing extremely large scenes (#9225)

This commit is contained in:
Márk Tolmács
2025-03-05 23:06:01 +01:00
committed by GitHub
parent 70c3e921bb
commit a9e2d2348b
10 changed files with 207 additions and 121 deletions

View File

@ -192,6 +192,11 @@ export const getEllipseShape = <Point extends GlobalPoint | LocalPoint>(
};
export const getCurvePathOps = (shape: Drawable): Op[] => {
// NOTE (mtolmacs): Temporary fix for extremely large elements
if (!shape) {
return [];
}
for (const set of shape.sets) {
if (set.type === "path") {
return set.ops;