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
a977dd1bf5
commit
47ee8a0094
51 changed files with 845 additions and 703 deletions
|
@ -1,5 +1,5 @@
|
|||
import type { Radians } from "../math";
|
||||
import { point } from "../math";
|
||||
import { pointFrom } from "../math";
|
||||
import {
|
||||
COLOR_PALETTE,
|
||||
DEFAULT_CHART_COLOR_INDEX,
|
||||
|
@ -260,7 +260,7 @@ const chartLines = (
|
|||
x,
|
||||
y,
|
||||
width: chartWidth,
|
||||
points: [point(0, 0), point(chartWidth, 0)],
|
||||
points: [pointFrom(0, 0), pointFrom(chartWidth, 0)],
|
||||
});
|
||||
|
||||
const yLine = newLinearElement({
|
||||
|
@ -271,7 +271,7 @@ const chartLines = (
|
|||
x,
|
||||
y,
|
||||
height: chartHeight,
|
||||
points: [point(0, 0), point(0, -chartHeight)],
|
||||
points: [pointFrom(0, 0), pointFrom(0, -chartHeight)],
|
||||
});
|
||||
|
||||
const maxLine = newLinearElement({
|
||||
|
@ -284,7 +284,7 @@ const chartLines = (
|
|||
strokeStyle: "dotted",
|
||||
width: chartWidth,
|
||||
opacity: GRID_OPACITY,
|
||||
points: [point(0, 0), point(chartWidth, 0)],
|
||||
points: [pointFrom(0, 0), pointFrom(chartWidth, 0)],
|
||||
});
|
||||
|
||||
return [xLine, yLine, maxLine];
|
||||
|
@ -441,7 +441,7 @@ const chartTypeLine = (
|
|||
height: cy,
|
||||
strokeStyle: "dotted",
|
||||
opacity: GRID_OPACITY,
|
||||
points: [point(0, 0), point(0, cy)],
|
||||
points: [pointFrom(0, 0), pointFrom(0, cy)],
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue