chore: sort imports

This commit is contained in:
DarkSky
2022-08-13 03:16:26 +08:00
parent 5462b1707f
commit 754b2581cd
198 changed files with 839 additions and 917 deletions
@@ -1,36 +1,36 @@
import * as React from 'react';
import { Utils, SVGContainer, TLBounds } from '@tldraw/core';
import {
TriangleShape,
TDShapeType,
TDMeta,
TDShape,
DashStyle,
BINDING_DISTANCE,
GHOSTED_OPACITY,
LABEL_POINT,
} from '@toeverything/components/board-types';
import { TDShapeUtil } from '../TDShapeUtil';
import {
defaultStyle,
getBoundsRectangle,
transformRectangle,
transformSingleRectangle,
getFontStyle,
TextLabel,
getShapeStyle,
} from '../shared';
import { SVGContainer, TLBounds, Utils } from '@tldraw/core';
import {
intersectBoundsPolygon,
intersectLineSegmentPolyline,
intersectRayLineSegment,
} from '@tldraw/intersect';
import Vec from '@tldraw/vec';
import { getTriangleCentroid, getTrianglePoints } from './triangle-helpers';
import {
BINDING_DISTANCE,
DashStyle,
GHOSTED_OPACITY,
LABEL_POINT,
TDMeta,
TDShape,
TDShapeType,
TriangleShape,
} from '@toeverything/components/board-types';
import { styled } from '@toeverything/components/ui';
import { DrawTriangle } from './components/DrawTriangle';
import * as React from 'react';
import {
defaultStyle,
getBoundsRectangle,
getFontStyle,
getShapeStyle,
TextLabel,
transformRectangle,
transformSingleRectangle,
} from '../shared';
import { TDShapeUtil } from '../TDShapeUtil';
import { DashedTriangle } from './components/DashedTriangle';
import { DrawTriangle } from './components/DrawTriangle';
import { TriangleBindingIndicator } from './components/TriangleBindingIndicator';
import { getTriangleCentroid, getTrianglePoints } from './triangle-helpers';
type T = TriangleShape;
type E = HTMLDivElement;
@@ -1,9 +1,9 @@
import * as React from 'react';
import { Utils } from '@tldraw/core';
import Vec from '@tldraw/vec';
import type { ShapeStyles } from '@toeverything/components/board-types';
import * as React from 'react';
import { getShapeStyle } from '../../shared';
import { getTrianglePoints } from '../triangle-helpers';
import Vec from '@tldraw/vec';
interface TriangleSvgProps {
id: string;
@@ -1,6 +1,6 @@
import type { ShapeStyles } from '@toeverything/components/board-types';
import * as React from 'react';
import { getShapeStyle } from '../../shared';
import type { ShapeStyles } from '@toeverything/components/board-types';
import {
getTriangleIndicatorPathTDSnapshot,
getTrianglePath,
@@ -1,4 +1,3 @@
import * as React from 'react';
import { BINDING_DISTANCE } from '@toeverything/components/board-types';
import { getTrianglePoints } from '../triangle-helpers';
@@ -1,8 +1,8 @@
import { Utils } from '@tldraw/core';
import Vec from '@tldraw/vec';
import getStroke, { getStrokePoints } from 'perfect-freehand';
import type { ShapeStyles } from '@toeverything/components/board-types';
import { getShapeStyle, getOffsetPolygon } from '../shared';
import getStroke, { getStrokePoints } from 'perfect-freehand';
import { getOffsetPolygon, getShapeStyle } from '../shared';
export function getTrianglePoints(size: number[], offset = 0, rotation = 0) {
const [w, h] = size;