From 74986cee1ce1a89a966ed1e7978901b376964e31 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Fri, 10 Jan 2025 16:46:48 +0100 Subject: [PATCH] WIP: check-in types (generated with typescript@5.7.3) --- lib/Diagram.d.ts | 10 +++--- lib/command/CommandInterceptor.d.ts | 6 ++-- lib/command/CommandStack.d.ts | 17 ++++++---- lib/command/index.d.ts | 5 ++- lib/core/Canvas.d.ts | 26 +++++++------- lib/core/ElementFactory.d.ts | 12 +++---- lib/core/ElementRegistry.d.ts | 4 +-- lib/core/EventBus.d.ts | 4 +-- lib/core/GraphicsFactory.d.ts | 14 ++++---- lib/core/index.d.ts | 13 ++++++- lib/draw/BaseRenderer.d.ts | 8 ++--- lib/draw/DefaultRenderer.d.ts | 4 +-- lib/draw/index.d.ts | 7 +++- .../align-elements/AlignElements.d.ts | 12 +++---- lib/features/align-elements/index.d.ts | 5 ++- .../attach-support/AttachSupport.d.ts | 12 +++---- lib/features/attach-support/index.d.ts | 5 ++- lib/features/auto-place/AutoPlace.d.ts | 10 +++--- .../AutoPlaceSelectionBehavior.d.ts | 4 +-- lib/features/auto-place/AutoPlaceUtil.d.ts | 10 +++--- lib/features/auto-place/index.d.ts | 7 +++- lib/features/auto-resize/AutoResize.d.ts | 18 +++++----- .../auto-resize/AutoResizeProvider.d.ts | 4 +-- lib/features/auto-resize/index.d.ts | 5 ++- lib/features/auto-scroll/AutoScroll.d.ts | 6 ++-- lib/features/auto-scroll/index.d.ts | 5 ++- lib/features/bendpoints/BendpointMove.d.ts | 12 +++---- .../bendpoints/BendpointMovePreview.d.ts | 8 ++--- .../bendpoints/BendpointSnapping.d.ts | 2 +- lib/features/bendpoints/BendpointUtil.d.ts | 4 +-- lib/features/bendpoints/Bendpoints.d.ts | 10 +++--- .../bendpoints/ConnectionSegmentMove.d.ts | 18 +++++----- lib/features/bendpoints/GeometricUtil.d.ts | 4 +-- lib/features/bendpoints/index.d.ts | 13 ++++++- .../change-support/ChangeSupport.d.ts | 8 ++--- lib/features/change-support/index.d.ts | 5 ++- lib/features/clipboard/index.d.ts | 5 ++- .../complex-preview/ComplexPreview.d.ts | 8 ++--- lib/features/complex-preview/index.d.ts | 5 ++- lib/features/connect/Connect.d.ts | 12 +++---- lib/features/connect/ConnectPreview.d.ts | 6 ++-- lib/features/connect/index.d.ts | 7 +++- .../connection-preview/ConnectionPreview.d.ts | 16 ++++----- lib/features/connection-preview/index.d.ts | 5 ++- lib/features/context-pad/ContextPad.d.ts | 20 +++++------ lib/features/context-pad/index.d.ts | 5 ++- lib/features/copy-paste/CopyPaste.d.ts | 22 ++++++------ lib/features/copy-paste/index.d.ts | 5 ++- lib/features/create/Create.d.ts | 16 ++++----- lib/features/create/CreateConnectPreview.d.ts | 4 +-- lib/features/create/CreatePreview.d.ts | 10 +++--- lib/features/create/index.d.ts | 7 +++- .../DistributeElements.d.ts | 12 +++---- lib/features/distribute-elements/index.d.ts | 5 ++- lib/features/dragging/Dragging.d.ts | 10 +++--- lib/features/dragging/index.d.ts | 5 ++- .../editor-actions/EditorActions.d.ts | 4 +-- lib/features/editor-actions/index.d.ts | 5 ++- .../global-connect/GlobalConnect.d.ts | 16 ++++----- lib/features/global-connect/index.d.ts | 5 ++- lib/features/grid-snapping/GridSnapping.d.ts | 4 +-- .../behavior/ResizeBehavior.d.ts | 8 ++--- .../behavior/SpaceToolBehavior.d.ts | 4 +-- lib/features/grid-snapping/index.d.ts | 5 ++- lib/features/hand-tool/HandTool.d.ts | 12 +++---- lib/features/hand-tool/index.d.ts | 5 ++- lib/features/hover-fix/HoverFix.d.ts | 6 ++-- lib/features/hover-fix/index.d.ts | 5 ++- .../interaction-events/InteractionEvents.d.ts | 10 +++--- lib/features/interaction-events/index.d.ts | 5 ++- .../KeyboardMoveSelection.d.ts | 8 ++--- .../keyboard-move-selection/index.d.ts | 5 ++- lib/features/keyboard/Keyboard.d.ts | 8 ++--- lib/features/keyboard/KeyboardBindings.d.ts | 6 ++-- lib/features/keyboard/index.d.ts | 7 +++- lib/features/label-support/LabelSupport.d.ts | 8 ++--- lib/features/label-support/index.d.ts | 5 ++- lib/features/lasso-tool/LassoTool.d.ts | 16 ++++----- lib/features/lasso-tool/index.d.ts | 5 ++- lib/features/modeling/Modeling.d.ts | 34 +++++++++---------- .../modeling/cmd/AlignElementsHandler.d.ts | 4 +-- .../modeling/cmd/AppendShapeHandler.d.ts | 10 +++--- .../modeling/cmd/CreateConnectionHandler.d.ts | 12 +++---- .../modeling/cmd/CreateElementsHandler.d.ts | 2 +- .../modeling/cmd/CreateLabelHandler.d.ts | 10 +++--- .../modeling/cmd/CreateShapeHandler.d.ts | 6 ++-- .../modeling/cmd/DeleteConnectionHandler.d.ts | 4 +-- .../modeling/cmd/DeleteElementsHandler.d.ts | 4 +-- .../modeling/cmd/DeleteShapeHandler.d.ts | 4 +-- .../cmd/DistributeElementsHandler.d.ts | 2 +- .../modeling/cmd/LayoutConnectionHandler.d.ts | 4 +-- .../modeling/cmd/MoveElementsHandler.d.ts | 2 +- .../modeling/cmd/MoveShapeHandler.d.ts | 2 +- .../cmd/ReconnectConnectionHandler.d.ts | 2 +- .../modeling/cmd/ReplaceShapeHandler.d.ts | 4 +-- .../modeling/cmd/ResizeShapeHandler.d.ts | 2 +- .../modeling/cmd/SpaceToolHandler.d.ts | 2 +- .../cmd/ToggleShapeCollapseHandler.d.ts | 2 +- .../modeling/cmd/UpdateAttachmentHandler.d.ts | 2 +- .../modeling/cmd/helper/AnchorsHelper.d.ts | 8 ++--- .../modeling/cmd/helper/MoveClosure.d.ts | 6 ++-- .../modeling/cmd/helper/MoveHelper.d.ts | 10 +++--- lib/features/modeling/index.d.ts | 7 +++- lib/features/mouse/Mouse.d.ts | 2 +- lib/features/mouse/index.d.ts | 5 ++- lib/features/move/Move.d.ts | 14 ++++---- lib/features/move/MovePreview.d.ts | 10 +++--- lib/features/move/index.d.ts | 7 +++- lib/features/ordering/OrderingProvider.d.ts | 6 ++-- .../outline/MultiSelectionOutline.d.ts | 8 ++--- lib/features/outline/Outline.d.ts | 8 ++--- lib/features/outline/index.d.ts | 7 +++- lib/features/overlays/Overlays.d.ts | 8 ++--- lib/features/overlays/index.d.ts | 5 ++- lib/features/palette/Palette.d.ts | 8 ++--- lib/features/palette/index.d.ts | 5 ++- lib/features/popup-menu/PopupMenu.d.ts | 18 +++++----- .../popup-menu/PopupMenuComponent.d.ts | 10 +++--- lib/features/popup-menu/PopupMenuHeader.d.ts | 2 +- lib/features/popup-menu/PopupMenuItem.d.ts | 2 +- lib/features/popup-menu/PopupMenuList.d.ts | 2 +- lib/features/popup-menu/index.d.ts | 5 ++- .../preview-support/PreviewSupport.d.ts | 12 +++---- lib/features/preview-support/index.d.ts | 5 ++- lib/features/replace/Replace.d.ts | 6 ++-- lib/features/replace/index.d.ts | 7 +++- lib/features/resize/Resize.d.ts | 14 ++++---- lib/features/resize/ResizeHandles.d.ts | 10 +++--- lib/features/resize/ResizePreview.d.ts | 6 ++-- lib/features/resize/ResizeUtil.d.ts | 12 +++---- lib/features/resize/index.d.ts | 9 ++++- .../root-elements/RootElementsBehavior.d.ts | 4 +-- lib/features/root-elements/index.d.ts | 5 ++- lib/features/rules/RuleProvider.d.ts | 2 +- lib/features/rules/Rules.d.ts | 2 +- lib/features/rules/index.d.ts | 5 ++- lib/features/search-pad/SearchPad.d.ts | 14 ++++---- lib/features/search-pad/index.d.ts | 5 ++- lib/features/search/index.d.ts | 5 ++- lib/features/search/search.d.ts | 2 +- lib/features/selection/Selection.d.ts | 4 +-- lib/features/selection/SelectionBehavior.d.ts | 8 ++--- lib/features/selection/SelectionVisuals.d.ts | 4 +-- lib/features/selection/index.d.ts | 9 ++++- lib/features/snapping/CreateMoveSnapping.d.ts | 6 ++-- lib/features/snapping/ResizeSnapping.d.ts | 4 +-- lib/features/snapping/SnapContext.d.ts | 10 +++--- lib/features/snapping/SnapUtil.d.ts | 8 ++--- lib/features/snapping/Snapping.d.ts | 6 ++-- lib/features/snapping/index.d.ts | 9 ++++- lib/features/space-tool/SpaceTool.d.ts | 22 ++++++------ lib/features/space-tool/SpaceToolPreview.d.ts | 8 ++--- lib/features/space-tool/SpaceUtil.d.ts | 12 +++---- lib/features/space-tool/index.d.ts | 7 +++- lib/features/tool-manager/ToolManager.d.ts | 4 +-- lib/features/tool-manager/index.d.ts | 5 ++- lib/features/tooltips/Tooltips.d.ts | 6 ++-- lib/features/tooltips/index.d.ts | 5 ++- lib/i18n/I18N.d.ts | 2 +- lib/i18n/index.d.ts | 5 ++- lib/i18n/translate/index.d.ts | 5 ++- lib/layout/BaseLayouter.d.ts | 4 +-- lib/layout/ConnectionDocking.d.ts | 8 ++--- lib/layout/CroppingConnectionDocking.d.ts | 4 +-- lib/layout/LayoutUtil.d.ts | 14 ++++---- lib/layout/ManhattanLayout.d.ts | 4 +-- lib/model/index.d.ts | 10 +++--- .../keyboard-move/KeyboardMove.d.ts | 6 ++-- lib/navigation/keyboard-move/index.d.ts | 5 ++- lib/navigation/movecanvas/MoveCanvas.d.ts | 4 +-- lib/navigation/movecanvas/index.d.ts | 5 ++- lib/navigation/zoomscroll/ZoomScroll.d.ts | 8 ++--- lib/navigation/zoomscroll/index.d.ts | 5 ++- lib/util/AttachUtil.d.ts | 6 ++-- lib/util/ClickTrap.d.ts | 2 +- lib/util/Elements.d.ts | 10 +++--- lib/util/Event.d.ts | 6 ++-- lib/util/Geometry.d.ts | 6 ++-- lib/util/LineIntersection.d.ts | 2 +- lib/util/PositionUtil.d.ts | 4 +-- lib/util/RenderUtil.d.ts | 2 +- lib/util/Text.d.ts | 8 ++--- 182 files changed, 772 insertions(+), 566 deletions(-) diff --git a/lib/Diagram.d.ts b/lib/Diagram.d.ts index 94d590ec1..99d620fbe 100644 --- a/lib/Diagram.d.ts +++ b/lib/Diagram.d.ts @@ -131,14 +131,14 @@ export default class Diagram { clear(): void; } -type InjectionContext = import('didi').InjectionContext; -type LocalsMap = import('didi').LocalsMap; -type ModuleDeclaration = import('didi').ModuleDeclaration; +type InjectionContext = import("didi").InjectionContext; +type LocalsMap = import("didi").LocalsMap; +type ModuleDeclaration = import("didi").ModuleDeclaration; export type DiagramOptions = { modules?: ModuleDeclaration[]; } & Record; -type FactoryFunction = import('didi').FactoryFunction; -type ArrayFunc = import('didi').ArrayFunc; +type FactoryFunction = import("didi").FactoryFunction; +type ArrayFunc = import("didi").ArrayFunc; import { Injector } from 'didi'; diff --git a/lib/command/CommandInterceptor.d.ts b/lib/command/CommandInterceptor.d.ts index b798f37cc..9cf9b8710 100644 --- a/lib/command/CommandInterceptor.d.ts +++ b/lib/command/CommandInterceptor.d.ts @@ -732,9 +732,9 @@ export default class CommandInterceptor { ): void; } -type ElementLike = import('../core/Types').ElementLike; -type EventBus = import('../core/EventBus').default; -type CommandContext = import('./CommandStack').CommandContext; +type ElementLike = import("../core/Types").ElementLike; +type EventBus = import("../core/EventBus").default; +type CommandContext = import("./CommandStack").CommandContext; export type Events = string | string[]; export type HandlerFunction = (context: CommandContext) => ElementLike[] | void; export type ComposeHandlerFunction = (context: CommandContext) => void; diff --git a/lib/command/CommandStack.d.ts b/lib/command/CommandStack.d.ts index 509d75e91..91e927263 100644 --- a/lib/command/CommandStack.d.ts +++ b/lib/command/CommandStack.d.ts @@ -156,15 +156,18 @@ export default class CommandStack { canRedo(): boolean; } -type Injector = import('didi').Injector; -type ElementLike = import('../core/Types').ElementLike; -type EventBus = import('../core/EventBus').default; -type CommandHandler = import('./CommandHandler').default; +type Injector = import("didi").Injector; +type ElementLike = import("../core/Types").ElementLike; +type EventBus = import("../core/EventBus").default; +type CommandHandler = import("./CommandHandler").default; export type CommandContext = any; -export type CommandHandlerConstructor = new (...args: any[]) => CommandHandler; + +export type CommandHandlerConstructor = { + new (...args: any[]): CommandHandler; +}; export type CommandHandlerMap = { - [key: string]: import("./CommandHandler").default; + [key: string]: CommandHandler; }; export type CommandStackAction = { @@ -176,6 +179,6 @@ export type CommandStackAction = { export type CurrentExecution = { actions: CommandStackAction[]; dirty: ElementLike[]; - trigger: 'execute' | 'undo' | 'redo' | 'clear' | null; + trigger: "execute" | "undo" | "redo" | "clear" | null; atomic?: boolean; }; diff --git a/lib/command/index.d.ts b/lib/command/index.d.ts index 6a909a907..0b49a9b7a 100644 --- a/lib/command/index.d.ts +++ b/lib/command/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + commandStack: (string | typeof CommandStack)[]; +}; export default _default; +import CommandStack from './CommandStack'; diff --git a/lib/core/Canvas.d.ts b/lib/core/Canvas.d.ts index b62a8af35..fdb8a3989 100644 --- a/lib/core/Canvas.d.ts +++ b/lib/core/Canvas.d.ts @@ -335,7 +335,7 @@ export default class Canvas { * * @return The set zoom level. */ - zoom(newScale?: number | 'fit-viewport', center?: Point): number; + zoom(newScale?: number | "fit-viewport", center?: Point): number; /** * Returns the size of the canvas. @@ -362,10 +362,10 @@ export default class Canvas { resized(): void; } -type ConnectionLike = import('./Types').ConnectionLike; -type RootLike = import('./Types').RootLike; -type ParentLike = import('./Types').ParentLike; -type ShapeLike = import('./Types').ShapeLike; +type ConnectionLike = import("./Types").ConnectionLike; +type RootLike = import("./Types").RootLike; +type ParentLike = import("./Types").ParentLike; +type ShapeLike = import("./Types").ShapeLike; export type CanvasConfig = { container?: HTMLElement; @@ -396,11 +396,11 @@ export type CanvasViewbox = { outer: Dimensions; } & Rect; -type ElementRegistry = import('./ElementRegistry').default; -type EventBus = import('./EventBus').default; -type GraphicsFactory = import('./GraphicsFactory').default; -type Dimensions = import('../util/Types').Dimensions; -type Point = import('../util/Types').Point; -type Rect = import('../util/Types').Rect; -type RectTRBL = import('../util/Types').RectTRBL; -type ScrollDelta = import('../util/Types').ScrollDelta; +type ElementRegistry = import("./ElementRegistry").default; +type EventBus = import("./EventBus").default; +type GraphicsFactory = import("./GraphicsFactory").default; +type Dimensions = import("../util/Types").Dimensions; +type Point = import("../util/Types").Point; +type Rect = import("../util/Types").Rect; +type RectTRBL = import("../util/Types").RectTRBL; +type ScrollDelta = import("../util/Types").ScrollDelta; diff --git a/lib/core/ElementFactory.d.ts b/lib/core/ElementFactory.d.ts index 09ab6abde..4674a8c30 100644 --- a/lib/core/ElementFactory.d.ts +++ b/lib/core/ElementFactory.d.ts @@ -2,7 +2,7 @@ * A factory for model elements. * */ -export default class ElementFactory { +export default class ElementFactory { /** * Create a root element. * @@ -76,8 +76,8 @@ export default class ElementFactory): V; } -type Element = import('../model/Types').Element; -type Connection = import('../model/Types').Connection; -type Label = import('../model/Types').Label; -type Root = import('../model/Types').Root; -type Shape = import('../model/Types').Shape; +type Element = import("../model/Types").Element; +type Connection = import("../model/Types").Connection; +type Label = import("../model/Types").Label; +type Root = import("../model/Types").Root; +type Shape = import("../model/Types").Shape; diff --git a/lib/core/ElementRegistry.d.ts b/lib/core/ElementRegistry.d.ts index 8c3375c22..6759fa13f 100644 --- a/lib/core/ElementRegistry.d.ts +++ b/lib/core/ElementRegistry.d.ts @@ -114,7 +114,7 @@ export default class ElementRegistry { getGraphics(filter: ElementLike | string, secondary?: boolean): SVGElement; } -type ElementLike = import('./Types').ElementLike; -type EventBus = import('./EventBus').default; +type ElementLike = import("./Types").ElementLike; +type EventBus = import("./EventBus").default; export type ElementRegistryFilterCallback = (element: ElementLike, gfx: SVGElement) => boolean | any; export type ElementRegistryForEachCallback = (element: ElementLike, gfx: SVGElement) => any; diff --git a/lib/core/EventBus.d.ts b/lib/core/EventBus.d.ts index 33fd529b0..fffde4372 100644 --- a/lib/core/EventBus.d.ts +++ b/lib/core/EventBus.d.ts @@ -243,7 +243,7 @@ export default class EventBus { * @param events * @param callback */ - off(events: string | string[], callback?: any): void; + off(events: string | string[], callback?: EventBusEventCallback): void; /** * Create an event recognized be the event bus. @@ -394,7 +394,7 @@ export type Event = { defaultPrevented: boolean; returnValue: any; }; -export type EventBusEventCallback = (event: E & Event, ...any: any[]) => any; +export type EventBusEventCallback = (event: E & Event, ...any: any) => any; export type EventBusListener = { priority: number; next: EventBusListener | null; diff --git a/lib/core/GraphicsFactory.d.ts b/lib/core/GraphicsFactory.d.ts index 8d715d839..82595dea3 100644 --- a/lib/core/GraphicsFactory.d.ts +++ b/lib/core/GraphicsFactory.d.ts @@ -20,7 +20,7 @@ export default class GraphicsFactory { * * @return The graphical element. */ - create(type: 'shape' | 'connection' | 'label' | 'root', element: ElementLike, parentIndex?: number): SVGElement; + create(type: "shape" | "connection" | "label" | "root", element: ElementLike, parentIndex?: number): SVGElement; /** * Update the containments of the given elements. @@ -76,7 +76,7 @@ export default class GraphicsFactory { * @param element * @param gfx */ - update(type: 'shape' | 'connection', element: ElementLike, gfx: SVGElement): void; + update(type: "shape" | "connection", element: ElementLike, gfx: SVGElement): void; /** * Remove a graphical element. @@ -86,8 +86,8 @@ export default class GraphicsFactory { remove(element: ElementLike): void; } -type ConnectionLike = import('./Types').ConnectionLike; -type ElementLike = import('./Types').ElementLike; -type ShapeLike = import('./Types').ShapeLike; -type ElementRegistry = import('./ElementRegistry').default; -type EventBus = import('./EventBus').default; +type ConnectionLike = import("./Types").ConnectionLike; +type ElementLike = import("./Types").ElementLike; +type ShapeLike = import("./Types").ShapeLike; +type ElementRegistry = import("./ElementRegistry").default; +type EventBus = import("./EventBus").default; diff --git a/lib/core/index.d.ts b/lib/core/index.d.ts index 6a909a907..e6b37a5f1 100644 --- a/lib/core/index.d.ts +++ b/lib/core/index.d.ts @@ -1,2 +1,13 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + canvas: (string | typeof Canvas)[]; + elementRegistry: (string | typeof ElementRegistry)[]; + elementFactory: (string | typeof ElementFactory)[]; + eventBus: (string | typeof EventBus)[]; + graphicsFactory: (string | typeof GraphicsFactory)[]; +}; export default _default; +import Canvas from './Canvas'; +import ElementRegistry from './ElementRegistry'; +import ElementFactory from './ElementFactory'; +import EventBus from './EventBus'; +import GraphicsFactory from './GraphicsFactory'; diff --git a/lib/draw/BaseRenderer.d.ts b/lib/draw/BaseRenderer.d.ts index 7bb568f3b..881018593 100644 --- a/lib/draw/BaseRenderer.d.ts +++ b/lib/draw/BaseRenderer.d.ts @@ -52,7 +52,7 @@ export default class BaseRenderer { getConnectionPath(connection: Connection): string; } -type Element = import('../core/Types').ElementLike; -type Connection = import('../core/Types').ConnectionLike; -type Shape = import('../core/Types').ShapeLike; -type EventBus = import('../core/EventBus').default; +type Element = import("../core/Types").ElementLike; +type Connection = import("../core/Types").ConnectionLike; +type Shape = import("../core/Types").ShapeLike; +type EventBus = import("../core/EventBus").default; diff --git a/lib/draw/DefaultRenderer.d.ts b/lib/draw/DefaultRenderer.d.ts index ffaee7f97..75836af22 100644 --- a/lib/draw/DefaultRenderer.d.ts +++ b/lib/draw/DefaultRenderer.d.ts @@ -16,6 +16,6 @@ export default class DefaultRenderer extends BaseRenderer { FRAME_STYLE: any; } -type EventBus = import('../core/EventBus').default; -type Styles = import('./Styles').default; +type EventBus = import("../core/EventBus").default; +type Styles = import("./Styles").default; import BaseRenderer from './BaseRenderer'; diff --git a/lib/draw/index.d.ts b/lib/draw/index.d.ts index 6a909a907..33a24484c 100644 --- a/lib/draw/index.d.ts +++ b/lib/draw/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + defaultRenderer: (string | typeof DefaultRenderer)[]; + styles: (string | typeof Styles)[]; +}; export default _default; +import DefaultRenderer from './DefaultRenderer'; +import Styles from './Styles'; diff --git a/lib/features/align-elements/AlignElements.d.ts b/lib/features/align-elements/AlignElements.d.ts index 6e821dbfa..480cbdffd 100644 --- a/lib/features/align-elements/AlignElements.d.ts +++ b/lib/features/align-elements/AlignElements.d.ts @@ -16,9 +16,9 @@ export default class AlignElements { trigger(elements: Element[], type: Alignment): void; } -type Element = import('../../model/Types').Element; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; -type Axis = import('../../util/Types').Axis; -type Dimension = import('../../util/Types').Dimension; -export type Alignment = 'top' | 'right' | 'bottom' | 'left' | 'center' | 'middle'; +type Element = import("../../model/Types").Element; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; +type Axis = import("../../util/Types").Axis; +type Dimension = import("../../util/Types").Dimension; +export type Alignment = "top" | "right" | "bottom" | "left" | "center" | "middle"; diff --git a/lib/features/align-elements/index.d.ts b/lib/features/align-elements/index.d.ts index 6a909a907..bbce22f7a 100644 --- a/lib/features/align-elements/index.d.ts +++ b/lib/features/align-elements/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + alignElements: (string | typeof AlignElements)[]; +}; export default _default; +import AlignElements from './AlignElements'; diff --git a/lib/features/attach-support/AttachSupport.d.ts b/lib/features/attach-support/AttachSupport.d.ts index 0f9141b7e..e0a5dd292 100644 --- a/lib/features/attach-support/AttachSupport.d.ts +++ b/lib/features/attach-support/AttachSupport.d.ts @@ -19,10 +19,10 @@ export default class AttachSupport extends CommandInterceptor { constructor(injector: Injector, eventBus: EventBus, canvas: Canvas, rules: Rules, modeling: Modeling); } -type Injector = import('didi').Injector; -type Element = import('../../model/Types').Element; -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type Rules = import('../rules/Rules').default; -type Modeling = import('../modeling/Modeling').default; +type Injector = import("didi").Injector; +type Element = import("../../model/Types").Element; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type Rules = import("../rules/Rules").default; +type Modeling = import("../modeling/Modeling").default; import CommandInterceptor from '../../command/CommandInterceptor'; diff --git a/lib/features/attach-support/index.d.ts b/lib/features/attach-support/index.d.ts index 6a909a907..a6b3bd265 100644 --- a/lib/features/attach-support/index.d.ts +++ b/lib/features/attach-support/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + attachSupport: (string | typeof AttachSupport)[]; +}; export default _default; +import AttachSupport from './AttachSupport'; diff --git a/lib/features/auto-place/AutoPlace.d.ts b/lib/features/auto-place/AutoPlace.d.ts index 4b1dd9eea..387cebc79 100644 --- a/lib/features/auto-place/AutoPlace.d.ts +++ b/lib/features/auto-place/AutoPlace.d.ts @@ -23,8 +23,8 @@ export default class AutoPlace { append: (source: Shape, shape: Shape, hints?: any) => Shape; } -type Shape = import('../../core/Types').ShapeLike; -type Point = import('../../util/Types').Point; -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; +type Shape = import("../../core/Types").ShapeLike; +type Point = import("../../util/Types").Point; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; diff --git a/lib/features/auto-place/AutoPlaceSelectionBehavior.d.ts b/lib/features/auto-place/AutoPlaceSelectionBehavior.d.ts index dec45178b..0287a0096 100644 --- a/lib/features/auto-place/AutoPlaceSelectionBehavior.d.ts +++ b/lib/features/auto-place/AutoPlaceSelectionBehavior.d.ts @@ -11,5 +11,5 @@ export default class AutoPlaceSelectionBehavior { constructor(eventBus: EventBus, selection: Selection); } -type EventBus = import('../../core/EventBus').default; -type Selection = import('../selection/Selection').default; +type EventBus = import("../../core/EventBus").default; +type Selection = import("../selection/Selection").default; diff --git a/lib/features/auto-place/AutoPlaceUtil.d.ts b/lib/features/auto-place/AutoPlaceUtil.d.ts index 3bdec1f51..f21314b83 100644 --- a/lib/features/auto-place/AutoPlaceUtil.d.ts +++ b/lib/features/auto-place/AutoPlaceUtil.d.ts @@ -47,11 +47,11 @@ export function getConnectedDistance(source: Shape, hints?: { filter?: (connection: Connection) => boolean; getWeight?: (connection: Connection) => number; maxDistance?: number; - reference?: 'start' | 'center' | 'end'; + reference?: "start" | "center" | "end"; }): number; export const DEFAULT_DISTANCE: number; -type Connection = import('../../model/Types').Connection; -type Element = import('../../model/Types').Element; -type Shape = import('../../model/Types').Shape; -type Point = import('../../util/Types').Point; +type Connection = import("../../model/Types").Connection; +type Element = import("../../model/Types").Element; +type Shape = import("../../model/Types").Shape; +type Point = import("../../util/Types").Point; diff --git a/lib/features/auto-place/index.d.ts b/lib/features/auto-place/index.d.ts index 6a909a907..3b7da4497 100644 --- a/lib/features/auto-place/index.d.ts +++ b/lib/features/auto-place/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + autoPlace: (string | typeof AutoPlace)[]; + autoPlaceSelectionBehavior: (string | typeof AutoPlaceSelectionBehavior)[]; +}; export default _default; +import AutoPlace from './AutoPlace'; +import AutoPlaceSelectionBehavior from './AutoPlaceSelectionBehavior'; diff --git a/lib/features/auto-resize/AutoResize.d.ts b/lib/features/auto-resize/AutoResize.d.ts index 626dc2843..14075bab2 100644 --- a/lib/features/auto-resize/AutoResize.d.ts +++ b/lib/features/auto-resize/AutoResize.d.ts @@ -43,13 +43,13 @@ export default class AutoResize extends CommandInterceptor { }): void; } -type Element = import('../../model/Types').Element; -type Shape = import('../../model/Types').Shape; -type Direction = import('../../util/Types').Direction; -type Rect = import('../../util/Types').Rect; -type RectTRBL = import('../../util/Types').RectTRBL; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; +type Element = import("../../model/Types").Element; +type Shape = import("../../model/Types").Shape; +type Direction = import("../../util/Types").Direction; +type Rect = import("../../util/Types").Rect; +type RectTRBL = import("../../util/Types").RectTRBL; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; import CommandInterceptor from '../../command/CommandInterceptor'; diff --git a/lib/features/auto-resize/AutoResizeProvider.d.ts b/lib/features/auto-resize/AutoResizeProvider.d.ts index 01ab225e9..4d5775936 100644 --- a/lib/features/auto-resize/AutoResizeProvider.d.ts +++ b/lib/features/auto-resize/AutoResizeProvider.d.ts @@ -14,6 +14,6 @@ export default class AutoResizeProvider extends RuleProvider { canResize(elements: Shape[], target: Shape): boolean; } -type Shape = import('../../model/Types').Shape; -type EventBus = import('../../core/EventBus').default; +type Shape = import("../../model/Types").Shape; +type EventBus = import("../../core/EventBus").default; import RuleProvider from '../rules/RuleProvider'; diff --git a/lib/features/auto-resize/index.d.ts b/lib/features/auto-resize/index.d.ts index 6a909a907..dcc9f5740 100644 --- a/lib/features/auto-resize/index.d.ts +++ b/lib/features/auto-resize/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + autoResize: (string | typeof AutoResize)[]; +}; export default _default; +import AutoResize from './AutoResize'; diff --git a/lib/features/auto-scroll/AutoScroll.d.ts b/lib/features/auto-scroll/AutoScroll.d.ts index 3c8a22594..2e6443eec 100644 --- a/lib/features/auto-scroll/AutoScroll.d.ts +++ b/lib/features/auto-scroll/AutoScroll.d.ts @@ -44,6 +44,6 @@ export default class AutoScroll { setOptions(options: any): void; } -type Point = import('../../util/Types').Point; -type EventBus = import('../../core/EventBus').default; -type Canvas = import('../../core/Canvas').default; +type Point = import("../../util/Types").Point; +type EventBus = import("../../core/EventBus").default; +type Canvas = import("../../core/Canvas").default; diff --git a/lib/features/auto-scroll/index.d.ts b/lib/features/auto-scroll/index.d.ts index 6a909a907..9d3bc646c 100644 --- a/lib/features/auto-scroll/index.d.ts +++ b/lib/features/auto-scroll/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + autoScroll: (string | typeof AutoScroll)[]; +}; export default _default; +import AutoScroll from './AutoScroll'; diff --git a/lib/features/bendpoints/BendpointMove.d.ts b/lib/features/bendpoints/BendpointMove.d.ts index 8eb18c7a6..4c074757f 100644 --- a/lib/features/bendpoints/BendpointMove.d.ts +++ b/lib/features/bendpoints/BendpointMove.d.ts @@ -21,9 +21,9 @@ export default class BendpointMove { cropWaypoints(connection: any, newWaypoints: any): any; } -type Injector = import('didi').Injector; -type Canvas = import('../../core/Canvas').default; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; +type Injector = import("didi").Injector; +type Canvas = import("../../core/Canvas").default; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; diff --git a/lib/features/bendpoints/BendpointMovePreview.d.ts b/lib/features/bendpoints/BendpointMovePreview.d.ts index 788d615db..a833611f6 100644 --- a/lib/features/bendpoints/BendpointMovePreview.d.ts +++ b/lib/features/bendpoints/BendpointMovePreview.d.ts @@ -14,7 +14,7 @@ export default class BendpointMovePreview { constructor(bendpointMove: BendpointMove, injector: Injector, eventBus: EventBus, canvas: Canvas); } -type Injector = import('didi').Injector; -type BendpointMove = import('../bendpoints/BendpointMove').default; -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; +type Injector = import("didi").Injector; +type BendpointMove = import("../bendpoints/BendpointMove").default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/bendpoints/BendpointSnapping.d.ts b/lib/features/bendpoints/BendpointSnapping.d.ts index db074dd48..6f3f6a366 100644 --- a/lib/features/bendpoints/BendpointSnapping.d.ts +++ b/lib/features/bendpoints/BendpointSnapping.d.ts @@ -6,4 +6,4 @@ export default class BendpointSnapping { constructor(eventBus: EventBus); } -type EventBus = import('../../core/EventBus').default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/bendpoints/BendpointUtil.d.ts b/lib/features/bendpoints/BendpointUtil.d.ts index da28b5a26..4deba7b25 100644 --- a/lib/features/bendpoints/BendpointUtil.d.ts +++ b/lib/features/bendpoints/BendpointUtil.d.ts @@ -26,5 +26,5 @@ export function getClosestPointOnConnection(position: Point, connection: Connect export const BENDPOINT_CLS: string; export const SEGMENT_DRAGGER_CLS: string; -type Connection = import('../../core/Types').ConnectionLike; -type Point = import('../../util/Types').Point; +type Connection = import("../../core/Types").ConnectionLike; +type Point = import("../../util/Types").Point; diff --git a/lib/features/bendpoints/Bendpoints.d.ts b/lib/features/bendpoints/Bendpoints.d.ts index c2a4b2c9a..da90fb44a 100644 --- a/lib/features/bendpoints/Bendpoints.d.ts +++ b/lib/features/bendpoints/Bendpoints.d.ts @@ -18,8 +18,8 @@ export default class Bendpoints { getSegmentDragger: (idx: any, parentGfx: any) => Element; } -type BendpointMove = import('../bendpoints/BendpointMove').default; -type Canvas = import('../../core/Canvas').default; -type ConnectionSegmentMove = import('../bendpoints/ConnectionSegmentMove').default; -type EventBus = import('../../core/EventBus').default; -type InteractionEvents = import('../interaction-events/InteractionEvents').default; +type BendpointMove = import("../bendpoints/BendpointMove").default; +type Canvas = import("../../core/Canvas").default; +type ConnectionSegmentMove = import("../bendpoints/ConnectionSegmentMove").default; +type EventBus = import("../../core/EventBus").default; +type InteractionEvents = import("../interaction-events/InteractionEvents").default; diff --git a/lib/features/bendpoints/ConnectionSegmentMove.d.ts b/lib/features/bendpoints/ConnectionSegmentMove.d.ts index 8297f195b..9625dadf9 100644 --- a/lib/features/bendpoints/ConnectionSegmentMove.d.ts +++ b/lib/features/bendpoints/ConnectionSegmentMove.d.ts @@ -16,12 +16,12 @@ export default class ConnectionSegmentMove { start: (event: any, connection: any, idx: any) => void; } -type Shape = import('../../model/Types').Shape; -type Axis = import('../../util/Types').Axis; -type Point = import('../../util/Types').Point; -type Injector = import('didi').Injector; -type Canvas = import('../../core/Canvas').default; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type GraphicsFactory = import('../../core/GraphicsFactory').default; -type Modeling = import('../modeling/Modeling').default; +type Shape = import("../../model/Types").Shape; +type Axis = import("../../util/Types").Axis; +type Point = import("../../util/Types").Point; +type Injector = import("didi").Injector; +type Canvas = import("../../core/Canvas").default; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type GraphicsFactory = import("../../core/GraphicsFactory").default; +type Modeling = import("../modeling/Modeling").default; diff --git a/lib/features/bendpoints/GeometricUtil.d.ts b/lib/features/bendpoints/GeometricUtil.d.ts index 21d8dcd6c..8d643bc2e 100644 --- a/lib/features/bendpoints/GeometricUtil.d.ts +++ b/lib/features/bendpoints/GeometricUtil.d.ts @@ -56,5 +56,5 @@ export function getDistancePointLine(point: Point, line: Point[]): number; */ export function getDistancePointPoint(point1: Point, point2: Point): number; -type Point = import('../../util/Types').Point; -type Vector = import('../../util/Types').Vector; +type Point = import("../../util/Types").Point; +type Vector = import("../../util/Types").Vector; diff --git a/lib/features/bendpoints/index.d.ts b/lib/features/bendpoints/index.d.ts index 6a909a907..abf85c09c 100644 --- a/lib/features/bendpoints/index.d.ts +++ b/lib/features/bendpoints/index.d.ts @@ -1,2 +1,13 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + bendpoints: (string | typeof Bendpoints)[]; + bendpointMove: (string | typeof BendpointMove)[]; + bendpointMovePreview: (string | typeof BendpointMovePreview)[]; + connectionSegmentMove: (string | typeof ConnectionSegmentMove)[]; + bendpointSnapping: (string | typeof BendpointSnapping)[]; +}; export default _default; +import Bendpoints from './Bendpoints'; +import BendpointMove from './BendpointMove'; +import BendpointMovePreview from './BendpointMovePreview'; +import ConnectionSegmentMove from './ConnectionSegmentMove'; +import BendpointSnapping from './BendpointSnapping'; diff --git a/lib/features/change-support/ChangeSupport.d.ts b/lib/features/change-support/ChangeSupport.d.ts index 1ab142147..1960147b5 100644 --- a/lib/features/change-support/ChangeSupport.d.ts +++ b/lib/features/change-support/ChangeSupport.d.ts @@ -17,7 +17,7 @@ export default class ChangeSupport { constructor(eventBus: EventBus, canvas: Canvas, elementRegistry: ElementRegistry, graphicsFactory: GraphicsFactory); } -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type GraphicsFactory = import('../../core/GraphicsFactory').default; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type GraphicsFactory = import("../../core/GraphicsFactory").default; diff --git a/lib/features/change-support/index.d.ts b/lib/features/change-support/index.d.ts index 6a909a907..63b4a2b5a 100644 --- a/lib/features/change-support/index.d.ts +++ b/lib/features/change-support/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + changeSupport: (string | typeof ChangeSupport)[]; +}; export default _default; +import ChangeSupport from './ChangeSupport'; diff --git a/lib/features/clipboard/index.d.ts b/lib/features/clipboard/index.d.ts index 6a909a907..ebd62224f 100644 --- a/lib/features/clipboard/index.d.ts +++ b/lib/features/clipboard/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + clipboard: (string | typeof Clipboard)[]; +}; export default _default; +import Clipboard from './Clipboard'; diff --git a/lib/features/complex-preview/ComplexPreview.d.ts b/lib/features/complex-preview/ComplexPreview.d.ts index 9b066124a..0fe47e7ae 100644 --- a/lib/features/complex-preview/ComplexPreview.d.ts +++ b/lib/features/complex-preview/ComplexPreview.d.ts @@ -21,10 +21,10 @@ declare namespace ComplexPreview { } export default ComplexPreview; -type Element = import('../../model/Types').Element; -type Shape = import('../../model/Types').Shape; -type Point = import('../../util/Types').Point; -type Rect = import('../../util/Types').Rect; +type Element = import("../../model/Types").Element; +type Shape = import("../../model/Types").Shape; +type Point = import("../../util/Types").Point; +type Rect = import("../../util/Types").Rect; export type MovedOption = { element: Element; diff --git a/lib/features/complex-preview/index.d.ts b/lib/features/complex-preview/index.d.ts index 6a909a907..34c7f27cf 100644 --- a/lib/features/complex-preview/index.d.ts +++ b/lib/features/complex-preview/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + complexPreview: (string | typeof ComplexPreview)[]; +}; export default _default; +import ComplexPreview from './ComplexPreview'; diff --git a/lib/features/connect/Connect.d.ts b/lib/features/connect/Connect.d.ts index 605a0b012..0a8c1b93f 100644 --- a/lib/features/connect/Connect.d.ts +++ b/lib/features/connect/Connect.d.ts @@ -20,9 +20,9 @@ export default class Connect { start: (event: MouseEvent | TouchEvent, start: Element, connectionStart?: Point, autoActivate?: boolean) => void; } -type Element = import('../../model/Types').Element; -type Point = import('../../util/Types').Point; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; +type Element = import("../../model/Types").Element; +type Point = import("../../util/Types").Point; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; diff --git a/lib/features/connect/ConnectPreview.d.ts b/lib/features/connect/ConnectPreview.d.ts index 0f9c5073e..d10470aeb 100644 --- a/lib/features/connect/ConnectPreview.d.ts +++ b/lib/features/connect/ConnectPreview.d.ts @@ -12,6 +12,6 @@ export default class ConnectPreview { constructor(injector: Injector, eventBus: EventBus, canvas: Canvas); } -type Injector = import('didi').Injector; -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; +type Injector = import("didi").Injector; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/connect/index.d.ts b/lib/features/connect/index.d.ts index 6a909a907..073b6f697 100644 --- a/lib/features/connect/index.d.ts +++ b/lib/features/connect/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + connect: (string | typeof Connect)[]; + connectPreview: (string | typeof ConnectPreview)[]; +}; export default _default; +import Connect from './Connect'; +import ConnectPreview from './ConnectPreview'; diff --git a/lib/features/connection-preview/ConnectionPreview.d.ts b/lib/features/connection-preview/ConnectionPreview.d.ts index 0fa16d6ca..123242cd4 100644 --- a/lib/features/connection-preview/ConnectionPreview.d.ts +++ b/lib/features/connection-preview/ConnectionPreview.d.ts @@ -96,11 +96,11 @@ export default class ConnectionPreview { createNoopConnection(start: Point, end: Point): SVGElement; } -type Element = import('../../model/Types').Element; -type Connection = import('../../model/Types').Connection; -type Shape = import('../../model/Types').Shape; -type Point = import('../../util/Types').Point; -type Injector = import('didi').Injector; -type Canvas = import('../../core/Canvas').default; -type ElementFactory = import('../../core/ElementFactory').default; -type GraphicsFactory = import('../../core/GraphicsFactory').default; +type Element = import("../../model/Types").Element; +type Connection = import("../../model/Types").Connection; +type Shape = import("../../model/Types").Shape; +type Point = import("../../util/Types").Point; +type Injector = import("didi").Injector; +type Canvas = import("../../core/Canvas").default; +type ElementFactory = import("../../core/ElementFactory").default; +type GraphicsFactory = import("../../core/GraphicsFactory").default; diff --git a/lib/features/connection-preview/index.d.ts b/lib/features/connection-preview/index.d.ts index 6a909a907..fcf0caaf2 100644 --- a/lib/features/connection-preview/index.d.ts +++ b/lib/features/connection-preview/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + connectionPreview: (string | typeof ConnectionPreview)[]; +}; export default _default; +import ConnectionPreview from './ConnectionPreview'; diff --git a/lib/features/context-pad/ContextPad.d.ts b/lib/features/context-pad/ContextPad.d.ts index 871da9562..380f27264 100644 --- a/lib/features/context-pad/ContextPad.d.ts +++ b/lib/features/context-pad/ContextPad.d.ts @@ -12,7 +12,7 @@ export default class ContextPad { * @param eventBus * @param scheduler */ - constructor(canvas: Canvas, elementRegistry: ElementRegistry, eventBus: EventBus, scheduler: any); + constructor(canvas: Canvas, elementRegistry: ElementRegistry, eventBus: EventBus, scheduler: Scheduler); /** * Register a context pad provider with the given priority. See @@ -113,13 +113,13 @@ export default class ContextPad { hide(): void; } -type Element = import('../../model/Types').Element; -type Rect = import('../../util/Types').Rect; -type RectTRBL = import('../../util/Types').RectTRBL; -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; +type Element = import("../../model/Types").Element; +type Rect = import("../../util/Types").Rect; +type RectTRBL = import("../../util/Types").RectTRBL; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; export type Scheduler = any; -type ContextPadProvider = import('./ContextPadProvider').default; -type ContextPadEntries = import('./ContextPadProvider').ContextPadEntries; -export type ContextPadTarget = ElementType | ElementType[]; +type ContextPadProvider = import("./ContextPadProvider").default; +type ContextPadEntries = import("./ContextPadProvider").ContextPadEntries; +export type ContextPadTarget = ElementType | ElementType[]; diff --git a/lib/features/context-pad/index.d.ts b/lib/features/context-pad/index.d.ts index 6a909a907..fec0ab5d5 100644 --- a/lib/features/context-pad/index.d.ts +++ b/lib/features/context-pad/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + contextPad: (string | typeof ContextPad)[]; +}; export default _default; +import ContextPad from './ContextPad'; diff --git a/lib/features/copy-paste/CopyPaste.d.ts b/lib/features/copy-paste/CopyPaste.d.ts index c6b36f3a6..bb14f79c6 100644 --- a/lib/features/copy-paste/CopyPaste.d.ts +++ b/lib/features/copy-paste/CopyPaste.d.ts @@ -78,17 +78,17 @@ export default class CopyPaste { createTree(elements: Element[]): any; } -type Element = import('../../core/Types').ElementLike; -type Shape = import('../../core/Types').ShapeLike; -type Point = import('../../util/Types').Point; -type Canvas = import('../../core/Canvas').default; -type Clipboard = import('../clipboard/Clipboard').default; -type Create = import('../create/Create').default; -type ElementFactory = import('../../core/ElementFactory').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Mouse = import('../mouse/Mouse').default; -type Rules = import('../rules/Rules').default; +type Element = import("../../core/Types").ElementLike; +type Shape = import("../../core/Types").ShapeLike; +type Point = import("../../util/Types").Point; +type Canvas = import("../../core/Canvas").default; +type Clipboard = import("../clipboard/Clipboard").default; +type Create = import("../create/Create").default; +type ElementFactory = import("../../core/ElementFactory").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Mouse = import("../mouse/Mouse").default; +type Rules = import("../rules/Rules").default; export type CopyPasteCanCopyElementsListener = (event: { elements: Element[]; diff --git a/lib/features/copy-paste/index.d.ts b/lib/features/copy-paste/index.d.ts index 6a909a907..d73668b79 100644 --- a/lib/features/copy-paste/index.d.ts +++ b/lib/features/copy-paste/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + copyPaste: (string | typeof CopyPaste)[]; +}; export default _default; +import CopyPaste from './CopyPaste'; diff --git a/lib/features/create/Create.d.ts b/lib/features/create/Create.d.ts index 7522bbbd3..a20152c27 100644 --- a/lib/features/create/Create.d.ts +++ b/lib/features/create/Create.d.ts @@ -20,11 +20,11 @@ export default class Create { start: (event: any, elements: any, context?: any) => void; } -type Element = import('../../core/Types').ElementLike; -type Shape = import('../../core/Types').ShapeLike; -type Point = import('../../util/Types').Point; -type Canvas = import('../../core/Canvas').default; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; +type Element = import("../../core/Types").ElementLike; +type Shape = import("../../core/Types").ShapeLike; +type Point = import("../../util/Types").Point; +type Canvas = import("../../core/Canvas").default; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; diff --git a/lib/features/create/CreateConnectPreview.d.ts b/lib/features/create/CreateConnectPreview.d.ts index 1d4a34603..d93ca7943 100644 --- a/lib/features/create/CreateConnectPreview.d.ts +++ b/lib/features/create/CreateConnectPreview.d.ts @@ -11,5 +11,5 @@ export default class CreateConnectPreview { constructor(injector: Injector, eventBus: EventBus); } -type Injector = import('didi').Injector; -type EventBus = import('../../core/EventBus').default; +type Injector = import("didi").Injector; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/create/CreatePreview.d.ts b/lib/features/create/CreatePreview.d.ts index e54bca76c..2b7597429 100644 --- a/lib/features/create/CreatePreview.d.ts +++ b/lib/features/create/CreatePreview.d.ts @@ -10,8 +10,8 @@ export default class CreatePreview { constructor(canvas: Canvas, eventBus: EventBus, graphicsFactory: GraphicsFactory, previewSupport: PreviewSupport, styles: Styles); } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type GraphicsFactory = import('../../core/GraphicsFactory').default; -type PreviewSupport = import('../preview-support/PreviewSupport').default; -type Styles = import('../../draw/Styles').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type GraphicsFactory = import("../../core/GraphicsFactory").default; +type PreviewSupport = import("../preview-support/PreviewSupport").default; +type Styles = import("../../draw/Styles").default; diff --git a/lib/features/create/index.d.ts b/lib/features/create/index.d.ts index 6a909a907..e7ec964e8 100644 --- a/lib/features/create/index.d.ts +++ b/lib/features/create/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + create: (string | typeof Create)[]; + createPreview: (string | typeof CreatePreview)[]; +}; export default _default; +import Create from './Create'; +import CreatePreview from './CreatePreview'; diff --git a/lib/features/distribute-elements/DistributeElements.d.ts b/lib/features/distribute-elements/DistributeElements.d.ts index 62cdbf1a5..456e48ce4 100644 --- a/lib/features/distribute-elements/DistributeElements.d.ts +++ b/lib/features/distribute-elements/DistributeElements.d.ts @@ -28,12 +28,12 @@ export default class DistributeElements { trigger(elements: Element[], orientation: string): Group[]; } -type Element = import('../../model/Types').Element; -type Axis = import('../../util/Types').Axis; -type Dimension = import('../../util/Types').Dimension; -type Rect = import('../../util/Types').Rect; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; +type Element = import("../../model/Types").Element; +type Axis = import("../../util/Types").Axis; +type Dimension = import("../../util/Types").Dimension; +type Rect = import("../../util/Types").Rect; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; export type Range = { min: number; diff --git a/lib/features/distribute-elements/index.d.ts b/lib/features/distribute-elements/index.d.ts index 6a909a907..38fed3566 100644 --- a/lib/features/distribute-elements/index.d.ts +++ b/lib/features/distribute-elements/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + distributeElements: (string | typeof DistributeElements)[]; +}; export default _default; +import DistributeElements from './DistributeElements'; diff --git a/lib/features/dragging/Dragging.d.ts b/lib/features/dragging/Dragging.d.ts index 01366a4c2..c4ae64836 100644 --- a/lib/features/dragging/Dragging.d.ts +++ b/lib/features/dragging/Dragging.d.ts @@ -110,8 +110,8 @@ export default class Dragging { setOptions: (options: any) => void; } -type Point = import('../../util/Types').Point; -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Selection = import('../selection/Selection').default; +type Point = import("../../util/Types").Point; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Selection = import("../selection/Selection").default; diff --git a/lib/features/dragging/index.d.ts b/lib/features/dragging/index.d.ts index 6a909a907..49d29e748 100644 --- a/lib/features/dragging/index.d.ts +++ b/lib/features/dragging/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + dragging: (string | typeof Dragging)[]; +}; export default _default; +import Dragging from './Dragging'; diff --git a/lib/features/editor-actions/EditorActions.d.ts b/lib/features/editor-actions/EditorActions.d.ts index aa00f8737..cceeaf526 100644 --- a/lib/features/editor-actions/EditorActions.d.ts +++ b/lib/features/editor-actions/EditorActions.d.ts @@ -84,5 +84,5 @@ export default class EditorActions { isRegistered(action: string): boolean; } -type Injector = import('didi').Injector; -type EventBus = import('../../core/EventBus').default; +type Injector = import("didi").Injector; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/editor-actions/index.d.ts b/lib/features/editor-actions/index.d.ts index 6a909a907..6044b1357 100644 --- a/lib/features/editor-actions/index.d.ts +++ b/lib/features/editor-actions/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + editorActions: (string | typeof EditorActions)[]; +}; export default _default; +import EditorActions from './EditorActions'; diff --git a/lib/features/global-connect/GlobalConnect.d.ts b/lib/features/global-connect/GlobalConnect.d.ts index a21d5920d..a644299d9 100644 --- a/lib/features/global-connect/GlobalConnect.d.ts +++ b/lib/features/global-connect/GlobalConnect.d.ts @@ -29,11 +29,11 @@ export default class GlobalConnect { canStartConnect(startTarget: Element): boolean; } -type Canvas = import('../../core/Canvas').default; -type Connect = import('../connect/Connect').default; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Mouse = import('../mouse/Mouse').default; -type Rules = import('../rules/Rules').default; -type ToolManager = import('../tool-manager/ToolManager').default; -type Element = import('../../model/Types').Element; +type Canvas = import("../../core/Canvas").default; +type Connect = import("../connect/Connect").default; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Mouse = import("../mouse/Mouse").default; +type Rules = import("../rules/Rules").default; +type ToolManager = import("../tool-manager/ToolManager").default; +type Element = import("../../model/Types").Element; diff --git a/lib/features/global-connect/index.d.ts b/lib/features/global-connect/index.d.ts index 6a909a907..24f0d820c 100644 --- a/lib/features/global-connect/index.d.ts +++ b/lib/features/global-connect/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + globalConnect: (string | typeof GlobalConnect)[]; +}; export default _default; +import GlobalConnect from './GlobalConnect'; diff --git a/lib/features/grid-snapping/GridSnapping.d.ts b/lib/features/grid-snapping/GridSnapping.d.ts index eed3af7e9..1a78a40c0 100644 --- a/lib/features/grid-snapping/GridSnapping.d.ts +++ b/lib/features/grid-snapping/GridSnapping.d.ts @@ -46,5 +46,5 @@ export default class GridSnapping { toggleActive(): void; } -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/grid-snapping/behavior/ResizeBehavior.d.ts b/lib/features/grid-snapping/behavior/ResizeBehavior.d.ts index 36d657904..8e3093d24 100644 --- a/lib/features/grid-snapping/behavior/ResizeBehavior.d.ts +++ b/lib/features/grid-snapping/behavior/ResizeBehavior.d.ts @@ -50,8 +50,8 @@ export default class ResizeBehavior extends CommandInterceptor { snapVertically(newBounds: Rect, directions: string): Rect; } -type Shape = import('../../../model/Types').Shape; -type Rect = import('../../../util/Types').Rect; -type EventBus = import('../../../core/EventBus').default; -type GridSnapping = import('../../grid-snapping/GridSnapping').default; +type Shape = import("../../../model/Types").Shape; +type Rect = import("../../../util/Types").Rect; +type EventBus = import("../../../core/EventBus").default; +type GridSnapping = import("../../grid-snapping/GridSnapping").default; import CommandInterceptor from '../../../command/CommandInterceptor'; diff --git a/lib/features/grid-snapping/behavior/SpaceToolBehavior.d.ts b/lib/features/grid-snapping/behavior/SpaceToolBehavior.d.ts index 3efc0401b..3fd8662fa 100644 --- a/lib/features/grid-snapping/behavior/SpaceToolBehavior.d.ts +++ b/lib/features/grid-snapping/behavior/SpaceToolBehavior.d.ts @@ -11,5 +11,5 @@ export default class SpaceToolBehavior { constructor(eventBus: EventBus, gridSnapping: GridSnapping); } -type EventBus = import('../../../core/EventBus').default; -type GridSnapping = import('../../grid-snapping/GridSnapping').default; +type EventBus = import("../../../core/EventBus").default; +type GridSnapping = import("../../grid-snapping/GridSnapping").default; diff --git a/lib/features/grid-snapping/index.d.ts b/lib/features/grid-snapping/index.d.ts index 6a909a907..855e8deda 100644 --- a/lib/features/grid-snapping/index.d.ts +++ b/lib/features/grid-snapping/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + gridSnapping: (string | typeof GridSnapping)[]; +}; export default _default; +import GridSnapping from './GridSnapping'; diff --git a/lib/features/hand-tool/HandTool.d.ts b/lib/features/hand-tool/HandTool.d.ts index acaf68225..83c84cb0d 100644 --- a/lib/features/hand-tool/HandTool.d.ts +++ b/lib/features/hand-tool/HandTool.d.ts @@ -31,9 +31,9 @@ export default class HandTool { isActive(): boolean; } -type Injector = import('didi').Injector; -type Canvas = import('../../core/Canvas').default; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Mouse = import('../mouse/Mouse').default; -type ToolManager = import('../tool-manager/ToolManager').default; +type Injector = import("didi").Injector; +type Canvas = import("../../core/Canvas").default; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Mouse = import("../mouse/Mouse").default; +type ToolManager = import("../tool-manager/ToolManager").default; diff --git a/lib/features/hand-tool/index.d.ts b/lib/features/hand-tool/index.d.ts index 6a909a907..3b2766152 100644 --- a/lib/features/hand-tool/index.d.ts +++ b/lib/features/hand-tool/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + handTool: (string | typeof HandTool)[]; +}; export default _default; +import HandTool from './HandTool'; diff --git a/lib/features/hover-fix/HoverFix.d.ts b/lib/features/hover-fix/HoverFix.d.ts index d778059f6..03d540726 100644 --- a/lib/features/hover-fix/HoverFix.d.ts +++ b/lib/features/hover-fix/HoverFix.d.ts @@ -21,6 +21,6 @@ export default class HoverFix { constructor(elementRegistry: ElementRegistry, eventBus: EventBus, injector: Injector); } -type Injector = import('didi').Injector; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; +type Injector = import("didi").Injector; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/hover-fix/index.d.ts b/lib/features/hover-fix/index.d.ts index 6a909a907..b4e93b9b6 100644 --- a/lib/features/hover-fix/index.d.ts +++ b/lib/features/hover-fix/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + hoverFix: (string | typeof HoverFix)[]; +}; export default _default; +import HoverFix from './HoverFix'; diff --git a/lib/features/interaction-events/InteractionEvents.d.ts b/lib/features/interaction-events/InteractionEvents.d.ts index 99e6d143f..946118d29 100644 --- a/lib/features/interaction-events/InteractionEvents.d.ts +++ b/lib/features/interaction-events/InteractionEvents.d.ts @@ -76,8 +76,8 @@ export default class InteractionEvents { unregisterEvent: (node: any, event: any, localEvent: any) => void; } -type Element = import('../../model/Types').Element; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Styles = import('../../draw/Styles').default; -type Point = import('../../util/Types').Point; +type Element = import("../../model/Types").Element; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Styles = import("../../draw/Styles").default; +type Point = import("../../util/Types").Point; diff --git a/lib/features/interaction-events/index.d.ts b/lib/features/interaction-events/index.d.ts index 6a909a907..1565e8a7d 100644 --- a/lib/features/interaction-events/index.d.ts +++ b/lib/features/interaction-events/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + interactionEvents: (string | typeof InteractionEvents)[]; +}; export default _default; +import InteractionEvents from './InteractionEvents'; diff --git a/lib/features/keyboard-move-selection/KeyboardMoveSelection.d.ts b/lib/features/keyboard-move-selection/KeyboardMoveSelection.d.ts index ea81c6501..e0ede4ca9 100644 --- a/lib/features/keyboard-move-selection/KeyboardMoveSelection.d.ts +++ b/lib/features/keyboard-move-selection/KeyboardMoveSelection.d.ts @@ -29,7 +29,7 @@ export default class KeyboardMoveSelection { moveSelection: (direction: string, accelerated?: boolean) => void; } -type Keyboard = import('../keyboard/Keyboard').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; -type Selection = import('../selection/Selection').default; +type Keyboard = import("../keyboard/Keyboard").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; +type Selection = import("../selection/Selection").default; diff --git a/lib/features/keyboard-move-selection/index.d.ts b/lib/features/keyboard-move-selection/index.d.ts index 6a909a907..f8e5b600c 100644 --- a/lib/features/keyboard-move-selection/index.d.ts +++ b/lib/features/keyboard-move-selection/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + keyboardMoveSelection: (string | typeof KeyboardMoveSelection)[]; +}; export default _default; +import KeyboardMoveSelection from './KeyboardMoveSelection'; diff --git a/lib/features/keyboard/Keyboard.d.ts b/lib/features/keyboard/Keyboard.d.ts index 4eb20022a..9d9476f7f 100644 --- a/lib/features/keyboard/Keyboard.d.ts +++ b/lib/features/keyboard/Keyboard.d.ts @@ -87,12 +87,8 @@ export default class Keyboard { isKey: typeof isKey; } -type EventBus = import('../../core/EventBus').default; - -export type Listener = ({ keyEvent: KeyboardEvent }: { - keyEvent: any; -}) => any; - +type EventBus = import("../../core/EventBus").default; +export type Listener = ({ keyEvent: KeyboardEvent }: any) => any; import { hasModifier } from './KeyboardUtil'; import { isCmd } from './KeyboardUtil'; import { isShift } from './KeyboardUtil'; diff --git a/lib/features/keyboard/KeyboardBindings.d.ts b/lib/features/keyboard/KeyboardBindings.d.ts index b2a111564..1b3cfa6d4 100644 --- a/lib/features/keyboard/KeyboardBindings.d.ts +++ b/lib/features/keyboard/KeyboardBindings.d.ts @@ -21,9 +21,9 @@ export default class KeyboardBindings { registerBindings(keyboard: Keyboard, editorActions: EditorActions): void; } -type EditorActions = import('../editor-actions/EditorActions').default; -type EventBus = import('../../core/EventBus').default; -type Keyboard = import('./Keyboard').default; +type EditorActions = import("../editor-actions/EditorActions").default; +type EventBus = import("../../core/EventBus").default; +type Keyboard = import("./Keyboard").default; import { KEYS_COPY } from './KeyboardUtil'; import { KEYS_PASTE } from './KeyboardUtil'; import { KEYS_UNDO } from './KeyboardUtil'; diff --git a/lib/features/keyboard/index.d.ts b/lib/features/keyboard/index.d.ts index 6a909a907..d6f33b134 100644 --- a/lib/features/keyboard/index.d.ts +++ b/lib/features/keyboard/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + keyboard: (string | typeof Keyboard)[]; + keyboardBindings: (string | typeof KeyboardBindings)[]; +}; export default _default; +import Keyboard from './Keyboard'; +import KeyboardBindings from './KeyboardBindings'; diff --git a/lib/features/label-support/LabelSupport.d.ts b/lib/features/label-support/LabelSupport.d.ts index 8d438417e..e1737ef83 100644 --- a/lib/features/label-support/LabelSupport.d.ts +++ b/lib/features/label-support/LabelSupport.d.ts @@ -12,8 +12,8 @@ export default class LabelSupport extends CommandInterceptor { constructor(injector: Injector, eventBus: EventBus, modeling: Modeling); } -type Element = import('../../model/Types').Element; -type Injector = import('didi').Injector; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; +type Element = import("../../model/Types").Element; +type Injector = import("didi").Injector; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; import CommandInterceptor from '../../command/CommandInterceptor'; diff --git a/lib/features/label-support/index.d.ts b/lib/features/label-support/index.d.ts index 6a909a907..ac1a946c1 100644 --- a/lib/features/label-support/index.d.ts +++ b/lib/features/label-support/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + labelSupport: (string | typeof LabelSupport)[]; +}; export default _default; +import LabelSupport from './LabelSupport'; diff --git a/lib/features/lasso-tool/LassoTool.d.ts b/lib/features/lasso-tool/LassoTool.d.ts index e4cf28c4d..e6a9f4d2c 100644 --- a/lib/features/lasso-tool/LassoTool.d.ts +++ b/lib/features/lasso-tool/LassoTool.d.ts @@ -50,11 +50,11 @@ export default class LassoTool { isActive(): boolean; } -type Canvas = import('../../core/Canvas').default; -type Dragging = import('../dragging/Dragging').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Mouse = import('../mouse/Mouse').default; -type Selection = import('../selection/Selection').default; -type ToolManager = import('../tool-manager/ToolManager').default; -type Rect = import('../../util/Types').Rect; +type Canvas = import("../../core/Canvas").default; +type Dragging = import("../dragging/Dragging").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Mouse = import("../mouse/Mouse").default; +type Selection = import("../selection/Selection").default; +type ToolManager = import("../tool-manager/ToolManager").default; +type Rect = import("../../util/Types").Rect; diff --git a/lib/features/lasso-tool/index.d.ts b/lib/features/lasso-tool/index.d.ts index 6a909a907..6486523f9 100644 --- a/lib/features/lasso-tool/index.d.ts +++ b/lib/features/lasso-tool/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + lassoTool: (string | typeof LassoTool)[]; +}; export default _default; +import LassoTool from './LassoTool'; diff --git a/lib/features/modeling/Modeling.d.ts b/lib/features/modeling/Modeling.d.ts index a3aa7ddf8..248cb0aac 100644 --- a/lib/features/modeling/Modeling.d.ts +++ b/lib/features/modeling/Modeling.d.ts @@ -3,7 +3,7 @@ * * */ -export default class Modeling { +export default class Modeling { static $inject: string[]; /** @@ -324,21 +324,21 @@ export default class Modeling = { +export type ModelingDistributeGroup = { elements: U[]; range: { min: number; diff --git a/lib/features/modeling/cmd/AlignElementsHandler.d.ts b/lib/features/modeling/cmd/AlignElementsHandler.d.ts index d79b33112..ddad5785d 100644 --- a/lib/features/modeling/cmd/AlignElementsHandler.d.ts +++ b/lib/features/modeling/cmd/AlignElementsHandler.d.ts @@ -15,5 +15,5 @@ export default class AlignElements { postExecute(context: any): void; } -type Canvas = import('../../../core/Canvas').default; -type Modeling = import('../Modeling').default; +type Canvas = import("../../../core/Canvas").default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/AppendShapeHandler.d.ts b/lib/features/modeling/cmd/AppendShapeHandler.d.ts index fef05daf0..66060f9a3 100644 --- a/lib/features/modeling/cmd/AppendShapeHandler.d.ts +++ b/lib/features/modeling/cmd/AppendShapeHandler.d.ts @@ -26,8 +26,8 @@ export default class AppendShapeHandler { postExecute(context: any): void; } -type Element = import('../../../model/Types').Element; -type Parent = import('../../../model/Types').Parent; -type Shape = import('../../../model/Types').Shape; -type Point = import('../../../util/Types').Point; -type Modeling = import('../Modeling').default; +type Element = import("../../../model/Types").Element; +type Parent = import("../../../model/Types").Parent; +type Shape = import("../../../model/Types").Shape; +type Point = import("../../../util/Types").Point; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/CreateConnectionHandler.d.ts b/lib/features/modeling/cmd/CreateConnectionHandler.d.ts index e15d98fa2..f5ffc69cf 100644 --- a/lib/features/modeling/cmd/CreateConnectionHandler.d.ts +++ b/lib/features/modeling/cmd/CreateConnectionHandler.d.ts @@ -24,9 +24,9 @@ export default class CreateConnectionHandler { revert(context: any): any; } -type Element = import('../../../model/Types').Element; -type Shape = import('../../../model/Types').Shape; -type Point = import('../../../util/Types').Point; -type ModelingHints = import('../Modeling').ModelingHints; -type Canvas = import('../../../core/Canvas').default; -type Layouter = import('../../../layout/BaseLayouter').default; +type Element = import("../../../model/Types").Element; +type Shape = import("../../../model/Types").Shape; +type Point = import("../../../util/Types").Point; +type ModelingHints = import("../Modeling").ModelingHints; +type Canvas = import("../../../core/Canvas").default; +type Layouter = import("../../../layout/BaseLayouter").default; diff --git a/lib/features/modeling/cmd/CreateElementsHandler.d.ts b/lib/features/modeling/cmd/CreateElementsHandler.d.ts index f507b5f32..cd917ae03 100644 --- a/lib/features/modeling/cmd/CreateElementsHandler.d.ts +++ b/lib/features/modeling/cmd/CreateElementsHandler.d.ts @@ -9,4 +9,4 @@ export default class CreateElementsHandler { preExecute(context: any): void; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/CreateLabelHandler.d.ts b/lib/features/modeling/cmd/CreateLabelHandler.d.ts index 02578b308..9adcefc64 100644 --- a/lib/features/modeling/cmd/CreateLabelHandler.d.ts +++ b/lib/features/modeling/cmd/CreateLabelHandler.d.ts @@ -16,9 +16,9 @@ export default class CreateLabelHandler extends CreateShapeHandler { }): any; } -type Canvas = import('../../../core/Canvas').default; -type Element = import('../../../model/Types').Element; -type Parent = import('../../../model/Types').Parent; -type Shape = import('../../../model/Types').Shape; -type Point = import('../../../util/Types').Point; +type Canvas = import("../../../core/Canvas").default; +type Element = import("../../../model/Types").Element; +type Parent = import("../../../model/Types").Parent; +type Shape = import("../../../model/Types").Shape; +type Point = import("../../../util/Types").Point; import CreateShapeHandler from './CreateShapeHandler'; diff --git a/lib/features/modeling/cmd/CreateShapeHandler.d.ts b/lib/features/modeling/cmd/CreateShapeHandler.d.ts index 6a6e78249..44c7f48b6 100644 --- a/lib/features/modeling/cmd/CreateShapeHandler.d.ts +++ b/lib/features/modeling/cmd/CreateShapeHandler.d.ts @@ -28,6 +28,6 @@ export default class CreateShapeHandler { revert(context: any): any; } -type Element = import('../../../model/Types').Element; -type Point = import('../../../util/Types').Point; -type Canvas = import('../../../core/Canvas').default; +type Element = import("../../../model/Types").Element; +type Point = import("../../../util/Types").Point; +type Canvas = import("../../../core/Canvas").default; diff --git a/lib/features/modeling/cmd/DeleteConnectionHandler.d.ts b/lib/features/modeling/cmd/DeleteConnectionHandler.d.ts index 6bdf6d651..e62694e4a 100644 --- a/lib/features/modeling/cmd/DeleteConnectionHandler.d.ts +++ b/lib/features/modeling/cmd/DeleteConnectionHandler.d.ts @@ -18,5 +18,5 @@ export default class DeleteConnectionHandler { revert(context: any): any; } -type Canvas = import('../../../core/Canvas').default; -type Modeling = import('../Modeling').default; +type Canvas = import("../../../core/Canvas").default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/DeleteElementsHandler.d.ts b/lib/features/modeling/cmd/DeleteElementsHandler.d.ts index 84306da8f..1bd67f066 100644 --- a/lib/features/modeling/cmd/DeleteElementsHandler.d.ts +++ b/lib/features/modeling/cmd/DeleteElementsHandler.d.ts @@ -10,5 +10,5 @@ export default class DeleteElementsHandler { postExecute(context: any): void; } -type ElementRegistry = import('../../../core/ElementRegistry').default; -type Modeling = import('../Modeling').default; +type ElementRegistry = import("../../../core/ElementRegistry").default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/DeleteShapeHandler.d.ts b/lib/features/modeling/cmd/DeleteShapeHandler.d.ts index 024601483..a2d13031a 100644 --- a/lib/features/modeling/cmd/DeleteShapeHandler.d.ts +++ b/lib/features/modeling/cmd/DeleteShapeHandler.d.ts @@ -28,5 +28,5 @@ export default class DeleteShapeHandler { revert(context: any): any; } -type Canvas = import('../../../core/Canvas').default; -type Modeling = import('../Modeling').default; +type Canvas = import("../../../core/Canvas").default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/DistributeElementsHandler.d.ts b/lib/features/modeling/cmd/DistributeElementsHandler.d.ts index 0d9c260d3..bcb358266 100644 --- a/lib/features/modeling/cmd/DistributeElementsHandler.d.ts +++ b/lib/features/modeling/cmd/DistributeElementsHandler.d.ts @@ -14,4 +14,4 @@ export default class DistributeElements { postExecute(context: any): void; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/LayoutConnectionHandler.d.ts b/lib/features/modeling/cmd/LayoutConnectionHandler.d.ts index 3f22a7f4a..88e0353ca 100644 --- a/lib/features/modeling/cmd/LayoutConnectionHandler.d.ts +++ b/lib/features/modeling/cmd/LayoutConnectionHandler.d.ts @@ -15,5 +15,5 @@ export default class LayoutConnectionHandler { revert(context: any): any; } -type Canvas = import('../../../core/Canvas').default; -type Layouter = import('../../../layout/BaseLayouter').default; +type Canvas = import("../../../core/Canvas").default; +type Layouter = import("../../../layout/BaseLayouter").default; diff --git a/lib/features/modeling/cmd/MoveElementsHandler.d.ts b/lib/features/modeling/cmd/MoveElementsHandler.d.ts index 5f43214ee..fc6d99581 100644 --- a/lib/features/modeling/cmd/MoveElementsHandler.d.ts +++ b/lib/features/modeling/cmd/MoveElementsHandler.d.ts @@ -14,5 +14,5 @@ export default class MoveElementsHandler { postExecute(context: any): void; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; import MoveHelper from './helper/MoveHelper'; diff --git a/lib/features/modeling/cmd/MoveShapeHandler.d.ts b/lib/features/modeling/cmd/MoveShapeHandler.d.ts index 14ccb3121..0b6ebb7ae 100644 --- a/lib/features/modeling/cmd/MoveShapeHandler.d.ts +++ b/lib/features/modeling/cmd/MoveShapeHandler.d.ts @@ -17,5 +17,5 @@ export default class MoveShapeHandler { getNewParent(context: any): any; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; import MoveHelper from './helper/MoveHelper'; diff --git a/lib/features/modeling/cmd/ReconnectConnectionHandler.d.ts b/lib/features/modeling/cmd/ReconnectConnectionHandler.d.ts index cdbdac305..ecc3856f0 100644 --- a/lib/features/modeling/cmd/ReconnectConnectionHandler.d.ts +++ b/lib/features/modeling/cmd/ReconnectConnectionHandler.d.ts @@ -15,4 +15,4 @@ export default class ReconnectConnectionHandler { revert(context: any): any; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/ReplaceShapeHandler.d.ts b/lib/features/modeling/cmd/ReplaceShapeHandler.d.ts index 838a82242..ed7fd07a8 100644 --- a/lib/features/modeling/cmd/ReplaceShapeHandler.d.ts +++ b/lib/features/modeling/cmd/ReplaceShapeHandler.d.ts @@ -41,5 +41,5 @@ export default class ReplaceShapeHandler { } export type Shape = any; -type Modeling = import('../Modeling').default; -type Rules = import('../../rules/Rules').default; +type Modeling = import("../Modeling").default; +type Rules = import("../../rules/Rules").default; diff --git a/lib/features/modeling/cmd/ResizeShapeHandler.d.ts b/lib/features/modeling/cmd/ResizeShapeHandler.d.ts index 75d8487fb..61ec5a703 100644 --- a/lib/features/modeling/cmd/ResizeShapeHandler.d.ts +++ b/lib/features/modeling/cmd/ResizeShapeHandler.d.ts @@ -28,4 +28,4 @@ export default class ResizeShapeHandler { revert(context: any): any; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/SpaceToolHandler.d.ts b/lib/features/modeling/cmd/SpaceToolHandler.d.ts index 9c72a1727..df08c1e45 100644 --- a/lib/features/modeling/cmd/SpaceToolHandler.d.ts +++ b/lib/features/modeling/cmd/SpaceToolHandler.d.ts @@ -24,4 +24,4 @@ export default class SpaceToolHandler { updateConnectionWaypoints(connections: any, delta: any, direction: any, start: any, movingShapes: any, resizingShapes: any, oldBounds: any): void; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/ToggleShapeCollapseHandler.d.ts b/lib/features/modeling/cmd/ToggleShapeCollapseHandler.d.ts index 2e64a0523..4b0a72037 100644 --- a/lib/features/modeling/cmd/ToggleShapeCollapseHandler.d.ts +++ b/lib/features/modeling/cmd/ToggleShapeCollapseHandler.d.ts @@ -16,4 +16,4 @@ export default class ToggleShapeCollapseHandler { } export type Shape = any; -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/UpdateAttachmentHandler.d.ts b/lib/features/modeling/cmd/UpdateAttachmentHandler.d.ts index bf737f324..67d249097 100644 --- a/lib/features/modeling/cmd/UpdateAttachmentHandler.d.ts +++ b/lib/features/modeling/cmd/UpdateAttachmentHandler.d.ts @@ -14,4 +14,4 @@ export default class UpdateAttachmentHandler { revert(context: any): any; } -type Modeling = import('../Modeling').default; +type Modeling = import("../Modeling").default; diff --git a/lib/features/modeling/cmd/helper/AnchorsHelper.d.ts b/lib/features/modeling/cmd/helper/AnchorsHelper.d.ts index f35e16602..1309cd839 100644 --- a/lib/features/modeling/cmd/helper/AnchorsHelper.d.ts +++ b/lib/features/modeling/cmd/helper/AnchorsHelper.d.ts @@ -9,7 +9,7 @@ export function getResizedSourceAnchor(connection: Connection, shape: Shape, old export function getResizedTargetAnchor(connection: any, shape: any, oldBounds: any): any; export function getMovedSourceAnchor(connection: any, source: any, moveDelta: any): import("../../../../util/Types").Point; export function getMovedTargetAnchor(connection: any, target: any, moveDelta: any): import("../../../../util/Types").Point; -type Connection = import('../../../../core/Types').ConnectionLike; -type Shape = import('../../../../core/Types').ShapeLike; -type Point = import('../../../../util/Types').Point; -type Rect = import('../../../../util/Types').Rect; +type Connection = import("../../../../core/Types").ConnectionLike; +type Shape = import("../../../../core/Types").ShapeLike; +type Point = import("../../../../util/Types").Point; +type Rect = import("../../../../util/Types").Rect; diff --git a/lib/features/modeling/cmd/helper/MoveClosure.d.ts b/lib/features/modeling/cmd/helper/MoveClosure.d.ts index 6f65323e2..ca33f66d7 100644 --- a/lib/features/modeling/cmd/helper/MoveClosure.d.ts +++ b/lib/features/modeling/cmd/helper/MoveClosure.d.ts @@ -35,6 +35,6 @@ export default class MoveClosure { addAll(elements: Element[], isTopLevel?: boolean): MoveClosure; } -type Connection = import('../../../../model/Types').Connection; -type Element = import('../../../../model/Types').Element; -type Shape = import('../../../../model/Types').Shape; +type Connection = import("../../../../model/Types").Connection; +type Element = import("../../../../model/Types").Element; +type Shape = import("../../../../model/Types").Shape; diff --git a/lib/features/modeling/cmd/helper/MoveHelper.d.ts b/lib/features/modeling/cmd/helper/MoveHelper.d.ts index 8784667ae..758b020ed 100644 --- a/lib/features/modeling/cmd/helper/MoveHelper.d.ts +++ b/lib/features/modeling/cmd/helper/MoveHelper.d.ts @@ -22,7 +22,7 @@ export default class MoveHelper { * * @return */ - moveRecursive(elements: T[], delta: Point, newParent: Shape): T[]; + moveRecursive(elements: T[], delta: Point, newParent: Shape): T[]; /** * Move the given closure of elmements. @@ -44,8 +44,8 @@ export default class MoveHelper { getClosure(elements: Element[]): MoveClosure; } -type Element = import('../../../../core/Types').ElementLike; -type Shape = import('../../../../core/Types').ShapeLike; -type Point = import('../../../../util/Types').Point; -type Modeling = import('../../Modeling').default; +type Element = import("../../../../core/Types").ElementLike; +type Shape = import("../../../../core/Types").ShapeLike; +type Point = import("../../../../util/Types").Point; +type Modeling = import("../../Modeling").default; import MoveClosure from './MoveClosure'; diff --git a/lib/features/modeling/index.d.ts b/lib/features/modeling/index.d.ts index 6a909a907..dfaf82ba5 100644 --- a/lib/features/modeling/index.d.ts +++ b/lib/features/modeling/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + modeling: (string | typeof Modeling)[]; + layouter: (string | typeof BaseLayouter)[]; +}; export default _default; +import Modeling from './Modeling'; +import BaseLayouter from '../../layout/BaseLayouter'; diff --git a/lib/features/mouse/Mouse.d.ts b/lib/features/mouse/Mouse.d.ts index 07da9e715..abb4431c9 100644 --- a/lib/features/mouse/Mouse.d.ts +++ b/lib/features/mouse/Mouse.d.ts @@ -11,4 +11,4 @@ export default class Mouse { getLastMoveEvent(): any; } -type EventBus = import('../../core/EventBus').default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/mouse/index.d.ts b/lib/features/mouse/index.d.ts index 6a909a907..70db41b71 100644 --- a/lib/features/mouse/index.d.ts +++ b/lib/features/mouse/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + mouse: (string | typeof Mouse)[]; +}; export default _default; +import Mouse from './Mouse'; diff --git a/lib/features/move/Move.d.ts b/lib/features/move/Move.d.ts index fcda02018..2d3297c68 100644 --- a/lib/features/move/Move.d.ts +++ b/lib/features/move/Move.d.ts @@ -15,10 +15,10 @@ export default class MoveEvents { start: (event: MouseEvent | TouchEvent, element: Shape, activate?: boolean, context?: any) => boolean; } -type Element = import('../../core/Types').ElementLike; -type Shape = import('../../core/Types').ShapeLike; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; -type Selection = import('../selection/Selection').default; +type Element = import("../../core/Types").ElementLike; +type Shape = import("../../core/Types").ShapeLike; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; +type Selection = import("../selection/Selection").default; diff --git a/lib/features/move/MovePreview.d.ts b/lib/features/move/MovePreview.d.ts index 4335f1f40..4b3b26b33 100644 --- a/lib/features/move/MovePreview.d.ts +++ b/lib/features/move/MovePreview.d.ts @@ -21,8 +21,8 @@ export default class MovePreview { makeDraggable: (context: any, element: Element, addMarker: boolean) => void; } -type Element = import('../../model/Types').Element; -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type PreviewSupport = import('../preview-support/PreviewSupport').default; -type Styles = import('../../draw/Styles').default; +type Element = import("../../model/Types").Element; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type PreviewSupport = import("../preview-support/PreviewSupport").default; +type Styles = import("../../draw/Styles").default; diff --git a/lib/features/move/index.d.ts b/lib/features/move/index.d.ts index 6a909a907..539f0c005 100644 --- a/lib/features/move/index.d.ts +++ b/lib/features/move/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + move: (string | typeof Move)[]; + movePreview: (string | typeof MovePreview)[]; +}; export default _default; +import Move from './Move'; +import MovePreview from './MovePreview'; diff --git a/lib/features/ordering/OrderingProvider.d.ts b/lib/features/ordering/OrderingProvider.d.ts index 422bcc943..2bd7977d2 100644 --- a/lib/features/ordering/OrderingProvider.d.ts +++ b/lib/features/ordering/OrderingProvider.d.ts @@ -42,7 +42,7 @@ export default class OrderingProvider extends CommandInterceptor { getOrdering(element: Element, newParent: Shape): any; } -type Element = import('../../core/Types').ElementLike; -type Shape = import('../../core/Types').ShapeLike; -type EventBus = import('../../core/EventBus').default; +type Element = import("../../core/Types").ElementLike; +type Shape = import("../../core/Types").ShapeLike; +type EventBus = import("../../core/EventBus").default; import CommandInterceptor from '../../command/CommandInterceptor'; diff --git a/lib/features/outline/MultiSelectionOutline.d.ts b/lib/features/outline/MultiSelectionOutline.d.ts index f2e5ada51..b5a13bbda 100644 --- a/lib/features/outline/MultiSelectionOutline.d.ts +++ b/lib/features/outline/MultiSelectionOutline.d.ts @@ -15,7 +15,7 @@ export default class MultiSelectionOutline { constructor(eventBus: EventBus, canvas: Canvas, selection: Selection); } -type Element = import('../../model/Types').Element; -type EventBus = import('../../core/EventBus').default; -type Selection = import('../selection/Selection').default; -type Canvas = import('../../core/Canvas').default; +type Element = import("../../model/Types").Element; +type EventBus = import("../../core/EventBus").default; +type Selection = import("../selection/Selection").default; +type Canvas = import("../../core/Canvas").default; diff --git a/lib/features/outline/Outline.d.ts b/lib/features/outline/Outline.d.ts index 6becfb80a..3b19650b2 100644 --- a/lib/features/outline/Outline.d.ts +++ b/lib/features/outline/Outline.d.ts @@ -50,7 +50,7 @@ export default class Outline { getOutline(element: Element): undefined; } -type Element = import('../../model/Types').Element; -type OutlineProvider = import('./OutlineProvider').default; -type EventBus = import('../../core/EventBus').default; -type Styles = import('../../draw/Styles').default; +type Element = import("../../model/Types").Element; +type OutlineProvider = import("./OutlineProvider").default; +type EventBus = import("../../core/EventBus").default; +type Styles = import("../../draw/Styles").default; diff --git a/lib/features/outline/index.d.ts b/lib/features/outline/index.d.ts index 6a909a907..b23ee5d45 100644 --- a/lib/features/outline/index.d.ts +++ b/lib/features/outline/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + outline: (string | typeof Outline)[]; + multiSelectionOutline: (string | typeof MultiSelectionOutline)[]; +}; export default _default; +import Outline from './Outline'; +import MultiSelectionOutline from './MultiSelectionOutline'; diff --git a/lib/features/overlays/Overlays.d.ts b/lib/features/overlays/Overlays.d.ts index 398191fa0..ce480a7de 100644 --- a/lib/features/overlays/Overlays.d.ts +++ b/lib/features/overlays/Overlays.d.ts @@ -152,10 +152,10 @@ export default class Overlays { clear(): void; } -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Element = import('../../model/Types').Element; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Element = import("../../model/Types").Element; export type OverlaysConfigShow = { minZoom?: number; diff --git a/lib/features/overlays/index.d.ts b/lib/features/overlays/index.d.ts index 6a909a907..1d585f37b 100644 --- a/lib/features/overlays/index.d.ts +++ b/lib/features/overlays/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + overlays: (string | typeof Overlays)[]; +}; export default _default; +import Overlays from './Overlays'; diff --git a/lib/features/palette/Palette.d.ts b/lib/features/palette/Palette.d.ts index 7e492a66b..089bdf821 100644 --- a/lib/features/palette/Palette.d.ts +++ b/lib/features/palette/Palette.d.ts @@ -99,7 +99,7 @@ export default class Palette { isOpen(): boolean; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type PaletteEntries = import('./PaletteProvider').PaletteEntries; -type PaletteProvider = import('./PaletteProvider').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type PaletteEntries = import("./PaletteProvider").PaletteEntries; +type PaletteProvider = import("./PaletteProvider").default; diff --git a/lib/features/palette/index.d.ts b/lib/features/palette/index.d.ts index 6a909a907..58e44840b 100644 --- a/lib/features/palette/index.d.ts +++ b/lib/features/palette/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + palette: (string | typeof Palette)[]; +}; export default _default; +import Palette from './Palette'; diff --git a/lib/features/popup-menu/PopupMenu.d.ts b/lib/features/popup-menu/PopupMenu.d.ts index 00cddf4f5..30022f579 100644 --- a/lib/features/popup-menu/PopupMenu.d.ts +++ b/lib/features/popup-menu/PopupMenu.d.ts @@ -81,16 +81,16 @@ export default class PopupMenu { trigger(event: Event, entry: PopupMenuEntry, action?: string): any; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; export type search = typeof import("../search/search").default; -type Point = import('../../util/Types').Point; -type PopupMenuEntries = import('./PopupMenuProvider').PopupMenuEntries; -type PopupMenuEntry = import('./PopupMenuProvider').PopupMenuEntry; -type PopupMenuHeaderEntries = import('./PopupMenuProvider').PopupMenuHeaderEntries; -type PopupMenuHeaderEntry = import('./PopupMenuProvider').PopupMenuHeaderEntry; -type PopupMenuProvider = import('./PopupMenuProvider').default; -type Element = import('../../model/Types').Element; +type Point = import("../../util/Types").Point; +type PopupMenuEntries = import("./PopupMenuProvider").PopupMenuEntries; +type PopupMenuEntry = import("./PopupMenuProvider").PopupMenuEntry; +type PopupMenuHeaderEntries = import("./PopupMenuProvider").PopupMenuHeaderEntries; +type PopupMenuHeaderEntry = import("./PopupMenuProvider").PopupMenuHeaderEntry; +type PopupMenuProvider = import("./PopupMenuProvider").default; +type Element = import("../../model/Types").Element; export type PopupMenuConfig = { scale?: { diff --git a/lib/features/popup-menu/PopupMenuComponent.d.ts b/lib/features/popup-menu/PopupMenuComponent.d.ts index 7072d2b38..9cadc5563 100644 --- a/lib/features/popup-menu/PopupMenuComponent.d.ts +++ b/lib/features/popup-menu/PopupMenuComponent.d.ts @@ -18,12 +18,12 @@ export default class PopupMenuComponent { search?: boolean; emptyPlaceholder?: PopupMenuEmptyPlaceholder; width?: number; - searchFn: typeof import("../search/search").default; + searchFn: search; }); } -type PopupMenuEntry = import('./PopupMenuProvider').PopupMenuEntry; -type PopupMenuHeaderEntry = import('./PopupMenuProvider').PopupMenuHeaderEntry; -export type PopupMenuEmptyPlaceholder = import('./PopupMenuProvider').PopupMenuEmptyPlaceholderProvider | import('./PopupMenuProvider').PopupMenuEmptyPlaceholder; +type PopupMenuEntry = import("./PopupMenuProvider").PopupMenuEntry; +type PopupMenuHeaderEntry = import("./PopupMenuProvider").PopupMenuHeaderEntry; +export type PopupMenuEmptyPlaceholder = import("./PopupMenuProvider").PopupMenuEmptyPlaceholderProvider | import("./PopupMenuProvider").PopupMenuEmptyPlaceholder; export type search = typeof import("../search/search").default; -type Point = import('../../util/Types').Point; +type Point = import("../../util/Types").Point; diff --git a/lib/features/popup-menu/PopupMenuHeader.d.ts b/lib/features/popup-menu/PopupMenuHeader.d.ts index e403e42cf..1a91cd869 100644 --- a/lib/features/popup-menu/PopupMenuHeader.d.ts +++ b/lib/features/popup-menu/PopupMenuHeader.d.ts @@ -15,4 +15,4 @@ export default class PopupMenuHeader { }); } -type PopupMenuHeaderEntry = import('./PopupMenuProvider').PopupMenuHeaderEntry; +type PopupMenuHeaderEntry = import("./PopupMenuProvider").PopupMenuHeaderEntry; diff --git a/lib/features/popup-menu/PopupMenuItem.d.ts b/lib/features/popup-menu/PopupMenuItem.d.ts index 01baf9d8a..b1fe36d65 100644 --- a/lib/features/popup-menu/PopupMenuItem.d.ts +++ b/lib/features/popup-menu/PopupMenuItem.d.ts @@ -16,4 +16,4 @@ export default class PopupMenuItem { }); } -type PopupMenuEntry = import('./PopupMenuProvider').PopupMenuEntry; +type PopupMenuEntry = import("./PopupMenuProvider").PopupMenuEntry; diff --git a/lib/features/popup-menu/PopupMenuList.d.ts b/lib/features/popup-menu/PopupMenuList.d.ts index 481b078a7..28e19a3da 100644 --- a/lib/features/popup-menu/PopupMenuList.d.ts +++ b/lib/features/popup-menu/PopupMenuList.d.ts @@ -13,4 +13,4 @@ export default class PopupMenuList { }); } -type PopupMenuEntry = import('./PopupMenuProvider').PopupMenuEntry; +type PopupMenuEntry = import("./PopupMenuProvider").PopupMenuEntry; diff --git a/lib/features/popup-menu/index.d.ts b/lib/features/popup-menu/index.d.ts index 6a909a907..7dbf3afee 100644 --- a/lib/features/popup-menu/index.d.ts +++ b/lib/features/popup-menu/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + popupMenu: (string | typeof PopupMenu)[]; +}; export default _default; +import PopupMenu from './PopupMenu'; diff --git a/lib/features/preview-support/PreviewSupport.d.ts b/lib/features/preview-support/PreviewSupport.d.ts index 3b2956414..fe04fc674 100644 --- a/lib/features/preview-support/PreviewSupport.d.ts +++ b/lib/features/preview-support/PreviewSupport.d.ts @@ -47,9 +47,9 @@ export default class PreviewSupport { addFrame(shape: Shape, group: SVGElement): SVGElement; } -type Element = import('../../core/Types').ElementLike; -type Shape = import('../../core/Types').ShapeLike; -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Styles = import('../../draw/Styles').default; +type Element = import("../../core/Types").ElementLike; +type Shape = import("../../core/Types").ShapeLike; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Styles = import("../../draw/Styles").default; diff --git a/lib/features/preview-support/index.d.ts b/lib/features/preview-support/index.d.ts index 6a909a907..4f845cecb 100644 --- a/lib/features/preview-support/index.d.ts +++ b/lib/features/preview-support/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + previewSupport: (string | typeof PreviewSupport)[]; +}; export default _default; +import PreviewSupport from './PreviewSupport'; diff --git a/lib/features/replace/Replace.d.ts b/lib/features/replace/Replace.d.ts index d1723d376..e7944fe81 100644 --- a/lib/features/replace/Replace.d.ts +++ b/lib/features/replace/Replace.d.ts @@ -9,7 +9,7 @@ export default class Replace { * @param modeling * @param eventBus */ - constructor(modeling: Modeling, eventBus: any); + constructor(modeling: Modeling, eventBus: EventBus); /** * Replace an element. @@ -28,5 +28,5 @@ export default class Replace { } export type EventBus = any; -type Modeling = import('../modeling/Modeling').default; -type Shape = import('../../core/Types').ShapeLike; +type Modeling = import("../modeling/Modeling").default; +type Shape = import("../../core/Types").ShapeLike; diff --git a/lib/features/replace/index.d.ts b/lib/features/replace/index.d.ts index 6a909a907..682ee4197 100644 --- a/lib/features/replace/index.d.ts +++ b/lib/features/replace/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + replaceSelectionBehavior: (string | typeof ReplaceSelectionBehavior)[]; + replace: (string | typeof Replace)[]; +}; export default _default; +import ReplaceSelectionBehavior from './ReplaceSelectionBehavior'; +import Replace from './Replace'; diff --git a/lib/features/resize/Resize.d.ts b/lib/features/resize/Resize.d.ts index 49d0549e9..3255b9efd 100644 --- a/lib/features/resize/Resize.d.ts +++ b/lib/features/resize/Resize.d.ts @@ -69,10 +69,10 @@ export default class Resize { computeMinResizeBox(context: any): import("../../util/Types").Rect; } -type Shape = import('../../core/Types').ShapeLike; -type Direction = import('../../util/Types').Direction; -type Point = import('../../util/Types').Point; -type EventBus = import('../../core/EventBus').default; -type Dragging = import('../dragging/Dragging').default; -type Modeling = import('../modeling/Modeling').default; -type Rules = import('../rules/Rules').default; +type Shape = import("../../core/Types").ShapeLike; +type Direction = import("../../util/Types").Direction; +type Point = import("../../util/Types").Point; +type EventBus = import("../../core/EventBus").default; +type Dragging = import("../dragging/Dragging").default; +type Modeling = import("../modeling/Modeling").default; +type Rules = import("../rules/Rules").default; diff --git a/lib/features/resize/ResizeHandles.d.ts b/lib/features/resize/ResizeHandles.d.ts index 6d15b0370..d874d66ce 100644 --- a/lib/features/resize/ResizeHandles.d.ts +++ b/lib/features/resize/ResizeHandles.d.ts @@ -29,8 +29,8 @@ export default class ResizeHandles { removeResizers(): void; } -type Element = import('../../model/Types').Element; -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type Resize = import('../resize/Resize').default; -type Selection = import('../selection/Selection').default; +type Element = import("../../model/Types").Element; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type Resize = import("../resize/Resize").default; +type Selection = import("../selection/Selection").default; diff --git a/lib/features/resize/ResizePreview.d.ts b/lib/features/resize/ResizePreview.d.ts index a97a7052d..615c4b949 100644 --- a/lib/features/resize/ResizePreview.d.ts +++ b/lib/features/resize/ResizePreview.d.ts @@ -12,6 +12,6 @@ export default class ResizePreview { constructor(eventBus: EventBus, canvas: Canvas, previewSupport: PreviewSupport); } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type PreviewSupport = import('../preview-support/PreviewSupport').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type PreviewSupport = import("../preview-support/PreviewSupport").default; diff --git a/lib/features/resize/ResizeUtil.d.ts b/lib/features/resize/ResizeUtil.d.ts index 941b39ec6..daa8032d9 100644 --- a/lib/features/resize/ResizeUtil.d.ts +++ b/lib/features/resize/ResizeUtil.d.ts @@ -56,9 +56,9 @@ export function addPadding(bbox: any, padding: any): { */ export function computeChildrenBBox(shapeOrChildren: Shape | Shape[], padding: RectTRBL | number): Rect; -type Element = import('../../core/Types').ElementLike; -type Shape = import('../../core/Types').ShapeLike; -type Direction = import('../../util/Types').Direction; -type Point = import('../../util/Types').Point; -type Rect = import('../../util/Types').Rect; -type RectTRBL = import('../../util/Types').RectTRBL; +type Element = import("../../core/Types").ElementLike; +type Shape = import("../../core/Types").ShapeLike; +type Direction = import("../../util/Types").Direction; +type Point = import("../../util/Types").Point; +type Rect = import("../../util/Types").Rect; +type RectTRBL = import("../../util/Types").RectTRBL; diff --git a/lib/features/resize/index.d.ts b/lib/features/resize/index.d.ts index 6a909a907..b1306d704 100644 --- a/lib/features/resize/index.d.ts +++ b/lib/features/resize/index.d.ts @@ -1,2 +1,9 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + resize: (string | typeof Resize)[]; + resizePreview: (string | typeof ResizePreview)[]; + resizeHandles: (string | typeof ResizeHandles)[]; +}; export default _default; +import Resize from './Resize'; +import ResizePreview from './ResizePreview'; +import ResizeHandles from './ResizeHandles'; diff --git a/lib/features/root-elements/RootElementsBehavior.d.ts b/lib/features/root-elements/RootElementsBehavior.d.ts index 416859096..973e3fece 100644 --- a/lib/features/root-elements/RootElementsBehavior.d.ts +++ b/lib/features/root-elements/RootElementsBehavior.d.ts @@ -11,6 +11,6 @@ export default class RootElementsBehavior extends CommandInterceptor { constructor(canvas: Canvas, injector: Injector); } -type Injector = import('didi').Injector; -type Canvas = import('../../core/Canvas').default; +type Injector = import("didi").Injector; +type Canvas = import("../../core/Canvas").default; import CommandInterceptor from '../../command/CommandInterceptor'; diff --git a/lib/features/root-elements/index.d.ts b/lib/features/root-elements/index.d.ts index 6a909a907..1394993a3 100644 --- a/lib/features/root-elements/index.d.ts +++ b/lib/features/root-elements/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + rootElementsBehavior: (string | typeof RootElementsBehavior)[]; +}; export default _default; +import RootElementsBehavior from './RootElementsBehavior'; diff --git a/lib/features/rules/RuleProvider.d.ts b/lib/features/rules/RuleProvider.d.ts index 9e928feed..78a870894 100644 --- a/lib/features/rules/RuleProvider.d.ts +++ b/lib/features/rules/RuleProvider.d.ts @@ -108,5 +108,5 @@ export default class RuleProvider extends CommandInterceptor { init(): void; } -type EventBus = import('../../core/EventBus').default; +type EventBus = import("../../core/EventBus").default; import CommandInterceptor from '../../command/CommandInterceptor'; diff --git a/lib/features/rules/Rules.d.ts b/lib/features/rules/Rules.d.ts index f0daf1d38..ae3fdd60b 100644 --- a/lib/features/rules/Rules.d.ts +++ b/lib/features/rules/Rules.d.ts @@ -35,4 +35,4 @@ export default class Rules { allowed(action: string, context?: any): boolean | null; } -type Injector = import('didi').Injector; +type Injector = import("didi").Injector; diff --git a/lib/features/rules/index.d.ts b/lib/features/rules/index.d.ts index 6a909a907..1bb3bdc15 100644 --- a/lib/features/rules/index.d.ts +++ b/lib/features/rules/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + rules: (string | typeof Rules)[]; +}; export default _default; +import Rules from './Rules'; diff --git a/lib/features/search-pad/SearchPad.d.ts b/lib/features/search-pad/SearchPad.d.ts index 3f51bc0e3..ff1133d45 100644 --- a/lib/features/search-pad/SearchPad.d.ts +++ b/lib/features/search-pad/SearchPad.d.ts @@ -58,11 +58,11 @@ export default class SearchPad { isOpen(): boolean; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type Selection = import('../selection/Selection').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type Selection = import("../selection/Selection").default; export type Translate = typeof import("../../i18n/translate/translate.js").default; -type Dimensions = import('../../util/Types').Dimensions; -type SearchPadProvider = import('./SearchPadProvider').default; -type SearchResult = import('./SearchPadProvider').SearchResult; -type Token = import('./SearchPadProvider').Token; +type Dimensions = import("../../util/Types").Dimensions; +type SearchPadProvider = import("./SearchPadProvider").default; +type SearchResult = import("./SearchPadProvider").SearchResult; +type Token = import("./SearchPadProvider").Token; diff --git a/lib/features/search-pad/index.d.ts b/lib/features/search-pad/index.d.ts index 6a909a907..fc7cf6a9a 100644 --- a/lib/features/search-pad/index.d.ts +++ b/lib/features/search-pad/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + searchPad: (string | typeof SearchPad)[]; +}; export default _default; +import SearchPad from './SearchPad'; diff --git a/lib/features/search/index.d.ts b/lib/features/search/index.d.ts index 6a909a907..0d869173b 100644 --- a/lib/features/search/index.d.ts +++ b/lib/features/search/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + search: (string | typeof search)[]; +}; export default _default; +import search from './search'; diff --git a/lib/features/search/search.d.ts b/lib/features/search/search.d.ts index f8cfd5cc8..d3d01b1c1 100644 --- a/lib/features/search/search.d.ts +++ b/lib/features/search/search.d.ts @@ -23,5 +23,5 @@ export type Token = { export type Tokens = Token[]; export type SearchResult = { item: R; - tokens: Record; + tokens: Record; }; diff --git a/lib/features/selection/Selection.d.ts b/lib/features/selection/Selection.d.ts index 7a2e833ad..7cdaf4aa6 100644 --- a/lib/features/selection/Selection.d.ts +++ b/lib/features/selection/Selection.d.ts @@ -45,5 +45,5 @@ export default class Selection { select(elements: any | any[], add?: boolean): void; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/selection/SelectionBehavior.d.ts b/lib/features/selection/SelectionBehavior.d.ts index c1c15d03f..b8733cd02 100644 --- a/lib/features/selection/SelectionBehavior.d.ts +++ b/lib/features/selection/SelectionBehavior.d.ts @@ -9,7 +9,7 @@ export default class SelectionBehavior { constructor(eventBus: EventBus, selection: Selection, canvas: Canvas, elementRegistry: ElementRegistry); } -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Selection = import('./Selection').default; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Selection = import("./Selection").default; diff --git a/lib/features/selection/SelectionVisuals.d.ts b/lib/features/selection/SelectionVisuals.d.ts index 1497ab8a9..d9ecef166 100644 --- a/lib/features/selection/SelectionVisuals.d.ts +++ b/lib/features/selection/SelectionVisuals.d.ts @@ -16,5 +16,5 @@ export default class SelectionVisuals { constructor(canvas: Canvas, eventBus: EventBus); } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/features/selection/index.d.ts b/lib/features/selection/index.d.ts index 6a909a907..89cc669f9 100644 --- a/lib/features/selection/index.d.ts +++ b/lib/features/selection/index.d.ts @@ -1,2 +1,9 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + selection: (string | typeof Selection)[]; + selectionVisuals: (string | typeof SelectionVisuals)[]; + selectionBehavior: (string | typeof SelectionBehavior)[]; +}; export default _default; +import Selection from './Selection'; +import SelectionVisuals from './SelectionVisuals'; +import SelectionBehavior from './SelectionBehavior'; diff --git a/lib/features/snapping/CreateMoveSnapping.d.ts b/lib/features/snapping/CreateMoveSnapping.d.ts index 86d09c3e4..da2217b87 100644 --- a/lib/features/snapping/CreateMoveSnapping.d.ts +++ b/lib/features/snapping/CreateMoveSnapping.d.ts @@ -17,6 +17,6 @@ export default class CreateMoveSnapping { getSnapTargets(shape: any, target: any): (import("../../model/Types").ShapeLike | import("../../model/Types").ConnectionLike)[]; } -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Snapping = import('./Snapping').default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Snapping = import("./Snapping").default; diff --git a/lib/features/snapping/ResizeSnapping.d.ts b/lib/features/snapping/ResizeSnapping.d.ts index 67cfc900e..05c447522 100644 --- a/lib/features/snapping/ResizeSnapping.d.ts +++ b/lib/features/snapping/ResizeSnapping.d.ts @@ -14,5 +14,5 @@ export default class ResizeSnapping { getSnapTargets(shape: any, target: any): (import("../../model/Types").ShapeLike | import("../../model/Types").ConnectionLike)[]; } -type EventBus = import('../../core/EventBus').default; -type Snapping = import('./Snapping').default; +type EventBus = import("../../core/EventBus").default; +type Snapping = import("./Snapping").default; diff --git a/lib/features/snapping/SnapContext.d.ts b/lib/features/snapping/SnapContext.d.ts index 8dadf7100..272d9d115 100644 --- a/lib/features/snapping/SnapContext.d.ts +++ b/lib/features/snapping/SnapContext.d.ts @@ -87,8 +87,8 @@ export class SnapPoints { initDefaults(defaultSnaps: Record): void; } -type Element = import('../../model/Types').Element; -type Axis = import('../../util/Types').Axis; -type DirectionTRBL = import('../../util/Types').DirectionTRBL; -type Point = import('../../util/Types').Point; -export type SnapLocation = DirectionTRBL & 'mid'; +type Element = import("../../model/Types").Element; +type Axis = import("../../util/Types").Axis; +type DirectionTRBL = import("../../util/Types").DirectionTRBL; +type Point = import("../../util/Types").Point; +export type SnapLocation = DirectionTRBL & "mid"; diff --git a/lib/features/snapping/SnapUtil.d.ts b/lib/features/snapping/SnapUtil.d.ts index 049aa29c8..abde8a31b 100644 --- a/lib/features/snapping/SnapUtil.d.ts +++ b/lib/features/snapping/SnapUtil.d.ts @@ -65,7 +65,7 @@ export function setSnapped(event: Event, axis: Axis, value: number | boolean): n */ export function getChildren(parent: Shape): Array; -type Connection = import('../../core/Types').ConnectionLike; -type Shape = import('../../core/Types').ShapeLike; -type Event = import('../../core/EventBus').Event; -type Axis = import('../../util/Types').Axis; +type Connection = import("../../core/Types").ConnectionLike; +type Shape = import("../../core/Types").ShapeLike; +type Event = import("../../core/EventBus").Event; +type Axis = import("../../util/Types").Axis; diff --git a/lib/features/snapping/Snapping.d.ts b/lib/features/snapping/Snapping.d.ts index 3b3ce353f..576d6105f 100644 --- a/lib/features/snapping/Snapping.d.ts +++ b/lib/features/snapping/Snapping.d.ts @@ -25,6 +25,6 @@ export default class Snapping { hide(): void; } -type Canvas = import('../../core/Canvas').default; -type Event = import('../../core/EventBus').Event; -type SnapPoints = import('./SnapContext').SnapPoints; +type Canvas = import("../../core/Canvas").default; +type Event = import("../../core/EventBus").Event; +type SnapPoints = import("./SnapContext").SnapPoints; diff --git a/lib/features/snapping/index.d.ts b/lib/features/snapping/index.d.ts index 6a909a907..ad15017da 100644 --- a/lib/features/snapping/index.d.ts +++ b/lib/features/snapping/index.d.ts @@ -1,2 +1,9 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + createMoveSnapping: (string | typeof CreateMoveSnapping)[]; + resizeSnapping: (string | typeof ResizeSnapping)[]; + snapping: (string | typeof Snapping)[]; +}; export default _default; +import CreateMoveSnapping from './CreateMoveSnapping'; +import ResizeSnapping from './ResizeSnapping'; +import Snapping from './Snapping'; diff --git a/lib/features/space-tool/SpaceTool.d.ts b/lib/features/space-tool/SpaceTool.d.ts index a830529a8..027d372d3 100644 --- a/lib/features/space-tool/SpaceTool.d.ts +++ b/lib/features/space-tool/SpaceTool.d.ts @@ -69,14 +69,14 @@ export default class SpaceTool { isActive(): boolean; } -type Shape = import('../../core/Types').ShapeLike; -type Canvas = import('../../core/Canvas').default; -type Dragging = import('../dragging/Dragging').default; -type EventBus = import('../../core/EventBus').default; -type Modeling = import('../modeling/Modeling').default; -type Mouse = import('../mouse/Mouse').default; -type Rules = import('../rules/Rules').default; -type ToolManager = import('../tool-manager/ToolManager').default; -type Axis = import('../../util/Types').Axis; -type Direction = import('../../util/Types').Direction; -type Point = import('../../util/Types').Point; +type Shape = import("../../core/Types").ShapeLike; +type Canvas = import("../../core/Canvas").default; +type Dragging = import("../dragging/Dragging").default; +type EventBus = import("../../core/EventBus").default; +type Modeling = import("../modeling/Modeling").default; +type Mouse = import("../mouse/Mouse").default; +type Rules = import("../rules/Rules").default; +type ToolManager = import("../tool-manager/ToolManager").default; +type Axis = import("../../util/Types").Axis; +type Direction = import("../../util/Types").Direction; +type Point = import("../../util/Types").Point; diff --git a/lib/features/space-tool/SpaceToolPreview.d.ts b/lib/features/space-tool/SpaceToolPreview.d.ts index 99b0ab44e..e8a65b4f4 100644 --- a/lib/features/space-tool/SpaceToolPreview.d.ts +++ b/lib/features/space-tool/SpaceToolPreview.d.ts @@ -18,7 +18,7 @@ export default class SpaceToolPreview { ); } -type Canvas = import('../../core/Canvas').default; -type ElementRegistry = import('../../core/ElementRegistry').default; -type EventBus = import('../../core/EventBus').default; -type Styles = import('../../draw/Styles').default; +type Canvas = import("../../core/Canvas").default; +type ElementRegistry = import("../../core/ElementRegistry").default; +type EventBus = import("../../core/EventBus").default; +type Styles = import("../../draw/Styles").default; diff --git a/lib/features/space-tool/SpaceUtil.d.ts b/lib/features/space-tool/SpaceUtil.d.ts index 5690be3c5..b2b39a8f6 100644 --- a/lib/features/space-tool/SpaceUtil.d.ts +++ b/lib/features/space-tool/SpaceUtil.d.ts @@ -30,9 +30,9 @@ export function getWaypointsUpdatingConnections(movingShapes: Array, resi */ export function resizeBounds(bounds: Rect, direction: Direction, delta: Point): Rect; -type Connection = import('../../core/Types').ConnectionLike; -type Shape = import('../../core/Types').ShapeLike; -type Axis = import('../../util/Types').Axis; -type Direction = import('../../util/Types').Direction; -type Point = import('../../util/Types').Point; -type Rect = import('../../util/Types').Rect; +type Connection = import("../../core/Types").ConnectionLike; +type Shape = import("../../core/Types").ShapeLike; +type Axis = import("../../util/Types").Axis; +type Direction = import("../../util/Types").Direction; +type Point = import("../../util/Types").Point; +type Rect = import("../../util/Types").Rect; diff --git a/lib/features/space-tool/index.d.ts b/lib/features/space-tool/index.d.ts index 6a909a907..c4968ea9a 100644 --- a/lib/features/space-tool/index.d.ts +++ b/lib/features/space-tool/index.d.ts @@ -1,2 +1,7 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + spaceTool: (string | typeof SpaceTool)[]; + spaceToolPreview: (string | typeof SpaceToolPreview)[]; +}; export default _default; +import SpaceTool from './SpaceTool'; +import SpaceToolPreview from './SpaceToolPreview'; diff --git a/lib/features/tool-manager/ToolManager.d.ts b/lib/features/tool-manager/ToolManager.d.ts index 61b27429d..4f6bc7706 100644 --- a/lib/features/tool-manager/ToolManager.d.ts +++ b/lib/features/tool-manager/ToolManager.d.ts @@ -27,5 +27,5 @@ export default class ToolManager { bindEvents(name: any, events: any): void; } -type EventBus = import('../../core/EventBus').default; -type Event = import('../../core/EventBus').Event; +type EventBus = import("../../core/EventBus").default; +type Event = import("../../core/EventBus").Event; diff --git a/lib/features/tool-manager/index.d.ts b/lib/features/tool-manager/index.d.ts index 6a909a907..2079bca75 100644 --- a/lib/features/tool-manager/index.d.ts +++ b/lib/features/tool-manager/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + toolManager: (string | typeof ToolManager)[]; +}; export default _default; +import ToolManager from './ToolManager'; diff --git a/lib/features/tooltips/Tooltips.d.ts b/lib/features/tooltips/Tooltips.d.ts index 473fec0d1..10ba4e0bb 100644 --- a/lib/features/tooltips/Tooltips.d.ts +++ b/lib/features/tooltips/Tooltips.d.ts @@ -88,9 +88,9 @@ export default class Tooltips { hide(): void; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type RectTRBL = import('../../util/Types').RectTRBL; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type RectTRBL = import("../../util/Types").RectTRBL; export type Tooltip = { html: string | HTMLElement; diff --git a/lib/features/tooltips/index.d.ts b/lib/features/tooltips/index.d.ts index 6a909a907..2e354e206 100644 --- a/lib/features/tooltips/index.d.ts +++ b/lib/features/tooltips/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + tooltips: (string | typeof Tooltips)[]; +}; export default _default; +import Tooltips from './Tooltips'; diff --git a/lib/i18n/I18N.d.ts b/lib/i18n/I18N.d.ts index 158518595..b9c7e6793 100644 --- a/lib/i18n/I18N.d.ts +++ b/lib/i18n/I18N.d.ts @@ -16,4 +16,4 @@ export default class I18N { changed: () => void; } -type EventBus = import('../core/EventBus').default; +type EventBus = import("../core/EventBus").default; diff --git a/lib/i18n/index.d.ts b/lib/i18n/index.d.ts index 6a909a907..cbaf734b3 100644 --- a/lib/i18n/index.d.ts +++ b/lib/i18n/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + i18n: (string | typeof I18N)[]; +}; export default _default; +import I18N from './I18N'; diff --git a/lib/i18n/translate/index.d.ts b/lib/i18n/translate/index.d.ts index 6a909a907..e66762260 100644 --- a/lib/i18n/translate/index.d.ts +++ b/lib/i18n/translate/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + translate: (string | typeof translate)[]; +}; export default _default; +import translate from './translate'; diff --git a/lib/layout/BaseLayouter.d.ts b/lib/layout/BaseLayouter.d.ts index fe0834852..d4c869643 100644 --- a/lib/layout/BaseLayouter.d.ts +++ b/lib/layout/BaseLayouter.d.ts @@ -18,8 +18,8 @@ export default class BaseLayouter { layoutConnection(connection: Connection, hints?: LayoutConnectionHints): Point[]; } -type Element = import('../core/Types').ElementLike; -type Connection = import('../core/Types').ConnectionLike; +type Element = import("../core/Types").ElementLike; +type Connection = import("../core/Types").ConnectionLike; export type Point = any; export type LayoutConnectionHints = { diff --git a/lib/layout/ConnectionDocking.d.ts b/lib/layout/ConnectionDocking.d.ts index 468822cda..b63880cab 100644 --- a/lib/layout/ConnectionDocking.d.ts +++ b/lib/layout/ConnectionDocking.d.ts @@ -12,7 +12,7 @@ export default class ConnectionDocking { * * @return */ - getCroppedWaypoints(connection: any, source?: any, target?: any): Point[]; + getCroppedWaypoints(connection: Connection, source?: Element, target?: Element): Point[]; /** * Return the connection docking point on the specified shape * @@ -22,14 +22,14 @@ export default class ConnectionDocking { * * @return */ - getDockingPoint(connection: any, shape: any, dockStart?: boolean): DockingPointDescriptor; + getDockingPoint(connection: Connection, shape: Shape, dockStart?: boolean): DockingPointDescriptor; } export type Element = any; export type Connection = any; export type Shape = any; export type Point = any; export type DockingPointDescriptor = { - point: any; - actual: any; + point: Point; + actual: Point; idx: number; }; diff --git a/lib/layout/CroppingConnectionDocking.d.ts b/lib/layout/CroppingConnectionDocking.d.ts index 2a4311e89..a045840a9 100644 --- a/lib/layout/CroppingConnectionDocking.d.ts +++ b/lib/layout/CroppingConnectionDocking.d.ts @@ -29,5 +29,5 @@ export default class CroppingConnectionDocking { }; } -type ElementRegistry = import('../core/ElementRegistry').default; -type GraphicsFactory = import('../core/GraphicsFactory').default; +type ElementRegistry = import("../core/ElementRegistry").default; +type GraphicsFactory = import("../core/GraphicsFactory").default; diff --git a/lib/layout/LayoutUtil.d.ts b/lib/layout/LayoutUtil.d.ts index 64ef0deef..8c00e4f14 100644 --- a/lib/layout/LayoutUtil.d.ts +++ b/lib/layout/LayoutUtil.d.ts @@ -85,10 +85,10 @@ export function getElementLineIntersection(elementPath: string, linePath: string export function getIntersections(a: any, b: any): any; export function filterRedundantWaypoints(waypoints: any): any; -type Element = import('../core/Types').ElementLike; -type Connection = import('../core/Types').ConnectionLike; -type DirectionTRBL = import('../util/Types').DirectionTRBL; -type Intersection = import('../util/Types').Intersection; -type Point = import('../util/Types').Point; -type Rect = import('../util/Types').Rect; -type RectTRBL = import('../util/Types').RectTRBL; +type Element = import("../core/Types").ElementLike; +type Connection = import("../core/Types").ConnectionLike; +type DirectionTRBL = import("../util/Types").DirectionTRBL; +type Intersection = import("../util/Types").Intersection; +type Point = import("../util/Types").Point; +type Rect = import("../util/Types").Rect; +type RectTRBL = import("../util/Types").RectTRBL; diff --git a/lib/layout/ManhattanLayout.d.ts b/lib/layout/ManhattanLayout.d.ts index b0ccfa641..87c7c815a 100644 --- a/lib/layout/ManhattanLayout.d.ts +++ b/lib/layout/ManhattanLayout.d.ts @@ -86,5 +86,5 @@ export function tryLayoutStraight(source: Rect, target: Rect, start: Point, end: */ export function withoutRedundantPoints(waypoints: Point[]): Point[]; -type Point = import('../util/Types').Point; -type Rect = import('../util/Types').Rect; +type Point = import("../util/Types").Point; +type Rect = import("../util/Types").Rect; diff --git a/lib/model/index.d.ts b/lib/model/index.d.ts index 20c61e783..2a013c2a6 100644 --- a/lib/model/index.d.ts +++ b/lib/model/index.d.ts @@ -103,8 +103,8 @@ export function create(type: 'root', attrs?: any): Root; */ export function isModelElement(obj: any): boolean; -type Element = import('./Types').Element; -type Shape = import('./Types').Shape; -type Root = import('./Types').Root; -type Label = import('./Types').Label; -type Connection = import('./Types').Connection; +type Element = import("./Types").Element; +type Shape = import("./Types").Shape; +type Root = import("./Types").Root; +type Label = import("./Types").Label; +type Connection = import("./Types").Connection; diff --git a/lib/navigation/keyboard-move/KeyboardMove.d.ts b/lib/navigation/keyboard-move/KeyboardMove.d.ts index cef254607..1a6bc817e 100644 --- a/lib/navigation/keyboard-move/KeyboardMove.d.ts +++ b/lib/navigation/keyboard-move/KeyboardMove.d.ts @@ -19,10 +19,10 @@ export default class KeyboardMove { * @param options */ moveCanvas: (options: { - direction: 'up' | 'down' | 'left' | 'right'; + direction: "up" | "down" | "left" | "right"; speed: number; }) => void; } -type Canvas = import('../../core/Canvas').default; -type Keyboard = import('../../features/keyboard/Keyboard').default; +type Canvas = import("../../core/Canvas").default; +type Keyboard = import("../../features/keyboard/Keyboard").default; diff --git a/lib/navigation/keyboard-move/index.d.ts b/lib/navigation/keyboard-move/index.d.ts index 6a909a907..d4b54f05e 100644 --- a/lib/navigation/keyboard-move/index.d.ts +++ b/lib/navigation/keyboard-move/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + keyboardMove: (string | typeof KeyboardMove)[]; +}; export default _default; +import KeyboardMove from './KeyboardMove'; diff --git a/lib/navigation/movecanvas/MoveCanvas.d.ts b/lib/navigation/movecanvas/MoveCanvas.d.ts index 4bcb84412..eddd335cf 100644 --- a/lib/navigation/movecanvas/MoveCanvas.d.ts +++ b/lib/navigation/movecanvas/MoveCanvas.d.ts @@ -12,5 +12,5 @@ export default class MoveCanvas { isActive: () => boolean; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; diff --git a/lib/navigation/movecanvas/index.d.ts b/lib/navigation/movecanvas/index.d.ts index 6a909a907..51467d9cd 100644 --- a/lib/navigation/movecanvas/index.d.ts +++ b/lib/navigation/movecanvas/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + moveCanvas: (string | typeof MoveCanvas)[]; +}; export default _default; +import MoveCanvas from './MoveCanvas'; diff --git a/lib/navigation/zoomscroll/ZoomScroll.d.ts b/lib/navigation/zoomscroll/ZoomScroll.d.ts index b9f0c4fa8..f35952b55 100644 --- a/lib/navigation/zoomscroll/ZoomScroll.d.ts +++ b/lib/navigation/zoomscroll/ZoomScroll.d.ts @@ -60,7 +60,7 @@ export default class ZoomScroll { toggle(newEnabled?: boolean): boolean; } -type Canvas = import('../../core/Canvas').default; -type EventBus = import('../../core/EventBus').default; -type Point = import('../../util/Types').Point; -type ScrollDelta = import('../../util/Types').ScrollDelta; +type Canvas = import("../../core/Canvas").default; +type EventBus = import("../../core/EventBus").default; +type Point = import("../../util/Types").Point; +type ScrollDelta = import("../../util/Types").ScrollDelta; diff --git a/lib/navigation/zoomscroll/index.d.ts b/lib/navigation/zoomscroll/index.d.ts index 6a909a907..a517201d5 100644 --- a/lib/navigation/zoomscroll/index.d.ts +++ b/lib/navigation/zoomscroll/index.d.ts @@ -1,2 +1,5 @@ -declare const _default: import('didi').ModuleDeclaration; +declare const _default: { + zoomScroll: (string | typeof ZoomScroll)[]; +}; export default _default; +import ZoomScroll from './ZoomScroll'; diff --git a/lib/util/AttachUtil.d.ts b/lib/util/AttachUtil.d.ts index 3d999fe63..915265e6c 100644 --- a/lib/util/AttachUtil.d.ts +++ b/lib/util/AttachUtil.d.ts @@ -21,6 +21,6 @@ export function getNewAttachPoint(point: Point, oldBounds: Rect, newBounds: Rect */ export function getNewAttachShapeDelta(shape: Shape, oldBounds: Rect, newBounds: Rect): Point; -type Shape = import('../model/Types').Shape; -type Point = import('../util/Types').Point; -type Rect = import('../util/Types').Rect; +type Shape = import("../model/Types").Shape; +type Point = import("../util/Types").Point; +type Rect = import("../util/Types").Rect; diff --git a/lib/util/ClickTrap.d.ts b/lib/util/ClickTrap.d.ts index 7ca421093..29d711c65 100644 --- a/lib/util/ClickTrap.d.ts +++ b/lib/util/ClickTrap.d.ts @@ -8,4 +8,4 @@ */ export function install(eventBus: EventBus, eventName?: string): () => void; -type EventBus = import('../core/EventBus').default; +type EventBus = import("../core/EventBus").default; diff --git a/lib/util/Elements.d.ts b/lib/util/Elements.d.ts index 44620b0a3..ff3a6b6a3 100644 --- a/lib/util/Elements.d.ts +++ b/lib/util/Elements.d.ts @@ -105,7 +105,7 @@ export function getEnclosedElements(elements: Element[], bbox: Rect): Element[]; * * @return */ -export function getType(element: Element): 'connection' | 'shape' | 'root'; +export function getType(element: Element): "connection" | "shape" | "root"; /** * @param element @@ -114,10 +114,10 @@ export function getType(element: Element): 'connection' | 'shape' | 'root'; */ export function isFrameElement(element: Element): boolean; -type Connection = import('../model/Types').Connection; -type Element = import('../model/Types').Element; -type Shape = import('../model/Types').Shape; -type Rect = import('../util/Types').Rect; +type Connection = import("../model/Types").Connection; +type Element = import("../model/Types").Element; +type Shape = import("../model/Types").Shape; +type Rect = import("../util/Types").Rect; export type Closure = { allShapes: Record; diff --git a/lib/util/Event.d.ts b/lib/util/Event.d.ts index d124f7a3e..5b6408c7b 100644 --- a/lib/util/Event.d.ts +++ b/lib/util/Event.d.ts @@ -3,12 +3,12 @@ * * @return */ -export function getOriginal(event: import('../core/EventBus').Event): Event; +export function getOriginal(event: import("../core/EventBus").Event): Event; /** * @param event */ -export function stopPropagation(event: Event | import('../core/EventBus').Event): void; +export function stopPropagation(event: Event | import("../core/EventBus").Event): void; /** * @param event @@ -17,4 +17,4 @@ export function stopPropagation(event: Event | import('../core/EventBus').Event) */ export function toPoint(event: Event): Point | null; -type Point = import('../util/Types').Point; +type Point = import("../util/Types").Point; diff --git a/lib/util/Geometry.d.ts b/lib/util/Geometry.d.ts index e465d814d..dfcb647a1 100644 --- a/lib/util/Geometry.d.ts +++ b/lib/util/Geometry.d.ts @@ -59,6 +59,6 @@ export function pointInRect(p: Point, rect: Rect, tolerance: number): boolean; */ export function getMidPoint(p: Point, q: Point): Point; -type Axis = import('../util/Types').Axis; -type Point = import('../util/Types').Point; -type Rect = import('../util/Types').Rect; +type Axis = import("../util/Types").Axis; +type Point = import("../util/Types").Point; +type Rect = import("../util/Types").Rect; diff --git a/lib/util/LineIntersection.d.ts b/lib/util/LineIntersection.d.ts index 4f98962c1..f86d85f0d 100644 --- a/lib/util/LineIntersection.d.ts +++ b/lib/util/LineIntersection.d.ts @@ -8,7 +8,7 @@ */ export function getApproxIntersection(waypoints: Point[], reference: Point): Intersection | null; -type Point = import('../util/Types').Point; +type Point = import("../util/Types").Point; export type Intersection = { bendpoint?: boolean; diff --git a/lib/util/PositionUtil.d.ts b/lib/util/PositionUtil.d.ts index 8db9f37ee..444d85a25 100644 --- a/lib/util/PositionUtil.d.ts +++ b/lib/util/PositionUtil.d.ts @@ -11,5 +11,5 @@ export function center(bounds: Rect): Point; */ export function delta(a: Point, b: Point): Point; -type Point = import('../util/Types').Point; -type Rect = import('../util/Types').Rect; +type Point = import("../util/Types").Point; +type Rect = import("../util/Types").Rect; diff --git a/lib/util/RenderUtil.d.ts b/lib/util/RenderUtil.d.ts index ab3b7569b..45d925cc6 100644 --- a/lib/util/RenderUtil.d.ts +++ b/lib/util/RenderUtil.d.ts @@ -30,4 +30,4 @@ export function createLine(points: Point[], attrs?: number | any, radius?: numbe export function updateLine(gfx: SVGElement, points: Point[]): SVGElement; export type Component = (string | number)[]; -type Point = import('../util/Types').Point; +type Point = import("../util/Types").Point; diff --git a/lib/util/Text.d.ts b/lib/util/Text.d.ts index 4ffce50f7..67eb14c79 100644 --- a/lib/util/Text.d.ts +++ b/lib/util/Text.d.ts @@ -42,7 +42,7 @@ export default class Text { }; } -type Dimensions = import('../util/Types').Dimensions; +type Dimensions = import("../util/Types").Dimensions; export type Padding = { top: number; @@ -54,11 +54,11 @@ export type Padding = { export type PaddingConfig = number | Partial; export type Alignment = { - horizontal: 'center' | 'left' | 'right'; - vertical: 'top' | 'middle'; + horizontal: "center" | "left" | "right"; + vertical: "top" | "middle"; }; -export type AlignmentConfig = 'center-middle' | 'center-top'; +export type AlignmentConfig = "center-middle" | "center-top"; export type BaseTextConfig = Partial<{ align: AlignmentConfig;