mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Support rotating two-point lines (angle can be non-zero) (#2090)
Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
parent
8b9e2a540d
commit
84c49ebaa1
4 changed files with 98 additions and 118 deletions
|
@ -20,7 +20,7 @@ import {
|
|||
getDrawingVersion,
|
||||
getSyncableElements,
|
||||
newLinearElement,
|
||||
resizeElements,
|
||||
transformElements,
|
||||
getElementWithTransformHandleType,
|
||||
getResizeOffsetXY,
|
||||
getResizeArrowDirection,
|
||||
|
@ -2911,7 +2911,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
this.state.gridSize,
|
||||
);
|
||||
if (
|
||||
resizeElements(
|
||||
transformElements(
|
||||
transformHandleType,
|
||||
(newTransformHandle) => {
|
||||
pointerDownState.resize.handleType = newTransformHandle;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue