mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
compute width, height correctly for arrows
This commit is contained in:
parent
d1266280cb
commit
fe9f89a0fc
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,7 @@ import {
|
|||
} from "../element/types";
|
||||
import { MarkOptional } from "../utility-types";
|
||||
import { assertNever, getFontString } from "../utils";
|
||||
import { getSizeFromPoints } from "../points";
|
||||
|
||||
export type ValidLinearElement = {
|
||||
type: "arrow" | "line";
|
||||
|
@ -444,6 +445,11 @@ export const convertToExcalidrawElements = (
|
|||
],
|
||||
...element,
|
||||
});
|
||||
|
||||
Object.assign(
|
||||
excalidrawElement,
|
||||
getSizeFromPoints(excalidrawElement.points),
|
||||
);
|
||||
break;
|
||||
}
|
||||
case "text": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue