refactor: point() -> pointFrom() to fix compiler issue (#8578)
This commit is contained in:
@@ -46,7 +46,7 @@ import { HistoryEntry } from "../history";
|
||||
import { AppStateChange, ElementsChange } from "../change";
|
||||
import { Snapshot, StoreAction } from "../store";
|
||||
import type { LocalPoint, Radians } from "../../math";
|
||||
import { point } from "../../math";
|
||||
import { pointFrom } from "../../math";
|
||||
|
||||
const { h } = window;
|
||||
|
||||
@@ -2041,9 +2041,9 @@ describe("history", () => {
|
||||
width: 178.9000000000001,
|
||||
height: 236.10000000000002,
|
||||
points: [
|
||||
point(0, 0),
|
||||
point(178.9000000000001, 0),
|
||||
point(178.9000000000001, 236.10000000000002),
|
||||
pointFrom(0, 0),
|
||||
pointFrom(178.9000000000001, 0),
|
||||
pointFrom(178.9000000000001, 236.10000000000002),
|
||||
],
|
||||
startBinding: {
|
||||
elementId: "KPrBI4g_v9qUB1XxYLgSz",
|
||||
@@ -2159,11 +2159,11 @@ describe("history", () => {
|
||||
elements: [
|
||||
newElementWith(h.elements[0] as ExcalidrawLinearElement, {
|
||||
points: [
|
||||
point(0, 0),
|
||||
point(5, 5),
|
||||
point(10, 10),
|
||||
point(15, 15),
|
||||
point(20, 20),
|
||||
pointFrom(0, 0),
|
||||
pointFrom(5, 5),
|
||||
pointFrom(10, 10),
|
||||
pointFrom(15, 15),
|
||||
pointFrom(20, 20),
|
||||
] as LocalPoint[],
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user