mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Update linearElementEditor.ts
This commit is contained in:
parent
ec350ba8b2
commit
f1ae37c84b
1 changed files with 3 additions and 1 deletions
|
@ -686,7 +686,9 @@ export class LinearElementEditor {
|
|||
|
||||
const point = element.points[index];
|
||||
const { x, y } = element;
|
||||
return rotate(x + point[0], y + point[1], cx, cy, element.angle);
|
||||
return point
|
||||
? rotate(x + point[0], y + point[1], cx, cy, element.angle)
|
||||
: rotate(x, y, cx, cy, element.angle);
|
||||
}
|
||||
|
||||
static pointFromAbsoluteCoords(
|
||||
|
|
Loading…
Add table
Reference in a new issue