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:
Daishi Kato 2020-08-28 17:20:06 +09:00 committed by GitHub
parent 8b9e2a540d
commit 84c49ebaa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 98 additions and 118 deletions

View file

@ -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;