@likec4/diagram 1.45.0 → 1.46.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/bundle/index.js +2134 -1652
- package/dist/LikeC4Diagram.d.ts +1 -1
- package/dist/LikeC4Diagram.js +8 -7
- package/dist/LikeC4Diagram.props.d.ts +4 -12
- package/dist/LikeC4ProjectsProvider.js +8 -4
- package/dist/LikeC4View.js +1 -5
- package/dist/ReactLikeC4.d.ts +1 -4
- package/dist/StaticLikeC4Diagram.js +0 -2
- package/dist/base-primitives/NodeHandles.d.ts +2 -1
- package/dist/base-primitives/NodeHandles.js +22 -18
- package/dist/base-primitives/compound/CompoundActionButton.js +1 -1
- package/dist/base-primitives/compound/CompoundDetailsButton.js +1 -1
- package/dist/base-primitives/edge/EdgeActionButton.js +1 -1
- package/dist/base-primitives/edge/EdgeContainer.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeContainer.js +2 -3
- package/dist/base-primitives/edge/EdgeLabel.js +16 -16
- package/dist/base-primitives/edge/EdgeLabelContainer.d.ts +1 -1
- package/dist/base-primitives/edge/EdgeLabelContainer.js +5 -4
- package/dist/base-primitives/edge/EdgePath.js +13 -18
- package/dist/base-primitives/element/ElementActionButtons.js +1 -1
- package/dist/base-primitives/element/ElementDetailsButton.js +1 -1
- package/dist/components/ErrorFallback.js +1 -1
- package/dist/components/Link.js +2 -2
- package/dist/context/DiagramEventHandlers.js +0 -1
- package/dist/context/DiagramFeatures.d.ts +1 -1
- package/dist/context/DiagramFeatures.js +1 -0
- package/dist/context/EnsureMantine.js +2 -1
- package/dist/context/IconRenderer.js +6 -6
- package/dist/editor/LikeC4EditorProvider.d.ts +22 -0
- package/dist/editor/LikeC4EditorProvider.js +12 -0
- package/dist/editor/__tests__/fixture.d.ts +205 -0
- package/dist/editor/applyChangesToManualLayout.d.ts +8 -0
- package/dist/editor/applyChangesToManualLayout.js +182 -0
- package/dist/editor/editorActor.actions.d.ts +201 -0
- package/dist/editor/editorActor.actions.js +149 -0
- package/dist/editor/editorActor.d.ts +653 -0
- package/dist/editor/editorActor.js +324 -0
- package/dist/editor/hotkeyActor.d.ts +7 -0
- package/dist/editor/hotkeyActor.js +19 -0
- package/dist/editor/index.d.ts +3 -2
- package/dist/editor/useEditorActorLogic.d.ts +565 -0
- package/dist/editor/useEditorActorLogic.js +54 -0
- package/dist/hooks/safeContext.d.ts +3 -2
- package/dist/hooks/safeContext.js +7 -4
- package/dist/hooks/useDiagram.d.ts +4 -2
- package/dist/hooks/useDiagram.js +19 -8
- package/dist/hooks/useDiagramCompareLayout.d.ts +8 -0
- package/dist/hooks/useDiagramCompareLayout.js +22 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/likec4diagram/DiagramXYFlow.js +1 -2
- package/dist/likec4diagram/custom/edges/EdgeDrifts.js +1 -5
- package/dist/likec4diagram/custom/edges/RelationshipEdge.js +74 -48
- package/dist/likec4diagram/custom/edges/edges.css.d.ts +0 -1
- package/dist/likec4diagram/custom/edges/edges.css.js +30 -24
- package/dist/likec4diagram/custom/edges/useControlPoints.js +2 -2
- package/dist/likec4diagram/custom/nodes/ElementActions.js +2 -2
- package/dist/likec4diagram/custom/nodes/NodeDrifts.js +4 -9
- package/dist/likec4diagram/custom/nodes/nodes.js +3 -6
- package/dist/likec4diagram/custom/nodes/toolbar/ElementToolbar.js +2 -2
- package/dist/likec4diagram/custom/nodes/toolbar/_shared.js +2 -2
- package/dist/likec4diagram/relationship-popover/RelationshipPopover.js +127 -14
- package/dist/likec4diagram/state/DiagramActorProvider.js +63 -71
- package/dist/likec4diagram/state/assign.d.ts +4 -1
- package/dist/likec4diagram/state/assign.js +11 -8
- package/dist/likec4diagram/state/createViewChange.js +13 -9
- package/dist/likec4diagram/state/diagram-api.d.ts +20 -2
- package/dist/likec4diagram/state/diagram-api.js +58 -44
- package/dist/likec4diagram/state/hotkeyActor.d.ts +1 -1
- package/dist/likec4diagram/state/hotkeyActor.js +12 -0
- package/dist/likec4diagram/state/machine.actions.d.ts +774 -195
- package/dist/likec4diagram/state/machine.actions.js +185 -74
- package/dist/likec4diagram/state/machine.actions.layout.d.ts +93 -31
- package/dist/likec4diagram/state/machine.actions.layout.js +16 -4
- package/dist/likec4diagram/state/machine.d.ts +5 -4
- package/dist/likec4diagram/state/machine.js +11 -6
- package/dist/likec4diagram/state/machine.setup.d.ts +20 -9
- package/dist/likec4diagram/state/machine.setup.js +18 -3
- package/dist/likec4diagram/state/machine.state.initializing.d.ts +34 -18
- package/dist/likec4diagram/state/machine.state.initializing.js +10 -10
- package/dist/likec4diagram/state/machine.state.navigating.js +28 -9
- package/dist/likec4diagram/state/machine.state.ready.d.ts +1368 -434
- package/dist/likec4diagram/state/machine.state.ready.focused.d.ts +363 -39
- package/dist/likec4diagram/state/machine.state.ready.focused.js +17 -4
- package/dist/likec4diagram/state/machine.state.ready.idle.d.ts +104 -38
- package/dist/likec4diagram/state/machine.state.ready.idle.js +14 -5
- package/dist/likec4diagram/state/machine.state.ready.js +13 -90
- package/dist/likec4diagram/state/machine.state.ready.printing.d.ts +18 -6
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.d.ts +204 -31
- package/dist/likec4diagram/state/machine.state.ready.walkthrough.js +14 -1
- package/dist/likec4diagram/state/types.d.ts +6 -2
- package/dist/likec4diagram/state/utils.d.ts +33 -7
- package/dist/likec4diagram/state/utils.js +23 -7
- package/dist/likec4diagram/ui/notation/NotationPanel.js +3 -3
- package/dist/likec4diagram/useLayoutConstraints.js +5 -9
- package/dist/navigationpanel/NavigationPanel.js +6 -9
- package/dist/navigationpanel/NavigationPanelDropdown.js +7 -7
- package/dist/navigationpanel/_common.js +1 -1
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.d.ts +3 -1
- package/dist/navigationpanel/comparepanel/CompareActionsMenu.js +40 -14
- package/dist/navigationpanel/comparepanel/ComparePanelControls.js +6 -4
- package/dist/navigationpanel/comparepanel/LayoutTypeSwitcher.js +2 -2
- package/dist/navigationpanel/controls/DetailsControls.js +2 -2
- package/dist/navigationpanel/controls/LayoutWarning.js +2 -1
- package/dist/navigationpanel/controls/NavigationButtons.js +2 -2
- package/dist/navigationpanel/controls/OpenSource.js +1 -1
- package/dist/navigationpanel/controls/SearchControl.js +2 -2
- package/dist/navigationpanel/controls/ToggleReadonly.js +25 -17
- package/dist/navigationpanel/dropdown/ProjectsMenu.js +1 -1
- package/dist/navigationpanel/editorpanel/CenterCamera.js +1 -1
- package/dist/navigationpanel/editorpanel/ChangeAutoLayoutButton.js +1 -1
- package/dist/navigationpanel/editorpanel/ManualLayoutToolsButton.js +9 -9
- package/dist/navigationpanel/editorpanel/ToggleReadonly.js +1 -1
- package/dist/navigationpanel/walkthrough/ActiveWalkthroughControls.js +3 -3
- package/dist/navigationpanel/walkthrough/DynamicViewControls.d.ts +66 -66
- package/dist/navigationpanel/walkthrough/DynamicViewControls.js +1 -1
- package/dist/overlays/Overlays.js +24 -12
- package/dist/overlays/element-details/ElementDetailsCard.js +4 -4
- package/dist/overlays/element-details/MetadataValue.js +4 -6
- package/dist/overlays/element-details/TabPanelDeployments.js +3 -3
- package/dist/overlays/element-details/TabPanelRelationships.js +12 -7
- package/dist/overlays/element-details/TabPanelStructure.js +1 -1
- package/dist/overlays/overlaysActor.js +6 -3
- package/dist/overlays/relationship-details/RelationshipDetails.js +3 -3
- package/dist/overlays/relationship-details/SelectEdge.js +2 -2
- package/dist/overlays/relationship-details/custom/ElementActions.js +3 -3
- package/dist/overlays/relationships-browser/RelationshipsBrowser.js +3 -3
- package/dist/overlays/relationships-browser/SelectElement.js +2 -2
- package/dist/overlays/relationships-browser/custom/ElementActions.js +3 -3
- package/dist/search/components/ElementsColumn.js +7 -3
- package/dist/search/components/PickView.js +3 -1
- package/dist/search/components/SearchByTags.js +1 -1
- package/dist/search/components/SearchInput.js +1 -1
- package/dist/search/components/ViewsColum.d.ts +3 -1
- package/dist/search/components/ViewsColum.js +13 -7
- package/dist/shadowroot/styles.css.js +6 -1
- package/dist/styles.css2.js +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/xyflow.d.ts +2 -3
- package/dist/utils/xyflow.js +9 -8
- package/package.json +17 -17
- package/panda.buildinfo.json +59 -77
- package/styles-min.css +1 -1
- package/styles.css +1 -1
- package/dist/base-primitives/edge/edge.css.d.ts +0 -4
- package/dist/base-primitives/edge/edge.css.js +0 -71
- package/dist/editor/LikeC4EditorContext.d.ts +0 -21
- package/dist/likec4diagram/state/syncManualLayoutActor.d.ts +0 -46
- package/dist/likec4diagram/state/syncManualLayoutActor.js +0 -309
- package/dist/utils/vector.d.ts +0 -86
- package/dist/utils/vector.js +0 -127
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/createReactComponent.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertTriangle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowDownRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconArrowRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBolt.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconBrowser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconCylinder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDeviceMobile.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconDirectionSignFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconExternalLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFileSymlink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFocusCentered.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconFolderFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconHelpCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconId.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignBottom.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignCenter.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignLeft.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignMiddle.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignRight.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutAlignTop.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutBoardSplit.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutCollage.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLayoutDashboard.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLink.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerPlayFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipBackFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerSkipForwardFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconPlayerStopFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRectangularPrism.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconReorder.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconRouteOff.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconSelector.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStack2.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconStarFilled.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTarget.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconTransform.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconUser.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconX.js +0 -0
- /package/dist/node_modules/.pnpm/{@tabler_icons-react@3.35.0_react@19.2.0 → @tabler_icons-react@3.35.0_react@19.2.1}/node_modules/@tabler/icons-react/dist/esm/icons/IconZoomScan.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { GuardPredicate, ActionFunction, Values } from 'xstate';
|
|
2
2
|
import { Context, Events, EmittedEvents } from './machine.setup';
|
|
3
3
|
import { NormalizeGuardArgArray } from 'xstate/guards';
|
|
4
|
-
import { SyncLayoutActorLogic } from './syncManualLayoutActor';
|
|
5
4
|
import { HotkeyActorLogic } from './hotkeyActor';
|
|
6
5
|
import { OverlaysActorLogic } from '../../overlays/overlaysActor';
|
|
7
6
|
import { SearchActorLogic } from '../../search/searchActor';
|
|
8
7
|
import { MediaPrintActorLogic } from './mediaPrintActor';
|
|
8
|
+
import { EditorActorLogic } from '../../editor';
|
|
9
9
|
export declare const idle: {
|
|
10
10
|
id: string;
|
|
11
11
|
on: {
|
|
@@ -18,11 +18,6 @@ export declare const idle: {
|
|
|
18
18
|
node: import("../types").Types.Node;
|
|
19
19
|
}, unknown, NormalizeGuardArgArray<["click: same node", "click: selected node"]>>]>>;
|
|
20
20
|
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
21
|
-
syncManualLayoutActorLogic: {
|
|
22
|
-
src: "syncManualLayoutActorLogic";
|
|
23
|
-
logic: SyncLayoutActorLogic;
|
|
24
|
-
id: "syncLayout";
|
|
25
|
-
};
|
|
26
21
|
hotkeyActorLogic: {
|
|
27
22
|
src: "hotkeyActorLogic";
|
|
28
23
|
logic: HotkeyActorLogic;
|
|
@@ -43,6 +38,11 @@ export declare const idle: {
|
|
|
43
38
|
logic: MediaPrintActorLogic;
|
|
44
39
|
id: "mediaPrint";
|
|
45
40
|
};
|
|
41
|
+
editorActor: {
|
|
42
|
+
src: "editorActor";
|
|
43
|
+
logic: EditorActorLogic;
|
|
44
|
+
id: "editor";
|
|
45
|
+
};
|
|
46
46
|
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
47
47
|
target: string;
|
|
48
48
|
} | {
|
|
@@ -54,11 +54,6 @@ export declare const idle: {
|
|
|
54
54
|
node: import("../types").Types.Node;
|
|
55
55
|
}, unknown, NormalizeGuardArgArray<["click: same node", "click: selected node"]>>]>>;
|
|
56
56
|
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
57
|
-
syncManualLayoutActorLogic: {
|
|
58
|
-
src: "syncManualLayoutActorLogic";
|
|
59
|
-
logic: SyncLayoutActorLogic;
|
|
60
|
-
id: "syncLayout";
|
|
61
|
-
};
|
|
62
57
|
hotkeyActorLogic: {
|
|
63
58
|
src: "hotkeyActorLogic";
|
|
64
59
|
logic: HotkeyActorLogic;
|
|
@@ -79,11 +74,20 @@ export declare const idle: {
|
|
|
79
74
|
logic: MediaPrintActorLogic;
|
|
80
75
|
id: "mediaPrint";
|
|
81
76
|
};
|
|
77
|
+
editorActor: {
|
|
78
|
+
src: "editorActor";
|
|
79
|
+
logic: EditorActorLogic;
|
|
80
|
+
id: "editor";
|
|
81
|
+
};
|
|
82
82
|
}>, never, Values<{
|
|
83
83
|
isReady: {
|
|
84
84
|
type: "isReady";
|
|
85
85
|
params: unknown;
|
|
86
86
|
};
|
|
87
|
+
"enabled: Editor": {
|
|
88
|
+
type: "enabled: Editor";
|
|
89
|
+
params: unknown;
|
|
90
|
+
};
|
|
87
91
|
"enabled: FitView": {
|
|
88
92
|
type: "enabled: FitView";
|
|
89
93
|
params: unknown;
|
|
@@ -116,6 +120,10 @@ export declare const idle: {
|
|
|
116
120
|
type: "enabled: DynamicViewWalkthrough";
|
|
117
121
|
params: unknown;
|
|
118
122
|
};
|
|
123
|
+
"focus.node: autoUnfocus": {
|
|
124
|
+
type: "focus.node: autoUnfocus";
|
|
125
|
+
params: unknown;
|
|
126
|
+
};
|
|
119
127
|
"enabled: Overlays": {
|
|
120
128
|
type: "enabled: Overlays";
|
|
121
129
|
params: unknown;
|
|
@@ -128,6 +136,10 @@ export declare const idle: {
|
|
|
128
136
|
type: "is dynamic view";
|
|
129
137
|
params: unknown;
|
|
130
138
|
};
|
|
139
|
+
"is same view": {
|
|
140
|
+
type: "is same view";
|
|
141
|
+
params: unknown;
|
|
142
|
+
};
|
|
131
143
|
"is another view": {
|
|
132
144
|
type: "is another view";
|
|
133
145
|
params: unknown;
|
|
@@ -160,11 +172,6 @@ export declare const idle: {
|
|
|
160
172
|
target?: never;
|
|
161
173
|
} | {
|
|
162
174
|
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
163
|
-
syncManualLayoutActorLogic: {
|
|
164
|
-
src: "syncManualLayoutActorLogic";
|
|
165
|
-
logic: SyncLayoutActorLogic;
|
|
166
|
-
id: "syncLayout";
|
|
167
|
-
};
|
|
168
175
|
hotkeyActorLogic: {
|
|
169
176
|
src: "hotkeyActorLogic";
|
|
170
177
|
logic: HotkeyActorLogic;
|
|
@@ -185,11 +192,20 @@ export declare const idle: {
|
|
|
185
192
|
logic: MediaPrintActorLogic;
|
|
186
193
|
id: "mediaPrint";
|
|
187
194
|
};
|
|
195
|
+
editorActor: {
|
|
196
|
+
src: "editorActor";
|
|
197
|
+
logic: EditorActorLogic;
|
|
198
|
+
id: "editor";
|
|
199
|
+
};
|
|
188
200
|
}>, never, Values<{
|
|
189
201
|
isReady: {
|
|
190
202
|
type: "isReady";
|
|
191
203
|
params: unknown;
|
|
192
204
|
};
|
|
205
|
+
"enabled: Editor": {
|
|
206
|
+
type: "enabled: Editor";
|
|
207
|
+
params: unknown;
|
|
208
|
+
};
|
|
193
209
|
"enabled: FitView": {
|
|
194
210
|
type: "enabled: FitView";
|
|
195
211
|
params: unknown;
|
|
@@ -222,6 +238,10 @@ export declare const idle: {
|
|
|
222
238
|
type: "enabled: DynamicViewWalkthrough";
|
|
223
239
|
params: unknown;
|
|
224
240
|
};
|
|
241
|
+
"focus.node: autoUnfocus": {
|
|
242
|
+
type: "focus.node: autoUnfocus";
|
|
243
|
+
params: unknown;
|
|
244
|
+
};
|
|
225
245
|
"enabled: Overlays": {
|
|
226
246
|
type: "enabled: Overlays";
|
|
227
247
|
params: unknown;
|
|
@@ -234,6 +254,10 @@ export declare const idle: {
|
|
|
234
254
|
type: "is dynamic view";
|
|
235
255
|
params: unknown;
|
|
236
256
|
};
|
|
257
|
+
"is same view": {
|
|
258
|
+
type: "is same view";
|
|
259
|
+
params: unknown;
|
|
260
|
+
};
|
|
237
261
|
"is another view": {
|
|
238
262
|
type: "is another view";
|
|
239
263
|
params: unknown;
|
|
@@ -268,11 +292,6 @@ export declare const idle: {
|
|
|
268
292
|
})[];
|
|
269
293
|
'xyflow.paneClick': {
|
|
270
294
|
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
271
|
-
syncManualLayoutActorLogic: {
|
|
272
|
-
src: "syncManualLayoutActorLogic";
|
|
273
|
-
logic: SyncLayoutActorLogic;
|
|
274
|
-
id: "syncLayout";
|
|
275
|
-
};
|
|
276
295
|
hotkeyActorLogic: {
|
|
277
296
|
src: "hotkeyActorLogic";
|
|
278
297
|
logic: HotkeyActorLogic;
|
|
@@ -293,17 +312,17 @@ export declare const idle: {
|
|
|
293
312
|
logic: MediaPrintActorLogic;
|
|
294
313
|
id: "mediaPrint";
|
|
295
314
|
};
|
|
315
|
+
editorActor: {
|
|
316
|
+
src: "editorActor";
|
|
317
|
+
logic: EditorActorLogic;
|
|
318
|
+
id: "editor";
|
|
319
|
+
};
|
|
296
320
|
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents>)[];
|
|
297
321
|
};
|
|
298
322
|
'xyflow.paneDblClick': {
|
|
299
323
|
actions: ActionFunction<Context, {
|
|
300
324
|
type: "xyflow.paneDblClick";
|
|
301
325
|
}, Events, undefined, Values<{
|
|
302
|
-
syncManualLayoutActorLogic: {
|
|
303
|
-
src: "syncManualLayoutActorLogic";
|
|
304
|
-
logic: SyncLayoutActorLogic;
|
|
305
|
-
id: "syncLayout";
|
|
306
|
-
};
|
|
307
326
|
hotkeyActorLogic: {
|
|
308
327
|
src: "hotkeyActorLogic";
|
|
309
328
|
logic: HotkeyActorLogic;
|
|
@@ -324,11 +343,20 @@ export declare const idle: {
|
|
|
324
343
|
logic: MediaPrintActorLogic;
|
|
325
344
|
id: "mediaPrint";
|
|
326
345
|
};
|
|
346
|
+
editorActor: {
|
|
347
|
+
src: "editorActor";
|
|
348
|
+
logic: EditorActorLogic;
|
|
349
|
+
id: "editor";
|
|
350
|
+
};
|
|
327
351
|
}>, never, Values<{
|
|
328
352
|
isReady: {
|
|
329
353
|
type: "isReady";
|
|
330
354
|
params: unknown;
|
|
331
355
|
};
|
|
356
|
+
"enabled: Editor": {
|
|
357
|
+
type: "enabled: Editor";
|
|
358
|
+
params: unknown;
|
|
359
|
+
};
|
|
332
360
|
"enabled: FitView": {
|
|
333
361
|
type: "enabled: FitView";
|
|
334
362
|
params: unknown;
|
|
@@ -361,6 +389,10 @@ export declare const idle: {
|
|
|
361
389
|
type: "enabled: DynamicViewWalkthrough";
|
|
362
390
|
params: unknown;
|
|
363
391
|
};
|
|
392
|
+
"focus.node: autoUnfocus": {
|
|
393
|
+
type: "focus.node: autoUnfocus";
|
|
394
|
+
params: unknown;
|
|
395
|
+
};
|
|
364
396
|
"enabled: Overlays": {
|
|
365
397
|
type: "enabled: Overlays";
|
|
366
398
|
params: unknown;
|
|
@@ -373,6 +405,10 @@ export declare const idle: {
|
|
|
373
405
|
type: "is dynamic view";
|
|
374
406
|
params: unknown;
|
|
375
407
|
};
|
|
408
|
+
"is same view": {
|
|
409
|
+
type: "is same view";
|
|
410
|
+
params: unknown;
|
|
411
|
+
};
|
|
376
412
|
"is another view": {
|
|
377
413
|
type: "is another view";
|
|
378
414
|
params: unknown;
|
|
@@ -403,14 +439,39 @@ export declare const idle: {
|
|
|
403
439
|
};
|
|
404
440
|
}>, never, EmittedEvents>[];
|
|
405
441
|
};
|
|
406
|
-
'focus.node': {
|
|
407
|
-
guard: "
|
|
442
|
+
'focus.node': ({
|
|
443
|
+
guard: "focus.node: autoUnfocus";
|
|
408
444
|
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
409
|
-
|
|
410
|
-
src: "
|
|
411
|
-
logic:
|
|
412
|
-
id: "
|
|
445
|
+
hotkeyActorLogic: {
|
|
446
|
+
src: "hotkeyActorLogic";
|
|
447
|
+
logic: HotkeyActorLogic;
|
|
448
|
+
id: "hotkey";
|
|
449
|
+
};
|
|
450
|
+
overlaysActorLogic: {
|
|
451
|
+
src: "overlaysActorLogic";
|
|
452
|
+
logic: OverlaysActorLogic;
|
|
453
|
+
id: "overlays";
|
|
413
454
|
};
|
|
455
|
+
searchActorLogic: {
|
|
456
|
+
src: "searchActorLogic";
|
|
457
|
+
logic: SearchActorLogic;
|
|
458
|
+
id: "search";
|
|
459
|
+
};
|
|
460
|
+
mediaPrintActorLogic: {
|
|
461
|
+
src: "mediaPrintActorLogic";
|
|
462
|
+
logic: MediaPrintActorLogic;
|
|
463
|
+
id: "mediaPrint";
|
|
464
|
+
};
|
|
465
|
+
editorActor: {
|
|
466
|
+
src: "editorActor";
|
|
467
|
+
logic: EditorActorLogic;
|
|
468
|
+
id: "editor";
|
|
469
|
+
};
|
|
470
|
+
}>, never, never, never, never>;
|
|
471
|
+
target: string;
|
|
472
|
+
} | {
|
|
473
|
+
guard: "enabled: FocusMode";
|
|
474
|
+
actions: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
414
475
|
hotkeyActorLogic: {
|
|
415
476
|
src: "hotkeyActorLogic";
|
|
416
477
|
logic: HotkeyActorLogic;
|
|
@@ -431,20 +492,20 @@ export declare const idle: {
|
|
|
431
492
|
logic: MediaPrintActorLogic;
|
|
432
493
|
id: "mediaPrint";
|
|
433
494
|
};
|
|
495
|
+
editorActor: {
|
|
496
|
+
src: "editorActor";
|
|
497
|
+
logic: EditorActorLogic;
|
|
498
|
+
id: "editor";
|
|
499
|
+
};
|
|
434
500
|
}>, never, never, never, never>;
|
|
435
501
|
target: string;
|
|
436
|
-
};
|
|
502
|
+
})[];
|
|
437
503
|
'xyflow.edgeClick': {
|
|
438
504
|
guard: GuardPredicate<Context, {
|
|
439
505
|
type: "xyflow.edgeClick";
|
|
440
506
|
edge: import("../types").Types.Edge;
|
|
441
507
|
}, unknown, NormalizeGuardArgArray<["enabled: Readonly", "is dynamic view", "enabled: DynamicViewWalkthrough", "click: selected edge"]>>;
|
|
442
508
|
actions: ( ActionFunction<Context, Events, Events, undefined, Values<{
|
|
443
|
-
syncManualLayoutActorLogic: {
|
|
444
|
-
src: "syncManualLayoutActorLogic";
|
|
445
|
-
logic: SyncLayoutActorLogic;
|
|
446
|
-
id: "syncLayout";
|
|
447
|
-
};
|
|
448
509
|
hotkeyActorLogic: {
|
|
449
510
|
src: "hotkeyActorLogic";
|
|
450
511
|
logic: HotkeyActorLogic;
|
|
@@ -465,6 +526,11 @@ export declare const idle: {
|
|
|
465
526
|
logic: MediaPrintActorLogic;
|
|
466
527
|
id: "mediaPrint";
|
|
467
528
|
};
|
|
529
|
+
editorActor: {
|
|
530
|
+
src: "editorActor";
|
|
531
|
+
logic: EditorActorLogic;
|
|
532
|
+
id: "editor";
|
|
533
|
+
};
|
|
468
534
|
}>, never, never, never, never> | ActionFunction<Context, Events, Events, undefined, never, never, never, never, EmittedEvents> | ActionFunction<Context, {
|
|
469
535
|
type: "xyflow.edgeClick";
|
|
470
536
|
edge: import("../types").Types.Edge;
|
|
@@ -69,11 +69,20 @@ const idle = machine.createStateConfig({
|
|
|
69
69
|
})
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
|
-
"focus.node":
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
"focus.node": [
|
|
73
|
+
// Focus was initialed by the user searching (autoUnfocus=true) - always allowed
|
|
74
|
+
{
|
|
75
|
+
guard: "focus.node: autoUnfocus",
|
|
76
|
+
actions: assignFocusedNode(),
|
|
77
|
+
target: targetState.focused
|
|
78
|
+
},
|
|
79
|
+
// Regular focus - requires FocusMode to be enabled
|
|
80
|
+
{
|
|
81
|
+
guard: "enabled: FocusMode",
|
|
82
|
+
actions: assignFocusedNode(),
|
|
83
|
+
target: targetState.focused
|
|
84
|
+
}
|
|
85
|
+
],
|
|
77
86
|
"xyflow.edgeClick": {
|
|
78
87
|
guard: xstateGuards_cjsExports.and([
|
|
79
88
|
"enabled: Readonly",
|
|
@@ -1,77 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { resetLastClickedNode, emitEdgeClick, assignLastClickedNode, emitNodeClick, emitPaneClick, undimEverything, tagHighlight, notationsHighlight, startEditing, onEdgeDoubleClick, stopEditing, onEdgeMouseLeave, onEdgeMouseEnter, onNodeMouseLeave, onNodeMouseEnter, updateFeatures, ensureOverlaysActor, ensureSearchActor, ensureSyncLayoutActor, assignToggledFeatures, emitOpenSource, openElementDetails, stopSyncLayout, disableCompareWithLatest, resetEdgesControlPoints, layoutAlign, handleNavigate, closeAllOverlays, closeSearch, updateXYNodesEdges, sendSynced } from './machine.actions.js';
|
|
1
|
+
import { updateView, resetLastClickedNode, emitEdgeClick, assignLastClickedNode, emitNodeClick, emitPaneClick, undimEverything, tagHighlight, notationsHighlight, startEditing, onEdgeDoubleClick, stopEditing, onEdgeMouseLeave, onEdgeMouseEnter, onNodeMouseLeave, onNodeMouseEnter, updateFeatures, ensureOverlaysActor, ensureSearchActor, ensureEditorActor, assignToggledFeatures, emitOpenSource, openOverlay, cancelEditing, disableCompareWithLatest, triggerChange, resetEdgesControlPoints, layoutAlign, handleNavigate, closeAllOverlays, closeSearch, stopEditorActor } from './machine.actions.js';
|
|
3
2
|
import { machine, targetState } from './machine.setup.js';
|
|
4
3
|
import { focused } from './machine.state.ready.focused.js';
|
|
5
4
|
import { idle } from './machine.state.ready.idle.js';
|
|
6
5
|
import { printing } from './machine.state.ready.printing.js';
|
|
7
6
|
import { walkthrough } from './machine.state.ready.walkthrough.js';
|
|
8
|
-
import { typedSystem
|
|
7
|
+
import { typedSystem } from './utils.js';
|
|
9
8
|
import { x as xstateActions_cjsExports } from '../../_virtual/xstate-actions.cjs.js';
|
|
10
9
|
import { x as xstateGuards_cjsExports } from '../../_virtual/xstate-guards.cjs.js';
|
|
11
10
|
import { setViewport, fitDiagram, cancelFitDiagram, raiseFitDiagram } from './machine.actions.layout.js';
|
|
12
11
|
|
|
13
|
-
const updateView = () => machine.enqueueActions(
|
|
14
|
-
({ enqueue, event, context, self }) => {
|
|
15
|
-
if (event.type !== "update.view") {
|
|
16
|
-
console.warn(`Ignoring unexpected event type: ${event.type} in action 'update.view'`);
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const nextView = event.view;
|
|
20
|
-
const isAnotherView = nextView.id !== context.view.id;
|
|
21
|
-
if (isAnotherView) {
|
|
22
|
-
console.warn("updateView called for another view - ignoring", { event });
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
enqueue(updateXYNodesEdges());
|
|
26
|
-
if (event.source === "internal") {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
enqueue(sendSynced());
|
|
30
|
-
let recenter = !context.viewportChangedManually;
|
|
31
|
-
if (context.toggledFeatures.enableCompareWithLatest === true && context.view._layout !== nextView._layout) {
|
|
32
|
-
if (nextView._layout === "auto" && context.viewportOnAutoLayout) {
|
|
33
|
-
enqueue(
|
|
34
|
-
setViewport({
|
|
35
|
-
viewport: context.viewportOnAutoLayout,
|
|
36
|
-
duration: 0
|
|
37
|
-
})
|
|
38
|
-
);
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if (nextView._layout === "manual" && context.viewportOnManualLayout) {
|
|
42
|
-
enqueue(
|
|
43
|
-
setViewport({
|
|
44
|
-
viewport: context.viewportOnManualLayout,
|
|
45
|
-
duration: 0
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
recenter = recenter || nextView._type === "dynamic" && context.view._type === "dynamic" && nextView.variant !== context.view.variant;
|
|
52
|
-
recenter = recenter || context.toggledFeatures.enableCompareWithLatest === true && !!nextView._layout && context.view._layout !== nextView._layout;
|
|
53
|
-
if (recenter) {
|
|
54
|
-
enqueue(cancelFitDiagram());
|
|
55
|
-
const nextViewport = calcViewportForBounds(
|
|
56
|
-
context,
|
|
57
|
-
event.view.bounds
|
|
58
|
-
);
|
|
59
|
-
let zoom = Math.min(nextViewport.zoom, context.viewport.zoom);
|
|
60
|
-
const center = BBox.center(event.view.bounds);
|
|
61
|
-
context.xyflow.setCenter(
|
|
62
|
-
Math.round(center.x),
|
|
63
|
-
Math.round(center.y),
|
|
64
|
-
{ zoom }
|
|
65
|
-
);
|
|
66
|
-
enqueue(raiseFitDiagram());
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
12
|
const ready = machine.createStateConfig({
|
|
71
13
|
initial: "idle",
|
|
72
14
|
entry: [
|
|
73
15
|
xstateActions_cjsExports.spawnChild("mediaPrintActorLogic", { id: "mediaPrint" }),
|
|
74
|
-
|
|
16
|
+
ensureEditorActor(),
|
|
75
17
|
ensureOverlaysActor(),
|
|
76
18
|
ensureSearchActor()
|
|
77
19
|
],
|
|
@@ -80,7 +22,7 @@ const ready = machine.createStateConfig({
|
|
|
80
22
|
xstateActions_cjsExports.stopChild("mediaPrint"),
|
|
81
23
|
closeAllOverlays(),
|
|
82
24
|
closeSearch(),
|
|
83
|
-
|
|
25
|
+
stopEditorActor()
|
|
84
26
|
],
|
|
85
27
|
states: {
|
|
86
28
|
idle,
|
|
@@ -111,15 +53,11 @@ const ready = machine.createStateConfig({
|
|
|
111
53
|
"layout.resetManualLayout": {
|
|
112
54
|
guard: "not readonly",
|
|
113
55
|
actions: [
|
|
114
|
-
|
|
56
|
+
cancelEditing(),
|
|
115
57
|
disableCompareWithLatest(),
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
op: "reset-manual-layout"
|
|
120
|
-
}
|
|
121
|
-
}),
|
|
122
|
-
ensureSyncLayoutActor()
|
|
58
|
+
triggerChange({
|
|
59
|
+
op: "reset-manual-layout"
|
|
60
|
+
})
|
|
123
61
|
]
|
|
124
62
|
},
|
|
125
63
|
"xyflow.resized": {
|
|
@@ -130,28 +68,13 @@ const ready = machine.createStateConfig({
|
|
|
130
68
|
]
|
|
131
69
|
},
|
|
132
70
|
"open.elementDetails": {
|
|
133
|
-
|
|
134
|
-
actions: openElementDetails()
|
|
71
|
+
actions: openOverlay()
|
|
135
72
|
},
|
|
136
73
|
"open.relationshipsBrowser": {
|
|
137
|
-
actions:
|
|
138
|
-
type: "open.relationshipsBrowser",
|
|
139
|
-
subject: event.fqn,
|
|
140
|
-
viewId: context.view.id,
|
|
141
|
-
scope: "view",
|
|
142
|
-
closeable: true,
|
|
143
|
-
enableChangeScope: true,
|
|
144
|
-
enableSelectSubject: true,
|
|
145
|
-
openSourceActor: self
|
|
146
|
-
}))
|
|
74
|
+
actions: openOverlay()
|
|
147
75
|
},
|
|
148
76
|
"open.relationshipDetails": {
|
|
149
|
-
actions:
|
|
150
|
-
type: "open.relationshipDetails",
|
|
151
|
-
viewId: context.view.id,
|
|
152
|
-
openSourceActor: self,
|
|
153
|
-
...event.params
|
|
154
|
-
}))
|
|
77
|
+
actions: openOverlay()
|
|
155
78
|
},
|
|
156
79
|
"open.source": {
|
|
157
80
|
guard: "enabled: OpenSource",
|
|
@@ -164,7 +87,7 @@ const ready = machine.createStateConfig({
|
|
|
164
87
|
"toggle.feature": {
|
|
165
88
|
actions: [
|
|
166
89
|
assignToggledFeatures(),
|
|
167
|
-
|
|
90
|
+
ensureEditorActor()
|
|
168
91
|
]
|
|
169
92
|
},
|
|
170
93
|
"update.features": {
|
|
@@ -172,7 +95,7 @@ const ready = machine.createStateConfig({
|
|
|
172
95
|
updateFeatures(),
|
|
173
96
|
ensureOverlaysActor(),
|
|
174
97
|
ensureSearchActor(),
|
|
175
|
-
|
|
98
|
+
ensureEditorActor()
|
|
176
99
|
]
|
|
177
100
|
},
|
|
178
101
|
"xyflow.nodeMouseEnter": {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CancelAction, ActionFunction, Values, LogAction } from 'xstate';
|
|
2
2
|
import { Context, Events, EmittedEvents } from './machine.setup';
|
|
3
|
-
import { SyncLayoutActorLogic } from './syncManualLayoutActor';
|
|
4
3
|
import { HotkeyActorLogic } from './hotkeyActor';
|
|
5
4
|
import { OverlaysActorLogic } from '../../overlays/overlaysActor';
|
|
6
5
|
import { SearchActorLogic } from '../../search/searchActor';
|
|
7
6
|
import { MediaPrintActorLogic } from './mediaPrintActor';
|
|
7
|
+
import { EditorActorLogic } from '../../editor';
|
|
8
8
|
/**
|
|
9
9
|
* State when the diagram is being prepared for printing.
|
|
10
10
|
* Adjusts the viewport to fit the entire diagram for optimal printing.
|
|
@@ -14,11 +14,6 @@ export declare const printing: {
|
|
|
14
14
|
id: string;
|
|
15
15
|
entry: CancelAction<Context, Events, undefined, Events>[];
|
|
16
16
|
exit: ActionFunction<Context, Events, Events, undefined, Values<{
|
|
17
|
-
syncManualLayoutActorLogic: {
|
|
18
|
-
src: "syncManualLayoutActorLogic";
|
|
19
|
-
logic: SyncLayoutActorLogic;
|
|
20
|
-
id: "syncLayout";
|
|
21
|
-
};
|
|
22
17
|
hotkeyActorLogic: {
|
|
23
18
|
src: "hotkeyActorLogic";
|
|
24
19
|
logic: HotkeyActorLogic;
|
|
@@ -39,11 +34,20 @@ export declare const printing: {
|
|
|
39
34
|
logic: MediaPrintActorLogic;
|
|
40
35
|
id: "mediaPrint";
|
|
41
36
|
};
|
|
37
|
+
editorActor: {
|
|
38
|
+
src: "editorActor";
|
|
39
|
+
logic: EditorActorLogic;
|
|
40
|
+
id: "editor";
|
|
41
|
+
};
|
|
42
42
|
}>, never, Values<{
|
|
43
43
|
isReady: {
|
|
44
44
|
type: "isReady";
|
|
45
45
|
params: unknown;
|
|
46
46
|
};
|
|
47
|
+
"enabled: Editor": {
|
|
48
|
+
type: "enabled: Editor";
|
|
49
|
+
params: unknown;
|
|
50
|
+
};
|
|
47
51
|
"enabled: FitView": {
|
|
48
52
|
type: "enabled: FitView";
|
|
49
53
|
params: unknown;
|
|
@@ -76,6 +80,10 @@ export declare const printing: {
|
|
|
76
80
|
type: "enabled: DynamicViewWalkthrough";
|
|
77
81
|
params: unknown;
|
|
78
82
|
};
|
|
83
|
+
"focus.node: autoUnfocus": {
|
|
84
|
+
type: "focus.node: autoUnfocus";
|
|
85
|
+
params: unknown;
|
|
86
|
+
};
|
|
79
87
|
"enabled: Overlays": {
|
|
80
88
|
type: "enabled: Overlays";
|
|
81
89
|
params: unknown;
|
|
@@ -88,6 +96,10 @@ export declare const printing: {
|
|
|
88
96
|
type: "is dynamic view";
|
|
89
97
|
params: unknown;
|
|
90
98
|
};
|
|
99
|
+
"is same view": {
|
|
100
|
+
type: "is same view";
|
|
101
|
+
params: unknown;
|
|
102
|
+
};
|
|
91
103
|
"is another view": {
|
|
92
104
|
type: "is another view";
|
|
93
105
|
params: unknown;
|