Normlize arrow points on LinearElementEditor construction

This commit is contained in:
Mark Tolmacs 2025-04-06 11:53:56 +02:00
parent 1ef51d6b33
commit 73308590d1
2 changed files with 22 additions and 1 deletions

View file

@ -133,6 +133,7 @@ export class LinearElementEditor {
};
if (!pointsEqual(element.points[0], pointFrom(0, 0))) {
console.error("Linear element is not normalized", Error().stack);
LinearElementEditor.normalizePoints(element);
}
this.selectedPointsIndices = null;