feat: support selecting multiple points when editing line (#4373)

This commit is contained in:
David Luzar
2021-12-13 13:35:07 +01:00
committed by GitHub
parent c822055ec8
commit 104664cb9e
12 changed files with 614 additions and 223 deletions

View File

@ -401,10 +401,17 @@ const updateBoundPoint = (
newEdgePoint = intersections[0];
}
}
LinearElementEditor.movePoint(
LinearElementEditor.movePoints(
linearElement,
edgePointIndex,
LinearElementEditor.pointFromAbsoluteCoords(linearElement, newEdgePoint),
[
{
index: edgePointIndex,
point: LinearElementEditor.pointFromAbsoluteCoords(
linearElement,
newEdgePoint,
),
},
],
{ [startOrEnd === "start" ? "startBinding" : "endBinding"]: binding },
);
};