mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Add version bumping in movePoints
This commit is contained in:
parent
917d23365e
commit
f6ae6d7b0e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue