fix trashing cached canvases in LinearElementEditor.getElementAbsoluteCoords

This commit is contained in:
dwelle
2025-11-24 12:14:47 +01:00
parent fa5cacfeec
commit aa7b11ba16

View File

@@ -1949,11 +1949,7 @@ export class LinearElementEditor {
elementsMap: ElementsMap,
includeBoundText: boolean = false,
): [number, number, number, number, number, number] => {
const shape = ShapeCache.generateElementShape(element, {
isExporting: true,
canvasBackgroundColor: "traansparent",
embedsValidationStatus: new Map(),
});
const shape = ShapeCache.generateElementShape(element, null);
// first element is always the curve
const ops = getCurvePathOps(shape[0]);