mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
refactor: point()
-> pointFrom()
to fix compiler issue (#8578)
This commit is contained in:
parent
0c02972695
commit
b4d8b04d9e
50 changed files with 843 additions and 718 deletions
|
@ -25,7 +25,7 @@ import { canChangeRoundness } from "./comparisons";
|
|||
import type { EmbedsValidationStatus } from "../types";
|
||||
import {
|
||||
pathIsALoop,
|
||||
point,
|
||||
pointFrom,
|
||||
pointDistance,
|
||||
type GlobalPoint,
|
||||
type LocalPoint,
|
||||
|
@ -409,7 +409,7 @@ export const _generateElementShape = (
|
|||
// initial position to it
|
||||
const points = element.points.length
|
||||
? element.points
|
||||
: [point<LocalPoint>(0, 0)];
|
||||
: [pointFrom<LocalPoint>(0, 0)];
|
||||
|
||||
if (isElbowArrow(element)) {
|
||||
shape = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue