mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 21:48:48 +08:00
chore: sort imports
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user