mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
chore: sort imports
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler } from '@tldraw/core';
|
||||
import { TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Arrow } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { services } from '@toeverything/datasource/db-service';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class ArrowTool extends BaseTool {
|
||||
override type = TDShapeType.Arrow as const;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Utils, TLPointerEventHandler } from '@tldraw/core';
|
||||
import { TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import { Draw } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import { TLPointerEventHandler } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Editor } from '@toeverything/components/board-shapes';
|
||||
import { TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { TDShapeType } from '@toeverything/components/board-types';
|
||||
import { services } from '@toeverything/datasource/db-service';
|
||||
|
||||
export class EditorTool extends BaseTool {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Ellipse } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class EllipseTool extends BaseTool {
|
||||
override type = TDShapeType.Ellipse as const;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vec from '@tldraw/vec';
|
||||
import type { TLPointerEventHandler } from '@tldraw/core';
|
||||
import { SessionType, DEAD_ZONE } from '@toeverything/components/board-types';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
import { DEAD_ZONE, SessionType } from '@toeverything/components/board-types';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
import {
|
||||
Utils,
|
||||
TLPointerEventHandler,
|
||||
TLBoundsCorner,
|
||||
TLBoundsHandleEventHandler,
|
||||
} from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Frame } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class FrameTool extends BaseTool {
|
||||
override type = TDShapeType.Frame as const;
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import { TLPointerEventHandler } from '@tldraw/core';
|
||||
// import { Draw } from '@toeverything/components/board-shapes';
|
||||
import { Vec } from '@tldraw/vec';
|
||||
|
||||
import { TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
import { TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Hexagon } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class HexagonTool extends BaseTool {
|
||||
override type = TDShapeType.Triangle as const;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { Utils, TLPointerEventHandler } from '@tldraw/core';
|
||||
import { TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import { Draw } from '@toeverything/components/board-shapes';
|
||||
import {
|
||||
SessionType,
|
||||
TDShapeType,
|
||||
DashStyle,
|
||||
StrokeWidth,
|
||||
} from '@toeverything/components/board-types';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
import {
|
||||
DashStyle,
|
||||
SessionType,
|
||||
StrokeWidth,
|
||||
TDShapeType,
|
||||
} from '@toeverything/components/board-types';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import { TDShapeType, TDToolType } from '@toeverything/components/board-types';
|
||||
import { ArrowTool } from './arrow-tool';
|
||||
import { LineTool } from './line-tool';
|
||||
import { DrawTool } from './draw-tool';
|
||||
import { PencilTool } from './pencil-tool';
|
||||
import { HighlightTool } from './highlight-tool';
|
||||
import { EllipseTool } from './ellipse-tool';
|
||||
import { RectangleTool } from './rectangle-tool';
|
||||
import { TriangleTool } from './triangle-tool';
|
||||
import { SelectTool } from './select-tool';
|
||||
import { EraseTool } from './erase-tool';
|
||||
import { EditorTool } from './editor-tool';
|
||||
import { HexagonTool } from './hexagon-tool';
|
||||
import { PentagramTool } from './pentagram-tool';
|
||||
import { WhiteArrowTool } from './white-arrow-tool';
|
||||
import { LaserTool } from './laser-tool';
|
||||
import { HandDrawTool } from './hand-draw';
|
||||
import { EllipseTool } from './ellipse-tool';
|
||||
import { EraseTool } from './erase-tool';
|
||||
import { FrameTool } from './frame-tool/frame-tool';
|
||||
import { HandDrawTool } from './hand-draw';
|
||||
import { HexagonTool } from './hexagon-tool';
|
||||
import { HighlightTool } from './highlight-tool';
|
||||
import { LaserTool } from './laser-tool';
|
||||
import { LineTool } from './line-tool';
|
||||
import { PencilTool } from './pencil-tool';
|
||||
import { PentagramTool } from './pentagram-tool';
|
||||
import { RectangleTool } from './rectangle-tool';
|
||||
import { SelectTool } from './select-tool';
|
||||
import { TriangleTool } from './triangle-tool';
|
||||
import { WhiteArrowTool } from './white-arrow-tool';
|
||||
|
||||
export interface ToolsMap {
|
||||
select: typeof SelectTool;
|
||||
|
||||
@@ -2,8 +2,8 @@ import { TLPointerEventHandler } from '@tldraw/core';
|
||||
// import { Draw } from '@toeverything/components/board-shapes';
|
||||
import { Vec } from '@tldraw/vec';
|
||||
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler } from '@tldraw/core';
|
||||
import { TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Arrow } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class LineTool extends BaseTool {
|
||||
override type = TDShapeType.Line as const;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Utils, TLPointerEventHandler } from '@tldraw/core';
|
||||
import { TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import { Draw } from '@toeverything/components/board-shapes';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
import {
|
||||
DashStyle,
|
||||
SessionType,
|
||||
TDShapeType,
|
||||
} from '@toeverything/components/board-types';
|
||||
import { BaseTool } from '@toeverything/components/board-state';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Pentagram } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class PentagramTool extends BaseTool {
|
||||
override type = TDShapeType.Pentagram as const;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Rectangle } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class RectangleTool extends BaseTool {
|
||||
override type = TDShapeType.Rectangle as const;
|
||||
|
||||
@@ -4,19 +4,18 @@ import {
|
||||
TLBoundsEventHandler,
|
||||
TLBoundsHandleEventHandler,
|
||||
TLCanvasEventHandler,
|
||||
TLPointerEventHandler,
|
||||
TLKeyboardEventHandler,
|
||||
TLPointerEventHandler,
|
||||
TLShapeCloneHandler,
|
||||
Utils,
|
||||
} from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { BaseTool, TLDR } from '@toeverything/components/board-state';
|
||||
import {
|
||||
SessionType,
|
||||
TDShapeType,
|
||||
CLONING_DISTANCE,
|
||||
DEAD_ZONE,
|
||||
SessionType,
|
||||
} from '@toeverything/components/board-types';
|
||||
import { BaseTool, TLDR } from '@toeverything/components/board-state';
|
||||
import Vec from '@tldraw/vec';
|
||||
|
||||
enum Status {
|
||||
Idle = 'idle',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { Triangle } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class TriangleTool extends BaseTool {
|
||||
override type = TDShapeType.Triangle as const;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
|
||||
import { TLBoundsCorner, TLPointerEventHandler, Utils } from '@tldraw/core';
|
||||
import Vec from '@tldraw/vec';
|
||||
import { WhiteArrow } from '@toeverything/components/board-shapes';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
|
||||
import { SessionType, TDShapeType } from '@toeverything/components/board-types';
|
||||
|
||||
export class WhiteArrowTool extends BaseTool {
|
||||
override type = TDShapeType.Triangle as const;
|
||||
|
||||
Reference in New Issue
Block a user