@likec4/diagram 1.59.4 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -11
- package/custom/package.json +2 -2
- package/dist/LikeC4Diagram.d.mts +13 -0
- package/dist/LikeC4Diagram.mjs +174 -0
- package/dist/LikeC4Diagram.props.d.mts +295 -0
- package/dist/LikeC4MantineProvider.d.mts +25 -0
- package/dist/LikeC4MantineProvider.mjs +173 -0
- package/dist/LikeC4ModelProvider.d.mts +11 -0
- package/dist/LikeC4ModelProvider.mjs +16 -0
- package/dist/LikeC4ProjectsOverview.d.mts +10 -0
- package/dist/LikeC4ProjectsOverview.mjs +27 -0
- package/dist/LikeC4ProjectsProvider.d.mts +34 -0
- package/dist/LikeC4ProjectsProvider.mjs +36 -0
- package/dist/LikeC4Styles.d.mts +15 -0
- package/dist/LikeC4Styles.mjs +78 -0
- package/dist/LikeC4View.d.mts +285 -0
- package/dist/LikeC4View.mjs +154 -0
- package/dist/ReactLikeC4.d.mts +48 -0
- package/dist/ReactLikeC4.mjs +48 -0
- package/dist/StaticLikeC4Diagram.d.mts +12 -0
- package/dist/StaticLikeC4Diagram.mjs +39 -0
- package/dist/_virtual/_rolldown/runtime.mjs +21 -0
- package/dist/base/Background.mjs +31 -0
- package/dist/base/Base.d.mts +29 -0
- package/dist/base/Base.mjs +35 -0
- package/dist/base/BaseXYFlow.mjs +211 -0
- package/dist/base/const.d.mts +3 -0
- package/dist/base/const.mjs +22 -0
- package/dist/base/keyboardZoom.mjs +21 -0
- package/dist/base/types.d.mts +60 -0
- package/dist/base/updateEdges.mjs +35 -0
- package/dist/base/updateNodes.mjs +46 -0
- package/dist/base-primitives/Markdown.d.mts +34 -0
- package/dist/base-primitives/Markdown.mjs +48 -0
- package/dist/base-primitives/NodeHandles.d.mts +8 -0
- package/dist/base-primitives/NodeHandles.mjs +43 -0
- package/dist/base-primitives/compound/CompoundActionButton.d.mts +11 -0
- package/dist/base-primitives/compound/CompoundActionButton.mjs +56 -0
- package/dist/base-primitives/compound/CompoundDetailsButton.d.mts +11 -0
- package/dist/base-primitives/compound/CompoundDetailsButton.mjs +46 -0
- package/dist/base-primitives/compound/CompoundNodeContainer.d.mts +16 -0
- package/dist/base-primitives/compound/CompoundNodeContainer.mjs +48 -0
- package/dist/base-primitives/compound/CompoundTitle.d.mts +20 -0
- package/dist/base-primitives/compound/CompoundTitle.mjs +21 -0
- package/dist/base-primitives/compound/actionbtns.css.mjs +12 -0
- package/dist/base-primitives/edge/EdgeActionButton.d.mts +1 -0
- package/dist/base-primitives/edge/EdgeActionButton.mjs +22 -0
- package/dist/base-primitives/edge/EdgeContainer.d.mts +4 -0
- package/dist/base-primitives/edge/EdgeContainer.mjs +34 -0
- package/dist/base-primitives/edge/EdgeLabel.d.mts +5 -0
- package/dist/base-primitives/edge/EdgeLabel.mjs +46 -0
- package/dist/base-primitives/edge/EdgeLabelContainer.d.mts +4 -0
- package/dist/base-primitives/edge/EdgeLabelContainer.mjs +39 -0
- package/dist/base-primitives/edge/EdgeMarkers.d.mts +2 -0
- package/dist/base-primitives/edge/EdgeMarkers.mjs +162 -0
- package/dist/base-primitives/edge/EdgePath.d.mts +4 -0
- package/dist/base-primitives/edge/EdgePath.mjs +66 -0
- package/dist/base-primitives/element/ElementActionButtons.d.mts +44 -0
- package/dist/base-primitives/element/ElementActionButtons.mjs +99 -0
- package/dist/base-primitives/element/ElementData.d.mts +71 -0
- package/dist/base-primitives/element/ElementData.mjs +134 -0
- package/dist/base-primitives/element/ElementDetailsButton.d.mts +12 -0
- package/dist/base-primitives/element/ElementDetailsButton.mjs +86 -0
- package/dist/base-primitives/element/ElementNodeContainer.d.mts +22 -0
- package/dist/base-primitives/element/ElementNodeContainer.mjs +57 -0
- package/dist/base-primitives/element/ElementShape.d.mts +26 -0
- package/dist/base-primitives/element/ElementShape.mjs +474 -0
- package/dist/base-primitives/element/ElementTags.d.mts +22 -0
- package/dist/base-primitives/element/ElementTags.mjs +135 -0
- package/dist/base-primitives/index.d.mts +21 -0
- package/dist/base-primitives/memoEdge.d.mts +2 -0
- package/dist/base-primitives/memoEdge.mjs +16 -0
- package/dist/base-primitives/memoNode.d.mts +2 -0
- package/dist/components/EmptyBox.mjs +10 -0
- package/dist/components/ErrorFallback.d.mts +8 -0
- package/dist/components/ErrorFallback.mjs +120 -0
- package/dist/components/FloatingWindow.mjs +90 -0
- package/dist/components/GithubIcon.mjs +16 -0
- package/dist/components/Link.mjs +102 -0
- package/dist/components/Logo.d.mts +5 -0
- package/dist/components/Logo.mjs +34 -0
- package/dist/components/NavigationLink.mjs +18 -0
- package/dist/components/NavigationPanel.mjs +35 -0
- package/dist/components/PortalToContainer.d.mts +7 -0
- package/dist/components/PortalToContainer.mjs +20 -0
- package/dist/components/RootContainer.mjs +39 -0
- package/dist/components/SearchControl.css.mjs +68 -0
- package/dist/components/SearchControl.d.mts +5 -0
- package/dist/components/SearchControl.mjs +40 -0
- package/dist/components/ViewIcon.mjs +75 -0
- package/dist/components/ViewNotFound.mjs +28 -0
- package/dist/components/markdown/MarkdownWithRefs.mjs +268 -0
- package/dist/components/markdown/markdown-refs.mjs +145 -0
- package/dist/components/markdown/useMarkdownRefsInteractivity.mjs +126 -0
- package/dist/context/ComparingLayoutsContext.mjs +24 -0
- package/dist/context/CurrentViewModelProvider.mjs +16 -0
- package/dist/context/DiagramEventHandlers.mjs +47 -0
- package/dist/context/DiagramFeatures.d.mts +28 -0
- package/dist/context/DiagramFeatures.mjs +101 -0
- package/dist/context/EnsureMantine.mjs +17 -0
- package/dist/context/FramerMotionConfig.d.mts +9 -0
- package/dist/context/FramerMotionConfig.mjs +20 -0
- package/dist/context/IconRenderer.d.mts +22 -0
- package/dist/context/IconRenderer.mjs +179 -0
- package/dist/context/LikeC4ModelContext.d.mts +13 -0
- package/dist/context/LikeC4ModelContext.mjs +20 -0
- package/dist/context/LikeC4ProjectsContext.d.mts +7 -0
- package/dist/context/LikeC4ProjectsContext.mjs +11 -0
- package/dist/context/RootContainerContext.mjs +23 -0
- package/dist/context/TagStylesContext.d.mts +13 -0
- package/dist/context/TagStylesContext.mjs +66 -0
- package/dist/custom/builtins.d.mts +12 -0
- package/dist/custom/customNodes.d.mts +392 -0
- package/dist/custom/customNodes.mjs +620 -0
- package/dist/custom/index.d.mts +42 -0
- package/dist/custom/index.mjs +36 -0
- package/dist/custom/primitives.d.mts +14 -0
- package/dist/customization/CustomizationContext.d.mts +50 -0
- package/dist/customization/CustomizationContext.mjs +64 -0
- package/dist/customization/customizable.d.mts +32 -0
- package/dist/customization/customizable.mjs +75 -0
- package/dist/customization/customization-types.d.mts +40 -0
- package/dist/customization/customization-types.mjs +8 -0
- package/dist/customization/stableComponents.mjs +35 -0
- package/dist/editor/LikeC4EditorCallbacks.d.mts +42 -0
- package/dist/editor/LikeC4EditorCallbacks.mjs +11 -0
- package/dist/editor/LikeC4EditorProvider.d.mts +28 -0
- package/dist/editor/LikeC4EditorProvider.mjs +38 -0
- package/dist/editor/actor/actions.mjs +207 -0
- package/dist/editor/actor/hotkey.d.mts +6 -0
- package/dist/editor/actor/hotkey.mjs +28 -0
- package/dist/editor/actor/machine.d.mts +7 -0
- package/dist/editor/actor/machine.mjs +26 -0
- package/dist/editor/actor/setup.d.mts +58 -0
- package/dist/editor/actor/setup.mjs +43 -0
- package/dist/editor/actor/state.editor.mjs +57 -0
- package/dist/editor/actor/state.sync-queue.mjs +275 -0
- package/dist/editor/actor/types.d.mts +64 -0
- package/dist/editor/actor/types.mjs +6 -0
- package/dist/editor/applyChangesToManualLayout.mjs +168 -0
- package/dist/editor/index.d.mts +5 -0
- package/dist/editor/useEditorActorLogic.mjs +78 -0
- package/dist/hooks/safeContext.d.mts +109 -0
- package/dist/hooks/safeContext.mjs +73 -0
- package/dist/hooks/useCallbackRef.mjs +22 -0
- package/dist/hooks/useCurrentView.d.mts +12 -0
- package/dist/hooks/useCurrentView.mjs +31 -0
- package/dist/hooks/useCurrentViewModel.d.mts +10 -0
- package/dist/hooks/useCurrentViewModel.mjs +17 -0
- package/dist/hooks/useDiagram.d.mts +20 -0
- package/dist/hooks/useDiagram.mjs +60 -0
- package/dist/hooks/useDiagramCompareLayout.d.mts +52 -0
- package/dist/hooks/useDiagramCompareLayout.mjs +77 -0
- package/dist/hooks/useDiagramMarkdownRefActions.mjs +35 -0
- package/dist/hooks/useEdgeLabelFontLoader.mjs +29 -0
- package/dist/hooks/useEdgeTracks.mjs +90 -0
- package/dist/hooks/useEditorActor.mjs +26 -0
- package/dist/hooks/useId.mjs +10 -0
- package/dist/hooks/useLikeC4ElementsTree.mjs +29 -0
- package/dist/hooks/useLikeC4Model.d.mts +13 -0
- package/dist/hooks/useLikeC4Model.mjs +33 -0
- package/dist/hooks/useLikeC4Project.d.mts +27 -0
- package/dist/hooks/useLikeC4Project.mjs +57 -0
- package/dist/hooks/useLikeC4Styles.d.mts +3 -0
- package/dist/hooks/useLikeC4Styles.mjs +10 -0
- package/dist/hooks/useMantinePortalProps.mjs +14 -0
- package/dist/hooks/useSetState.mjs +25 -0
- package/dist/hooks/useUpdateEffect.d.mts +5 -0
- package/dist/hooks/useUpdateEffect.mjs +22 -0
- package/dist/hooks/useXYFlow.d.mts +10 -0
- package/dist/hooks/useXYFlow.mjs +27 -0
- package/dist/index.d.mts +35 -0
- package/dist/index.mjs +32 -0
- package/dist/likec4diagram/DiagramUI.mjs +59 -0
- package/dist/likec4diagram/DiagramXYFlow.mjs +287 -0
- package/dist/likec4diagram/convert-to-xyflow.mjs +59 -0
- package/dist/likec4diagram/custom/edges/EdgeDrifts.mjs +27 -0
- package/dist/likec4diagram/custom/edges/RelationshipEdge.mjs +450 -0
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.mjs +80 -0
- package/dist/likec4diagram/custom/edges/useControlPoints.mjs +40 -0
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.mjs +40 -0
- package/dist/likec4diagram/custom/index.mjs +25 -0
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.mts +5 -0
- package/dist/likec4diagram/custom/nodes/CompoundActions.mjs +23 -0
- package/dist/likec4diagram/custom/nodes/ElementActions.d.mts +89 -0
- package/dist/likec4diagram/custom/nodes/ElementActions.mjs +146 -0
- package/dist/likec4diagram/custom/nodes/GraphElementNode.d.mts +6 -0
- package/dist/likec4diagram/custom/nodes/GraphElementNode.mjs +83 -0
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.mts +6 -0
- package/dist/likec4diagram/custom/nodes/NodeDrifts.mjs +25 -0
- package/dist/likec4diagram/custom/nodes/NodeNotes.mjs +224 -0
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.mts +4 -0
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.mjs +152 -0
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.mts +3 -0
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.mjs +238 -0
- package/dist/likec4diagram/custom/nodes/index.d.mts +11 -0
- package/dist/likec4diagram/custom/nodes/nodes.d.mts +21 -0
- package/dist/likec4diagram/custom/nodes/nodes.mjs +172 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.mjs +159 -0
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.mts +4 -0
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.mjs +64 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.mts +9 -0
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.mjs +116 -0
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.mts +9 -0
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.mjs +62 -0
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.mjs +105 -0
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.mjs +16 -0
- package/dist/likec4diagram/custom/nodes/toolbar/types.mjs +8 -0
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.mjs +40 -0
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.mjs +541 -0
- package/dist/likec4diagram/relationship-popover/actor.mjs +119 -0
- package/dist/likec4diagram/relationship-popover/components.mjs +46 -0
- package/dist/likec4diagram/state/DiagramActorProvider.mjs +140 -0
- package/dist/likec4diagram/state/aligners.d.mts +5 -0
- package/dist/likec4diagram/state/aligners.mjs +293 -0
- package/dist/likec4diagram/state/assign.mjs +98 -0
- package/dist/likec4diagram/state/createViewChange.mjs +72 -0
- package/dist/likec4diagram/state/diagram-api.d.mts +190 -0
- package/dist/likec4diagram/state/diagram-api.mjs +386 -0
- package/dist/likec4diagram/state/hotkeyActor.d.mts +6 -0
- package/dist/likec4diagram/state/hotkeyActor.mjs +64 -0
- package/dist/likec4diagram/state/machine.actions.layout.mjs +175 -0
- package/dist/likec4diagram/state/machine.actions.mjs +837 -0
- package/dist/likec4diagram/state/machine.d.mts +166 -0
- package/dist/likec4diagram/state/machine.mjs +90 -0
- package/dist/likec4diagram/state/machine.setup.d.mts +380 -0
- package/dist/likec4diagram/state/machine.setup.mjs +197 -0
- package/dist/likec4diagram/state/machine.state.initializing.mjs +59 -0
- package/dist/likec4diagram/state/machine.state.navigating.mjs +202 -0
- package/dist/likec4diagram/state/machine.state.ready.comparing.mjs +63 -0
- package/dist/likec4diagram/state/machine.state.ready.focused.mjs +79 -0
- package/dist/likec4diagram/state/machine.state.ready.idle.mjs +111 -0
- package/dist/likec4diagram/state/machine.state.ready.mjs +154 -0
- package/dist/likec4diagram/state/machine.state.ready.printing.mjs +41 -0
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.mjs +261 -0
- package/dist/likec4diagram/state/mediaPrintActor.d.mts +8 -0
- package/dist/likec4diagram/state/mediaPrintActor.mjs +23 -0
- package/dist/likec4diagram/state/persistence.mjs +31 -0
- package/dist/likec4diagram/state/types.d.mts +21 -0
- package/dist/likec4diagram/state/utils.mjs +168 -0
- package/dist/likec4diagram/types.d.mts +200 -0
- package/dist/likec4diagram/ui/FloatingSequenceActors.mjs +156 -0
- package/dist/likec4diagram/ui/notation/NotationPanel.css.mjs +68 -0
- package/dist/likec4diagram/ui/notation/NotationPanel.mjs +189 -0
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.mjs +82 -0
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.mjs +71 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.mjs +106 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.mjs +141 -0
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.mjs +83 -0
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.mjs +65 -0
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.mjs +53 -0
- package/dist/likec4diagram/ui/sequence-outline/StepRow.mjs +191 -0
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.mjs +90 -0
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.mjs +78 -0
- package/dist/likec4diagram/ui/sequence-outline/motion.mjs +21 -0
- package/dist/likec4diagram/ui/sequence-outline/presentation.mjs +86 -0
- package/dist/likec4diagram/ui/sequence-outline/tree.mjs +68 -0
- package/dist/likec4diagram/ui/sequence-outline/types.mjs +13 -0
- package/dist/likec4diagram/useLayoutConstraints.mjs +477 -0
- package/dist/likec4diagram/useNodeDragHandlers.mjs +28 -0
- package/dist/likec4diagram/xyflow-diagram/diagram-view.mjs +282 -0
- package/dist/likec4diagram/xyflow-graph/graph-view-to-xy.mjs +175 -0
- package/dist/likec4diagram/xyflow-graph/useGraphForceSimulation.mjs +125 -0
- package/dist/likec4diagram/xyflow-props.mjs +25 -0
- package/dist/likec4diagram/xyflow-sequence/const.mjs +13 -0
- package/dist/likec4diagram/xyflow-sequence/layouter.mjs +565 -0
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.mjs +288 -0
- package/dist/likec4diagram/xyflow-sequence/sequence-view.mjs +145 -0
- package/dist/likec4diagram/xyflow-sequence/utils.mjs +96 -0
- package/dist/navigationpanel/ElementViewControls.mjs +50 -0
- package/dist/navigationpanel/NavigationPanel.mjs +95 -0
- package/dist/navigationpanel/NavigationPanelControls.mjs +93 -0
- package/dist/navigationpanel/NavigationPanelDropdown.mjs +378 -0
- package/dist/navigationpanel/_common.mjs +49 -0
- package/dist/navigationpanel/actor.actions.mjs +50 -0
- package/dist/navigationpanel/actor.d.mts +35 -0
- package/dist/navigationpanel/actor.mjs +96 -0
- package/dist/navigationpanel/actor.setup.d.mts +71 -0
- package/dist/navigationpanel/actor.setup.mjs +33 -0
- package/dist/navigationpanel/comparepanel/ComparePanel.mjs +209 -0
- package/dist/navigationpanel/comparepanel/DriftsSummary.mjs +253 -0
- package/dist/navigationpanel/comparepanel/LayoutDriftFrame.mjs +57 -0
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.mjs +32 -0
- package/dist/navigationpanel/controls/LayoutWarning.mjs +90 -0
- package/dist/navigationpanel/controls/LogoButton.mjs +32 -0
- package/dist/navigationpanel/controls/NavigationBreadcrumbs.mjs +110 -0
- package/dist/navigationpanel/controls/NavigationButtons.mjs +39 -0
- package/dist/navigationpanel/controls/OpenSource.mjs +27 -0
- package/dist/navigationpanel/controls/SearchControl.mjs +69 -0
- package/dist/navigationpanel/controls/ToggleReadonly.mjs +87 -0
- package/dist/navigationpanel/controls/ViewDetailsButton.mjs +121 -0
- package/dist/navigationpanel/dropdown/ProjectsMenu.mjs +118 -0
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.mjs +38 -0
- package/dist/navigationpanel/editorpanel/CenterCamera.mjs +20 -0
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.mjs +248 -0
- package/dist/navigationpanel/editorpanel/EditorPanel.mjs +64 -0
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.mjs +142 -0
- package/dist/navigationpanel/editorpanel/ToggleReadonly.mjs +23 -0
- package/dist/navigationpanel/editorpanel/_common.mjs +15 -0
- package/dist/navigationpanel/editorpanel/styles.mjs +57 -0
- package/dist/navigationpanel/hooks.mjs +31 -0
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.mjs +116 -0
- package/dist/navigationpanel/walkthrough/DynamicViewControls.mjs +80 -0
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.mjs +50 -0
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.mjs +80 -0
- package/dist/navigationpanel/windows/ViewDetailsWindow.mjs +389 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +37 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowFork.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowGuide.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCaretRightFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCornerDownRight.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFileText.mjs +34 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.mjs +34 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconId.mjs +34 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.mjs +34 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStop.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.mjs +34 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRepeat.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRobot.mjs +50 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconSparkles.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.mjs +16 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.mjs +26 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.mjs +30 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +19 -0
- package/dist/node_modules/.pnpm/@tabler_icons-react@3.49.0_react@19.3.1/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.mjs +38 -0
- package/dist/overlays/Overlays.mjs +112 -0
- package/dist/overlays/element-details/ElementDetails.mjs +26 -0
- package/dist/overlays/element-details/ElementDetailsCard.css.mjs +266 -0
- package/dist/overlays/element-details/ElementDetailsCard.mjs +781 -0
- package/dist/overlays/element-details/MetadataValue.mjs +125 -0
- package/dist/overlays/element-details/PropertiesSplit.mjs +162 -0
- package/dist/overlays/element-details/TabPanelDeployments.css.mjs +36 -0
- package/dist/overlays/element-details/TabPanelDeployments.mjs +191 -0
- package/dist/overlays/element-details/TabPanelRelationships.css.mjs +68 -0
- package/dist/overlays/element-details/TabPanelRelationships.mjs +162 -0
- package/dist/overlays/element-details/TabPanelStructure.css.mjs +29 -0
- package/dist/overlays/element-details/TabPanelStructure.mjs +95 -0
- package/dist/overlays/element-details/TabPanelViews.mjs +51 -0
- package/dist/overlays/element-details/actor.d.mts +33 -0
- package/dist/overlays/element-details/actor.mjs +68 -0
- package/dist/overlays/element-details/actorContext.mjs +16 -0
- package/dist/overlays/element-details/subject.d.mts +12 -0
- package/dist/overlays/element-details/subject.mjs +15 -0
- package/dist/overlays/hooks.mjs +6 -0
- package/dist/overlays/overlay/Overlay.d.mts +52 -0
- package/dist/overlays/overlay/Overlay.mjs +116 -0
- package/dist/overlays/overlaysActor.d.mts +56 -0
- package/dist/overlays/overlaysActor.mjs +250 -0
- package/dist/overlays/relationship-details/RelationshipDetails.mjs +294 -0
- package/dist/overlays/relationship-details/SelectEdge.css.mjs +76 -0
- package/dist/overlays/relationship-details/SelectEdge.mjs +150 -0
- package/dist/overlays/relationship-details/_types.d.mts +62 -0
- package/dist/overlays/relationship-details/actor.d.mts +107 -0
- package/dist/overlays/relationship-details/actor.mjs +250 -0
- package/dist/overlays/relationship-details/compute.d.mts +3 -0
- package/dist/overlays/relationship-details/compute.mjs +115 -0
- package/dist/overlays/relationship-details/custom/ElementActions.mjs +48 -0
- package/dist/overlays/relationship-details/custom/edgeTypes.mjs +42 -0
- package/dist/overlays/relationship-details/custom/nodeTypes.mjs +103 -0
- package/dist/overlays/relationship-details/hooks.mjs +53 -0
- package/dist/overlays/relationship-details/layout-to-xyflow.mjs +124 -0
- package/dist/overlays/relationship-details/layout.d.mts +25 -0
- package/dist/overlays/relationship-details/layout.mjs +313 -0
- package/dist/overlays/relationships-browser/RelationshipsBrowser.mjs +345 -0
- package/dist/overlays/relationships-browser/SelectElement.css.mjs +14 -0
- package/dist/overlays/relationships-browser/SelectElement.mjs +201 -0
- package/dist/overlays/relationships-browser/_types.d.mts +67 -0
- package/dist/overlays/relationships-browser/actor.d.mts +101 -0
- package/dist/overlays/relationships-browser/actor.mjs +378 -0
- package/dist/overlays/relationships-browser/const.mjs +9 -0
- package/dist/overlays/relationships-browser/custom/ElementActions.mjs +66 -0
- package/dist/overlays/relationships-browser/custom/EmptyNode.mjs +26 -0
- package/dist/overlays/relationships-browser/custom/edgeTypes.mjs +67 -0
- package/dist/overlays/relationships-browser/custom/nodeTypes.mjs +113 -0
- package/dist/overlays/relationships-browser/hooks.mjs +57 -0
- package/dist/overlays/relationships-browser/layout.d.mts +28 -0
- package/dist/overlays/relationships-browser/layout.mjs +477 -0
- package/dist/overlays/relationships-browser/useViewToNodesEdges.mjs +146 -0
- package/dist/overlays/types.d.mts +21 -0
- package/dist/projects-overview/ProjectsOverview.d.mts +13 -0
- package/dist/projects-overview/ProjectsOverview.mjs +60 -0
- package/dist/projects-overview/ProjectsOverviewXY.d.mts +12 -0
- package/dist/projects-overview/ProjectsOverviewXY.mjs +110 -0
- package/dist/projects-overview/actor.mjs +268 -0
- package/dist/projects-overview/context.mjs +12 -0
- package/dist/projects-overview/custom/edgeTypes.mjs +25 -0
- package/dist/projects-overview/custom/nodeTypes.mjs +42 -0
- package/dist/projects-overview/hooks.mjs +16 -0
- package/dist/projects-overview/index.d.mts +2 -0
- package/dist/projects-overview/layouted-to-xyflow.mjs +54 -0
- package/dist/projects-overview/panel/ProjectsOverviewPanel.mjs +10 -0
- package/dist/projects-overview/persistence.mjs +25 -0
- package/dist/search/Search.d.mts +9 -0
- package/dist/search/Search.mjs +202 -0
- package/dist/search/SearchContext.d.mts +21 -0
- package/dist/search/SearchContext.mjs +22 -0
- package/dist/search/XStateSearchAdapter.mjs +71 -0
- package/dist/search/components/ElementsColumn.css.mjs +53 -0
- package/dist/search/components/ElementsColumn.mjs +286 -0
- package/dist/search/components/PickView.mjs +119 -0
- package/dist/search/components/SearchByTags.mjs +80 -0
- package/dist/search/components/SearchInput.mjs +192 -0
- package/dist/search/components/ViewsColum.mjs +161 -0
- package/dist/search/components/ViewsColumn.css.mjs +18 -0
- package/dist/search/components/_shared.css.mjs +122 -0
- package/dist/search/components/styles.css.mjs +55 -0
- package/dist/search/components/utils.mjs +86 -0
- package/dist/search/fuzzy.mjs +27 -0
- package/dist/search/hooks.mjs +17 -0
- package/dist/search/metadata-search.mjs +32 -0
- package/dist/search/searchActor.d.mts +35 -0
- package/dist/search/searchActor.mjs +103 -0
- package/dist/shadowroot/ShadowRoot.mjs +206 -0
- package/dist/styles-font.css +1 -0
- package/dist/styles-font2.mjs +4 -0
- package/dist/styles-min.css +1 -0
- package/dist/styles-xyflow.css +1 -0
- package/dist/styles.css +1 -0
- package/dist/styles2.mjs +4 -0
- package/dist/utils/defineActors.d.mts +8 -0
- package/dist/utils/defineActors.mjs +14 -0
- package/dist/utils/edge-corners.mjs +125 -0
- package/dist/utils/edge-endpoints.mjs +41 -0
- package/dist/utils/edge-label.mjs +40 -0
- package/dist/utils/edge-path-through-label.mjs +51 -0
- package/dist/utils/edge-path.mjs +245 -0
- package/dist/utils/edge-tracks.mjs +140 -0
- package/dist/utils/filterProjects.d.mts +10 -0
- package/dist/utils/filterProjects.mjs +36 -0
- package/dist/utils/index.mjs +8 -0
- package/dist/utils/measure-edge-label.mjs +129 -0
- package/dist/utils/readableText.mjs +19 -0
- package/dist/utils/roundDpr.mjs +25 -0
- package/dist/utils/search-event.mjs +17 -0
- package/dist/utils/view-bounds.d.mts +8 -0
- package/dist/utils/view-bounds.mjs +56 -0
- package/dist/utils/view-routing.mjs +11 -0
- package/dist/utils/xyflow.mjs +173 -0
- package/dist/webcomponent/defineWebcomponent.d.mts +12 -0
- package/dist/webcomponent/defineWebcomponent.mjs +93 -0
- package/package.json +73 -66
- package/panda.buildinfo.json +223 -209
- package/styles-min.css +1 -1
- package/styles-xyflow.css +1 -1
- package/styles.css +1 -1
- package/dist/LikeC4Diagram.d.ts +0 -12
- package/dist/LikeC4Diagram.js +0 -170
- package/dist/LikeC4Diagram.props.d.ts +0 -293
- package/dist/LikeC4MantineProvider.d.ts +0 -24
- package/dist/LikeC4MantineProvider.js +0 -156
- package/dist/LikeC4ModelProvider.d.ts +0 -10
- package/dist/LikeC4ModelProvider.js +0 -15
- package/dist/LikeC4ProjectsOverview.d.ts +0 -8
- package/dist/LikeC4ProjectsOverview.js +0 -26
- package/dist/LikeC4ProjectsProvider.d.ts +0 -33
- package/dist/LikeC4ProjectsProvider.js +0 -35
- package/dist/LikeC4Styles.d.ts +0 -14
- package/dist/LikeC4Styles.js +0 -71
- package/dist/LikeC4View.d.ts +0 -284
- package/dist/LikeC4View.js +0 -151
- package/dist/ReactLikeC4.d.ts +0 -47
- package/dist/ReactLikeC4.js +0 -45
- package/dist/StaticLikeC4Diagram.d.ts +0 -11
- package/dist/StaticLikeC4Diagram.js +0 -38
- package/dist/_virtual/_rolldown/runtime.js +0 -17
- package/dist/base/Background.d.ts +0 -8
- package/dist/base/Background.js +0 -30
- package/dist/base/Base.d.ts +0 -29
- package/dist/base/Base.js +0 -34
- package/dist/base/BaseXYFlow.d.ts +0 -16
- package/dist/base/BaseXYFlow.js +0 -207
- package/dist/base/const.d.ts +0 -20
- package/dist/base/const.js +0 -22
- package/dist/base/index.d.ts +0 -7
- package/dist/base/keyboardZoom.d.ts +0 -3
- package/dist/base/keyboardZoom.js +0 -20
- package/dist/base/types.d.ts +0 -66
- package/dist/base/updateEdges.d.ts +0 -3
- package/dist/base/updateEdges.js +0 -34
- package/dist/base/updateNodes.d.ts +0 -17
- package/dist/base/updateNodes.js +0 -45
- package/dist/base-primitives/Markdown.d.ts +0 -59
- package/dist/base-primitives/Markdown.js +0 -35
- package/dist/base-primitives/NodeHandles.d.ts +0 -7
- package/dist/base-primitives/NodeHandles.js +0 -42
- package/dist/base-primitives/compound/CompoundActionButton.d.ts +0 -10
- package/dist/base-primitives/compound/CompoundActionButton.js +0 -55
- package/dist/base-primitives/compound/CompoundDetailsButton.d.ts +0 -10
- package/dist/base-primitives/compound/CompoundDetailsButton.js +0 -45
- package/dist/base-primitives/compound/CompoundNodeContainer.d.ts +0 -15
- package/dist/base-primitives/compound/CompoundNodeContainer.js +0 -47
- package/dist/base-primitives/compound/CompoundTitle.d.ts +0 -19
- package/dist/base-primitives/compound/CompoundTitle.js +0 -20
- package/dist/base-primitives/compound/actionbtns.css.d.ts +0 -11
- package/dist/base-primitives/compound/actionbtns.css.js +0 -11
- package/dist/base-primitives/edge/EdgeActionButton.d.ts +0 -8
- package/dist/base-primitives/edge/EdgeActionButton.js +0 -21
- package/dist/base-primitives/edge/EdgeContainer.d.ts +0 -11
- package/dist/base-primitives/edge/EdgeContainer.js +0 -33
- package/dist/base-primitives/edge/EdgeLabel.d.ts +0 -15
- package/dist/base-primitives/edge/EdgeLabel.js +0 -44
- package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +0 -19
- package/dist/base-primitives/edge/EdgeLabelContainer.js +0 -38
- package/dist/base-primitives/edge/EdgeMarkers.d.ts +0 -14
- package/dist/base-primitives/edge/EdgeMarkers.js +0 -161
- package/dist/base-primitives/edge/EdgePath.d.ts +0 -17
- package/dist/base-primitives/edge/EdgePath.js +0 -65
- package/dist/base-primitives/element/ElementActionButtons.d.ts +0 -43
- package/dist/base-primitives/element/ElementActionButtons.js +0 -98
- package/dist/base-primitives/element/ElementData.d.ts +0 -67
- package/dist/base-primitives/element/ElementData.js +0 -127
- package/dist/base-primitives/element/ElementDetailsButton.d.ts +0 -11
- package/dist/base-primitives/element/ElementDetailsButton.js +0 -85
- package/dist/base-primitives/element/ElementNodeContainer.d.ts +0 -22
- package/dist/base-primitives/element/ElementNodeContainer.js +0 -55
- package/dist/base-primitives/element/ElementShape.d.ts +0 -18
- package/dist/base-primitives/element/ElementShape.js +0 -367
- package/dist/base-primitives/element/ElementTags.d.ts +0 -21
- package/dist/base-primitives/element/ElementTags.js +0 -135
- package/dist/base-primitives/index.d.ts +0 -20
- package/dist/base-primitives/memoEdge.d.ts +0 -3
- package/dist/base-primitives/memoEdge.js +0 -15
- package/dist/base-primitives/memoNode.d.ts +0 -3
- package/dist/base-primitives/memoNode.js +0 -21
- package/dist/components/EmptyBox.d.ts +0 -3
- package/dist/components/EmptyBox.js +0 -9
- package/dist/components/ErrorFallback.d.ts +0 -3
- package/dist/components/ErrorFallback.js +0 -113
- package/dist/components/FloatingWindow.d.ts +0 -18
- package/dist/components/FloatingWindow.js +0 -89
- package/dist/components/GithubIcon.d.ts +0 -2
- package/dist/components/GithubIcon.js +0 -15
- package/dist/components/Link.d.ts +0 -6
- package/dist/components/Link.js +0 -100
- package/dist/components/Logo.d.ts +0 -5
- package/dist/components/Logo.js +0 -39
- package/dist/components/NavigationLink.d.ts +0 -6
- package/dist/components/NavigationLink.js +0 -17
- package/dist/components/NavigationPanel.d.ts +0 -11
- package/dist/components/NavigationPanel.js +0 -28
- package/dist/components/PortalToContainer.d.ts +0 -6
- package/dist/components/PortalToContainer.js +0 -19
- package/dist/components/RootContainer.d.ts +0 -6
- package/dist/components/RootContainer.js +0 -38
- package/dist/components/SearchControl.css.d.ts +0 -3
- package/dist/components/SearchControl.css.js +0 -67
- package/dist/components/SearchControl.d.ts +0 -5
- package/dist/components/SearchControl.js +0 -39
- package/dist/components/ViewIcon.d.ts +0 -11
- package/dist/components/ViewIcon.js +0 -71
- package/dist/components/ViewNotFound.d.ts +0 -5
- package/dist/components/ViewNotFound.js +0 -27
- package/dist/context/CurrentViewModelProvider.d.ts +0 -2
- package/dist/context/CurrentViewModelProvider.js +0 -15
- package/dist/context/DiagramEventHandlers.d.ts +0 -15
- package/dist/context/DiagramEventHandlers.js +0 -53
- package/dist/context/DiagramFeatures.d.ts +0 -53
- package/dist/context/DiagramFeatures.js +0 -93
- package/dist/context/EnsureMantine.d.ts +0 -4
- package/dist/context/EnsureMantine.js +0 -16
- package/dist/context/FramerMotionConfig.d.ts +0 -8
- package/dist/context/FramerMotionConfig.js +0 -19
- package/dist/context/IconRenderer.d.ts +0 -40
- package/dist/context/IconRenderer.js +0 -169
- package/dist/context/LikeC4ModelContext.d.ts +0 -15
- package/dist/context/LikeC4ModelContext.js +0 -19
- package/dist/context/LikeC4ProjectsContext.d.ts +0 -9
- package/dist/context/LikeC4ProjectsContext.js +0 -10
- package/dist/context/RootContainerContext.d.ts +0 -19
- package/dist/context/RootContainerContext.js +0 -22
- package/dist/context/TagStylesContext.d.ts +0 -15
- package/dist/context/TagStylesContext.js +0 -76
- package/dist/context/index.d.ts +0 -7
- package/dist/custom/builtins.d.ts +0 -1
- package/dist/custom/customNodes.d.ts +0 -233
- package/dist/custom/customNodes.js +0 -239
- package/dist/custom/hooks.d.ts +0 -11
- package/dist/custom/index.d.ts +0 -19
- package/dist/custom/index.js +0 -44
- package/dist/custom/primitives.d.ts +0 -1
- package/dist/editor/LikeC4EditorCallbacks.d.ts +0 -42
- package/dist/editor/LikeC4EditorCallbacks.js +0 -10
- package/dist/editor/LikeC4EditorProvider.d.ts +0 -34
- package/dist/editor/LikeC4EditorProvider.js +0 -37
- package/dist/editor/actor/actions.d.ts +0 -174
- package/dist/editor/actor/actions.js +0 -188
- package/dist/editor/actor/hotkey.d.ts +0 -7
- package/dist/editor/actor/hotkey.js +0 -27
- package/dist/editor/actor/machine.d.ts +0 -9
- package/dist/editor/actor/machine.js +0 -23
- package/dist/editor/actor/setup.d.ts +0 -70
- package/dist/editor/actor/setup.js +0 -42
- package/dist/editor/actor/state.editor.d.ts +0 -147
- package/dist/editor/actor/state.editor.js +0 -56
- package/dist/editor/actor/state.sync-queue.d.ts +0 -612
- package/dist/editor/actor/state.sync-queue.js +0 -273
- package/dist/editor/actor/types.d.ts +0 -64
- package/dist/editor/actor/types.js +0 -5
- package/dist/editor/applyChangesToManualLayout.d.ts +0 -8
- package/dist/editor/applyChangesToManualLayout.js +0 -167
- package/dist/editor/index.d.ts +0 -5
- package/dist/editor/useEditorActorLogic.d.ts +0 -8
- package/dist/editor/useEditorActorLogic.js +0 -74
- package/dist/hooks/index.d.ts +0 -14
- package/dist/hooks/safeContext.d.ts +0 -168
- package/dist/hooks/safeContext.js +0 -72
- package/dist/hooks/useCallbackRef.d.ts +0 -7
- package/dist/hooks/useCallbackRef.js +0 -21
- package/dist/hooks/useCurrentView.d.ts +0 -11
- package/dist/hooks/useCurrentView.js +0 -21
- package/dist/hooks/useCurrentViewModel.d.ts +0 -10
- package/dist/hooks/useCurrentViewModel.js +0 -16
- package/dist/hooks/useDiagram.d.ts +0 -42
- package/dist/hooks/useDiagram.js +0 -57
- package/dist/hooks/useDiagramCompareLayout.d.ts +0 -53
- package/dist/hooks/useDiagramCompareLayout.js +0 -84
- package/dist/hooks/useEditorActor.d.ts +0 -9
- package/dist/hooks/useEditorActor.js +0 -25
- package/dist/hooks/useId.d.ts +0 -1
- package/dist/hooks/useId.js +0 -9
- package/dist/hooks/useLikeC4ElementsTree.d.ts +0 -14
- package/dist/hooks/useLikeC4ElementsTree.js +0 -28
- package/dist/hooks/useLikeC4Model.d.ts +0 -12
- package/dist/hooks/useLikeC4Model.js +0 -32
- package/dist/hooks/useLikeC4Project.d.ts +0 -26
- package/dist/hooks/useLikeC4Project.js +0 -56
- package/dist/hooks/useLikeC4Styles.d.ts +0 -2
- package/dist/hooks/useLikeC4Styles.js +0 -9
- package/dist/hooks/useMantinePortalProps.d.ts +0 -9
- package/dist/hooks/useMantinePortalProps.js +0 -13
- package/dist/hooks/useMediaPrint.d.ts +0 -4
- package/dist/hooks/useOverlaysActor.d.ts +0 -2
- package/dist/hooks/useReducedGraphics.d.ts +0 -1
- package/dist/hooks/useSearchActor.d.ts +0 -2
- package/dist/hooks/useSetState.d.ts +0 -7
- package/dist/hooks/useSetState.js +0 -24
- package/dist/hooks/useUpdateEffect.d.ts +0 -4
- package/dist/hooks/useUpdateEffect.js +0 -21
- package/dist/hooks/useXYFlow.d.ts +0 -23
- package/dist/hooks/useXYFlow.js +0 -26
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -28
- package/dist/likec4diagram/DiagramUI.d.ts +0 -2
- package/dist/likec4diagram/DiagramUI.js +0 -54
- package/dist/likec4diagram/DiagramXYFlow.d.ts +0 -12
- package/dist/likec4diagram/DiagramXYFlow.js +0 -274
- package/dist/likec4diagram/convert-to-xyflow.d.ts +0 -12
- package/dist/likec4diagram/convert-to-xyflow.js +0 -43
- package/dist/likec4diagram/custom/edges/EdgeDrifts.d.ts +0 -6
- package/dist/likec4diagram/custom/edges/EdgeDrifts.js +0 -24
- package/dist/likec4diagram/custom/edges/RelationshipEdge.d.ts +0 -3
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +0 -401
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.d.ts +0 -2
- package/dist/likec4diagram/custom/edges/SequenceStepEdge.js +0 -79
- package/dist/likec4diagram/custom/edges/edges.css.d.ts +0 -3
- package/dist/likec4diagram/custom/edges/edges.css.js +0 -48
- package/dist/likec4diagram/custom/edges/useControlPoints.d.ts +0 -8
- package/dist/likec4diagram/custom/edges/useControlPoints.js +0 -54
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.d.ts +0 -10
- package/dist/likec4diagram/custom/edges/useRelationshipEdgePath.js +0 -57
- package/dist/likec4diagram/custom/edges/utils.d.ts +0 -10
- package/dist/likec4diagram/custom/index.d.ts +0 -17
- package/dist/likec4diagram/custom/index.js +0 -22
- package/dist/likec4diagram/custom/nodes/CompoundActions.d.ts +0 -4
- package/dist/likec4diagram/custom/nodes/CompoundActions.js +0 -22
- package/dist/likec4diagram/custom/nodes/ElementActions.d.ts +0 -87
- package/dist/likec4diagram/custom/nodes/ElementActions.js +0 -144
- package/dist/likec4diagram/custom/nodes/NodeDrifts.d.ts +0 -5
- package/dist/likec4diagram/custom/nodes/NodeDrifts.js +0 -22
- package/dist/likec4diagram/custom/nodes/NodeNotes.d.ts +0 -6
- package/dist/likec4diagram/custom/nodes/NodeNotes.js +0 -224
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.d.ts +0 -3
- package/dist/likec4diagram/custom/nodes/SequenceActorNode.js +0 -151
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.d.ts +0 -2
- package/dist/likec4diagram/custom/nodes/SequenceSubFlow.js +0 -237
- package/dist/likec4diagram/custom/nodes/index.d.ts +0 -11
- package/dist/likec4diagram/custom/nodes/nodes.d.ts +0 -19
- package/dist/likec4diagram/custom/nodes/nodes.js +0 -172
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.d.ts +0 -22
- package/dist/likec4diagram/custom/nodes/toolbar/ColorButton.js +0 -158
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.d.ts +0 -3
- package/dist/likec4diagram/custom/nodes/toolbar/CompoundToolbar.js +0 -63
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.d.ts +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +0 -114
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.d.ts +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/Toolbar.js +0 -62
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.d.ts +0 -18
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +0 -103
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.d.ts +0 -1
- package/dist/likec4diagram/custom/nodes/toolbar/styles.css.js +0 -15
- package/dist/likec4diagram/custom/nodes/toolbar/types.d.ts +0 -5
- package/dist/likec4diagram/custom/nodes/toolbar/types.js +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.d.ts +0 -8
- package/dist/likec4diagram/custom/nodes/toolbar/useHandlers.js +0 -39
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.d.ts +0 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +0 -522
- package/dist/likec4diagram/relationship-popover/actor.d.ts +0 -75
- package/dist/likec4diagram/relationship-popover/actor.js +0 -116
- package/dist/likec4diagram/relationship-popover/components.d.ts +0 -7
- package/dist/likec4diagram/relationship-popover/components.js +0 -45
- package/dist/likec4diagram/state/DiagramActorProvider.d.ts +0 -19
- package/dist/likec4diagram/state/DiagramActorProvider.js +0 -148
- package/dist/likec4diagram/state/aligners.d.ts +0 -45
- package/dist/likec4diagram/state/aligners.js +0 -292
- package/dist/likec4diagram/state/assign.d.ts +0 -26
- package/dist/likec4diagram/state/assign.js +0 -97
- package/dist/likec4diagram/state/createViewChange.d.ts +0 -3
- package/dist/likec4diagram/state/createViewChange.js +0 -71
- package/dist/likec4diagram/state/diagram-api.d.ts +0 -162
- package/dist/likec4diagram/state/diagram-api.js +0 -338
- package/dist/likec4diagram/state/hotkeyActor.d.ts +0 -7
- package/dist/likec4diagram/state/hotkeyActor.js +0 -56
- package/dist/likec4diagram/state/inspector.d.ts +0 -4
- package/dist/likec4diagram/state/machine.actions.d.ts +0 -2560
- package/dist/likec4diagram/state/machine.actions.js +0 -790
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +0 -579
- package/dist/likec4diagram/state/machine.actions.layout.js +0 -174
- package/dist/likec4diagram/state/machine.d.ts +0 -161
- package/dist/likec4diagram/state/machine.js +0 -79
- package/dist/likec4diagram/state/machine.setup.d.ts +0 -445
- package/dist/likec4diagram/state/machine.setup.js +0 -167
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +0 -208
- package/dist/likec4diagram/state/machine.state.initializing.js +0 -58
- package/dist/likec4diagram/state/machine.state.navigating.d.ts +0 -14
- package/dist/likec4diagram/state/machine.state.navigating.js +0 -199
- package/dist/likec4diagram/state/machine.state.ready.d.ts +0 -4360
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +0 -696
- package/dist/likec4diagram/state/machine.state.ready.focused.js +0 -74
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +0 -585
- package/dist/likec4diagram/state/machine.state.ready.idle.js +0 -106
- package/dist/likec4diagram/state/machine.state.ready.js +0 -135
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +0 -128
- package/dist/likec4diagram/state/machine.state.ready.printing.js +0 -40
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +0 -944
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +0 -260
- package/dist/likec4diagram/state/mediaPrintActor.d.ts +0 -12
- package/dist/likec4diagram/state/mediaPrintActor.js +0 -22
- package/dist/likec4diagram/state/persistence.d.ts +0 -5
- package/dist/likec4diagram/state/persistence.js +0 -22
- package/dist/likec4diagram/state/types.d.ts +0 -23
- package/dist/likec4diagram/state/utils.d.ts +0 -73
- package/dist/likec4diagram/state/utils.js +0 -166
- package/dist/likec4diagram/types.d.ts +0 -190
- package/dist/likec4diagram/ui/FloatingSequenceActors.d.ts +0 -6
- package/dist/likec4diagram/ui/FloatingSequenceActors.js +0 -156
- package/dist/likec4diagram/ui/LayoutDriftFrame.d.ts +0 -2
- package/dist/likec4diagram/ui/LayoutDriftFrame.js +0 -61
- package/dist/likec4diagram/ui/index.d.ts +0 -4
- package/dist/likec4diagram/ui/notation/NotationPanel.css.d.ts +0 -7
- package/dist/likec4diagram/ui/notation/NotationPanel.css.js +0 -67
- package/dist/likec4diagram/ui/notation/NotationPanel.d.ts +0 -2
- package/dist/likec4diagram/ui/notation/NotationPanel.js +0 -187
- package/dist/likec4diagram/ui/notation/index.d.ts +0 -1
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.d.ts +0 -9
- package/dist/likec4diagram/ui/sequence-outline/ActiveTrail.js +0 -81
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.d.ts +0 -11
- package/dist/likec4diagram/ui/sequence-outline/FlowRow.js +0 -70
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.d.ts +0 -2
- package/dist/likec4diagram/ui/sequence-outline/OutlineBody.js +0 -106
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.d.ts +0 -2
- package/dist/likec4diagram/ui/sequence-outline/OutlineHeader.js +0 -140
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.d.ts +0 -17
- package/dist/likec4diagram/ui/sequence-outline/OutlineNodes.js +0 -83
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.d.ts +0 -6
- package/dist/likec4diagram/ui/sequence-outline/SequenceOutlinePanel.js +0 -64
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.d.ts +0 -8
- package/dist/likec4diagram/ui/sequence-outline/StepBadge.js +0 -52
- package/dist/likec4diagram/ui/sequence-outline/StepRow.d.ts +0 -7
- package/dist/likec4diagram/ui/sequence-outline/StepRow.js +0 -190
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.d.ts +0 -238
- package/dist/likec4diagram/ui/sequence-outline/StoreProvider.js +0 -94
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.d.ts +0 -21
- package/dist/likec4diagram/ui/sequence-outline/depth-of-field.js +0 -71
- package/dist/likec4diagram/ui/sequence-outline/index.d.ts +0 -2
- package/dist/likec4diagram/ui/sequence-outline/motion.d.ts +0 -13
- package/dist/likec4diagram/ui/sequence-outline/motion.js +0 -21
- package/dist/likec4diagram/ui/sequence-outline/presentation.d.ts +0 -10
- package/dist/likec4diagram/ui/sequence-outline/presentation.js +0 -80
- package/dist/likec4diagram/ui/sequence-outline/tree.d.ts +0 -9
- package/dist/likec4diagram/ui/sequence-outline/tree.js +0 -67
- package/dist/likec4diagram/ui/sequence-outline/types.d.ts +0 -38
- package/dist/likec4diagram/ui/sequence-outline/types.js +0 -12
- package/dist/likec4diagram/useLayoutConstraints.d.ts +0 -54
- package/dist/likec4diagram/useLayoutConstraints.js +0 -409
- package/dist/likec4diagram/xyflow-diagram/diagram-view.d.ts +0 -18
- package/dist/likec4diagram/xyflow-diagram/diagram-view.js +0 -273
- package/dist/likec4diagram/xyflow-sequence/_types.d.ts +0 -91
- package/dist/likec4diagram/xyflow-sequence/const.d.ts +0 -17
- package/dist/likec4diagram/xyflow-sequence/const.js +0 -13
- package/dist/likec4diagram/xyflow-sequence/layouter.d.ts +0 -70
- package/dist/likec4diagram/xyflow-sequence/layouter.js +0 -564
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.d.ts +0 -17
- package/dist/likec4diagram/xyflow-sequence/sequence-view-to-xy.js +0 -287
- package/dist/likec4diagram/xyflow-sequence/sequence-view.d.ts +0 -2
- package/dist/likec4diagram/xyflow-sequence/sequence-view.js +0 -144
- package/dist/likec4diagram/xyflow-sequence/utils.d.ts +0 -22
- package/dist/likec4diagram/xyflow-sequence/utils.js +0 -95
- package/dist/navigationpanel/NavigationPanel.d.ts +0 -5
- package/dist/navigationpanel/NavigationPanel.js +0 -121
- package/dist/navigationpanel/NavigationPanelControls.d.ts +0 -2
- package/dist/navigationpanel/NavigationPanelControls.js +0 -167
- package/dist/navigationpanel/NavigationPanelDropdown.d.ts +0 -2
- package/dist/navigationpanel/NavigationPanelDropdown.js +0 -372
- package/dist/navigationpanel/_common.d.ts +0 -9
- package/dist/navigationpanel/_common.js +0 -49
- package/dist/navigationpanel/actor.actions.d.ts +0 -19
- package/dist/navigationpanel/actor.actions.js +0 -46
- package/dist/navigationpanel/actor.d.ts +0 -38
- package/dist/navigationpanel/actor.js +0 -93
- package/dist/navigationpanel/actor.setup.d.ts +0 -98
- package/dist/navigationpanel/actor.setup.js +0 -32
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +0 -5
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +0 -66
- package/dist/navigationpanel/comparepanel/ComparePanel.d.ts +0 -2
- package/dist/navigationpanel/comparepanel/ComparePanel.js +0 -137
- package/dist/navigationpanel/comparepanel/ComparePanelControls.d.ts +0 -1
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +0 -54
- package/dist/navigationpanel/comparepanel/DriftsSummary.d.ts +0 -1
- package/dist/navigationpanel/comparepanel/DriftsSummary.js +0 -220
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.d.ts +0 -5
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +0 -35
- package/dist/navigationpanel/comparepanel/index.d.ts +0 -1
- package/dist/navigationpanel/controls/LayoutWarning.d.ts +0 -2
- package/dist/navigationpanel/controls/LayoutWarning.js +0 -89
- package/dist/navigationpanel/controls/LogoButton.d.ts +0 -1
- package/dist/navigationpanel/controls/LogoButton.js +0 -48
- package/dist/navigationpanel/controls/NavigationButtons.d.ts +0 -1
- package/dist/navigationpanel/controls/NavigationButtons.js +0 -37
- package/dist/navigationpanel/controls/OpenSource.d.ts +0 -1
- package/dist/navigationpanel/controls/OpenSource.js +0 -26
- package/dist/navigationpanel/controls/SearchControl.d.ts +0 -1
- package/dist/navigationpanel/controls/SearchControl.js +0 -68
- package/dist/navigationpanel/controls/ToggleReadonly.d.ts +0 -4
- package/dist/navigationpanel/controls/ToggleReadonly.js +0 -69
- package/dist/navigationpanel/controls/ViewDetailsButton.d.ts +0 -5
- package/dist/navigationpanel/controls/ViewDetailsButton.js +0 -121
- package/dist/navigationpanel/controls/index.d.ts +0 -7
- package/dist/navigationpanel/dropdown/ProjectsMenu.d.ts +0 -2
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +0 -83
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.d.ts +0 -4
- package/dist/navigationpanel/editorpanel/ApplySemanticLayout.js +0 -37
- package/dist/navigationpanel/editorpanel/CenterCamera.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/CenterCamera.js +0 -19
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +0 -188
- package/dist/navigationpanel/editorpanel/EditorPanel.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/EditorPanel.js +0 -62
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.d.ts +0 -4
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +0 -134
- package/dist/navigationpanel/editorpanel/ToggleReadonly.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/ToggleReadonly.js +0 -22
- package/dist/navigationpanel/editorpanel/_common.d.ts +0 -3
- package/dist/navigationpanel/editorpanel/_common.js +0 -14
- package/dist/navigationpanel/editorpanel/index.d.ts +0 -1
- package/dist/navigationpanel/editorpanel/styles.d.ts +0 -8
- package/dist/navigationpanel/editorpanel/styles.js +0 -55
- package/dist/navigationpanel/hooks.d.ts +0 -39
- package/dist/navigationpanel/hooks.js +0 -30
- package/dist/navigationpanel/index.d.ts +0 -1
- package/dist/navigationpanel/styles.css.d.ts +0 -16
- package/dist/navigationpanel/styles.css.js +0 -21
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.d.ts +0 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +0 -113
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +0 -293
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +0 -80
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.d.ts +0 -1
- package/dist/navigationpanel/walkthrough/DynamicViewModeSwitcher.js +0 -49
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.css.d.ts +0 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.d.ts +0 -2
- package/dist/navigationpanel/walkthrough/WalkthroughPanel.js +0 -79
- package/dist/navigationpanel/walkthrough/index.d.ts +0 -2
- package/dist/navigationpanel/windows/ViewDetailsWindow.d.ts +0 -1
- package/dist/navigationpanel/windows/ViewDetailsWindow.js +0 -379
- package/dist/overlays/Overlays.d.ts +0 -6
- package/dist/overlays/Overlays.js +0 -111
- package/dist/overlays/element-details/ElementDetails.d.ts +0 -6
- package/dist/overlays/element-details/ElementDetails.js +0 -25
- package/dist/overlays/element-details/ElementDetailsCard.css.d.ts +0 -16
- package/dist/overlays/element-details/ElementDetailsCard.css.js +0 -218
- package/dist/overlays/element-details/ElementDetailsCard.d.ts +0 -11
- package/dist/overlays/element-details/ElementDetailsCard.js +0 -528
- package/dist/overlays/element-details/MetadataValue.d.ts +0 -10
- package/dist/overlays/element-details/MetadataValue.js +0 -220
- package/dist/overlays/element-details/TabPanelDeployments.css.d.ts +0 -4
- package/dist/overlays/element-details/TabPanelDeployments.css.js +0 -35
- package/dist/overlays/element-details/TabPanelDeployments.d.ts +0 -7
- package/dist/overlays/element-details/TabPanelDeployments.js +0 -188
- package/dist/overlays/element-details/TabPanelRelationships.css.d.ts +0 -5
- package/dist/overlays/element-details/TabPanelRelationships.css.js +0 -67
- package/dist/overlays/element-details/TabPanelRelationships.d.ts +0 -7
- package/dist/overlays/element-details/TabPanelRelationships.js +0 -159
- package/dist/overlays/element-details/TabPanelStructure.css.d.ts +0 -2
- package/dist/overlays/element-details/TabPanelStructure.css.js +0 -28
- package/dist/overlays/element-details/TabPanelStructure.d.ts +0 -25
- package/dist/overlays/element-details/TabPanelStructure.js +0 -94
- package/dist/overlays/element-details/actor.d.ts +0 -34
- package/dist/overlays/element-details/actor.js +0 -48
- package/dist/overlays/element-details/actorContext.d.ts +0 -7
- package/dist/overlays/element-details/actorContext.js +0 -15
- package/dist/overlays/hooks.d.ts +0 -30
- package/dist/overlays/hooks.js +0 -5
- package/dist/overlays/overlay/Overlay.d.ts +0 -51
- package/dist/overlays/overlay/Overlay.js +0 -115
- package/dist/overlays/overlaysActor.d.ts +0 -49
- package/dist/overlays/overlaysActor.js +0 -229
- package/dist/overlays/relationship-details/RelationshipDetails.d.ts +0 -5
- package/dist/overlays/relationship-details/RelationshipDetails.js +0 -282
- package/dist/overlays/relationship-details/SelectEdge.css.d.ts +0 -8
- package/dist/overlays/relationship-details/SelectEdge.css.js +0 -75
- package/dist/overlays/relationship-details/SelectEdge.d.ts +0 -5
- package/dist/overlays/relationship-details/SelectEdge.js +0 -148
- package/dist/overlays/relationship-details/_types.d.ts +0 -57
- package/dist/overlays/relationship-details/actor.d.ts +0 -109
- package/dist/overlays/relationship-details/actor.js +0 -248
- package/dist/overlays/relationship-details/compute.d.ts +0 -13
- package/dist/overlays/relationship-details/compute.js +0 -114
- package/dist/overlays/relationship-details/custom/ElementActions.d.ts +0 -2
- package/dist/overlays/relationship-details/custom/ElementActions.js +0 -45
- package/dist/overlays/relationship-details/custom/edgeTypes.d.ts +0 -3
- package/dist/overlays/relationship-details/custom/edgeTypes.js +0 -45
- package/dist/overlays/relationship-details/custom/index.d.ts +0 -2
- package/dist/overlays/relationship-details/custom/nodeTypes.d.ts +0 -9
- package/dist/overlays/relationship-details/custom/nodeTypes.js +0 -99
- package/dist/overlays/relationship-details/custom/styles.css.d.ts +0 -1
- package/dist/overlays/relationship-details/hooks.d.ts +0 -40
- package/dist/overlays/relationship-details/hooks.js +0 -52
- package/dist/overlays/relationship-details/layout-to-xyflow.d.ts +0 -12
- package/dist/overlays/relationship-details/layout-to-xyflow.js +0 -122
- package/dist/overlays/relationship-details/layout.d.ts +0 -25
- package/dist/overlays/relationship-details/layout.js +0 -285
- package/dist/overlays/relationships-browser/RelationshipsBrowser.d.ts +0 -11
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +0 -339
- package/dist/overlays/relationships-browser/SelectElement.css.d.ts +0 -3
- package/dist/overlays/relationships-browser/SelectElement.css.js +0 -13
- package/dist/overlays/relationships-browser/SelectElement.d.ts +0 -2
- package/dist/overlays/relationships-browser/SelectElement.js +0 -199
- package/dist/overlays/relationships-browser/_types.d.ts +0 -64
- package/dist/overlays/relationships-browser/actor.d.ts +0 -113
- package/dist/overlays/relationships-browser/actor.js +0 -376
- package/dist/overlays/relationships-browser/const.d.ts +0 -6
- package/dist/overlays/relationships-browser/const.js +0 -9
- package/dist/overlays/relationships-browser/custom/ElementActions.d.ts +0 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.js +0 -63
- package/dist/overlays/relationships-browser/custom/EmptyNode.d.ts +0 -2
- package/dist/overlays/relationships-browser/custom/EmptyNode.js +0 -25
- package/dist/overlays/relationships-browser/custom/edgeTypes.d.ts +0 -3
- package/dist/overlays/relationships-browser/custom/edgeTypes.js +0 -68
- package/dist/overlays/relationships-browser/custom/index.d.ts +0 -3
- package/dist/overlays/relationships-browser/custom/nodeTypes.d.ts +0 -9
- package/dist/overlays/relationships-browser/custom/nodeTypes.js +0 -106
- package/dist/overlays/relationships-browser/hooks.d.ts +0 -18
- package/dist/overlays/relationships-browser/hooks.js +0 -56
- package/dist/overlays/relationships-browser/layout.d.ts +0 -29
- package/dist/overlays/relationships-browser/layout.js +0 -426
- package/dist/overlays/relationships-browser/useViewToNodesEdges.d.ts +0 -10
- package/dist/overlays/relationships-browser/useViewToNodesEdges.js +0 -144
- package/dist/overlays/types.d.ts +0 -28
- package/dist/projects-overview/ProjectsOverview.d.ts +0 -13
- package/dist/projects-overview/ProjectsOverview.js +0 -59
- package/dist/projects-overview/ProjectsOverviewXY.d.ts +0 -13
- package/dist/projects-overview/ProjectsOverviewXY.js +0 -109
- package/dist/projects-overview/_types.d.ts +0 -34
- package/dist/projects-overview/actor.d.ts +0 -115
- package/dist/projects-overview/actor.js +0 -266
- package/dist/projects-overview/context.d.ts +0 -4
- package/dist/projects-overview/context.js +0 -11
- package/dist/projects-overview/custom/edgeTypes.d.ts +0 -3
- package/dist/projects-overview/custom/edgeTypes.js +0 -24
- package/dist/projects-overview/custom/index.d.ts +0 -2
- package/dist/projects-overview/custom/nodeTypes.d.ts +0 -2
- package/dist/projects-overview/custom/nodeTypes.js +0 -41
- package/dist/projects-overview/custom/styles.css.d.ts +0 -1
- package/dist/projects-overview/hooks.d.ts +0 -5
- package/dist/projects-overview/hooks.js +0 -15
- package/dist/projects-overview/index.d.ts +0 -1
- package/dist/projects-overview/layouted-to-xyflow.d.ts +0 -6
- package/dist/projects-overview/layouted-to-xyflow.js +0 -53
- package/dist/projects-overview/panel/ProjectsOverviewPanel.d.ts +0 -1
- package/dist/projects-overview/panel/ProjectsOverviewPanel.js +0 -9
- package/dist/projects-overview/persistence.d.ts +0 -5
- package/dist/projects-overview/persistence.js +0 -24
- package/dist/search/Search.d.ts +0 -13
- package/dist/search/Search.js +0 -199
- package/dist/search/SearchContext.d.ts +0 -21
- package/dist/search/SearchContext.js +0 -21
- package/dist/search/XStateSearchAdapter.d.ts +0 -5
- package/dist/search/XStateSearchAdapter.js +0 -70
- package/dist/search/components/ElementsColumn.css.d.ts +0 -10
- package/dist/search/components/ElementsColumn.css.js +0 -52
- package/dist/search/components/ElementsColumn.d.ts +0 -2
- package/dist/search/components/ElementsColumn.js +0 -262
- package/dist/search/components/PickView.d.ts +0 -4
- package/dist/search/components/PickView.js +0 -118
- package/dist/search/components/SearchByTags.d.ts +0 -1
- package/dist/search/components/SearchByTags.js +0 -79
- package/dist/search/components/SearchInput.d.ts +0 -2
- package/dist/search/components/SearchInput.js +0 -191
- package/dist/search/components/ViewsColum.d.ts +0 -13
- package/dist/search/components/ViewsColum.js +0 -159
- package/dist/search/components/ViewsColumn.css.d.ts +0 -3
- package/dist/search/components/ViewsColumn.css.js +0 -15
- package/dist/search/components/_shared.css.d.ts +0 -4
- package/dist/search/components/_shared.css.js +0 -121
- package/dist/search/components/styles.css.d.ts +0 -6
- package/dist/search/components/styles.css.js +0 -54
- package/dist/search/components/utils.d.ts +0 -11
- package/dist/search/components/utils.js +0 -55
- package/dist/search/hooks.d.ts +0 -3
- package/dist/search/hooks.js +0 -16
- package/dist/search/searchActor.d.ts +0 -37
- package/dist/search/searchActor.js +0 -100
- package/dist/shadowroot/ShadowRoot.d.ts +0 -17
- package/dist/shadowroot/ShadowRoot.js +0 -197
- package/dist/shadowroot/index.d.ts +0 -1
- package/dist/styles-font2.js +0 -4
- package/dist/styles2.js +0 -4
- package/dist/utils/css.d.ts +0 -1
- package/dist/utils/defineActors.d.ts +0 -21
- package/dist/utils/defineActors.js +0 -13
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.js +0 -6
- package/dist/utils/readableText.d.ts +0 -11
- package/dist/utils/readableText.js +0 -18
- package/dist/utils/roundDpr.d.ts +0 -1
- package/dist/utils/roundDpr.js +0 -24
- package/dist/utils/view-bounds.d.ts +0 -9
- package/dist/utils/view-bounds.js +0 -55
- package/dist/utils/xyflow.d.ts +0 -88
- package/dist/utils/xyflow.js +0 -161
- package/src/styles-font.css +0 -114
- package/src/styles-min.css +0 -2
- package/src/styles-xyflow.css +0 -1
- package/src/styles.css +0 -3
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { css } from "@likec4/styles/css";
|
|
2
|
-
import { IconAlertTriangle, IconArrowFork, IconArrowGuide, IconCornerDownRight, IconPlayerStop, IconRepeat } from "@tabler/icons-react";
|
|
3
|
-
//#region src/likec4diagram/ui/sequence-outline/presentation.ts
|
|
4
|
-
/**
|
|
5
|
-
* PandaCSS `colorPalette` classes for each sub-flow palette.
|
|
6
|
-
* Declared as literals so the static analyzer can extract them.
|
|
7
|
-
*/
|
|
8
|
-
var palette = {
|
|
9
|
-
loop: css({ colorPalette: "subflow.loop" }),
|
|
10
|
-
opt: css({ colorPalette: "subflow.opt" }),
|
|
11
|
-
par: css({ colorPalette: "subflow.par" }),
|
|
12
|
-
break: css({ colorPalette: "subflow.break" }),
|
|
13
|
-
alt: css({ colorPalette: "subflow.alt" }),
|
|
14
|
-
try: css({ colorPalette: "subflow.try" })
|
|
15
|
-
};
|
|
16
|
-
/** How each sub-flow operator is labelled and coloured in the outline. */
|
|
17
|
-
var flowPresentation = {
|
|
18
|
-
loop: {
|
|
19
|
-
paletteClass: palette.loop,
|
|
20
|
-
tag: "loop",
|
|
21
|
-
Icon: IconRepeat
|
|
22
|
-
},
|
|
23
|
-
opt: {
|
|
24
|
-
paletteClass: palette.opt,
|
|
25
|
-
tag: "opt",
|
|
26
|
-
Icon: IconArrowGuide
|
|
27
|
-
},
|
|
28
|
-
par: {
|
|
29
|
-
paletteClass: palette.par,
|
|
30
|
-
tag: "par",
|
|
31
|
-
Icon: IconArrowFork
|
|
32
|
-
},
|
|
33
|
-
break: {
|
|
34
|
-
paletteClass: palette.break,
|
|
35
|
-
tag: "break",
|
|
36
|
-
Icon: IconPlayerStop
|
|
37
|
-
},
|
|
38
|
-
alt: {
|
|
39
|
-
paletteClass: palette.alt,
|
|
40
|
-
tag: "alt",
|
|
41
|
-
Icon: IconArrowFork
|
|
42
|
-
},
|
|
43
|
-
"alt-when": {
|
|
44
|
-
paletteClass: palette.alt,
|
|
45
|
-
tag: "when",
|
|
46
|
-
Icon: IconCornerDownRight
|
|
47
|
-
},
|
|
48
|
-
"alt-else": {
|
|
49
|
-
paletteClass: palette.alt,
|
|
50
|
-
tag: "else",
|
|
51
|
-
Icon: IconCornerDownRight
|
|
52
|
-
},
|
|
53
|
-
"alt-if": {
|
|
54
|
-
paletteClass: palette.alt,
|
|
55
|
-
tag: "if",
|
|
56
|
-
Icon: IconCornerDownRight
|
|
57
|
-
},
|
|
58
|
-
try: {
|
|
59
|
-
paletteClass: palette.try,
|
|
60
|
-
tag: "try",
|
|
61
|
-
Icon: IconAlertTriangle
|
|
62
|
-
},
|
|
63
|
-
"try-block": {
|
|
64
|
-
paletteClass: palette.try,
|
|
65
|
-
tag: "block",
|
|
66
|
-
Icon: IconCornerDownRight
|
|
67
|
-
},
|
|
68
|
-
"try-catch": {
|
|
69
|
-
paletteClass: palette.break,
|
|
70
|
-
tag: "catch",
|
|
71
|
-
Icon: IconCornerDownRight
|
|
72
|
-
},
|
|
73
|
-
"try-finally": {
|
|
74
|
-
paletteClass: palette.break,
|
|
75
|
-
tag: "finally",
|
|
76
|
-
Icon: IconCornerDownRight
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
//#endregion
|
|
80
|
-
export { flowPresentation };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DynamicViewFlow, StepPath } from '@likec4/core/types';
|
|
2
|
-
import { OutlineTreeNodeFlow, OutlineTreeNodes } from './types';
|
|
3
|
-
/** Flattens the walkthrough flow into the nested step/sub-flow tree the outline renders. */
|
|
4
|
-
export declare function buildTree(flow: DynamicViewFlow): OutlineTreeNodes;
|
|
5
|
-
export declare function useTreeData(flow: DynamicViewFlow): OutlineTreeNodes;
|
|
6
|
-
/** The first step inside a fragment — where the breadcrumb jumps to. */
|
|
7
|
-
export declare function firstStepOf(nodes: OutlineTreeNodes): StepPath | null;
|
|
8
|
-
/** The chain of sub-flows the active step is nested inside, outermost first. */
|
|
9
|
-
export declare function collectTrail(nodes: OutlineTreeNodes, ancestors: readonly string[]): OutlineTreeNodeFlow[];
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { isOutlineFlowNode } from "./types.js";
|
|
3
|
-
import "react";
|
|
4
|
-
//#region src/likec4diagram/ui/sequence-outline/tree.ts
|
|
5
|
-
/** Flattens the walkthrough flow into the nested step/sub-flow tree the outline renders. */
|
|
6
|
-
function buildTree(flow) {
|
|
7
|
-
const tree = [];
|
|
8
|
-
let currentFlow = tree;
|
|
9
|
-
flow.walk({
|
|
10
|
-
step: ({ step, stepnum, source, target, edge }) => {
|
|
11
|
-
currentFlow.push({
|
|
12
|
-
label: edge.label ?? `${source.title} → ${target.title}`,
|
|
13
|
-
value: step,
|
|
14
|
-
nodeProps: {
|
|
15
|
-
type: "step",
|
|
16
|
-
stepnum: stepnum.global,
|
|
17
|
-
source: source.title,
|
|
18
|
-
target: target.title,
|
|
19
|
-
label: edge.label,
|
|
20
|
-
notes: edge.notes ?? null,
|
|
21
|
-
edge
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
subflow: ({ subflow }) => {
|
|
26
|
-
const node = {
|
|
27
|
-
label: subflow.title ?? subflow._type,
|
|
28
|
-
value: subflow.id,
|
|
29
|
-
nodeProps: {
|
|
30
|
-
type: subflow._type,
|
|
31
|
-
title: subflow.title
|
|
32
|
-
},
|
|
33
|
-
children: []
|
|
34
|
-
};
|
|
35
|
-
const parent = currentFlow;
|
|
36
|
-
parent.push(node);
|
|
37
|
-
currentFlow = node.children;
|
|
38
|
-
return () => {
|
|
39
|
-
currentFlow = parent;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return tree;
|
|
44
|
-
}
|
|
45
|
-
/** The first step inside a fragment — where the breadcrumb jumps to. */
|
|
46
|
-
function firstStepOf(nodes) {
|
|
47
|
-
for (const node of nodes) if (isOutlineFlowNode(node)) {
|
|
48
|
-
const found = firstStepOf(node.children);
|
|
49
|
-
if (found) return found;
|
|
50
|
-
} else return node.value;
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
/** The chain of sub-flows the active step is nested inside, outermost first. */
|
|
54
|
-
function collectTrail(nodes, ancestors) {
|
|
55
|
-
const trail = [];
|
|
56
|
-
const walk = (list) => {
|
|
57
|
-
for (const node of list) if (isOutlineFlowNode(node) && ancestors.includes(node.value)) {
|
|
58
|
-
trail.push(node);
|
|
59
|
-
walk(node.children);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
walk(nodes);
|
|
64
|
-
return trail;
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
export { buildTree, collectTrail, firstStepOf };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { DiagramEdge, DynamicViewFlow, scalar, StepPath } from '@likec4/core/types';
|
|
2
|
-
import { TreeNodeData } from '@mantine/core';
|
|
3
|
-
import { DiagramContext } from '../../state/types';
|
|
4
|
-
/** Sub-flows the user has folded away, keyed by {@link StepPath}. */
|
|
5
|
-
export type CollapsedFlows = DiagramContext['collapsedSequenceFlows'];
|
|
6
|
-
export interface OutlineTreeNodeStep extends TreeNodeData {
|
|
7
|
-
readonly value: StepPath;
|
|
8
|
-
readonly nodeProps: Readonly<{
|
|
9
|
-
readonly type: 'step';
|
|
10
|
-
/** Global step number (1-based) across all flows */
|
|
11
|
-
readonly stepnum: number;
|
|
12
|
-
/** Title of the source actor */
|
|
13
|
-
readonly source: string;
|
|
14
|
-
/** Title of the target actor */
|
|
15
|
-
readonly target: string;
|
|
16
|
-
/** Relationship label, if any */
|
|
17
|
-
readonly label: string | null;
|
|
18
|
-
readonly notes: scalar.MarkdownOrString | null;
|
|
19
|
-
readonly edge: DiagramEdge;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
export interface OutlineTreeNodeFlow extends TreeNodeData {
|
|
23
|
-
readonly value: StepPath;
|
|
24
|
-
readonly nodeProps: Readonly<{
|
|
25
|
-
readonly type: DynamicViewFlow.SubFlowType;
|
|
26
|
-
/** Friendly title of the sub-flow, if defined */
|
|
27
|
-
readonly title: string | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
children: OutlineTreeNodeData[];
|
|
30
|
-
}
|
|
31
|
-
export type OutlineTreeNodeData = OutlineTreeNodeStep | OutlineTreeNodeFlow;
|
|
32
|
-
export type OutlineTreeNodes = OutlineTreeNodeData[];
|
|
33
|
-
/**
|
|
34
|
-
* Type guard narrowing a tree node to a sub-flow node.
|
|
35
|
-
* (The discriminant lives on the nested `nodeProps.type`, so an explicit guard
|
|
36
|
-
* is needed for reliable narrowing.)
|
|
37
|
-
*/
|
|
38
|
-
export declare function isOutlineFlowNode(node: OutlineTreeNodeData): node is OutlineTreeNodeFlow;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region src/likec4diagram/ui/sequence-outline/types.ts
|
|
3
|
-
/**
|
|
4
|
-
* Type guard narrowing a tree node to a sub-flow node.
|
|
5
|
-
* (The discriminant lives on the nested `nodeProps.type`, so an explicit guard
|
|
6
|
-
* is needed for reliable narrowing.)
|
|
7
|
-
*/
|
|
8
|
-
function isOutlineFlowNode(node) {
|
|
9
|
-
return node.nodeProps.type !== "step";
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { isOutlineFlowNode };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { NonEmptyArray } from '@likec4/core';
|
|
2
|
-
import { Dimensions, XYPoint, BBox } from '@likec4/core/geometry';
|
|
3
|
-
import { InternalNode as RFInternalNode, OnNodeDrag } from '@xyflow/react';
|
|
4
|
-
import { XYStoreApi } from '../hooks';
|
|
5
|
-
import { Types } from './types';
|
|
6
|
-
type InternalNode = RFInternalNode<Types.AnyNode>;
|
|
7
|
-
declare abstract class Rect {
|
|
8
|
-
static readonly LeftPadding = 42;
|
|
9
|
-
static readonly RightPadding = 42;
|
|
10
|
-
static readonly TopPadding = 60;
|
|
11
|
-
static readonly BottomPadding = 42;
|
|
12
|
-
id: string;
|
|
13
|
-
minX: number;
|
|
14
|
-
minY: number;
|
|
15
|
-
maxX: number;
|
|
16
|
-
maxY: number;
|
|
17
|
-
readonly initial: BBox;
|
|
18
|
-
get positionAbsolute(): XYPoint;
|
|
19
|
-
set positionAbsolute(pos: XYPoint);
|
|
20
|
-
get dimensions(): Dimensions;
|
|
21
|
-
get diff(): XYPoint;
|
|
22
|
-
get isMoved(): boolean;
|
|
23
|
-
get isResized(): boolean;
|
|
24
|
-
get position(): XYPoint;
|
|
25
|
-
protected abstract parent: CompoundRect | null;
|
|
26
|
-
constructor(xynode: InternalNode, parent?: CompoundRect | null);
|
|
27
|
-
}
|
|
28
|
-
declare class CompoundRect extends Rect {
|
|
29
|
-
readonly parent: CompoundRect | null;
|
|
30
|
-
readonly children: Rect[];
|
|
31
|
-
constructor(xynode: InternalNode, parent?: CompoundRect | null);
|
|
32
|
-
}
|
|
33
|
-
declare class Leaf extends Rect {
|
|
34
|
-
readonly parent: CompoundRect | null;
|
|
35
|
-
constructor(xynode: InternalNode, parent?: CompoundRect | null);
|
|
36
|
-
}
|
|
37
|
-
export declare function createLayoutConstraints(xyflowApi: XYStoreApi, editingNodeIds: NonEmptyArray<string>): {
|
|
38
|
-
rects: ReadonlyMap<string, Leaf | CompoundRect>;
|
|
39
|
-
onMove: () => void;
|
|
40
|
-
updateXYFlow: () => void;
|
|
41
|
-
hasChanges: () => boolean;
|
|
42
|
-
cancelPending: () => void;
|
|
43
|
-
flushPending: () => void;
|
|
44
|
-
};
|
|
45
|
-
type LayoutConstraints = {
|
|
46
|
-
onNodeDragStart: OnNodeDrag<Types.Node>;
|
|
47
|
-
onNodeDrag: OnNodeDrag<Types.Node>;
|
|
48
|
-
onNodeDragStop: OnNodeDrag<Types.Node>;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Keeps the layout constraints (parent nodes and children) when dragging a node
|
|
52
|
-
*/
|
|
53
|
-
export declare function useLayoutConstraints(): LayoutConstraints;
|
|
54
|
-
export {};
|
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
import "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { useXYStoreApi } from "../hooks/useXYFlow.js";
|
|
3
|
-
import { bezierControlPoints, nodeToRect as nodeToRect$1 } from "../utils/xyflow.js";
|
|
4
|
-
import { useDiagram } from "../hooks/safeContext.js";
|
|
5
|
-
import { vector as vector$1 } from "../utils/index.js";
|
|
6
|
-
import { useMemo, useRef } from "react";
|
|
7
|
-
import { clamp, difference, filter, flatMap, hasAtLeast, map, pipe, unique } from "remeda";
|
|
8
|
-
import { DefaultMap, nonNullable } from "@likec4/core";
|
|
9
|
-
import { BBox as BBox$1 } from "@likec4/core/geometry";
|
|
10
|
-
import { invariant as invariant$1, isome } from "@likec4/core/utils";
|
|
11
|
-
import { getNodeDimensions } from "@xyflow/system";
|
|
12
|
-
import { produce } from "immer";
|
|
13
|
-
//#region src/likec4diagram/useLayoutConstraints.ts
|
|
14
|
-
var Rect = class {
|
|
15
|
-
static LeftPadding = 42;
|
|
16
|
-
static RightPadding = 42;
|
|
17
|
-
static TopPadding = 60;
|
|
18
|
-
static BottomPadding = 42;
|
|
19
|
-
id;
|
|
20
|
-
minX = Infinity;
|
|
21
|
-
minY = Infinity;
|
|
22
|
-
maxX = -Infinity;
|
|
23
|
-
maxY = -Infinity;
|
|
24
|
-
initial;
|
|
25
|
-
get positionAbsolute() {
|
|
26
|
-
return {
|
|
27
|
-
x: this.minX,
|
|
28
|
-
y: this.minY
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
set positionAbsolute(pos) {
|
|
32
|
-
const x = Math.trunc(pos.x);
|
|
33
|
-
const y = Math.trunc(pos.y);
|
|
34
|
-
this.maxX += x - this.minX;
|
|
35
|
-
this.maxY += y - this.minY;
|
|
36
|
-
this.minX = x;
|
|
37
|
-
this.minY = y;
|
|
38
|
-
}
|
|
39
|
-
get dimensions() {
|
|
40
|
-
return {
|
|
41
|
-
width: Math.ceil(this.maxX - this.minX),
|
|
42
|
-
height: Math.ceil(this.maxY - this.minY)
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
get diff() {
|
|
46
|
-
const { x, y } = this.positionAbsolute;
|
|
47
|
-
return {
|
|
48
|
-
x: Math.trunc(x - this.initial.x),
|
|
49
|
-
y: Math.trunc(y - this.initial.y)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
get isMoved() {
|
|
53
|
-
const diff = this.diff;
|
|
54
|
-
return diff.x !== 0 || diff.y !== 0;
|
|
55
|
-
}
|
|
56
|
-
get isResized() {
|
|
57
|
-
const dim = this.dimensions;
|
|
58
|
-
return dim.width !== this.initial.width || dim.height !== this.initial.height;
|
|
59
|
-
}
|
|
60
|
-
get position() {
|
|
61
|
-
const positionAbsolute = this.positionAbsolute;
|
|
62
|
-
if (!this.parent) return positionAbsolute;
|
|
63
|
-
const parentPosition = this.parent.positionAbsolute;
|
|
64
|
-
return {
|
|
65
|
-
x: positionAbsolute.x - parentPosition.x,
|
|
66
|
-
y: positionAbsolute.y - parentPosition.y
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
constructor(xynode, parent = null) {
|
|
70
|
-
this.id = xynode.id;
|
|
71
|
-
this.positionAbsolute = !parent ? xynode.position : {
|
|
72
|
-
x: xynode.position.x + parent.minX,
|
|
73
|
-
y: xynode.position.y + parent.minY
|
|
74
|
-
};
|
|
75
|
-
const { width, height } = getNodeDimensions(xynode);
|
|
76
|
-
this.maxX = this.minX + Math.ceil(width);
|
|
77
|
-
this.maxY = this.minY + Math.ceil(height);
|
|
78
|
-
this.initial = {
|
|
79
|
-
x: this.minX,
|
|
80
|
-
y: this.minY,
|
|
81
|
-
width: Math.ceil(width),
|
|
82
|
-
height: Math.ceil(height)
|
|
83
|
-
};
|
|
84
|
-
if (parent) parent.children.push(this);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
var CompoundRect = class extends Rect {
|
|
88
|
-
parent;
|
|
89
|
-
children = [];
|
|
90
|
-
constructor(xynode, parent = null) {
|
|
91
|
-
super(xynode, parent);
|
|
92
|
-
this.parent = parent;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
var Leaf = class extends Rect {
|
|
96
|
-
parent;
|
|
97
|
-
constructor(xynode, parent = null) {
|
|
98
|
-
super(xynode, parent);
|
|
99
|
-
this.parent = parent;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Creates a modifier function that moves edge points according to the given rectangle's diff.
|
|
104
|
-
*/
|
|
105
|
-
function makeEdgeModifier(edge, anchor) {
|
|
106
|
-
const controlPoints = edge.data.controlPoints ?? null;
|
|
107
|
-
return (edgeLookup) => {
|
|
108
|
-
const current = nonNullable(edgeLookup.get(edge.id), `Edge ${edge.id} not found`);
|
|
109
|
-
const { x: dx, y: dy } = anchor.diff;
|
|
110
|
-
if (dx === 0 && dy === 0) return {
|
|
111
|
-
id: edge.id,
|
|
112
|
-
type: "replace",
|
|
113
|
-
item: produce(current, (draft) => {
|
|
114
|
-
draft.data.points = edge.data.points;
|
|
115
|
-
draft.data.controlPoints = controlPoints;
|
|
116
|
-
draft.data.labelBBox = edge.data.labelBBox;
|
|
117
|
-
})
|
|
118
|
-
};
|
|
119
|
-
return {
|
|
120
|
-
id: edge.id,
|
|
121
|
-
type: "replace",
|
|
122
|
-
item: produce(current, (draft) => {
|
|
123
|
-
draft.data.points = map(edge.data.points, (pt) => [pt[0] + dx, pt[1] + dy]);
|
|
124
|
-
if (controlPoints) draft.data.controlPoints = controlPoints.map((pt) => ({
|
|
125
|
-
x: pt.x + dx,
|
|
126
|
-
y: pt.y + dy
|
|
127
|
-
}));
|
|
128
|
-
else draft.data.controlPoints = null;
|
|
129
|
-
if (edge.data.labelBBox) {
|
|
130
|
-
draft.data.labelBBox ??= edge.data.labelBBox;
|
|
131
|
-
draft.data.labelBBox.x = edge.data.labelBBox.x + dx;
|
|
132
|
-
draft.data.labelBBox.y = edge.data.labelBBox.y + dy;
|
|
133
|
-
}
|
|
134
|
-
})
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Creates a modifier function that moves edge points when one of its nodes is moved.
|
|
140
|
-
*/
|
|
141
|
-
function makeRelativeEdgeModifier(edge, movingRect, anchorNode, staticNode) {
|
|
142
|
-
const controlPoints = edge.data.controlPoints ?? bezierControlPoints(edge.data.points);
|
|
143
|
-
const anchorV = vector$1(BBox$1.center(anchorNode));
|
|
144
|
-
const staticV = vector$1(BBox$1.center(staticNode));
|
|
145
|
-
const staticToAnchor = anchorV.subtract(staticV);
|
|
146
|
-
const staticToAnchorLength = staticToAnchor.length();
|
|
147
|
-
return (edgeLookup) => {
|
|
148
|
-
const current = nonNullable(edgeLookup.get(edge.id), `Edge ${edge.id} not found`);
|
|
149
|
-
const { x: dx, y: dy } = movingRect.diff;
|
|
150
|
-
if (dx === 0 && dy === 0) return {
|
|
151
|
-
id: edge.id,
|
|
152
|
-
type: "replace",
|
|
153
|
-
item: produce(current, (draft) => {
|
|
154
|
-
draft.data.points = edge.data.points;
|
|
155
|
-
draft.data.controlPoints = edge.data.controlPoints;
|
|
156
|
-
draft.data.labelBBox = edge.data.labelBBox;
|
|
157
|
-
})
|
|
158
|
-
};
|
|
159
|
-
const d = vector$1(dx, dy);
|
|
160
|
-
const relativePoint = (pt) => {
|
|
161
|
-
if (staticToAnchorLength === 0) return {
|
|
162
|
-
x: pt.x,
|
|
163
|
-
y: pt.y
|
|
164
|
-
};
|
|
165
|
-
const point = vector$1(pt);
|
|
166
|
-
const projLength = point.subtract(staticV).dot(staticToAnchor);
|
|
167
|
-
const coeff = clamp(projLength / staticToAnchorLength ** 2, {
|
|
168
|
-
min: -1,
|
|
169
|
-
max: 1
|
|
170
|
-
});
|
|
171
|
-
const newPoint = point.add(d.multiply(coeff)).trunc();
|
|
172
|
-
return {
|
|
173
|
-
x: newPoint.x,
|
|
174
|
-
y: newPoint.y
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
return {
|
|
178
|
-
id: edge.id,
|
|
179
|
-
type: "replace",
|
|
180
|
-
item: produce(current, (draft) => {
|
|
181
|
-
draft.data.controlPoints = controlPoints.map(relativePoint);
|
|
182
|
-
draft.data.points = map(edge.data.points, ([x, y]) => {
|
|
183
|
-
const point = relativePoint({
|
|
184
|
-
x,
|
|
185
|
-
y
|
|
186
|
-
});
|
|
187
|
-
return [point.x, point.y];
|
|
188
|
-
});
|
|
189
|
-
if (edge.data.labelBBox) {
|
|
190
|
-
draft.data.labelBBox ??= edge.data.labelBBox;
|
|
191
|
-
const { x, y } = relativePoint(edge.data.labelBBox);
|
|
192
|
-
draft.data.labelBBox.x = x;
|
|
193
|
-
draft.data.labelBBox.y = y;
|
|
194
|
-
}
|
|
195
|
-
})
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function createLayoutConstraints(xyflowApi, editingNodeIds) {
|
|
200
|
-
const { parentLookup, nodeLookup, edges } = xyflowApi.getState();
|
|
201
|
-
const rects = /* @__PURE__ */ new Map();
|
|
202
|
-
/** Maps node id to all its ancestors */
|
|
203
|
-
const ancestorsOf = new DefaultMap((nodeId) => {
|
|
204
|
-
let parent = nodeLookup.get(nodeId)?.parentId;
|
|
205
|
-
if (!parent) return [];
|
|
206
|
-
return [parent, ...ancestorsOf.get(parent)];
|
|
207
|
-
});
|
|
208
|
-
/** Maps node id to all its nested descendants */
|
|
209
|
-
const nestedOf = new DefaultMap((nodeId) => {
|
|
210
|
-
const children = parentLookup.get(nodeId);
|
|
211
|
-
if (!children || children.size === 0) return /* @__PURE__ */ new Set();
|
|
212
|
-
const nested = /* @__PURE__ */ new Set();
|
|
213
|
-
for (const child of children.values()) {
|
|
214
|
-
nested.add(child.id);
|
|
215
|
-
for (const desc of nestedOf.get(child.id)) nested.add(desc);
|
|
216
|
-
}
|
|
217
|
-
return nested;
|
|
218
|
-
});
|
|
219
|
-
if (hasAtLeast(editingNodeIds, 2)) {
|
|
220
|
-
const leafsOnly = pipe(editingNodeIds, flatMap((id) => [...nestedOf.get(id)]), unique(), (exclude) => difference(editingNodeIds, exclude));
|
|
221
|
-
invariant$1(hasAtLeast(leafsOnly, 1), "All editing nodes are nested within each other");
|
|
222
|
-
editingNodeIds = leafsOnly;
|
|
223
|
-
}
|
|
224
|
-
const ancestorsOfDraggingNodes = new Set(editingNodeIds.flatMap((i) => ancestorsOf.get(i)));
|
|
225
|
-
const traverse = [...nodeLookup.values()].flatMap((x) => !x.parentId ? {
|
|
226
|
-
xynode: x,
|
|
227
|
-
parent: null
|
|
228
|
-
} : []);
|
|
229
|
-
while (traverse.length > 0) {
|
|
230
|
-
const { xynode, parent } = traverse.shift();
|
|
231
|
-
if (!editingNodeIds.includes(xynode.id) && ancestorsOfDraggingNodes.has(xynode.id)) {
|
|
232
|
-
const rect = new CompoundRect(xynode, parent);
|
|
233
|
-
rects.set(xynode.id, rect);
|
|
234
|
-
parentLookup.get(xynode.id)?.forEach((child) => {
|
|
235
|
-
traverse.push({
|
|
236
|
-
xynode: child,
|
|
237
|
-
parent: rect
|
|
238
|
-
});
|
|
239
|
-
});
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
242
|
-
rects.set(xynode.id, new Leaf(xynode, parent));
|
|
243
|
-
}
|
|
244
|
-
const rectsToUpdate = [...rects.values()];
|
|
245
|
-
/**
|
|
246
|
-
* Edges that need to be updated because both source and target are moved
|
|
247
|
-
* - source and target are inside a compound node that is moved
|
|
248
|
-
* - source and target are selected and moved
|
|
249
|
-
*/
|
|
250
|
-
const edgeModifiers = /* @__PURE__ */ new Map();
|
|
251
|
-
const findMovingAncestor = (nodeId) => {
|
|
252
|
-
const r = rects.get(nodeId);
|
|
253
|
-
if (r) return r;
|
|
254
|
-
for (const parent of ancestorsOf.get(nodeId)) {
|
|
255
|
-
const rect = rects.get(parent);
|
|
256
|
-
if (rect) return rect;
|
|
257
|
-
}
|
|
258
|
-
return null;
|
|
259
|
-
};
|
|
260
|
-
const movingNodes = new Set(editingNodeIds.flatMap((id) => [id, ...nestedOf.get(id)]));
|
|
261
|
-
for (const edge of edges) {
|
|
262
|
-
const isSourceMoving = movingNodes.has(edge.source);
|
|
263
|
-
const isTargetMoving = movingNodes.has(edge.target);
|
|
264
|
-
if (!isSourceMoving && !isTargetMoving) continue;
|
|
265
|
-
if (isSourceMoving && isTargetMoving) {
|
|
266
|
-
let r = rects.get(edge.source) ?? rects.get(edge.target) ?? findMovingAncestor(edge.source) ?? findMovingAncestor(edge.target);
|
|
267
|
-
invariant$1(!!r, "At least one of the edge nodes should have a moving ancestor");
|
|
268
|
-
edgeModifiers.set(edge, makeEdgeModifier(edge, r));
|
|
269
|
-
continue;
|
|
270
|
-
}
|
|
271
|
-
invariant$1(isSourceMoving !== isTargetMoving, "Logic error");
|
|
272
|
-
const movingRect = isSourceMoving ? findMovingAncestor(edge.source) : findMovingAncestor(edge.target);
|
|
273
|
-
invariant$1(!!movingRect, "Moving endpoint should be found");
|
|
274
|
-
const [sourceNode, targetNode] = pipe([edge.source, edge.target], map((id) => nonNullable(nodeLookup.get(id), `Node ${id} not found`)), map(nodeToRect$1));
|
|
275
|
-
const [anchorNode, staticNode] = isSourceMoving ? [sourceNode, targetNode] : [targetNode, sourceNode];
|
|
276
|
-
edgeModifiers.set(edge, makeRelativeEdgeModifier(edge, movingRect, anchorNode, staticNode));
|
|
277
|
-
}
|
|
278
|
-
function applyConstraints(targets) {
|
|
279
|
-
for (const r of targets) {
|
|
280
|
-
if (!(r instanceof CompoundRect)) continue;
|
|
281
|
-
applyConstraints(r.children);
|
|
282
|
-
const childrenBB = {
|
|
283
|
-
minX: Infinity,
|
|
284
|
-
minY: Infinity,
|
|
285
|
-
maxX: -Infinity,
|
|
286
|
-
maxY: -Infinity
|
|
287
|
-
};
|
|
288
|
-
for (const child of r.children) {
|
|
289
|
-
childrenBB.minX = Math.min(childrenBB.minX, child.minX);
|
|
290
|
-
childrenBB.minY = Math.min(childrenBB.minY, child.minY);
|
|
291
|
-
childrenBB.maxX = Math.max(childrenBB.maxX, child.maxX);
|
|
292
|
-
childrenBB.maxY = Math.max(childrenBB.maxY, child.maxY);
|
|
293
|
-
}
|
|
294
|
-
r.minX = childrenBB.minX - Rect.LeftPadding;
|
|
295
|
-
r.minY = childrenBB.minY - Rect.TopPadding;
|
|
296
|
-
r.maxX = childrenBB.maxX + Rect.RightPadding;
|
|
297
|
-
r.maxY = childrenBB.maxY + Rect.BottomPadding;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
const _edgeModifiers = [...edgeModifiers.values()];
|
|
301
|
-
/**
|
|
302
|
-
* Read current node positions from XYFlow internal state into rects.
|
|
303
|
-
* Only needed for drag operations where XYFlow already has the updated positions.
|
|
304
|
-
*/
|
|
305
|
-
function syncFromXYFlow() {
|
|
306
|
-
const { nodeLookup } = xyflowApi.getState();
|
|
307
|
-
for (const id of editingNodeIds) {
|
|
308
|
-
const rect = rects.get(id);
|
|
309
|
-
if (!rect) {
|
|
310
|
-
console.warn(`Rect not found for id ${id}`);
|
|
311
|
-
continue;
|
|
312
|
-
}
|
|
313
|
-
const node = nodeLookup.get(id);
|
|
314
|
-
if (!node) {
|
|
315
|
-
console.warn(`Node not found for id ${id}`);
|
|
316
|
-
continue;
|
|
317
|
-
}
|
|
318
|
-
rect.positionAbsolute = node.internals.positionAbsolute;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
function updateXYFlow() {
|
|
322
|
-
const { edgeLookup, triggerNodeChanges, triggerEdgeChanges } = xyflowApi.getState();
|
|
323
|
-
applyConstraints(rectsToUpdate);
|
|
324
|
-
const nodeUpdates = [];
|
|
325
|
-
const edgeUpdates = [];
|
|
326
|
-
for (const r of rectsToUpdate) {
|
|
327
|
-
nodeUpdates.push({
|
|
328
|
-
id: r.id,
|
|
329
|
-
type: "position",
|
|
330
|
-
dragging: false,
|
|
331
|
-
position: r.position,
|
|
332
|
-
positionAbsolute: r.positionAbsolute
|
|
333
|
-
});
|
|
334
|
-
if (r instanceof CompoundRect) nodeUpdates.push({
|
|
335
|
-
id: r.id,
|
|
336
|
-
type: "dimensions",
|
|
337
|
-
setAttributes: true,
|
|
338
|
-
resizing: false,
|
|
339
|
-
dimensions: r.dimensions
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
if (nodeUpdates.length > 0) triggerNodeChanges(nodeUpdates);
|
|
343
|
-
for (const fm of _edgeModifiers) edgeUpdates.push(fm(edgeLookup));
|
|
344
|
-
if (edgeUpdates.length > 0) triggerEdgeChanges(edgeUpdates);
|
|
345
|
-
}
|
|
346
|
-
let animationFrameId = null;
|
|
347
|
-
function cancelPending() {
|
|
348
|
-
if (animationFrameId !== null) {
|
|
349
|
-
cancelAnimationFrame(animationFrameId);
|
|
350
|
-
animationFrameId = null;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function flushPending() {
|
|
354
|
-
cancelPending();
|
|
355
|
-
syncFromXYFlow();
|
|
356
|
-
updateXYFlow();
|
|
357
|
-
}
|
|
358
|
-
function onMove() {
|
|
359
|
-
animationFrameId ??= requestAnimationFrame(() => {
|
|
360
|
-
animationFrameId = null;
|
|
361
|
-
syncFromXYFlow();
|
|
362
|
-
updateXYFlow();
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
function hasChanges() {
|
|
366
|
-
return isome(rectsToUpdate, (r) => r.isMoved || r.isResized);
|
|
367
|
-
}
|
|
368
|
-
return {
|
|
369
|
-
rects,
|
|
370
|
-
onMove,
|
|
371
|
-
updateXYFlow,
|
|
372
|
-
hasChanges,
|
|
373
|
-
cancelPending,
|
|
374
|
-
flushPending
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Keeps the layout constraints (parent nodes and children) when dragging a node
|
|
379
|
-
*/
|
|
380
|
-
function useLayoutConstraints() {
|
|
381
|
-
const xystore = useXYStoreApi();
|
|
382
|
-
const diagram = useDiagram();
|
|
383
|
-
const solverRef = useRef(void 0);
|
|
384
|
-
return useMemo(() => {
|
|
385
|
-
return {
|
|
386
|
-
onNodeDragStart: (_event, xynode) => {
|
|
387
|
-
const { nodeLookup } = xystore.getState();
|
|
388
|
-
const draggingNodes = pipe(Array.from(nodeLookup.values()), filter((n) => n.dragging === true || n.id === xynode.id || n.selected === true), map((n) => n.id));
|
|
389
|
-
if (hasAtLeast(draggingNodes, 1)) {
|
|
390
|
-
diagram.startEditing("node");
|
|
391
|
-
solverRef.current = createLayoutConstraints(xystore, draggingNodes);
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
onNodeDrag: (_event) => {
|
|
395
|
-
solverRef.current?.onMove();
|
|
396
|
-
},
|
|
397
|
-
onNodeDragStop: (_event) => {
|
|
398
|
-
if (!solverRef.current) return;
|
|
399
|
-
const hasChanges = solverRef.current.hasChanges();
|
|
400
|
-
if (hasChanges) solverRef.current.flushPending();
|
|
401
|
-
else solverRef.current.cancelPending();
|
|
402
|
-
diagram.stopEditing(hasChanges);
|
|
403
|
-
solverRef.current = void 0;
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
}, [xystore, diagram]);
|
|
407
|
-
}
|
|
408
|
-
//#endregion
|
|
409
|
-
export { createLayoutConstraints, useLayoutConstraints };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DiagramView, ViewId, WhereOperator } from '@likec4/core';
|
|
2
|
-
import { Types } from '../types';
|
|
3
|
-
/**
|
|
4
|
-
* Convert a diagram view to XY flow nodes and edges.
|
|
5
|
-
* @param opts
|
|
6
|
-
* @param opts.view - The diagram view to convert.
|
|
7
|
-
* @param opts.currentViewId - The ID of the current view.
|
|
8
|
-
* @param opts.where - Optional filter for nodes and edges.
|
|
9
|
-
* @returns An object containing an array of XY flow nodes and an array of XY flow edges.
|
|
10
|
-
*/
|
|
11
|
-
export declare function diagramToXY(opts: {
|
|
12
|
-
view: Pick<DiagramView, 'id' | 'nodes' | 'bounds' | 'edges' | '_type' | 'autoLayout'>;
|
|
13
|
-
currentViewId: ViewId | undefined;
|
|
14
|
-
where: WhereOperator | null;
|
|
15
|
-
}): {
|
|
16
|
-
xynodes: Types.Node[];
|
|
17
|
-
xyedges: Types.Edge[];
|
|
18
|
-
};
|