From f6ae6d7b0ef928847c7156b67f5d5956dd9d1949 Mon Sep 17 00:00:00 2001 From: Mark Tolmacs Date: Thu, 20 Mar 2025 13:23:10 +0100 Subject: [PATCH] Add version bumping in movePoints --- packages/excalidraw/element/linearElementEditor.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/excalidraw/element/linearElementEditor.ts b/packages/excalidraw/element/linearElementEditor.ts index 7db35801f..adc436236 100644 --- a/packages/excalidraw/element/linearElementEditor.ts +++ b/packages/excalidraw/element/linearElementEditor.ts @@ -37,7 +37,7 @@ import { updateElbowArrowPoints } from "./elbowArrow"; import { getElementPointsCoords, getMinMaxXYFromCurvePathOps } from "./bounds"; import { headingIsHorizontal, vectorToHeading } from "./heading"; -import { mutateElement } from "./mutateElement"; +import { bumpVersion, mutateElement } from "./mutateElement"; import { getBoundTextElement, handleBindTextResize } from "./textElement"; import { isBindingElement, @@ -1473,6 +1473,7 @@ export class LinearElementEditor { Object.assign(element, { ...updates, angle: 0 as Radians, + ...updateElbowArrowPoints( element, options.sceneElementsMap, @@ -1483,6 +1484,7 @@ export class LinearElementEditor { ), }); } + bumpVersion(element); } else { const nextCoords = getElementPointsCoords(element, nextPoints); const prevCoords = getElementPointsCoords(element, element.points);