mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: ts
This commit is contained in:
parent
735de7f8e6
commit
af8d4e12be
1 changed files with 4 additions and 2 deletions
|
@ -28,6 +28,8 @@ import {
|
||||||
isTextElement,
|
isTextElement,
|
||||||
} from "./typeChecks";
|
} from "./typeChecks";
|
||||||
|
|
||||||
|
import type { Radians } from "../../math/src";
|
||||||
|
|
||||||
import type { MaybeTransformHandleType } from "./transformHandles";
|
import type { MaybeTransformHandleType } from "./transformHandles";
|
||||||
import type {
|
import type {
|
||||||
ElementsMap,
|
ElementsMap,
|
||||||
|
@ -60,11 +62,11 @@ export const redrawTextBoundingBox = (
|
||||||
text: textElement.text,
|
text: textElement.text,
|
||||||
width: textElement.width,
|
width: textElement.width,
|
||||||
height: textElement.height,
|
height: textElement.height,
|
||||||
angle: container
|
angle: (container
|
||||||
? isArrowElement(container)
|
? isArrowElement(container)
|
||||||
? 0
|
? 0
|
||||||
: container.angle
|
: container.angle
|
||||||
: textElement.angle,
|
: textElement.angle) as Radians,
|
||||||
};
|
};
|
||||||
|
|
||||||
boundTextUpdates.text = textElement.text;
|
boundTextUpdates.text = textElement.text;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue