mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-17 03:04:26 +01:00
refactor: auto ordered imports (#9163)
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
import type {
|
||||
GlobalPoint,
|
||||
LineSegment,
|
||||
Polygon,
|
||||
Radians,
|
||||
} from "@excalidraw/math";
|
||||
import {
|
||||
pointFrom,
|
||||
lineSegment,
|
||||
@@ -13,6 +7,14 @@ import {
|
||||
polygonIncludesPoint,
|
||||
segmentsIntersectAt,
|
||||
} from "@excalidraw/math";
|
||||
|
||||
import type {
|
||||
GlobalPoint,
|
||||
LineSegment,
|
||||
Polygon,
|
||||
Radians,
|
||||
} from "@excalidraw/math";
|
||||
|
||||
import { pointInEllipse, pointOnEllipse, type Ellipse } from "./shape";
|
||||
|
||||
describe("point and line", () => {
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
* to pure shapes
|
||||
*/
|
||||
|
||||
import type { Curve, LineSegment, Polygon, Radians } from "@excalidraw/math";
|
||||
import { getElementAbsoluteCoords } from "@excalidraw/excalidraw/element";
|
||||
import { invariant } from "@excalidraw/excalidraw/utils";
|
||||
import {
|
||||
curve,
|
||||
lineSegment,
|
||||
@@ -32,7 +33,8 @@ import {
|
||||
type GlobalPoint,
|
||||
type LocalPoint,
|
||||
} from "@excalidraw/math";
|
||||
import { getElementAbsoluteCoords } from "@excalidraw/excalidraw/element";
|
||||
import { pointsOnBezierCurves } from "points-on-curve";
|
||||
|
||||
import type {
|
||||
ElementsMap,
|
||||
ExcalidrawBindableElement,
|
||||
@@ -49,9 +51,9 @@ import type {
|
||||
ExcalidrawSelectionElement,
|
||||
ExcalidrawTextElement,
|
||||
} from "@excalidraw/excalidraw/element/types";
|
||||
import { pointsOnBezierCurves } from "points-on-curve";
|
||||
import type { Curve, LineSegment, Polygon, Radians } from "@excalidraw/math";
|
||||
|
||||
import type { Drawable, Op } from "roughjs/bin/core";
|
||||
import { invariant } from "@excalidraw/excalidraw/utils";
|
||||
|
||||
// a polyline (made up term here) is a line consisting of other line segments
|
||||
// this corresponds to a straight line element in the editor but it could also
|
||||
|
||||
Reference in New Issue
Block a user