@loopstack/loopstack-studio 0.24.0 → 0.25.1
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/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/api/auth.js +4 -2
- package/dist/api/client.js +9 -7
- package/dist/api/config.js +7 -5
- package/dist/api/dashboard.js +4 -2
- package/dist/api/documents.js +4 -2
- package/dist/api/index.js +21 -23
- package/dist/api/processor.js +5 -3
- package/dist/api/secrets.js +4 -2
- package/dist/api/workflows.js +11 -3
- package/dist/api/workspaces.js +4 -2
- package/dist/app/EnvironmentEmbedRoot.js +24 -31
- package/dist/components/ai-elements/code-block.js +53 -71
- package/dist/components/ai-elements/message.js +41 -82
- package/dist/components/ai-elements/prompt-input.js +162 -253
- package/dist/components/ai-elements/reasoning.js +78 -116
- package/dist/components/ai-elements/shimmer.js +23 -35
- package/dist/components/ai-elements/sources.js +29 -58
- package/dist/components/data-table/ConfirmDialog.js +14 -30
- package/dist/components/data-table/DataList.js +138 -198
- package/dist/components/data-table/DataTable.js +168 -234
- package/dist/components/data-table/DataTableBatchAction.js +18 -27
- package/dist/components/data-table/DataTableFilters.js +53 -78
- package/dist/components/data-table/DataTablePagination.js +72 -104
- package/dist/components/data-table/DataTableToolbar.js +53 -65
- package/dist/components/dynamic-form/ArrayController.js +85 -103
- package/dist/components/dynamic-form/CodeContent.js +28 -36
- package/dist/components/dynamic-form/Form.js +43 -56
- package/dist/components/dynamic-form/FormBody.js +12 -10
- package/dist/components/dynamic-form/FormElement.js +31 -41
- package/dist/components/dynamic-form/FormElementHeader.js +12 -20
- package/dist/components/dynamic-form/InputController.js +36 -38
- package/dist/components/dynamic-form/MarkdownContent.js +53 -74
- package/dist/components/dynamic-form/MermaidDiagram.js +22 -24
- package/dist/components/dynamic-form/ObjectController.js +24 -32
- package/dist/components/dynamic-form/fields/BaseFieldWrapper.js +35 -47
- package/dist/components/dynamic-form/fields/CheckboxField.js +39 -48
- package/dist/components/dynamic-form/fields/CodeViewField.js +42 -50
- package/dist/components/dynamic-form/fields/InputField.js +62 -90
- package/dist/components/dynamic-form/fields/MarkdownViewField.js +16 -19
- package/dist/components/dynamic-form/fields/RadioField.js +46 -62
- package/dist/components/dynamic-form/fields/SelectField.js +40 -58
- package/dist/components/dynamic-form/fields/SliderField.js +94 -100
- package/dist/components/dynamic-form/fields/SwitchField.js +42 -61
- package/dist/components/dynamic-form/fields/TextareaField.js +53 -72
- package/dist/components/dynamic-form/fields/utils/text-validation-utils.js +4 -2
- package/dist/components/dynamic-form/hooks/useArrayDefaultValue.js +6 -5
- package/dist/components/dynamic-form/hooks/useFieldConfig.js +19 -20
- package/dist/components/dynamic-form/hooks/useMergeParentKey.js +4 -2
- package/dist/components/dynamic-form/hooks/useSortPropertyNames.js +4 -2
- package/dist/components/feedback/ErrorAlert.js +11 -17
- package/dist/components/feedback/ErrorBoundary.js +16 -14
- package/dist/components/feedback/ErrorSnackbar.js +13 -30
- package/dist/components/feedback/LoadingCentered.js +15 -28
- package/dist/components/feedback/Snackbar.js +43 -44
- package/dist/components/feedback/index.js +5 -5
- package/dist/components/index.js +47 -47
- package/dist/components/layout/MainLayout.js +17 -25
- package/dist/components/layout/StudioSidebar.js +132 -202
- package/dist/components/lists/CustomListView.js +49 -74
- package/dist/components/lists/ListView.js +66 -102
- package/dist/components/loopstack-elements/link.js +71 -109
- package/dist/components/loopstack-elements/tool.js +99 -0
- package/dist/components/messages/CompletionMessagePaper.js +53 -85
- package/dist/components/page/PageBreadcrumbs.js +64 -83
- package/dist/components/ui/DiscordLogo.js +16 -22
- package/dist/components/ui/GoogleLogo.js +40 -44
- package/dist/components/ui/accordion.js +31 -52
- package/dist/components/ui/alert-dialog.js +59 -109
- package/dist/components/ui/alert.js +22 -36
- package/dist/components/ui/avatar.js +21 -35
- package/dist/components/ui/badge.js +13 -17
- package/dist/components/ui/breadcrumb.js +46 -82
- package/dist/components/ui/button-group.js +5 -5
- package/dist/components/ui/button.js +17 -21
- package/dist/components/ui/card.js +40 -74
- package/dist/components/ui/checkbox.js +17 -23
- package/dist/components/ui/collapsible.js +17 -25
- package/dist/components/ui/command.js +1 -2
- package/dist/components/ui/context-menu.js +32 -52
- package/dist/components/ui/dialog.js +62 -107
- package/dist/components/ui/drawer.js +54 -99
- package/dist/components/ui/dropdown-menu.js +91 -159
- package/dist/components/ui/hover-card.js +1 -2
- package/dist/components/ui/input-group.js +36 -56
- package/dist/components/ui/input.js +11 -15
- package/dist/components/ui/label.js +11 -15
- package/dist/components/ui/popover.js +25 -38
- package/dist/components/ui/radio-group.js +22 -33
- package/dist/components/ui/scroll-area.js +28 -43
- package/dist/components/ui/select.js +73 -134
- package/dist/components/ui/separator.js +13 -17
- package/dist/components/ui/sheet.js +60 -105
- package/dist/components/ui/sidebar.js +269 -451
- package/dist/components/ui/skeleton.js +10 -14
- package/dist/components/ui/slider.js +17 -15
- package/dist/components/ui/switch.js +15 -21
- package/dist/components/ui/table.js +46 -85
- package/dist/components/ui/tabs.js +26 -45
- package/dist/components/ui/textarea.js +10 -14
- package/dist/components/ui/tooltip.js +26 -41
- package/dist/components/ui-widgets/UiActions.js +30 -31
- package/dist/components/ui-widgets/UiWidget.js +34 -55
- package/dist/components/ui-widgets/widgets/AiPromptInput.js +28 -42
- package/dist/components/ui-widgets/widgets/ButtonFullWidth.js +16 -19
- package/dist/components/ui-widgets/widgets/SandboxRun.js +19 -26
- package/dist/components/ui-widgets/widgets/SubmitButton.js +15 -18
- package/dist/events/api-client-events.js +4 -2
- package/dist/events/sse-client-events.js +4 -2
- package/dist/features/code-explorer/CodeExplorer.js +1 -2
- package/dist/features/code-explorer/components/CodeExplorerTree.js +2 -2
- package/dist/features/code-explorer/components/CodeExplorerTreeNode.js +31 -29
- package/dist/features/code-explorer/components/FileContentViewer.js +120 -185
- package/dist/features/code-explorer/components/FileTabsBar.js +1 -2
- package/dist/features/code-explorer/components/FileTabsBarBase.js +134 -169
- package/dist/features/code-explorer/index.js +1 -1
- package/dist/features/code-explorer/providers/CodeExplorerProvider.js +4 -4
- package/dist/features/code-explorer/utils/fileIcons.js +41 -39
- package/dist/features/dashboard/Dashboard.js +79 -121
- package/dist/features/dashboard/RunItem.js +50 -68
- package/dist/features/dashboard/RunList.js +17 -28
- package/dist/features/debug/components/ConfigFlowViewer.js +49 -67
- package/dist/features/debug/components/WorkflowDebugHeader.js +32 -0
- package/dist/features/debug/components/WorkflowDebugLegend.js +56 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +90 -0
- package/dist/features/debug/components/workflow-flow/StateNode.js +82 -0
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +41 -0
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +64 -0
- package/dist/features/debug/index.js +3 -3
- package/dist/features/debug/lib/edge-paths.js +33 -31
- package/dist/features/debug/lib/flow-utils.js +156 -162
- package/dist/features/documents/DocumentRenderer.js +77 -45
- package/dist/features/documents/components/DocumentItem.js +21 -24
- package/dist/features/documents/components/DocumentList.js +39 -42
- package/dist/features/documents/components/DocumentMetadataPills.js +44 -59
- package/dist/features/documents/document-details/DocumentDetails.js +298 -413
- package/dist/features/documents/document-details/PromptDetails.js +105 -142
- package/dist/features/documents/index.js +4 -4
- package/dist/features/documents/renderers/AiMessage.js +39 -48
- package/dist/features/documents/renderers/AiMessageContent.js +108 -164
- package/dist/features/documents/renderers/ChoicesRenderer.js +80 -0
- package/dist/features/documents/renderers/ClaudeMessage.js +74 -91
- package/dist/features/documents/renderers/ConfirmPromptRenderer.js +47 -0
- package/dist/features/documents/renderers/DocumentDebugRenderer.js +26 -30
- package/dist/features/documents/renderers/DocumentFormRenderer.js +80 -72
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +10 -9
- package/dist/features/documents/renderers/ErrorMessageRenderer.js +11 -13
- package/dist/features/documents/renderers/LinkMessageRenderer.js +15 -16
- package/dist/features/documents/renderers/MarkdownMessageRenderer.js +8 -10
- package/dist/features/documents/renderers/PlainMessageRenderer.js +7 -9
- package/dist/features/documents/renderers/SecretInputRenderer.js +89 -0
- package/dist/features/documents/renderers/TextPromptRenderer.js +48 -0
- package/dist/features/documents/renderers/useDocumentTransition.js +32 -0
- package/dist/features/health/LocalHealthCheck.js +54 -53
- package/dist/features/health/index.js +1 -1
- package/dist/features/oauth/OAuthCallbackPage.js +2 -2
- package/dist/features/oauth/OAuthPromptRenderer.js +135 -184
- package/dist/features/oauth/index.js +2 -2
- package/dist/features/oauth/useOAuthPopup.js +52 -71
- package/dist/features/runs/Runs.js +145 -187
- package/dist/features/workbench/Workbench.js +72 -98
- package/dist/features/workbench/WorkflowItem.js +49 -67
- package/dist/features/workbench/WorkflowList.js +50 -82
- package/dist/features/workbench/components/NewRunDialog.js +214 -311
- package/dist/features/workbench/components/RemoteFileTabsBar.js +18 -17
- package/dist/features/workbench/components/RemoteFileTree.js +54 -85
- package/dist/features/workbench/components/WorkbenchFilesPanel.js +52 -63
- package/dist/features/workbench/components/WorkbenchFloatingPanel.js +34 -90
- package/dist/features/workbench/components/WorkbenchFlowPanel.js +35 -46
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +50 -80
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +52 -50
- package/dist/features/workbench/components/WorkbenchSecretsPanel.js +143 -172
- package/dist/features/workbench/components/WorkbenchSettingsModal.js +50 -86
- package/dist/features/workbench/components/WorkflowForms.js +17 -22
- package/dist/features/workbench/components/WorkflowHistoryItem.js +96 -143
- package/dist/features/workbench/components/WorkflowHistoryList.js +33 -0
- package/dist/features/workbench/components/buttons/WorkflowButtons.js +70 -97
- package/dist/features/workbench/hooks/useAutoScrollBottom.js +21 -25
- package/dist/features/workbench/hooks/useScrollToListItem.js +20 -21
- package/dist/features/workbench/hooks/useWorkflowData.js +32 -45
- package/dist/features/workbench/hooks/useWorkflowListState.js +13 -49
- package/dist/features/workbench/index.js +7 -8
- package/dist/features/workbench/providers/RemoteFileExplorerProvider.js +123 -138
- package/dist/features/workbench/providers/ScrollProvider.js +16 -20
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +76 -75
- package/dist/features/workspaces/Workspaces.js +161 -226
- package/dist/features/workspaces/components/CreateWorkspace.js +137 -194
- package/dist/features/workspaces/components/EnvironmentSlotSelector.js +27 -25
- package/dist/features/workspaces/components/ExecutionTimeline.js +144 -185
- package/dist/features/workspaces/components/NewWorkflowRunDialog.js +23 -0
- package/dist/features/workspaces/components/WorkflowRunForm.js +104 -0
- package/dist/features/workspaces/components/WorkspaceHomePage.js +60 -81
- package/dist/features/workspaces/components/workflow-form/ArgumentsView.js +58 -0
- package/dist/features/workspaces/components/workflow-form/HeaderSection.js +29 -0
- package/dist/features/workspaces/components/workflow-form/SelectionView.js +66 -0
- package/dist/features/workspaces/index.js +3 -3
- package/dist/frontend/studio/node_modules/lodash/_Symbol.js +9 -0
- package/dist/frontend/studio/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/frontend/studio/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/frontend/studio/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/frontend/studio/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/frontend/studio/node_modules/lodash/_objectToString.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/_root.js +10 -0
- package/dist/frontend/studio/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/{node_modules → frontend/studio/node_modules}/lodash/debounce.js +10 -8
- package/dist/frontend/studio/node_modules/lodash/isObject.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/frontend/studio/node_modules/lodash/isSymbol.js +14 -0
- package/dist/frontend/studio/node_modules/lodash/now.js +12 -0
- package/dist/frontend/studio/node_modules/lodash/toNumber.js +24 -0
- package/dist/hooks/index.js +6 -6
- package/dist/hooks/query-keys.js +39 -78
- package/dist/hooks/use-mobile.js +12 -11
- package/dist/hooks/useApi.js +16 -14
- package/dist/hooks/useAuth.js +38 -53
- package/dist/hooks/useConfig.js +26 -37
- package/dist/hooks/useDashboard.js +12 -15
- package/dist/hooks/useDebounce.js +12 -11
- package/dist/hooks/useDocuments.js +23 -35
- package/dist/hooks/useFiles.js +1 -2
- package/dist/hooks/useProcessor.js +14 -17
- package/dist/hooks/useSecrets.js +45 -64
- package/dist/hooks/useWorkflows.js +113 -78
- package/dist/hooks/useWorkspaces.js +83 -123
- package/dist/index.d.ts +0 -1305
- package/dist/index.js +80 -80
- package/dist/lib/requireParam.js +4 -2
- package/dist/lib/utils.js +7 -5
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/constants.js +6 -4
- package/dist/node_modules/@braintree/sanitize-url/dist/index.js +8 -6
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +19 -20
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +87 -88
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +16 -13
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +2 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +4 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +36 -34
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +138 -110
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +13 -11
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +5 -3
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +4 -2
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +4 -2
- package/dist/node_modules/@dagrejs/dagre/dist/dagre.esm.js +1812 -1913
- package/dist/node_modules/@iconify/utils/lib/customisations/defaults.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/defaults.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/icon/merge.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/name.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/icon/transformations.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/icon-set/get-icon.js +12 -10
- package/dist/node_modules/@iconify/utils/lib/icon-set/tree.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/build.js +20 -18
- package/dist/node_modules/@iconify/utils/lib/svg/defs.js +8 -6
- package/dist/node_modules/@iconify/utils/lib/svg/html.js +4 -2
- package/dist/node_modules/@iconify/utils/lib/svg/id.js +10 -8
- package/dist/node_modules/@iconify/utils/lib/svg/size.js +7 -5
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +38 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +33 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1208 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +26 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +67 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +34 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +59 -45
- package/dist/node_modules/@shikijs/core/dist/index.js +583 -1119
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.js +163 -148
- package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.js +4 -2
- package/dist/node_modules/@shikijs/langs/dist/abap.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/actionscript-3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ada.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-expression.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/angular-html.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/angular-template.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/angular-ts.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/apache.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/apl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/applescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ara.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/asm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/astro.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/awk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ballerina.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/beancount.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/berry.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bibtex.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bicep.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/bird2.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/blade.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/bsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/c3.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cadence.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cairo.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/clarity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/clojure.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cmake.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/codeowners.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/codeql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coffee.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/common-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/coq.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cpp-macro.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/cpp.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/crystal.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/csharp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/css.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/csv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/cypher.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/d.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dart.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dax.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/desktop.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/diff.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/docker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dotenv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/dream-maker.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/edge.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/elixir.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/elm.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/erb.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/es-tag-css.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-html.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fennel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fish.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fluent.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gdresource.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gdshader.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/genie.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gherkin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/git-commit.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/git-rebase.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gleam.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/glimmer-js.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/glsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/gn.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/gnuplot.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/go.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/graphql.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hack.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/haml.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/handlebars.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/haskell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hjson.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/hlsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/html-derivative.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/html.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/http.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/hurl.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/hxml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/hy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/imba.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ini.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/java.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/javascript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jinja-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jinja.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/jison.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/json.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/json5.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonc.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsonnet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jssm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/jsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/julia.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/just.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/kdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kotlin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/kusto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/latex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/lean.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/less.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/liquid.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/llvm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/log.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/logo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/lua.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/luau.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/make.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-nix.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown-vue.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/marko.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/matlab.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mdc.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/mdx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mipsasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/mojo.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/moonbit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/move.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/narrat.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nginx.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nim.js +19 -17
- package/dist/node_modules/@shikijs/langs/dist/nix.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/nushell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-c.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/objective-cpp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ocaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/odin.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/openscad.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pascal.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/perl.js +15 -13
- package/dist/node_modules/@shikijs/langs/dist/php.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/pkl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/plsql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/po.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/polar.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/postcss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powerquery.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/powershell.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prisma.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/prolog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/proto.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/pug.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/puppet.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/python.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/qmldir.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/qss.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/r.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/racket.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/raku.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/razor.js +9 -7
- package/dist/node_modules/@shikijs/langs/dist/reg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/regexp.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rel.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/riscv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ron.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rosmsg.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/rst.js +21 -19
- package/dist/node_modules/@shikijs/langs/dist/ruby.js +29 -27
- package/dist/node_modules/@shikijs/langs/dist/rust.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sas.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sass.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scheme.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/scss.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sdbl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shaderlab.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/shellscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/shellsession.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/smalltalk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/solidity.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/soy.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/sparql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/splunk.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/sql.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ssh-config.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/stata.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/stylus.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/surrealql.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/svelte.js +13 -11
- package/dist/node_modules/@shikijs/langs/dist/swift.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/system-verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/systemd.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/talonscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tasl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tcl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +11 -9
- package/dist/node_modules/@shikijs/langs/dist/terraform.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tex.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/toml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/ts-tags.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/tsv.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/tsx.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/turtle.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/twig.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/typescript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typespec.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/typst.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/v.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vala.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vb.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/verilog.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vhdl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/viml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-directives.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-html.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +17 -15
- package/dist/node_modules/@shikijs/langs/dist/vue.js +25 -23
- package/dist/node_modules/@shikijs/langs/dist/vyper.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wasm.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wenyan.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wgsl.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wikitext.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wit.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/wolfram.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/xml.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/xsl.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/yaml.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zenscript.js +3 -2
- package/dist/node_modules/@shikijs/langs/dist/zig.js +3 -2
- package/dist/node_modules/@shikijs/primitive/dist/index.js +540 -0
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/aurora-x.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dark-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/dracula.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/everforest-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-default.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/github-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon-bright.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/horizon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/houston.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/laserwave.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/light-plus.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/material-theme.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/min-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/monokai.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/night-owl.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/nord.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/one-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/plastic.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/poimandres.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/red.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/rose-pine.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/slack-ochin.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/snazzy-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/solarized-light.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/synthwave-84.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/tokyo-night.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vesper.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-black.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.js +4 -2
- package/dist/node_modules/@shikijs/themes/dist/vitesse-light.js +4 -2
- package/dist/node_modules/@shikijs/types/dist/index.js +4 -2
- package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +949 -947
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +30 -30
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +6 -4
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +64 -64
- package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +905 -0
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +904 -901
- package/dist/node_modules/@xyflow/system/dist/esm/index.js +1226 -1222
- package/dist/node_modules/bail/index.js +4 -2
- package/dist/node_modules/ccount/index.js +4 -2
- package/dist/node_modules/character-entities-html4/index.js +4 -2
- package/dist/node_modules/character-entities-legacy/index.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/api.js +10 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +6 -4
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +11 -9
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +38 -45
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +35 -36
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +26 -25
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +204 -226
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +18 -18
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +20 -19
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +14 -13
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +195 -200
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +5 -4
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +28 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +165 -170
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +17 -17
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +50 -50
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +76 -83
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +21 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +117 -121
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +12 -6
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +51 -51
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +15 -14
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +81 -80
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +229 -217
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +87 -86
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +36 -44
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +287 -309
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +4 -2
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +115 -126
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +73 -70
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +12 -10
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +45 -54
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +29 -30
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +242 -240
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +134 -133
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +11 -10
- package/dist/node_modules/chevrotain-allstar/lib/index.js +1 -1
- package/dist/node_modules/classcat/index.js +5 -3
- package/dist/node_modules/comma-separated-tokens/index.js +5 -3
- package/dist/node_modules/cose-base/cose-base.js +21 -21
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +7935 -7935
- package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +8 -6
- package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.js +8 -6
- package/dist/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +20 -20
- package/dist/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/d3/src/index.js +95 -95
- package/dist/node_modules/d3-array/src/ascending.js +4 -2
- package/dist/node_modules/d3-array/src/bisect.js +8 -8
- package/dist/node_modules/d3-array/src/bisector.js +8 -6
- package/dist/node_modules/d3-array/src/descending.js +4 -2
- package/dist/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-array/src/number.js +4 -2
- package/dist/node_modules/d3-array/src/range.js +4 -2
- package/dist/node_modules/d3-array/src/ticks.js +13 -11
- package/dist/node_modules/d3-axis/src/axis.js +48 -46
- package/dist/node_modules/d3-axis/src/identity.js +4 -2
- package/dist/node_modules/d3-brush/src/brush.js +6 -4
- package/dist/node_modules/d3-color/src/color.js +86 -84
- package/dist/node_modules/d3-color/src/define.js +5 -3
- package/dist/node_modules/d3-color/src/lab.js +45 -43
- package/dist/node_modules/d3-color/src/math.js +4 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.js +18 -17
- package/dist/node_modules/d3-drag/src/constant.js +4 -2
- package/dist/node_modules/d3-drag/src/drag.js +77 -75
- package/dist/node_modules/d3-drag/src/event.js +5 -3
- package/dist/node_modules/d3-drag/src/nodrag.js +11 -9
- package/dist/node_modules/d3-drag/src/noevent.js +6 -4
- package/dist/node_modules/d3-ease/src/cubic.js +4 -2
- package/dist/node_modules/d3-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-format/src/exponent.js +6 -4
- package/dist/node_modules/d3-format/src/formatDecimal.js +5 -3
- package/dist/node_modules/d3-format/src/formatGroup.js +4 -2
- package/dist/node_modules/d3-format/src/formatNumerals.js +4 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +10 -8
- package/dist/node_modules/d3-format/src/formatRounded.js +6 -4
- package/dist/node_modules/d3-format/src/formatSpecifier.js +10 -8
- package/dist/node_modules/d3-format/src/formatTrim.js +4 -2
- package/dist/node_modules/d3-format/src/formatTypes.js +15 -13
- package/dist/node_modules/d3-format/src/identity.js +4 -2
- package/dist/node_modules/d3-format/src/locale.js +33 -31
- package/dist/node_modules/d3-format/src/precisionFixed.js +6 -4
- package/dist/node_modules/d3-format/src/precisionPrefix.js +6 -4
- package/dist/node_modules/d3-format/src/precisionRound.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/accessors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/constant.js +5 -3
- package/dist/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/count.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/descendants.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/each.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/find.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/index.js +46 -44
- package/dist/node_modules/d3-hierarchy/src/hierarchy/iterator.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/leaves.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/links.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/path.js +6 -4
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sort.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/hierarchy/sum.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/dice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/index.js +16 -14
- package/dist/node_modules/d3-hierarchy/src/treemap/round.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/slice.js +4 -2
- package/dist/node_modules/d3-hierarchy/src/treemap/squarify.js +11 -9
- package/dist/node_modules/d3-interpolate/src/array.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basis.js +6 -4
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +6 -4
- package/dist/node_modules/d3-interpolate/src/color.js +19 -17
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -2
- package/dist/node_modules/d3-interpolate/src/date.js +4 -2
- package/dist/node_modules/d3-interpolate/src/hcl.js +8 -6
- package/dist/node_modules/d3-interpolate/src/number.js +4 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.js +5 -3
- package/dist/node_modules/d3-interpolate/src/object.js +6 -4
- package/dist/node_modules/d3-interpolate/src/rgb.js +11 -9
- package/dist/node_modules/d3-interpolate/src/round.js +4 -2
- package/dist/node_modules/d3-interpolate/src/string.js +16 -14
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +7 -5
- package/dist/node_modules/d3-interpolate/src/transform/index.js +13 -11
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +10 -8
- package/dist/node_modules/d3-interpolate/src/value.js +14 -12
- package/dist/node_modules/d3-interpolate/src/zoom.js +13 -11
- package/dist/node_modules/d3-path/src/path.js +16 -14
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/max.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/min.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-path/src/path.js +13 -12
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +19 -17
- package/dist/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-sankey/src/align.js +12 -10
- package/dist/node_modules/d3-sankey/src/constant.js +4 -2
- package/dist/node_modules/d3-sankey/src/sankey.js +170 -168
- package/dist/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +8 -6
- package/dist/node_modules/d3-scale/src/band.js +11 -9
- package/dist/node_modules/d3-scale/src/constant.js +4 -2
- package/dist/node_modules/d3-scale/src/continuous.js +49 -47
- package/dist/node_modules/d3-scale/src/init.js +4 -2
- package/dist/node_modules/d3-scale/src/linear.js +15 -13
- package/dist/node_modules/d3-scale/src/nice.js +4 -2
- package/dist/node_modules/d3-scale/src/number.js +4 -2
- package/dist/node_modules/d3-scale/src/ordinal.js +18 -16
- package/dist/node_modules/d3-scale/src/tickFormat.js +16 -14
- package/dist/node_modules/d3-scale/src/time.js +36 -34
- package/dist/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -3
- package/dist/node_modules/d3-scale-chromatic/src/colors.js +4 -2
- package/dist/node_modules/d3-selection/src/array.js +4 -2
- package/dist/node_modules/d3-selection/src/constant.js +4 -2
- package/dist/node_modules/d3-selection/src/creator.js +12 -10
- package/dist/node_modules/d3-selection/src/matcher.js +5 -3
- package/dist/node_modules/d3-selection/src/namespace.js +7 -5
- package/dist/node_modules/d3-selection/src/namespaces.js +5 -3
- package/dist/node_modules/d3-selection/src/pointer.js +6 -4
- package/dist/node_modules/d3-selection/src/select.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/append.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/attr.js +19 -17
- package/dist/node_modules/d3-selection/src/selection/call.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/classed.js +25 -23
- package/dist/node_modules/d3-selection/src/selection/clone.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/data.js +18 -16
- package/dist/node_modules/d3-selection/src/selection/datum.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +12 -10
- package/dist/node_modules/d3-selection/src/selection/each.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/empty.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/enter.js +13 -11
- package/dist/node_modules/d3-selection/src/selection/exit.js +7 -5
- package/dist/node_modules/d3-selection/src/selection/filter.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/html.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/index.js +80 -79
- package/dist/node_modules/d3-selection/src/selection/insert.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/iterator.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/join.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/lower.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/merge.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/node.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/on.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/order.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/property.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/raise.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/remove.js +6 -4
- package/dist/node_modules/d3-selection/src/selection/select.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +11 -9
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +10 -8
- package/dist/node_modules/d3-selection/src/selection/size.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/sort.js +8 -6
- package/dist/node_modules/d3-selection/src/selection/sparse.js +4 -2
- package/dist/node_modules/d3-selection/src/selection/style.js +14 -12
- package/dist/node_modules/d3-selection/src/selection/text.js +8 -6
- package/dist/node_modules/d3-selection/src/selector.js +6 -4
- package/dist/node_modules/d3-selection/src/selectorAll.js +6 -4
- package/dist/node_modules/d3-selection/src/sourceEvent.js +4 -2
- package/dist/node_modules/d3-selection/src/window.js +4 -2
- package/dist/node_modules/d3-shape/src/arc.js +38 -36
- package/dist/node_modules/d3-shape/src/array.js +3 -2
- package/dist/node_modules/d3-shape/src/constant.js +4 -2
- package/dist/node_modules/d3-shape/src/curve/basis.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +18 -16
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/bump.js +15 -13
- package/dist/node_modules/d3-shape/src/curve/bundle.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +19 -17
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +13 -11
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +10 -8
- package/dist/node_modules/d3-shape/src/curve/linear.js +7 -5
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +12 -10
- package/dist/node_modules/d3-shape/src/curve/monotone.js +23 -21
- package/dist/node_modules/d3-shape/src/curve/natural.js +9 -7
- package/dist/node_modules/d3-shape/src/curve/step.js +19 -17
- package/dist/node_modules/d3-shape/src/descending.js +4 -2
- package/dist/node_modules/d3-shape/src/identity.js +4 -2
- package/dist/node_modules/d3-shape/src/line.js +19 -17
- package/dist/node_modules/d3-shape/src/math.js +8 -6
- package/dist/node_modules/d3-shape/src/noop.js +4 -2
- package/dist/node_modules/d3-shape/src/path.js +6 -4
- package/dist/node_modules/d3-shape/src/pie.js +15 -13
- package/dist/node_modules/d3-shape/src/point.js +5 -3
- package/dist/node_modules/d3-time/src/day.js +17 -15
- package/dist/node_modules/d3-time/src/duration.js +4 -2
- package/dist/node_modules/d3-time/src/hour.js +16 -14
- package/dist/node_modules/d3-time/src/interval.js +7 -5
- package/dist/node_modules/d3-time/src/millisecond.js +7 -5
- package/dist/node_modules/d3-time/src/minute.js +16 -14
- package/dist/node_modules/d3-time/src/month.js +14 -12
- package/dist/node_modules/d3-time/src/second.js +9 -7
- package/dist/node_modules/d3-time/src/ticks.js +66 -64
- package/dist/node_modules/d3-time/src/week.js +21 -19
- package/dist/node_modules/d3-time/src/year.js +10 -8
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +8 -6
- package/dist/node_modules/d3-time-format/src/locale.js +346 -344
- package/dist/node_modules/d3-timer/src/timeout.js +6 -4
- package/dist/node_modules/d3-timer/src/timer.js +33 -31
- package/dist/node_modules/d3-transition/src/index.js +2 -2
- package/dist/node_modules/d3-transition/src/interrupt.js +4 -3
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -4
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +6 -4
- package/dist/node_modules/d3-transition/src/selection/transition.js +16 -14
- package/dist/node_modules/d3-transition/src/transition/attr.js +28 -26
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +13 -11
- package/dist/node_modules/d3-transition/src/transition/delay.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/duration.js +11 -9
- package/dist/node_modules/d3-transition/src/transition/ease.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/end.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/filter.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/index.js +63 -61
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/merge.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/on.js +9 -7
- package/dist/node_modules/d3-transition/src/transition/remove.js +6 -4
- package/dist/node_modules/d3-transition/src/transition/schedule.js +20 -18
- package/dist/node_modules/d3-transition/src/transition/select.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/selection.js +7 -5
- package/dist/node_modules/d3-transition/src/transition/style.js +21 -19
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/text.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/textTween.js +8 -6
- package/dist/node_modules/d3-transition/src/transition/transition.js +10 -8
- package/dist/node_modules/d3-transition/src/transition/tween.js +14 -12
- package/dist/node_modules/d3-zoom/src/constant.js +4 -2
- package/dist/node_modules/d3-zoom/src/event.js +4 -2
- package/dist/node_modules/d3-zoom/src/index.js +2 -2
- package/dist/node_modules/d3-zoom/src/noevent.js +5 -3
- package/dist/node_modules/d3-zoom/src/transform.js +12 -10
- package/dist/node_modules/d3-zoom/src/zoom.js +116 -114
- package/dist/node_modules/dagre-d3-es/src/dagre/acyclic.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +11 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/data/list.js +9 -7
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +51 -49
- package/dist/node_modules/dagre-d3-es/src/dagre/index.js +2 -2
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +165 -163
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +45 -43
- package/dist/node_modules/dagre-d3-es/src/dagre/normalize.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +8 -6
- package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +14 -12
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +22 -20
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +36 -34
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +32 -30
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +30 -28
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +12 -10
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +150 -148
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +20 -18
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +19 -17
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/index.js +16 -14
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +64 -63
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +84 -82
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +15 -13
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.js +3 -2
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/index.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +6 -4
- package/dist/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +13 -11
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +131 -129
- package/dist/node_modules/dagre-d3-es/src/graphlib/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +23 -21
- package/dist/node_modules/dayjs/dayjs.min.js +6 -4
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +6 -4
- package/dist/node_modules/dayjs/plugin/duration.js +6 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +6 -4
- package/dist/node_modules/decode-named-character-reference/index.dom.js +7 -5
- package/dist/node_modules/devlop/lib/default.js +4 -2
- package/dist/node_modules/dompurify/dist/purify.es.js +203 -201
- package/dist/node_modules/entities/dist/esm/decode-codepoint.js +6 -4
- package/dist/node_modules/entities/dist/esm/decode.js +87 -85
- package/dist/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -2
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +6 -4
- package/dist/node_modules/extend/index.js +9 -6
- package/dist/node_modules/hast-util-from-dom/lib/index.js +32 -30
- package/dist/node_modules/hast-util-from-html-isomorphic/lib/browser.js +10 -8
- package/dist/node_modules/hast-util-from-parse5/lib/index.js +82 -80
- package/dist/node_modules/hast-util-is-element/lib/index.js +17 -15
- package/dist/node_modules/hast-util-parse-selector/lib/index.js +7 -5
- package/dist/node_modules/hast-util-raw/lib/index.js +136 -134
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/doctype.js +23 -21
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/error-codes.js +5 -3
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/foreign-content.js +89 -89
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/html.js +250 -249
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/token.js +6 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/common/unicode.js +14 -14
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/index.js +4 -4
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/formatting-element-list.js +17 -15
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/index.js +1497 -1495
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/parser/open-element-stack.js +148 -146
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/serializer/index.js +20 -19
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +800 -798
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/preprocessor.js +33 -31
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tree-adapters/default.js +10 -8
- package/dist/node_modules/hast-util-sanitize/lib/index.js +106 -104
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +12 -11
- package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +9 -7
- package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/element.js +25 -23
- package/dist/node_modules/hast-util-to-html/lib/handle/index.js +22 -21
- package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/handle/root.js +4 -2
- package/dist/node_modules/hast-util-to-html/lib/handle/text.js +7 -5
- package/dist/node_modules/hast-util-to-html/lib/index.js +38 -36
- package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +70 -68
- package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +6 -4
- package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +32 -30
- package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +10 -9
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +192 -190
- package/dist/node_modules/hast-util-to-parse5/lib/index.js +71 -69
- package/dist/node_modules/hast-util-to-text/lib/index.js +61 -59
- package/dist/node_modules/hast-util-whitespace/lib/index.js +8 -6
- package/dist/node_modules/hastscript/lib/create-h.js +26 -24
- package/dist/node_modules/hastscript/lib/index.js +7 -5
- package/dist/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +4 -2
- package/dist/node_modules/html-url-attributes/lib/index.js +4 -2
- package/dist/node_modules/html-void-elements/index.js +4 -2
- package/dist/node_modules/inline-style-parser/cjs/index.js +6 -4
- package/dist/node_modules/internmap/src/index.js +22 -20
- package/dist/node_modules/katex/dist/katex.js +2914 -2873
- package/dist/node_modules/khroma/dist/channels/index.js +23 -21
- package/dist/node_modules/khroma/dist/channels/reusable.js +5 -3
- package/dist/node_modules/khroma/dist/channels/type.js +7 -5
- package/dist/node_modules/khroma/dist/color/hex.js +10 -8
- package/dist/node_modules/khroma/dist/color/hsl.js +19 -17
- package/dist/node_modules/khroma/dist/color/index.js +17 -15
- package/dist/node_modules/khroma/dist/color/keyword.js +10 -8
- package/dist/node_modules/khroma/dist/color/rgb.js +14 -12
- package/dist/node_modules/khroma/dist/constants.js +7 -5
- package/dist/node_modules/khroma/dist/methods/adjust.js +8 -6
- package/dist/node_modules/khroma/dist/methods/adjust_channel.js +8 -6
- package/dist/node_modules/khroma/dist/methods/change.js +9 -7
- package/dist/node_modules/khroma/dist/methods/channel.js +6 -4
- package/dist/node_modules/khroma/dist/methods/darken.js +5 -3
- package/dist/node_modules/khroma/dist/methods/invert.js +8 -6
- package/dist/node_modules/khroma/dist/methods/is_dark.js +5 -3
- package/dist/node_modules/khroma/dist/methods/is_light.js +5 -3
- package/dist/node_modules/khroma/dist/methods/lighten.js +5 -3
- package/dist/node_modules/khroma/dist/methods/luminance.js +8 -6
- package/dist/node_modules/khroma/dist/methods/mix.js +8 -6
- package/dist/node_modules/khroma/dist/methods/rgba.js +15 -13
- package/dist/node_modules/khroma/dist/methods/transparentize.js +5 -0
- package/dist/node_modules/khroma/dist/utils/channel.js +8 -6
- package/dist/node_modules/khroma/dist/utils/index.js +10 -8
- package/dist/node_modules/khroma/dist/utils/lang.js +4 -2
- package/dist/node_modules/khroma/dist/utils/unit.js +4 -2
- package/dist/node_modules/langium/lib/default-module.js +66 -64
- package/dist/node_modules/langium/lib/dependency-injection.js +37 -39
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +7 -5
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +8 -6
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +204 -202
- package/dist/node_modules/langium/lib/languages/generated/ast.js +343 -534
- package/dist/node_modules/langium/lib/languages/grammar-config.js +10 -8
- package/dist/node_modules/langium/lib/parser/async-parser.js +4 -76
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +8 -6
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +56 -54
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +9 -7
- package/dist/node_modules/langium/lib/parser/langium-parser.js +190 -188
- package/dist/node_modules/langium/lib/parser/lexer.js +25 -25
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +204 -203
- package/dist/node_modules/langium/lib/parser/token-builder.js +32 -30
- package/dist/node_modules/langium/lib/parser/value-converter.js +17 -15
- package/dist/node_modules/langium/lib/references/linker.js +104 -103
- package/dist/node_modules/langium/lib/references/name-provider.js +9 -7
- package/dist/node_modules/langium/lib/references/references.js +53 -51
- package/dist/node_modules/langium/lib/references/scope-computation.js +14 -12
- package/dist/node_modules/langium/lib/references/scope-provider.js +13 -11
- package/dist/node_modules/langium/lib/references/scope.js +27 -56
- package/dist/node_modules/langium/lib/serializer/hydrator.js +71 -69
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +23 -21
- package/dist/node_modules/langium/lib/service-registry.js +7 -5
- package/dist/node_modules/langium/lib/syntax-tree.js +33 -31
- package/dist/node_modules/langium/lib/utils/ast-utils.js +77 -112
- package/dist/node_modules/langium/lib/utils/caching.js +33 -42
- package/dist/node_modules/langium/lib/utils/cancellation.js +7 -5
- package/dist/node_modules/langium/lib/utils/collections.js +35 -33
- package/dist/node_modules/langium/lib/utils/cst-utils.js +46 -161
- package/dist/node_modules/langium/lib/utils/disposable.js +5 -3
- package/dist/node_modules/langium/lib/utils/errors.js +8 -9
- package/dist/node_modules/langium/lib/utils/event.js +7 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +16 -14
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +172 -249
- package/dist/node_modules/langium/lib/utils/promise-utils.js +18 -19
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +53 -76
- package/dist/node_modules/langium/lib/utils/stream.js +155 -153
- package/dist/node_modules/langium/lib/utils/uri-utils.js +14 -12
- package/dist/node_modules/langium/lib/validation/document-validator.js +104 -103
- package/dist/node_modules/langium/lib/validation/validation-registry.js +15 -14
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +19 -17
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +4 -2
- package/dist/node_modules/langium/lib/workspace/configuration.js +7 -5
- package/dist/node_modules/langium/lib/workspace/document-builder.js +131 -134
- package/dist/node_modules/langium/lib/workspace/documents.js +85 -83
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +5 -4
- package/dist/node_modules/langium/lib/workspace/index-manager.js +16 -14
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +11 -9
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +35 -33
- package/dist/node_modules/layout-base/layout-base.js +6 -4
- package/dist/node_modules/lodash-es/_DataView.js +6 -4
- package/dist/node_modules/lodash-es/_Hash.js +14 -13
- package/dist/node_modules/lodash-es/_ListCache.js +14 -13
- package/dist/node_modules/lodash-es/_Map.js +6 -4
- package/dist/node_modules/lodash-es/_MapCache.js +14 -13
- package/dist/node_modules/lodash-es/_Promise.js +6 -4
- package/dist/node_modules/lodash-es/_Set.js +6 -4
- package/dist/node_modules/lodash-es/_SetCache.js +10 -9
- package/dist/node_modules/lodash-es/_Stack.js +12 -11
- package/dist/node_modules/lodash-es/_Symbol.js +5 -3
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -3
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -4
- package/dist/node_modules/lodash-es/_apply.js +4 -3
- package/dist/node_modules/lodash-es/_arrayEach.js +4 -3
- package/dist/node_modules/lodash-es/_arrayFilter.js +4 -3
- package/dist/node_modules/lodash-es/_arrayIncludes.js +6 -5
- package/dist/node_modules/lodash-es/_arrayIncludesWith.js +4 -3
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +4 -3
- package/dist/node_modules/lodash-es/_arrayPush.js +4 -3
- package/dist/node_modules/lodash-es/_arrayReduce.js +4 -3
- package/dist/node_modules/lodash-es/_arraySome.js +4 -3
- package/dist/node_modules/lodash-es/_asciiSize.js +5 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +7 -6
- package/dist/node_modules/lodash-es/_assignValue.js +8 -7
- package/dist/node_modules/lodash-es/_assocIndexOf.js +6 -5
- package/dist/node_modules/lodash-es/_baseAssign.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignIn.js +7 -6
- package/dist/node_modules/lodash-es/_baseAssignValue.js +6 -5
- package/dist/node_modules/lodash-es/_baseClone.js +51 -50
- package/dist/node_modules/lodash-es/_baseCreate.js +7 -5
- package/dist/node_modules/lodash-es/_baseEach.js +6 -4
- package/dist/node_modules/lodash-es/_baseExtremum.js +6 -5
- package/dist/node_modules/lodash-es/_baseFilter.js +6 -5
- package/dist/node_modules/lodash-es/_baseFindIndex.js +4 -3
- package/dist/node_modules/lodash-es/_baseFlatten.js +8 -7
- package/dist/node_modules/lodash-es/_baseFor.js +5 -3
- package/dist/node_modules/lodash-es/_baseForOwn.js +7 -6
- package/dist/node_modules/lodash-es/_baseGet.js +8 -7
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +7 -6
- package/dist/node_modules/lodash-es/_baseGetTag.js +9 -8
- package/dist/node_modules/lodash-es/_baseGt.js +4 -3
- package/dist/node_modules/lodash-es/_baseHas.js +6 -5
- package/dist/node_modules/lodash-es/_baseHasIn.js +4 -3
- package/dist/node_modules/lodash-es/_baseIndexOf.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsArguments.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsEqual.js +7 -6
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +23 -22
- package/dist/node_modules/lodash-es/_baseIsMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsMatch.js +9 -8
- package/dist/node_modules/lodash-es/_baseIsNaN.js +4 -3
- package/dist/node_modules/lodash-es/_baseIsNative.js +10 -9
- package/dist/node_modules/lodash-es/_baseIsSet.js +8 -7
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +10 -9
- package/dist/node_modules/lodash-es/_baseIteratee.js +10 -9
- package/dist/node_modules/lodash-es/_baseKeys.js +9 -8
- package/dist/node_modules/lodash-es/_baseKeysIn.js +11 -10
- package/dist/node_modules/lodash-es/_baseLt.js +4 -3
- package/dist/node_modules/lodash-es/_baseMap.js +8 -7
- package/dist/node_modules/lodash-es/_baseMatches.js +10 -9
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +15 -14
- package/dist/node_modules/lodash-es/_baseMerge.js +16 -15
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +24 -23
- package/dist/node_modules/lodash-es/_baseOrderBy.js +23 -22
- package/dist/node_modules/lodash-es/_basePick.js +8 -7
- package/dist/node_modules/lodash-es/_basePickBy.js +9 -8
- package/dist/node_modules/lodash-es/_baseProperty.js +4 -3
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +6 -5
- package/dist/node_modules/lodash-es/_baseRange.js +6 -5
- package/dist/node_modules/lodash-es/_baseReduce.js +4 -3
- package/dist/node_modules/lodash-es/_baseRest.js +8 -7
- package/dist/node_modules/lodash-es/_baseSet.js +14 -13
- package/dist/node_modules/lodash-es/_baseSetToString.js +10 -8
- package/dist/node_modules/lodash-es/_baseSortBy.js +4 -3
- package/dist/node_modules/lodash-es/_baseTimes.js +4 -3
- package/dist/node_modules/lodash-es/_baseToString.js +13 -12
- package/dist/node_modules/lodash-es/_baseTrim.js +7 -6
- package/dist/node_modules/lodash-es/_baseUnary.js +4 -3
- package/dist/node_modules/lodash-es/_baseUniq.js +17 -16
- package/dist/node_modules/lodash-es/_baseValues.js +6 -5
- package/dist/node_modules/lodash-es/_baseZipObject.js +4 -3
- package/dist/node_modules/lodash-es/_cacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_castFunction.js +6 -5
- package/dist/node_modules/lodash-es/_castPath.js +9 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +6 -5
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -8
- package/dist/node_modules/lodash-es/_cloneDataView.js +6 -5
- package/dist/node_modules/lodash-es/_cloneRegExp.js +6 -5
- package/dist/node_modules/lodash-es/_cloneSymbol.js +7 -6
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +6 -5
- package/dist/node_modules/lodash-es/_compareAscending.js +6 -5
- package/dist/node_modules/lodash-es/_compareMultiple.js +6 -5
- package/dist/node_modules/lodash-es/_copyArray.js +4 -3
- package/dist/node_modules/lodash-es/_copyObject.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbols.js +7 -6
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +7 -6
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -3
- package/dist/node_modules/lodash-es/_createAssigner.js +8 -7
- package/dist/node_modules/lodash-es/_createBaseEach.js +6 -5
- package/dist/node_modules/lodash-es/_createBaseFor.js +4 -3
- package/dist/node_modules/lodash-es/_createFind.js +10 -9
- package/dist/node_modules/lodash-es/_createRange.js +8 -7
- package/dist/node_modules/lodash-es/_createSet.js +9 -7
- package/dist/node_modules/lodash-es/_defineProperty.js +6 -4
- package/dist/node_modules/lodash-es/_equalArrays.js +12 -11
- package/dist/node_modules/lodash-es/_equalByTag.js +29 -28
- package/dist/node_modules/lodash-es/_equalObjects.js +9 -8
- package/dist/node_modules/lodash-es/_flatRest.js +8 -7
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -2
- package/dist/node_modules/lodash-es/_getAllKeys.js +8 -7
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +8 -7
- package/dist/node_modules/lodash-es/_getMapData.js +6 -5
- package/dist/node_modules/lodash-es/_getMatchData.js +8 -7
- package/dist/node_modules/lodash-es/_getNative.js +8 -7
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -3
- package/dist/node_modules/lodash-es/_getRawTag.js +10 -9
- package/dist/node_modules/lodash-es/_getSymbols.js +9 -7
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +10 -8
- package/dist/node_modules/lodash-es/_getTag.js +21 -19
- package/dist/node_modules/lodash-es/_getValue.js +4 -3
- package/dist/node_modules/lodash-es/_hasPath.js +13 -12
- package/dist/node_modules/lodash-es/_hasUnicode.js +6 -5
- package/dist/node_modules/lodash-es/_hashClear.js +6 -5
- package/dist/node_modules/lodash-es/_hashDelete.js +5 -4
- package/dist/node_modules/lodash-es/_hashGet.js +9 -8
- package/dist/node_modules/lodash-es/_hashHas.js +7 -6
- package/dist/node_modules/lodash-es/_hashSet.js +7 -6
- package/dist/node_modules/lodash-es/_initCloneArray.js +6 -5
- package/dist/node_modules/lodash-es/_initCloneByTag.js +29 -28
- package/dist/node_modules/lodash-es/_initCloneObject.js +8 -7
- package/dist/node_modules/lodash-es/_isFlattenable.js +9 -8
- package/dist/node_modules/lodash-es/_isIndex.js +6 -5
- package/dist/node_modules/lodash-es/_isIterateeCall.js +10 -9
- package/dist/node_modules/lodash-es/_isKey.js +9 -8
- package/dist/node_modules/lodash-es/_isKeyable.js +4 -3
- package/dist/node_modules/lodash-es/_isMasked.js +9 -8
- package/dist/node_modules/lodash-es/_isPrototype.js +6 -5
- package/dist/node_modules/lodash-es/_isStrictComparable.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheClear.js +4 -3
- package/dist/node_modules/lodash-es/_listCacheDelete.js +8 -7
- package/dist/node_modules/lodash-es/_listCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_listCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheClear.js +10 -9
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +7 -6
- package/dist/node_modules/lodash-es/_mapCacheGet.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheHas.js +6 -5
- package/dist/node_modules/lodash-es/_mapCacheSet.js +6 -5
- package/dist/node_modules/lodash-es/_mapToArray.js +4 -3
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +4 -3
- package/dist/node_modules/lodash-es/_memoizeCapped.js +8 -7
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -3
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +4 -3
- package/dist/node_modules/lodash-es/_nodeUtil.js +6 -4
- package/dist/node_modules/lodash-es/_objectToString.js +6 -5
- package/dist/node_modules/lodash-es/_overArg.js +4 -3
- package/dist/node_modules/lodash-es/_overRest.js +9 -8
- package/dist/node_modules/lodash-es/_root.js +5 -3
- package/dist/node_modules/lodash-es/_safeGet.js +4 -3
- package/dist/node_modules/lodash-es/_setCacheAdd.js +6 -5
- package/dist/node_modules/lodash-es/_setCacheHas.js +4 -3
- package/dist/node_modules/lodash-es/_setToArray.js +4 -3
- package/dist/node_modules/lodash-es/_setToString.js +6 -4
- package/dist/node_modules/lodash-es/_shortOut.js +7 -6
- package/dist/node_modules/lodash-es/_stackClear.js +6 -5
- package/dist/node_modules/lodash-es/_stackDelete.js +4 -3
- package/dist/node_modules/lodash-es/_stackGet.js +4 -3
- package/dist/node_modules/lodash-es/_stackHas.js +4 -3
- package/dist/node_modules/lodash-es/_stackSet.js +11 -10
- package/dist/node_modules/lodash-es/_strictIndexOf.js +4 -3
- package/dist/node_modules/lodash-es/_stringSize.js +8 -7
- package/dist/node_modules/lodash-es/_stringToPath.js +7 -5
- package/dist/node_modules/lodash-es/_toKey.js +8 -7
- package/dist/node_modules/lodash-es/_toSource.js +8 -7
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +6 -5
- package/dist/node_modules/lodash-es/_unicodeSize.js +17 -16
- package/dist/node_modules/lodash-es/clone.js +7 -6
- package/dist/node_modules/lodash-es/cloneDeep.js +7 -6
- package/dist/node_modules/lodash-es/constant.js +4 -3
- package/dist/node_modules/lodash-es/defaults.js +13 -11
- package/dist/node_modules/lodash-es/eq.js +4 -3
- package/dist/node_modules/lodash-es/filter.js +9 -8
- package/dist/node_modules/lodash-es/find.js +6 -4
- package/dist/node_modules/lodash-es/findIndex.js +10 -9
- package/dist/node_modules/lodash-es/flatMap.js +7 -6
- package/dist/node_modules/lodash-es/flatten.js +6 -5
- package/dist/node_modules/lodash-es/forEach.js +9 -8
- package/dist/node_modules/lodash-es/forIn.js +8 -7
- package/dist/node_modules/lodash-es/forOwn.js +7 -6
- package/dist/node_modules/lodash-es/get.js +6 -5
- package/dist/node_modules/lodash-es/has.js +7 -6
- package/dist/node_modules/lodash-es/hasIn.js +7 -6
- package/dist/node_modules/lodash-es/identity.js +4 -3
- package/dist/node_modules/lodash-es/isArguments.js +8 -6
- package/dist/node_modules/lodash-es/isArray.js +4 -2
- package/dist/node_modules/lodash-es/isArrayLike.js +7 -6
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +7 -6
- package/dist/node_modules/lodash-es/isBuffer.js +6 -4
- package/dist/node_modules/lodash-es/isEmpty.js +18 -17
- package/dist/node_modules/lodash-es/isFunction.js +10 -9
- package/dist/node_modules/lodash-es/isLength.js +6 -5
- package/dist/node_modules/lodash-es/isMap.js +7 -5
- package/dist/node_modules/lodash-es/isObject.js +4 -3
- package/dist/node_modules/lodash-es/isObjectLike.js +4 -3
- package/dist/node_modules/lodash-es/isPlainObject.js +13 -12
- package/dist/node_modules/lodash-es/isSet.js +7 -5
- package/dist/node_modules/lodash-es/isString.js +9 -8
- package/dist/node_modules/lodash-es/isSymbol.js +8 -7
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -5
- package/dist/node_modules/lodash-es/isUndefined.js +4 -3
- package/dist/node_modules/lodash-es/keys.js +8 -7
- package/dist/node_modules/lodash-es/keysIn.js +8 -7
- package/dist/node_modules/lodash-es/last.js +4 -3
- package/dist/node_modules/lodash-es/map.js +9 -8
- package/dist/node_modules/lodash-es/mapValues.js +9 -8
- package/dist/node_modules/lodash-es/max.js +8 -7
- package/dist/node_modules/lodash-es/memoize.js +9 -8
- package/dist/node_modules/lodash-es/merge.js +7 -5
- package/dist/node_modules/lodash-es/min.js +8 -7
- package/dist/node_modules/lodash-es/minBy.js +8 -7
- package/dist/node_modules/lodash-es/noop.js +4 -3
- package/dist/node_modules/lodash-es/now.js +6 -4
- package/dist/node_modules/lodash-es/pick.js +7 -5
- package/dist/node_modules/lodash-es/property.js +9 -8
- package/dist/node_modules/lodash-es/range.js +5 -3
- package/dist/node_modules/lodash-es/reduce.js +11 -10
- package/dist/node_modules/lodash-es/size.js +13 -12
- package/dist/node_modules/lodash-es/sortBy.js +9 -7
- package/dist/node_modules/lodash-es/stubArray.js +4 -3
- package/dist/node_modules/lodash-es/stubFalse.js +4 -3
- package/dist/node_modules/lodash-es/toFinite.js +7 -6
- package/dist/node_modules/lodash-es/toInteger.js +6 -5
- package/dist/node_modules/lodash-es/toNumber.js +14 -13
- package/dist/node_modules/lodash-es/toPlainObject.js +7 -6
- package/dist/node_modules/lodash-es/toString.js +6 -5
- package/dist/node_modules/lodash-es/union.js +9 -7
- package/dist/node_modules/lodash-es/uniqBy.js +7 -6
- package/dist/node_modules/lodash-es/uniqueId.js +8 -7
- package/dist/node_modules/lodash-es/values.js +7 -6
- package/dist/node_modules/lodash-es/zipObject.js +7 -6
- package/dist/node_modules/longest-streak/index.js +4 -2
- package/dist/node_modules/markdown-table/index.js +11 -9
- package/dist/node_modules/marked/lib/marked.esm.js +687 -685
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +14 -12
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +4 -2
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +182 -180
- package/dist/node_modules/mdast-util-gfm/lib/index.js +20 -18
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +69 -67
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +47 -45
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +30 -28
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +16 -14
- package/dist/node_modules/mdast-util-math/lib/index.js +15 -13
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +5 -3
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +11 -9
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +55 -53
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +15 -13
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +6 -4
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +8 -6
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +4 -2
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +61 -59
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +18 -16
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +8 -6
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +43 -41
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +11 -9
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +12 -10
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +14 -12
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +7 -5
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +4 -2
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +8 -7
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +6 -4
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +6 -4
- package/dist/node_modules/mdast-util-to-string/lib/index.js +14 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +695 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js +3038 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +581 -573
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +49 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-426QAEUC.js +11 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +6 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +590 -444
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +7 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +342 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +22 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-BSJP7CBP.js +82 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EDXVE4YY.js +25 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +570 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +5 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2348 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js +2014 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +8 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +274 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X2U36JSP.js +67 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XPW4576I.js +1146 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +62 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +32 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-6PBFFD2Q.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-HSJHXN6E.js +29 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +116 -114
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.js +265 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +101 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.js +284 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +213 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-TYMM5635.js +133 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +549 -445
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +1366 -1345
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js +1720 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +730 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +19 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +718 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-VCZTEJTY.js +885 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +124 -118
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +172 -122
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +119 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +279 -273
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +100 -66
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-XADWPNL6.js +529 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4159 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FHFEXIEX.js +222 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-QKLJ7IA2.js +27 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1073 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +961 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +578 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-5P7HB3ND.js +2000 -0
- package/dist/node_modules/mermaid/dist/mermaid.core.js +492 -445
- package/dist/node_modules/micromark/lib/constructs.js +80 -79
- package/dist/node_modules/micromark/lib/create-tokenizer.js +14 -12
- package/dist/node_modules/micromark/lib/initialize/content.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/document.js +15 -14
- package/dist/node_modules/micromark/lib/initialize/flow.js +9 -7
- package/dist/node_modules/micromark/lib/initialize/text.js +8 -6
- package/dist/node_modules/micromark/lib/parse.js +20 -18
- package/dist/node_modules/micromark/lib/postprocess.js +6 -4
- package/dist/node_modules/micromark/lib/preprocess.js +6 -4
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +20 -18
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +17 -15
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +11 -9
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +16 -14
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +22 -21
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +16 -15
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +13 -11
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +18 -17
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +30 -29
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +15 -13
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +68 -67
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +66 -64
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +112 -111
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +8 -6
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +32 -31
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +12 -10
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +11 -9
- package/dist/node_modules/micromark-extension-gfm/index.js +16 -14
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +122 -120
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +33 -31
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +11 -9
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +6 -4
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +4 -2
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +36 -34
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +20 -18
- package/dist/node_modules/micromark-extension-math/lib/math-flow.js +21 -20
- package/dist/node_modules/micromark-extension-math/lib/math-text.js +11 -9
- package/dist/node_modules/micromark-extension-math/lib/syntax.js +8 -6
- package/dist/node_modules/micromark-factory-destination/index.js +10 -8
- package/dist/node_modules/micromark-factory-label/index.js +7 -5
- package/dist/node_modules/micromark-factory-space/index.js +7 -5
- package/dist/node_modules/micromark-factory-title/index.js +8 -6
- package/dist/node_modules/micromark-factory-whitespace/index.js +7 -5
- package/dist/node_modules/micromark-util-character/index.js +14 -12
- package/dist/node_modules/micromark-util-chunked/index.js +6 -4
- package/dist/node_modules/micromark-util-classify-character/index.js +7 -5
- package/dist/node_modules/micromark-util-combine-extensions/index.js +13 -11
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +4 -2
- package/dist/node_modules/micromark-util-decode-string/index.js +11 -9
- package/dist/node_modules/micromark-util-html-tag-name/index.js +4 -2
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +4 -2
- package/dist/node_modules/micromark-util-resolve-all/index.js +4 -2
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +6 -4
- package/dist/node_modules/micromark-util-subtokenize/index.js +10 -8
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +10 -8
- package/dist/node_modules/motion/dist/es/react.js +2 -2
- package/dist/node_modules/nanoid/index.browser.js +6 -4
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -2
- package/dist/node_modules/property-information/index.js +25 -23
- package/dist/node_modules/property-information/lib/aria.js +41 -39
- package/dist/node_modules/property-information/lib/find.js +18 -16
- package/dist/node_modules/property-information/lib/hast-to-react.js +4 -2
- package/dist/node_modules/property-information/lib/html.js +96 -94
- package/dist/node_modules/property-information/lib/normalize.js +4 -2
- package/dist/node_modules/property-information/lib/svg.js +79 -77
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +6 -4
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +4 -2
- package/dist/node_modules/property-information/lib/util/create.js +10 -8
- package/dist/node_modules/property-information/lib/util/defined-info.js +13 -11
- package/dist/node_modules/property-information/lib/util/info.js +5 -3
- package/dist/node_modules/property-information/lib/util/merge.js +6 -4
- package/dist/node_modules/property-information/lib/util/schema.js +5 -3
- package/dist/node_modules/property-information/lib/util/types.js +15 -14
- package/dist/node_modules/property-information/lib/xlink.js +5 -3
- package/dist/node_modules/property-information/lib/xml.js +5 -3
- package/dist/node_modules/property-information/lib/xmlns.js +7 -5
- package/dist/node_modules/rehype-harden/dist/index.js +47 -45
- package/dist/node_modules/rehype-katex/lib/index.js +25 -23
- package/dist/node_modules/rehype-raw/lib/index.js +6 -4
- package/dist/node_modules/rehype-sanitize/lib/index.js +6 -4
- package/dist/node_modules/remark-gfm/lib/index.js +9 -7
- package/dist/node_modules/remark-math/lib/index.js +9 -7
- package/dist/node_modules/remark-parse/lib/index.js +6 -4
- package/dist/node_modules/remark-rehype/lib/index.js +7 -5
- package/dist/node_modules/remend/dist/index.js +368 -297
- package/dist/node_modules/roughjs/bundled/rough.esm.js +877 -875
- package/dist/node_modules/shiki/dist/bundle-full.js +13 -11
- package/dist/node_modules/shiki/dist/chunk-CtajNgzt.js +17 -0
- package/dist/node_modules/shiki/dist/engine-oniguruma.js +7 -0
- package/dist/node_modules/shiki/dist/{langs.js → langs-bundle-full-DfKZStlK.js} +8 -6
- package/dist/node_modules/shiki/dist/themes.js +6 -4
- package/dist/node_modules/shiki/dist/wasm.js +2 -2
- package/dist/node_modules/space-separated-tokens/index.js +5 -3
- package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2500 -0
- package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +37 -0
- package/dist/node_modules/streamdown/dist/index.js +1 -1
- package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
- package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +701 -699
- package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +4 -2
- package/dist/node_modules/stringify-entities/lib/core.js +18 -16
- package/dist/node_modules/stringify-entities/lib/index.js +7 -5
- package/dist/node_modules/stringify-entities/lib/util/format-smart.js +10 -8
- package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +6 -4
- package/dist/node_modules/stringify-entities/lib/util/to-named.js +14 -12
- package/dist/node_modules/style-to-js/cjs/index.js +9 -7
- package/dist/node_modules/style-to-js/cjs/utilities.js +6 -4
- package/dist/node_modules/style-to-object/cjs/index.js +8 -6
- package/dist/node_modules/stylis/src/Enum.js +4 -2
- package/dist/node_modules/stylis/src/Parser.js +38 -36
- package/dist/node_modules/stylis/src/Serializer.js +17 -15
- package/dist/node_modules/stylis/src/Tokenizer.js +53 -51
- package/dist/node_modules/stylis/src/Utility.js +17 -15
- package/dist/node_modules/trim-lines/index.js +10 -8
- package/dist/node_modules/trough/lib/index.js +6 -4
- package/dist/node_modules/ts-dedent/esm/index.js +4 -2
- package/dist/node_modules/unified/lib/callable-instance.js +4 -2
- package/dist/node_modules/unified/lib/index.js +102 -101
- package/dist/node_modules/unified/node_modules/is-plain-obj/index.js +4 -2
- package/dist/node_modules/unist-util-find-after/lib/index.js +6 -4
- package/dist/node_modules/unist-util-is/lib/index.js +31 -29
- package/dist/node_modules/unist-util-position/lib/index.js +7 -5
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +10 -8
- package/dist/node_modules/unist-util-visit/lib/index.js +6 -4
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +4 -2
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +21 -20
- package/dist/node_modules/uuid/dist/esm-browser/native.js +3 -2
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +8 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +7 -5
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +10 -9
- package/dist/node_modules/vaul/dist/index.js +276 -274
- package/dist/node_modules/vfile/lib/index.js +44 -42
- package/dist/node_modules/vfile/lib/minpath.browser.js +22 -20
- package/dist/node_modules/vfile/lib/minproc.browser.js +5 -3
- package/dist/node_modules/vfile/lib/minurl.browser.js +8 -6
- package/dist/node_modules/vfile/lib/minurl.shared.js +4 -2
- package/dist/node_modules/vfile-location/lib/index.js +7 -5
- package/dist/node_modules/vfile-message/lib/index.js +7 -5
- package/dist/node_modules/vscode-jsonrpc/browser.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +28 -26
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +17 -15
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +13 -11
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +11 -9
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +31 -29
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +6 -4
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +8 -6
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +23 -21
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +14 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +55 -53
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +10 -8
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +12 -10
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +8 -6
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +6 -4
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +21 -19
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +849 -847
- package/dist/node_modules/vscode-uri/lib/esm/index.js +6 -4
- package/dist/node_modules/web-namespaces/index.js +4 -2
- package/dist/node_modules/zwitch/index.js +7 -5
- package/dist/packages/contracts/dist/enums/index.js +21 -20
- package/dist/packages/contracts/dist/enums/registry.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/user-type.enum.js +6 -4
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +7 -5
- package/dist/pages/DashboardPage.js +55 -99
- package/dist/pages/DebugPage.js +12 -17
- package/dist/pages/DebugWorkflowDetailsPage.js +91 -119
- package/dist/pages/DebugWorkflowsPage.js +44 -42
- package/dist/pages/EmbedWorkbenchPage.js +49 -73
- package/dist/pages/PreviewWorkbenchPage.js +242 -448
- package/dist/pages/RunsListPage.js +44 -61
- package/dist/pages/RunsPage.js +31 -48
- package/dist/pages/StudioLandingPage.js +97 -132
- package/dist/pages/WorkbenchPage.js +56 -86
- package/dist/pages/WorkflowDebugPage.js +78 -0
- package/dist/pages/WorkspacePage.js +72 -113
- package/dist/pages/WorkspaceRunsPage.js +43 -70
- package/dist/pages/WorkspacesPage.js +24 -35
- package/dist/providers/ComponentOverridesProvider.js +9 -12
- package/dist/providers/InvalidationEventsProvider.js +33 -35
- package/dist/providers/QueryProvider.js +14 -18
- package/dist/providers/SseProvider.js +28 -30
- package/dist/providers/StudioProvider.js +14 -19
- package/dist/routing/LocalRouter.js +20 -26
- package/dist/services/createApiClient.js +7 -5
- package/dist/services/eventEmitter.js +3 -2
- package/dist/services/index.js +2 -2
- package/dist/types/ai.types.js +7 -5
- package/package.json +33 -33
- package/dist/_virtual/rolldown_runtime.js +0 -20
- package/dist/api/namespaces.js +0 -7
- package/dist/api/pipelines.js +0 -13
- package/dist/components/ai-elements/tool.js +0 -158
- package/dist/components/ui-widgets/widgets/SecretInput.js +0 -42
- package/dist/features/debug/components/PipelineDebugHeader.js +0 -48
- package/dist/features/debug/components/PipelineDebugLegend.js +0 -68
- package/dist/features/debug/components/PipelineFlowViewer.js +0 -110
- package/dist/features/debug/components/pipeline-flow/StateNode.js +0 -111
- package/dist/features/debug/components/pipeline-flow/WorkflowGraph.js +0 -41
- package/dist/features/debug/components/pipeline-flow/WorkflowTransitionEdge.js +0 -97
- package/dist/features/workbench/NavigationItems.js +0 -52
- package/dist/features/workbench/WorkbenchNavigation.js +0 -38
- package/dist/features/workbench/components/NavigationItem.js +0 -68
- package/dist/features/workbench/components/PipelineHistoryList.js +0 -56
- package/dist/features/workbench/hooks/useIntersectionObserver.js +0 -44
- package/dist/features/workspaces/components/NewPipelineRunDialog.js +0 -31
- package/dist/features/workspaces/components/PipelineForm.js +0 -152
- package/dist/features/workspaces/components/pipeline-form/ArgumentsView.js +0 -75
- package/dist/features/workspaces/components/pipeline-form/HeaderSection.js +0 -43
- package/dist/features/workspaces/components/pipeline-form/SelectionView.js +0 -105
- package/dist/hooks/useNamespaceTree.js +0 -27
- package/dist/hooks/useNamespaces.js +0 -25
- package/dist/hooks/usePipelines.js +0 -161
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -30
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/lodash/_Symbol.js +0 -7
- package/dist/node_modules/lodash/_baseGetTag.js +0 -13
- package/dist/node_modules/lodash/_baseTrim.js +0 -11
- package/dist/node_modules/lodash/_freeGlobal.js +0 -6
- package/dist/node_modules/lodash/_getRawTag.js +0 -17
- package/dist/node_modules/lodash/_objectToString.js +0 -10
- package/dist/node_modules/lodash/_root.js +0 -8
- package/dist/node_modules/lodash/_trimmedEndIndex.js +0 -11
- package/dist/node_modules/lodash/isObject.js +0 -10
- package/dist/node_modules/lodash/isObjectLike.js +0 -9
- package/dist/node_modules/lodash/isSymbol.js +0 -12
- package/dist/node_modules/lodash/now.js +0 -10
- package/dist/node_modules/lodash/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
- package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
- package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
- package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
- package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
- package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
- package/dist/node_modules/lodash-es/_baseSome.js +0 -9
- package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
- package/dist/node_modules/lodash-es/assign.js +0 -14
- package/dist/node_modules/lodash-es/compact.js +0 -9
- package/dist/node_modules/lodash-es/difference.js +0 -8
- package/dist/node_modules/lodash-es/drop.js +0 -8
- package/dist/node_modules/lodash-es/dropRight.js +0 -8
- package/dist/node_modules/lodash-es/every.js +0 -11
- package/dist/node_modules/lodash-es/groupBy.js +0 -6
- package/dist/node_modules/lodash-es/head.js +0 -5
- package/dist/node_modules/lodash-es/includes.js +0 -13
- package/dist/node_modules/lodash-es/indexOf.js +0 -11
- package/dist/node_modules/lodash-es/isRegExp.js +0 -5
- package/dist/node_modules/lodash-es/negate.js +0 -16
- package/dist/node_modules/lodash-es/pickBy.js +0 -15
- package/dist/node_modules/lodash-es/reject.js +0 -10
- package/dist/node_modules/lodash-es/some.js +0 -11
- package/dist/node_modules/lodash-es/uniq.js +0 -6
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3010
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -65
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1994
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -74
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -1140
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -23
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -338
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -26
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -263
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -283
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -129
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -1688
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -883
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -519
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -220
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -25
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1975
- package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
- package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
- package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
- package/dist/packages/contracts/dist/enums/pipeline-state.js +0 -10
- package/dist/pages/PipelineDebugPage.js +0 -115
|
@@ -0,0 +1,3640 @@
|
|
|
1
|
+
import { __name as e, log as t } from "./chunk-AGHRB4JF.js";
|
|
2
|
+
import { evaluate as n, getConfig as r, getConfig2 as i, getEffectiveHtmlLabels as a, hasKatex as o, parseGenericTypes as s, sanitizeText as c, sanitizeText3 as l } from "./chunk-ICPOFSXX.js";
|
|
3
|
+
import u from "../../../../d3-selection/src/select.js";
|
|
4
|
+
import "../../../../d3/src/index.js";
|
|
5
|
+
import { calculateTextWidth as d, decodeEntities as f, handleUndefinedAttr as p } from "./chunk-5PVQY5BW.js";
|
|
6
|
+
import { configureLabelImages as m, getSubGraphTitleMargins as h } from "./chunk-ZZ45TVLE.js";
|
|
7
|
+
import { compileStyles as g, solidStateFill as _, styles2String as v, userNodeOverrides as y } from "./chunk-X2U36JSP.js";
|
|
8
|
+
import { createText as b, getIconSVG as x } from "./chunk-U2HBQHQK.js";
|
|
9
|
+
import { at as S } from "../../../../roughjs/bundled/rough.esm.js";
|
|
10
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.mjs
|
|
11
|
+
var C = /* @__PURE__ */ e(async (e, t, r) => {
|
|
12
|
+
let a, o = t.useHtmlLabels || n(i()?.htmlLabels);
|
|
13
|
+
a = r || "node default";
|
|
14
|
+
let s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), l = s.insert("g").attr("class", "label").attr("style", p(t.labelStyle)), d;
|
|
15
|
+
d = t.label === void 0 ? "" : typeof t.label == "string" ? t.label : t.label[0];
|
|
16
|
+
let h = !!t.icon || !!t.img, g = t.labelType === "markdown", _ = await b(l, c(f(d), i()), {
|
|
17
|
+
useHtmlLabels: o,
|
|
18
|
+
width: t.width || i().flowchart?.wrappingWidth,
|
|
19
|
+
classes: g ? "markdown-node-label" : "",
|
|
20
|
+
style: t.labelStyle,
|
|
21
|
+
addSvgBackground: h,
|
|
22
|
+
markdown: g
|
|
23
|
+
}, i()), v = _.getBBox(), y = (t?.padding ?? 0) / 2;
|
|
24
|
+
if (o) {
|
|
25
|
+
let e = _.children[0], t = u(_);
|
|
26
|
+
await m(e, d), v = e.getBoundingClientRect(), t.attr("width", v.width), t.attr("height", v.height);
|
|
27
|
+
}
|
|
28
|
+
return o ? l.attr("transform", "translate(" + -v.width / 2 + ", " + -v.height / 2 + ")") : l.attr("transform", "translate(0, " + -v.height / 2 + ")"), t.centerLabel && l.attr("transform", "translate(" + -v.width / 2 + ", " + -v.height / 2 + ")"), l.insert("rect", ":first-child"), {
|
|
29
|
+
shapeSvg: s,
|
|
30
|
+
bbox: v,
|
|
31
|
+
halfPadding: y,
|
|
32
|
+
label: l
|
|
33
|
+
};
|
|
34
|
+
}, "labelHelper"), w = /* @__PURE__ */ e(async (e, t, n) => {
|
|
35
|
+
let r = n.useHtmlLabels ?? a(i()), o = e.insert("g").attr("class", "label").attr("style", n.labelStyle || ""), s = await b(o, c(f(t), i()), {
|
|
36
|
+
useHtmlLabels: r,
|
|
37
|
+
width: n.width || i()?.flowchart?.wrappingWidth,
|
|
38
|
+
style: n.labelStyle,
|
|
39
|
+
addSvgBackground: !!n.icon || !!n.img
|
|
40
|
+
}), l = s.getBBox(), d = n.padding / 2;
|
|
41
|
+
if (a(i())) {
|
|
42
|
+
let e = s.children[0], t = u(s);
|
|
43
|
+
l = e.getBoundingClientRect(), t.attr("width", l.width), t.attr("height", l.height);
|
|
44
|
+
}
|
|
45
|
+
return r ? o.attr("transform", "translate(" + -l.width / 2 + ", " + -l.height / 2 + ")") : o.attr("transform", "translate(0, " + -l.height / 2 + ")"), n.centerLabel && o.attr("transform", "translate(" + -l.width / 2 + ", " + -l.height / 2 + ")"), o.insert("rect", ":first-child"), {
|
|
46
|
+
shapeSvg: e,
|
|
47
|
+
bbox: l,
|
|
48
|
+
halfPadding: d,
|
|
49
|
+
label: o
|
|
50
|
+
};
|
|
51
|
+
}, "insertLabel"), T = /* @__PURE__ */ e((e, t) => {
|
|
52
|
+
let n = t.node().getBBox();
|
|
53
|
+
e.width = n.width, e.height = n.height;
|
|
54
|
+
}, "updateNodeBounds"), E = /* @__PURE__ */ e((e, t) => (e.look === "handDrawn" ? "rough-node" : "node") + " " + e.cssClasses + " " + (t || ""), "getNodeClasses");
|
|
55
|
+
function D(e) {
|
|
56
|
+
let t = e.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`);
|
|
57
|
+
return t.push("Z"), t.join(" ");
|
|
58
|
+
}
|
|
59
|
+
e(D, "createPathFromPoints");
|
|
60
|
+
function O(e, t, n, r, i, a) {
|
|
61
|
+
let o = [], s = n - e, c = r - t, l = s / a, u = 2 * Math.PI / l, d = t + c / 2;
|
|
62
|
+
for (let t = 0; t <= 50; t++) {
|
|
63
|
+
let n = e + t / 50 * s, r = d + i * Math.sin(u * (n - e));
|
|
64
|
+
o.push({
|
|
65
|
+
x: n,
|
|
66
|
+
y: r
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return o;
|
|
70
|
+
}
|
|
71
|
+
e(O, "generateFullSineWavePoints");
|
|
72
|
+
function k(e, t, n, r, i, a) {
|
|
73
|
+
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
74
|
+
for (let i = 0; i < r; i++) {
|
|
75
|
+
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
76
|
+
o.push({
|
|
77
|
+
x: -a,
|
|
78
|
+
y: -l
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return o;
|
|
82
|
+
}
|
|
83
|
+
e(k, "generateCirclePoints");
|
|
84
|
+
function A(t) {
|
|
85
|
+
let n = Array.from(t.childNodes).filter((e) => e.tagName === "path"), r = document.createElementNS("http://www.w3.org/2000/svg", "path"), i = n.map((e) => e.getAttribute("d")).filter((e) => e !== null).join(" ");
|
|
86
|
+
r.setAttribute("d", i);
|
|
87
|
+
let a = n.find((e) => e.getAttribute("fill") !== "none"), o = n.find((e) => e.getAttribute("stroke") !== "none"), s = /* @__PURE__ */ e((e, t) => e?.getAttribute(t) ?? void 0, "getAttr");
|
|
88
|
+
if (a) {
|
|
89
|
+
let e = {
|
|
90
|
+
fill: s(a, "fill"),
|
|
91
|
+
"fill-opacity": s(a, "fill-opacity") ?? "1"
|
|
92
|
+
};
|
|
93
|
+
Object.entries(e).forEach(([e, t]) => {
|
|
94
|
+
t && r.setAttribute(e, t);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (o) {
|
|
98
|
+
let e = {
|
|
99
|
+
stroke: s(o, "stroke"),
|
|
100
|
+
"stroke-width": s(o, "stroke-width") ?? "1",
|
|
101
|
+
"stroke-opacity": s(o, "stroke-opacity") ?? "1"
|
|
102
|
+
};
|
|
103
|
+
Object.entries(e).forEach(([e, t]) => {
|
|
104
|
+
t && r.setAttribute(e, t);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
let c = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
108
|
+
return c.appendChild(r), c;
|
|
109
|
+
}
|
|
110
|
+
e(A, "mergePaths");
|
|
111
|
+
var j = /* @__PURE__ */ e((e, t) => {
|
|
112
|
+
var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
|
|
113
|
+
return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
|
|
114
|
+
x: n + c,
|
|
115
|
+
y: r + l
|
|
116
|
+
};
|
|
117
|
+
}, "intersectRect"), M = /* @__PURE__ */ e(async (e, t, n, r = !1, o = !1) => {
|
|
118
|
+
let s = t || "";
|
|
119
|
+
typeof s == "object" && (s = s[0]);
|
|
120
|
+
let c = i(), l = a(c);
|
|
121
|
+
return await b(e, s, {
|
|
122
|
+
style: n,
|
|
123
|
+
isTitle: r,
|
|
124
|
+
useHtmlLabels: l,
|
|
125
|
+
markdown: !1,
|
|
126
|
+
isNode: o,
|
|
127
|
+
width: Infinity
|
|
128
|
+
}, c);
|
|
129
|
+
}, "createLabel"), N = /* @__PURE__ */ e((e, t, n, r, i) => [
|
|
130
|
+
"M",
|
|
131
|
+
e + i,
|
|
132
|
+
t,
|
|
133
|
+
"H",
|
|
134
|
+
e + n - i,
|
|
135
|
+
"A",
|
|
136
|
+
i,
|
|
137
|
+
i,
|
|
138
|
+
0,
|
|
139
|
+
0,
|
|
140
|
+
1,
|
|
141
|
+
e + n,
|
|
142
|
+
t + i,
|
|
143
|
+
"V",
|
|
144
|
+
t + r - i,
|
|
145
|
+
"A",
|
|
146
|
+
i,
|
|
147
|
+
i,
|
|
148
|
+
0,
|
|
149
|
+
0,
|
|
150
|
+
1,
|
|
151
|
+
e + n - i,
|
|
152
|
+
t + r,
|
|
153
|
+
"H",
|
|
154
|
+
e + i,
|
|
155
|
+
"A",
|
|
156
|
+
i,
|
|
157
|
+
i,
|
|
158
|
+
0,
|
|
159
|
+
0,
|
|
160
|
+
1,
|
|
161
|
+
e,
|
|
162
|
+
t + r - i,
|
|
163
|
+
"V",
|
|
164
|
+
t + i,
|
|
165
|
+
"A",
|
|
166
|
+
i,
|
|
167
|
+
i,
|
|
168
|
+
0,
|
|
169
|
+
0,
|
|
170
|
+
1,
|
|
171
|
+
e + i,
|
|
172
|
+
t,
|
|
173
|
+
"Z"
|
|
174
|
+
].join(" "), "createRoundedRectPathD"), P = /* @__PURE__ */ e(async (e, n) => {
|
|
175
|
+
t.info("Creating subgraph rect for ", n.id, n);
|
|
176
|
+
let r = i(), { themeVariables: o, handDrawnSeed: s } = r, { clusterBkg: c, clusterBorder: l } = o, { labelStyles: d, nodeStyles: f, borderStyles: p, backgroundStyles: m } = v(n), g = e.insert("g").attr("class", "cluster " + n.cssClasses).attr("id", n.domId).attr("data-look", n.look), _ = a(r), x = g.insert("g").attr("class", "cluster-label "), C;
|
|
177
|
+
C = n.labelType === "markdown" ? await b(x, n.label, {
|
|
178
|
+
style: n.labelStyle,
|
|
179
|
+
useHtmlLabels: _,
|
|
180
|
+
isNode: !0,
|
|
181
|
+
width: n.width
|
|
182
|
+
}) : await M(x, n.label, n.labelStyle || "", !1, !0);
|
|
183
|
+
let w = C.getBBox();
|
|
184
|
+
if (a(r)) {
|
|
185
|
+
let e = C.children[0], t = u(C);
|
|
186
|
+
w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
|
|
187
|
+
}
|
|
188
|
+
let T = n.width <= w.width + n.padding ? w.width + n.padding : n.width;
|
|
189
|
+
n.width <= w.width + n.padding ? n.diff = (T - n.width) / 2 - n.padding : n.diff = -n.padding;
|
|
190
|
+
let E = n.height, D = n.x - T / 2, O = n.y - E / 2;
|
|
191
|
+
t.trace("Data ", n, JSON.stringify(n));
|
|
192
|
+
let k;
|
|
193
|
+
if (n.look === "handDrawn") {
|
|
194
|
+
let e = S.svg(g), r = y(n, {
|
|
195
|
+
roughness: .7,
|
|
196
|
+
fill: c,
|
|
197
|
+
stroke: l,
|
|
198
|
+
fillWeight: 3,
|
|
199
|
+
seed: s
|
|
200
|
+
}), i = e.path(N(D, O, T, E, 0), r);
|
|
201
|
+
k = g.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child"), k.select("path:nth-child(2)").attr("style", p.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
|
|
202
|
+
} else k = g.insert("rect", ":first-child"), k.attr("style", f).attr("rx", n.rx).attr("ry", n.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
|
|
203
|
+
let { subGraphTitleTopMargin: A } = h(r);
|
|
204
|
+
if (x.attr("transform", `translate(${n.x - w.width / 2}, ${n.y - n.height / 2 + A})`), d) {
|
|
205
|
+
let e = x.select("span");
|
|
206
|
+
e && e.attr("style", d);
|
|
207
|
+
}
|
|
208
|
+
let P = k.node().getBBox();
|
|
209
|
+
return n.offsetX = 0, n.width = P.width, n.height = P.height, n.offsetY = w.height - n.padding / 2, n.intersect = function(e) {
|
|
210
|
+
return j(n, e);
|
|
211
|
+
}, {
|
|
212
|
+
cluster: g,
|
|
213
|
+
labelBBox: w
|
|
214
|
+
};
|
|
215
|
+
}, "rect"), F = {
|
|
216
|
+
rect: P,
|
|
217
|
+
squareRect: P,
|
|
218
|
+
roundedWithTitle: /* @__PURE__ */ e(async (e, t) => {
|
|
219
|
+
let n = i(), { themeVariables: r, handDrawnSeed: o } = n, { altBackground: s, compositeBackground: c, compositeTitleBackground: l, nodeBorder: d } = r, f = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-id", t.id).attr("data-look", t.look), p = f.insert("g", ":first-child"), m = f.insert("g").attr("class", "cluster-label"), h = f.append("rect"), g = await M(m, t.label, t.labelStyle, void 0, !0), _ = g.getBBox();
|
|
220
|
+
if (a(n)) {
|
|
221
|
+
let e = g.children[0], t = u(g);
|
|
222
|
+
_ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
|
|
223
|
+
}
|
|
224
|
+
let v = 0 * t.padding, y = v / 2, b = (t.width <= _.width + t.padding ? _.width + t.padding : t.width) + v;
|
|
225
|
+
t.width <= _.width + t.padding ? t.diff = (b - t.width) / 2 - t.padding : t.diff = -t.padding;
|
|
226
|
+
let x = t.height + v, C = t.height + v - _.height - 6, w = t.x - b / 2, T = t.y - x / 2;
|
|
227
|
+
t.width = b;
|
|
228
|
+
let E = t.y - t.height / 2 - y + _.height + 2, D;
|
|
229
|
+
if (t.look === "handDrawn") {
|
|
230
|
+
let e = t.cssClasses.includes("statediagram-cluster-alt"), n = S.svg(f), r = t.rx || t.ry ? n.path(N(w, T, b, x, 10), {
|
|
231
|
+
roughness: .7,
|
|
232
|
+
fill: l,
|
|
233
|
+
fillStyle: "solid",
|
|
234
|
+
stroke: d,
|
|
235
|
+
seed: o
|
|
236
|
+
}) : n.rectangle(w, T, b, x, { seed: o });
|
|
237
|
+
D = f.insert(() => r, ":first-child");
|
|
238
|
+
let i = n.rectangle(w, E, b, C, {
|
|
239
|
+
fill: e ? s : c,
|
|
240
|
+
fillStyle: e ? "hachure" : "solid",
|
|
241
|
+
stroke: d,
|
|
242
|
+
seed: o
|
|
243
|
+
});
|
|
244
|
+
D = f.insert(() => r, ":first-child"), h = f.insert(() => i);
|
|
245
|
+
} else D = p.insert("rect", ":first-child"), D.attr("class", "outer").attr("x", w).attr("y", T).attr("width", b).attr("height", x).attr("data-look", t.look), h.attr("class", "inner").attr("x", w).attr("y", E).attr("width", b).attr("height", C);
|
|
246
|
+
return m.attr("transform", `translate(${t.x - _.width / 2}, ${T + 1 - (a(n) ? 0 : 3)})`), t.height = D.node().getBBox().height, t.offsetX = 0, t.offsetY = _.height - t.padding / 2, t.labelBBox = _, t.intersect = function(e) {
|
|
247
|
+
return j(t, e);
|
|
248
|
+
}, {
|
|
249
|
+
cluster: f,
|
|
250
|
+
labelBBox: _
|
|
251
|
+
};
|
|
252
|
+
}, "roundedWithTitle"),
|
|
253
|
+
noteGroup: /* @__PURE__ */ e((e, t) => {
|
|
254
|
+
let n = e.insert("g").attr("class", "note-cluster").attr("id", t.domId), r = n.insert("rect", ":first-child"), i = 0 * t.padding, a = i / 2;
|
|
255
|
+
r.attr("rx", t.rx).attr("ry", t.ry).attr("x", t.x - t.width / 2 - a).attr("y", t.y - t.height / 2 - a).attr("width", t.width + i).attr("height", t.height + i).attr("fill", "none");
|
|
256
|
+
let o = r.node().getBBox();
|
|
257
|
+
return t.width = o.width, t.height = o.height, t.intersect = function(e) {
|
|
258
|
+
return j(t, e);
|
|
259
|
+
}, {
|
|
260
|
+
cluster: n,
|
|
261
|
+
labelBBox: {
|
|
262
|
+
width: 0,
|
|
263
|
+
height: 0
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
}, "noteGroup"),
|
|
267
|
+
divider: /* @__PURE__ */ e((e, t) => {
|
|
268
|
+
let { themeVariables: n, handDrawnSeed: r } = i(), { nodeBorder: a } = n, o = e.insert("g").attr("class", t.cssClasses).attr("id", t.domId).attr("data-look", t.look), s = o.insert("g", ":first-child"), c = 0 * t.padding, l = t.width + c;
|
|
269
|
+
t.diff = -t.padding;
|
|
270
|
+
let u = t.height + c, d = t.x - l / 2, f = t.y - u / 2;
|
|
271
|
+
t.width = l;
|
|
272
|
+
let p;
|
|
273
|
+
if (t.look === "handDrawn") {
|
|
274
|
+
let e = S.svg(o).rectangle(d, f, l, u, {
|
|
275
|
+
fill: "lightgrey",
|
|
276
|
+
roughness: .5,
|
|
277
|
+
strokeLineDash: [5],
|
|
278
|
+
stroke: a,
|
|
279
|
+
seed: r
|
|
280
|
+
});
|
|
281
|
+
p = o.insert(() => e, ":first-child");
|
|
282
|
+
} else {
|
|
283
|
+
p = s.insert("rect", ":first-child");
|
|
284
|
+
let e = "outer";
|
|
285
|
+
e = (t.look, "divider"), p.attr("class", e).attr("x", d).attr("y", f).attr("width", l).attr("height", u).attr("data-look", t.look);
|
|
286
|
+
}
|
|
287
|
+
return t.height = p.node().getBBox().height, t.offsetX = 0, t.offsetY = 0, t.intersect = function(e) {
|
|
288
|
+
return j(t, e);
|
|
289
|
+
}, {
|
|
290
|
+
cluster: o,
|
|
291
|
+
labelBBox: {}
|
|
292
|
+
};
|
|
293
|
+
}, "divider"),
|
|
294
|
+
kanbanSection: /* @__PURE__ */ e(async (e, n) => {
|
|
295
|
+
t.info("Creating subgraph rect for ", n.id, n);
|
|
296
|
+
let r = i(), { themeVariables: o, handDrawnSeed: s } = r, { clusterBkg: c, clusterBorder: l } = o, { labelStyles: d, nodeStyles: f, borderStyles: p, backgroundStyles: m } = v(n), g = e.insert("g").attr("class", "cluster " + n.cssClasses).attr("id", n.domId).attr("data-look", n.look), _ = a(r), x = g.insert("g").attr("class", "cluster-label "), C = await b(x, n.label, {
|
|
297
|
+
style: n.labelStyle,
|
|
298
|
+
useHtmlLabels: _,
|
|
299
|
+
isNode: !0,
|
|
300
|
+
width: n.width
|
|
301
|
+
}), w = C.getBBox();
|
|
302
|
+
if (a(r)) {
|
|
303
|
+
let e = C.children[0], t = u(C);
|
|
304
|
+
w = e.getBoundingClientRect(), t.attr("width", w.width), t.attr("height", w.height);
|
|
305
|
+
}
|
|
306
|
+
let T = n.width <= w.width + n.padding ? w.width + n.padding : n.width;
|
|
307
|
+
n.width <= w.width + n.padding ? n.diff = (T - n.width) / 2 - n.padding : n.diff = -n.padding;
|
|
308
|
+
let E = n.height, D = n.x - T / 2, O = n.y - E / 2;
|
|
309
|
+
t.trace("Data ", n, JSON.stringify(n));
|
|
310
|
+
let k;
|
|
311
|
+
if (n.look === "handDrawn") {
|
|
312
|
+
let e = S.svg(g), r = y(n, {
|
|
313
|
+
roughness: .7,
|
|
314
|
+
fill: c,
|
|
315
|
+
stroke: l,
|
|
316
|
+
fillWeight: 4,
|
|
317
|
+
seed: s
|
|
318
|
+
}), i = e.path(N(D, O, T, E, n.rx), r);
|
|
319
|
+
k = g.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child"), k.select("path:nth-child(2)").attr("style", p.join(";")), k.select("path").attr("style", m.join(";").replace("fill", "stroke"));
|
|
320
|
+
} else k = g.insert("rect", ":first-child"), k.attr("style", f).attr("rx", n.rx).attr("ry", n.ry).attr("x", D).attr("y", O).attr("width", T).attr("height", E);
|
|
321
|
+
let { subGraphTitleTopMargin: A } = h(r);
|
|
322
|
+
if (x.attr("transform", `translate(${n.x - w.width / 2}, ${n.y - n.height / 2 + A})`), d) {
|
|
323
|
+
let e = x.select("span");
|
|
324
|
+
e && e.attr("style", d);
|
|
325
|
+
}
|
|
326
|
+
let M = k.node().getBBox();
|
|
327
|
+
return n.offsetX = 0, n.width = M.width, n.height = M.height, n.offsetY = w.height - n.padding / 2, n.intersect = function(e) {
|
|
328
|
+
return j(n, e);
|
|
329
|
+
}, {
|
|
330
|
+
cluster: g,
|
|
331
|
+
labelBBox: w
|
|
332
|
+
};
|
|
333
|
+
}, "kanbanSection")
|
|
334
|
+
}, I = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ e(async (e, t) => {
|
|
335
|
+
let n = await F[t.shape || "rect"](e, t);
|
|
336
|
+
return I.set(t.id, n), n;
|
|
337
|
+
}, "insertCluster"), te = /* @__PURE__ */ e(() => {
|
|
338
|
+
I = /* @__PURE__ */ new Map();
|
|
339
|
+
}, "clear");
|
|
340
|
+
function L(e, t) {
|
|
341
|
+
return e.intersect(t);
|
|
342
|
+
}
|
|
343
|
+
e(L, "intersectNode");
|
|
344
|
+
var R = L;
|
|
345
|
+
function ne(e, t, n, r) {
|
|
346
|
+
var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
|
|
347
|
+
r.x < i && (l = -l);
|
|
348
|
+
var u = Math.abs(t * n * s / c);
|
|
349
|
+
return r.y < a && (u = -u), {
|
|
350
|
+
x: i + l,
|
|
351
|
+
y: a + u
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
e(ne, "intersectEllipse");
|
|
355
|
+
var z = ne;
|
|
356
|
+
function B(e, t, n) {
|
|
357
|
+
return z(e, t, t, n);
|
|
358
|
+
}
|
|
359
|
+
e(B, "intersectCircle");
|
|
360
|
+
var V = B;
|
|
361
|
+
function H(e, t, n, r) {
|
|
362
|
+
{
|
|
363
|
+
let i = t.y - e.y, a = e.x - t.x, o = t.x * e.y - e.x * t.y, s = i * n.x + a * n.y + o, c = i * r.x + a * r.y + o, l = 1e-6;
|
|
364
|
+
if (s !== 0 && c !== 0 && re(s, c)) return;
|
|
365
|
+
let u = r.y - n.y, d = n.x - r.x, f = r.x * n.y - n.x * r.y, p = u * e.x + d * e.y + f, m = u * t.x + d * t.y + f;
|
|
366
|
+
if (Math.abs(p) < l && Math.abs(m) < l && re(p, m)) return;
|
|
367
|
+
let h = i * d - u * a;
|
|
368
|
+
if (h === 0) return;
|
|
369
|
+
let g = Math.abs(h / 2), _ = a * f - d * o, v = _ < 0 ? (_ - g) / h : (_ + g) / h;
|
|
370
|
+
return _ = u * o - i * f, {
|
|
371
|
+
x: v,
|
|
372
|
+
y: _ < 0 ? (_ - g) / h : (_ + g) / h
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
e(H, "intersectLine");
|
|
377
|
+
function re(e, t) {
|
|
378
|
+
return e * t > 0;
|
|
379
|
+
}
|
|
380
|
+
e(re, "sameSign");
|
|
381
|
+
var ie = H;
|
|
382
|
+
function U(e, t, n) {
|
|
383
|
+
let r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
|
|
384
|
+
typeof t.forEach == "function" ? t.forEach(function(e) {
|
|
385
|
+
o = Math.min(o, e.x), s = Math.min(s, e.y);
|
|
386
|
+
}) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
|
|
387
|
+
let c = r - e.width / 2 - o, l = i - e.height / 2 - s;
|
|
388
|
+
for (let r = 0; r < t.length; r++) {
|
|
389
|
+
let i = t[r], o = t[r < t.length - 1 ? r + 1 : 0], s = ie(e, n, {
|
|
390
|
+
x: c + i.x,
|
|
391
|
+
y: l + i.y
|
|
392
|
+
}, {
|
|
393
|
+
x: c + o.x,
|
|
394
|
+
y: l + o.y
|
|
395
|
+
});
|
|
396
|
+
s && a.push(s);
|
|
397
|
+
}
|
|
398
|
+
return a.length ? (a.length > 1 && a.sort(function(e, t) {
|
|
399
|
+
let r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
|
|
400
|
+
return a < c ? -1 : a === c ? 0 : 1;
|
|
401
|
+
}), a[0]) : e;
|
|
402
|
+
}
|
|
403
|
+
e(U, "intersectPolygon");
|
|
404
|
+
var W = {
|
|
405
|
+
node: R,
|
|
406
|
+
circle: V,
|
|
407
|
+
ellipse: z,
|
|
408
|
+
polygon: U,
|
|
409
|
+
rect: j
|
|
410
|
+
};
|
|
411
|
+
function G(e, n) {
|
|
412
|
+
let { labelStyles: r } = v(n);
|
|
413
|
+
n.labelStyle = r;
|
|
414
|
+
let i = E(n), a = i;
|
|
415
|
+
i || (a = "anchor");
|
|
416
|
+
let o = e.insert("g").attr("class", a).attr("id", n.domId || n.id), { cssStyles: s } = n, c = S.svg(o), l = y(n, {
|
|
417
|
+
fill: "black",
|
|
418
|
+
stroke: "none",
|
|
419
|
+
fillStyle: "solid"
|
|
420
|
+
});
|
|
421
|
+
n.look !== "handDrawn" && (l.roughness = 0);
|
|
422
|
+
let u = c.circle(0, 0, 2, l), d = o.insert(() => u, ":first-child");
|
|
423
|
+
return d.attr("class", "anchor").attr("style", p(s)), T(n, d), n.intersect = function(e) {
|
|
424
|
+
return t.info("Circle intersect", n, 1, e), W.circle(n, 1, e);
|
|
425
|
+
}, o;
|
|
426
|
+
}
|
|
427
|
+
e(G, "anchor");
|
|
428
|
+
function K(e, t, n, r, i, a, o) {
|
|
429
|
+
let s = (e + n) / 2, c = (t + r) / 2, l = Math.atan2(r - t, n - e), u = (n - e) / 2, d = (r - t) / 2, f = u / i, p = d / a, m = Math.sqrt(f ** 2 + p ** 2);
|
|
430
|
+
if (m > 1) throw Error("The given radii are too small to create an arc between the points.");
|
|
431
|
+
let h = Math.sqrt(1 - m ** 2), g = s + h * a * Math.sin(l) * (o ? -1 : 1), _ = c - h * i * Math.cos(l) * (o ? -1 : 1), v = Math.atan2((t - _) / a, (e - g) / i), y = Math.atan2((r - _) / a, (n - g) / i) - v;
|
|
432
|
+
o && y < 0 && (y += 2 * Math.PI), !o && y > 0 && (y -= 2 * Math.PI);
|
|
433
|
+
let b = [];
|
|
434
|
+
for (let e = 0; e < 20; e++) {
|
|
435
|
+
let t = v + e / 19 * y, n = g + i * Math.cos(t), r = _ + a * Math.sin(t);
|
|
436
|
+
b.push({
|
|
437
|
+
x: n,
|
|
438
|
+
y: r
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
return b;
|
|
442
|
+
}
|
|
443
|
+
e(K, "generateArcPoints");
|
|
444
|
+
function ae(e, t, n) {
|
|
445
|
+
let [r, i] = [t, n].sort((e, t) => t - e);
|
|
446
|
+
return i * (1 - Math.sqrt(1 - (e / r / 2) ** 2));
|
|
447
|
+
}
|
|
448
|
+
e(ae, "calculateArcSagitta");
|
|
449
|
+
async function oe(t, n) {
|
|
450
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
451
|
+
n.labelStyle = r;
|
|
452
|
+
let a = n.padding ?? 0, o = n.look === "neo" ? 16 : a, s = n.look === "neo" ? 12 : a, c = /* @__PURE__ */ e((e) => e + s, "calcTotalHeight"), l = /* @__PURE__ */ e((e) => {
|
|
453
|
+
let t = e / 2;
|
|
454
|
+
return [t / (2.5 + e / 50), t];
|
|
455
|
+
}, "calcEllipseRadius"), { shapeSvg: u, bbox: d } = await C(t, n, E(n)), f = c(n?.height ? n?.height : d.height), [p, m] = l(f), h = ae(f, p, m), g = (n?.width ? n?.width : d.width) + o * 2 + h - h, _ = f, { cssStyles: b } = n, x = [
|
|
456
|
+
{
|
|
457
|
+
x: g / 2,
|
|
458
|
+
y: -_ / 2
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
x: -g / 2,
|
|
462
|
+
y: -_ / 2
|
|
463
|
+
},
|
|
464
|
+
...K(-g / 2, -_ / 2, -g / 2, _ / 2, p, m, !1),
|
|
465
|
+
{
|
|
466
|
+
x: g / 2,
|
|
467
|
+
y: _ / 2
|
|
468
|
+
},
|
|
469
|
+
...K(g / 2, _ / 2, g / 2, -_ / 2, p, m, !0)
|
|
470
|
+
], w = S.svg(u), O = y(n, {});
|
|
471
|
+
n.look !== "handDrawn" && (O.roughness = 0, O.fillStyle = "solid");
|
|
472
|
+
let k = D(x), A = w.path(k, O), j = u.insert(() => A, ":first-child");
|
|
473
|
+
return j.attr("class", "basic label-container outer-path"), b && n.look !== "handDrawn" && j.selectAll("path").attr("style", b), i && n.look !== "handDrawn" && j.selectAll("path").attr("style", i), j.attr("transform", `translate(${p / 2}, 0)`), T(n, j), n.intersect = function(e) {
|
|
474
|
+
return W.polygon(n, x, e);
|
|
475
|
+
}, u;
|
|
476
|
+
}
|
|
477
|
+
e(oe, "bowTieRect");
|
|
478
|
+
function q(e, t, n, r) {
|
|
479
|
+
return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
|
|
480
|
+
return e.x + "," + e.y;
|
|
481
|
+
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
|
|
482
|
+
}
|
|
483
|
+
e(q, "insertPolygonShape");
|
|
484
|
+
var se = 12;
|
|
485
|
+
async function ce(e, t) {
|
|
486
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
487
|
+
t.labelStyle = n;
|
|
488
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 24 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ?? c.width) + (t.look === "neo" ? a * 2 : a + se), u = (t?.height ?? c.height) + (t.look === "neo" ? o * 2 : o), d = l, f = -u, p = [
|
|
489
|
+
{
|
|
490
|
+
x: 0 + se,
|
|
491
|
+
y: f
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
x: d,
|
|
495
|
+
y: f
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
x: d,
|
|
499
|
+
y: 0
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
x: 0,
|
|
503
|
+
y: 0
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
x: 0,
|
|
507
|
+
y: f + se
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
x: 0 + se,
|
|
511
|
+
y: f
|
|
512
|
+
}
|
|
513
|
+
], m, { cssStyles: h } = t;
|
|
514
|
+
if (t.look === "handDrawn") {
|
|
515
|
+
let e = S.svg(s), n = y(t, {}), r = D(p), i = e.path(r, n);
|
|
516
|
+
m = s.insert(() => i, ":first-child").attr("transform", `translate(${-l / 2}, ${u / 2})`), h && m.attr("style", h);
|
|
517
|
+
} else m = q(s, l, u, p);
|
|
518
|
+
return r && m.attr("style", r), T(t, m), t.intersect = function(e) {
|
|
519
|
+
return W.polygon(t, p, e);
|
|
520
|
+
}, s;
|
|
521
|
+
}
|
|
522
|
+
e(ce, "card");
|
|
523
|
+
function le(e, t) {
|
|
524
|
+
let { nodeStyles: n } = v(t);
|
|
525
|
+
t.label = "";
|
|
526
|
+
let r = e.insert("g").attr("class", E(t)).attr("id", t.domId ?? t.id), { cssStyles: i } = t, a = Math.max(28, t.width ?? 0), o = [
|
|
527
|
+
{
|
|
528
|
+
x: 0,
|
|
529
|
+
y: a / 2
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
x: a / 2,
|
|
533
|
+
y: 0
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
x: 0,
|
|
537
|
+
y: -a / 2
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
x: -a / 2,
|
|
541
|
+
y: 0
|
|
542
|
+
}
|
|
543
|
+
], s = S.svg(r), c = y(t, {});
|
|
544
|
+
t.look !== "handDrawn" && (c.roughness = 0, c.fillStyle = "solid");
|
|
545
|
+
let l = D(o), u = s.path(l, c), d = r.insert(() => u, ":first-child");
|
|
546
|
+
return i && t.look !== "handDrawn" && d.selectAll("path").attr("style", i), n && t.look !== "handDrawn" && d.selectAll("path").attr("style", n), t.width = 28, t.height = 28, t.intersect = function(e) {
|
|
547
|
+
return W.polygon(t, o, e);
|
|
548
|
+
}, r;
|
|
549
|
+
}
|
|
550
|
+
e(le, "choice");
|
|
551
|
+
async function ue(e, n, r) {
|
|
552
|
+
let { labelStyles: i, nodeStyles: a } = v(n);
|
|
553
|
+
n.labelStyle = i;
|
|
554
|
+
let { shapeSvg: o, bbox: s, halfPadding: c } = await C(e, n, E(n)), l = r?.padding ?? c, u = n.look === "neo" ? s.width / 2 + 32 : s.width / 2 + l, d, { cssStyles: f } = n;
|
|
555
|
+
if (n.look === "handDrawn") {
|
|
556
|
+
let e = S.svg(o), t = y(n, {}), r = e.circle(0, 0, u * 2, t);
|
|
557
|
+
d = o.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", p(f));
|
|
558
|
+
} else d = o.insert("circle", ":first-child").attr("class", "basic label-container").attr("style", a).attr("r", u).attr("cx", 0).attr("cy", 0);
|
|
559
|
+
return T(n, d), n.calcIntersect = function(e, t) {
|
|
560
|
+
let n = e.width / 2;
|
|
561
|
+
return W.circle(e, n, t);
|
|
562
|
+
}, n.intersect = function(e) {
|
|
563
|
+
return t.info("Circle intersect", n, u, e), W.circle(n, u, e);
|
|
564
|
+
}, o;
|
|
565
|
+
}
|
|
566
|
+
e(ue, "circle");
|
|
567
|
+
function de(e) {
|
|
568
|
+
let t = Math.cos(Math.PI / 4), n = Math.sin(Math.PI / 4), r = e * 2, i = {
|
|
569
|
+
x: r / 2 * t,
|
|
570
|
+
y: r / 2 * n
|
|
571
|
+
}, a = {
|
|
572
|
+
x: -(r / 2) * t,
|
|
573
|
+
y: r / 2 * n
|
|
574
|
+
}, o = {
|
|
575
|
+
x: -(r / 2) * t,
|
|
576
|
+
y: -(r / 2) * n
|
|
577
|
+
}, s = {
|
|
578
|
+
x: r / 2 * t,
|
|
579
|
+
y: -(r / 2) * n
|
|
580
|
+
};
|
|
581
|
+
return `M ${a.x},${a.y} L ${s.x},${s.y}
|
|
582
|
+
M ${i.x},${i.y} L ${o.x},${o.y}`;
|
|
583
|
+
}
|
|
584
|
+
e(de, "createLine");
|
|
585
|
+
function fe(e, n) {
|
|
586
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
587
|
+
n.labelStyle = r, n.label = "";
|
|
588
|
+
let a = e.insert("g").attr("class", E(n)).attr("id", n.domId ?? n.id), o = Math.max(30, n?.width ?? 0), { cssStyles: s } = n, c = S.svg(a), l = y(n, {});
|
|
589
|
+
n.look !== "handDrawn" && (l.roughness = 0, l.fillStyle = "solid");
|
|
590
|
+
let u = c.circle(0, 0, o * 2, l), d = de(o), f = c.path(d, l), p = a.insert(() => u, ":first-child");
|
|
591
|
+
return p.insert(() => f), p.attr("class", "outer-path"), s && n.look !== "handDrawn" && p.selectAll("path").attr("style", s), i && n.look !== "handDrawn" && p.selectAll("path").attr("style", i), T(n, p), n.intersect = function(e) {
|
|
592
|
+
return t.info("crossedCircle intersect", n, {
|
|
593
|
+
radius: o,
|
|
594
|
+
point: e
|
|
595
|
+
}), W.circle(n, o, e);
|
|
596
|
+
}, a;
|
|
597
|
+
}
|
|
598
|
+
e(fe, "crossedCircle");
|
|
599
|
+
function J(e, t, n, r = 100, i = 0, a = 180) {
|
|
600
|
+
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
601
|
+
for (let i = 0; i < r; i++) {
|
|
602
|
+
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
603
|
+
o.push({
|
|
604
|
+
x: -a,
|
|
605
|
+
y: -l
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
return o;
|
|
609
|
+
}
|
|
610
|
+
e(J, "generateCirclePoints");
|
|
611
|
+
async function pe(e, t) {
|
|
612
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
613
|
+
t.labelStyle = n;
|
|
614
|
+
let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + s, u = a.height + c, d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
|
|
615
|
+
...J(l / 2, -u / 2, d, 30, -90, 0),
|
|
616
|
+
{
|
|
617
|
+
x: -l / 2 - d,
|
|
618
|
+
y: d
|
|
619
|
+
},
|
|
620
|
+
...J(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
621
|
+
...J(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
622
|
+
{
|
|
623
|
+
x: -l / 2 - d,
|
|
624
|
+
y: -u / 2
|
|
625
|
+
},
|
|
626
|
+
...J(l / 2, u / 2, d, 20, 0, 90)
|
|
627
|
+
], m = [
|
|
628
|
+
{
|
|
629
|
+
x: l / 2,
|
|
630
|
+
y: -u / 2 - d
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
x: -l / 2,
|
|
634
|
+
y: -u / 2 - d
|
|
635
|
+
},
|
|
636
|
+
...J(l / 2, -u / 2, d, 20, -90, 0),
|
|
637
|
+
{
|
|
638
|
+
x: -l / 2 - d,
|
|
639
|
+
y: -d
|
|
640
|
+
},
|
|
641
|
+
...J(l / 2 + l * .1, -d, d, 20, -180, -270),
|
|
642
|
+
...J(l / 2 + l * .1, d, d, 20, -90, -180),
|
|
643
|
+
{
|
|
644
|
+
x: -l / 2 - d,
|
|
645
|
+
y: u / 2
|
|
646
|
+
},
|
|
647
|
+
...J(l / 2, u / 2, d, 20, 0, 90),
|
|
648
|
+
{
|
|
649
|
+
x: -l / 2,
|
|
650
|
+
y: u / 2 + d
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
x: l / 2,
|
|
654
|
+
y: u / 2 + d
|
|
655
|
+
}
|
|
656
|
+
], h = S.svg(i), g = y(t, { fill: "none" });
|
|
657
|
+
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
658
|
+
let _ = D(p).replace("Z", ""), b = h.path(_, g), x = D(m), w = h.path(x, { ...g }), O = i.insert("g", ":first-child");
|
|
659
|
+
return O.insert(() => w, ":first-child").attr("stroke-opacity", 0), O.insert(() => b, ":first-child"), O.attr("class", "text"), f && t.look !== "handDrawn" && O.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), O.attr("transform", `translate(${d}, 0)`), o.attr("transform", `translate(${-l / 2 + d - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), T(t, O), t.intersect = function(e) {
|
|
660
|
+
return W.polygon(t, m, e);
|
|
661
|
+
}, i;
|
|
662
|
+
}
|
|
663
|
+
e(pe, "curlyBraceLeft");
|
|
664
|
+
function Y(e, t, n, r = 100, i = 0, a = 180) {
|
|
665
|
+
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
666
|
+
for (let i = 0; i < r; i++) {
|
|
667
|
+
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
668
|
+
o.push({
|
|
669
|
+
x: a,
|
|
670
|
+
y: l
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
return o;
|
|
674
|
+
}
|
|
675
|
+
e(Y, "generateCirclePoints");
|
|
676
|
+
async function me(e, t) {
|
|
677
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
678
|
+
t.labelStyle = n;
|
|
679
|
+
let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + (t.look === "neo" ? s * 2 : s), u = a.height + (t.look === "neo" ? c * 2 : c), d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
|
|
680
|
+
...Y(l / 2, -u / 2, d, 20, -90, 0),
|
|
681
|
+
{
|
|
682
|
+
x: l / 2 + d,
|
|
683
|
+
y: -d
|
|
684
|
+
},
|
|
685
|
+
...Y(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
686
|
+
...Y(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
687
|
+
{
|
|
688
|
+
x: l / 2 + d,
|
|
689
|
+
y: u / 2
|
|
690
|
+
},
|
|
691
|
+
...Y(l / 2, u / 2, d, 20, 0, 90)
|
|
692
|
+
], m = [
|
|
693
|
+
{
|
|
694
|
+
x: -l / 2,
|
|
695
|
+
y: -u / 2 - d
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
x: l / 2,
|
|
699
|
+
y: -u / 2 - d
|
|
700
|
+
},
|
|
701
|
+
...Y(l / 2, -u / 2, d, 20, -90, 0),
|
|
702
|
+
{
|
|
703
|
+
x: l / 2 + d,
|
|
704
|
+
y: -d
|
|
705
|
+
},
|
|
706
|
+
...Y(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
707
|
+
...Y(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
708
|
+
{
|
|
709
|
+
x: l / 2 + d,
|
|
710
|
+
y: u / 2
|
|
711
|
+
},
|
|
712
|
+
...Y(l / 2, u / 2, d, 20, 0, 90),
|
|
713
|
+
{
|
|
714
|
+
x: l / 2,
|
|
715
|
+
y: u / 2 + d
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
x: -l / 2,
|
|
719
|
+
y: u / 2 + d
|
|
720
|
+
}
|
|
721
|
+
], h = S.svg(i), g = y(t, { fill: "none" });
|
|
722
|
+
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
723
|
+
let _ = D(p).replace("Z", ""), b = h.path(_, g), x = D(m), w = h.path(x, { ...g }), O = i.insert("g", ":first-child");
|
|
724
|
+
return O.insert(() => w, ":first-child").attr("stroke-opacity", 0), O.insert(() => b, ":first-child"), O.attr("class", "text"), f && t.look !== "handDrawn" && O.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), O.attr("transform", `translate(${-d}, 0)`), o.attr("transform", `translate(${-l / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), T(t, O), t.intersect = function(e) {
|
|
725
|
+
return W.polygon(t, m, e);
|
|
726
|
+
}, i;
|
|
727
|
+
}
|
|
728
|
+
e(me, "curlyBraceRight");
|
|
729
|
+
function X(e, t, n, r = 100, i = 0, a = 180) {
|
|
730
|
+
let o = [], s = i * Math.PI / 180, c = (a * Math.PI / 180 - s) / (r - 1);
|
|
731
|
+
for (let i = 0; i < r; i++) {
|
|
732
|
+
let r = s + i * c, a = e + n * Math.cos(r), l = t + n * Math.sin(r);
|
|
733
|
+
o.push({
|
|
734
|
+
x: -a,
|
|
735
|
+
y: -l
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
return o;
|
|
739
|
+
}
|
|
740
|
+
e(X, "generateCirclePoints");
|
|
741
|
+
async function he(e, t) {
|
|
742
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
743
|
+
t.labelStyle = n;
|
|
744
|
+
let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.look === "neo" ? 18 : t.padding ?? 0, c = t.look === "neo" ? 12 : t.padding ?? 0, l = a.width + (t.look === "neo" ? s * 2 : s), u = a.height + (t.look === "neo" ? c * 2 : c), d = Math.max(5, u * .1), { cssStyles: f } = t, p = [
|
|
745
|
+
...X(l / 2, -u / 2, d, 30, -90, 0),
|
|
746
|
+
{
|
|
747
|
+
x: -l / 2 - d,
|
|
748
|
+
y: d
|
|
749
|
+
},
|
|
750
|
+
...X(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
751
|
+
...X(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
752
|
+
{
|
|
753
|
+
x: -l / 2 - d,
|
|
754
|
+
y: -u / 2
|
|
755
|
+
},
|
|
756
|
+
...X(l / 2, u / 2, d, 20, 0, 90)
|
|
757
|
+
], m = [
|
|
758
|
+
...X(-l / 2 + d + d / 2, -u / 2, d, 20, -90, -180),
|
|
759
|
+
{
|
|
760
|
+
x: l / 2 - d / 2,
|
|
761
|
+
y: d
|
|
762
|
+
},
|
|
763
|
+
...X(-l / 2 - d / 2, -d, d, 20, 0, 90),
|
|
764
|
+
...X(-l / 2 - d / 2, d, d, 20, -90, 0),
|
|
765
|
+
{
|
|
766
|
+
x: l / 2 - d / 2,
|
|
767
|
+
y: -d
|
|
768
|
+
},
|
|
769
|
+
...X(-l / 2 + d + d / 2, u / 2, d, 30, -180, -270)
|
|
770
|
+
], h = [
|
|
771
|
+
{
|
|
772
|
+
x: l / 2,
|
|
773
|
+
y: -u / 2 - d
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
x: -l / 2,
|
|
777
|
+
y: -u / 2 - d
|
|
778
|
+
},
|
|
779
|
+
...X(l / 2, -u / 2, d, 20, -90, 0),
|
|
780
|
+
{
|
|
781
|
+
x: -l / 2 - d,
|
|
782
|
+
y: -d
|
|
783
|
+
},
|
|
784
|
+
...X(l / 2 + d * 2, -d, d, 20, -180, -270),
|
|
785
|
+
...X(l / 2 + d * 2, d, d, 20, -90, -180),
|
|
786
|
+
{
|
|
787
|
+
x: -l / 2 - d,
|
|
788
|
+
y: u / 2
|
|
789
|
+
},
|
|
790
|
+
...X(l / 2, u / 2, d, 20, 0, 90),
|
|
791
|
+
{
|
|
792
|
+
x: -l / 2,
|
|
793
|
+
y: u / 2 + d
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
x: l / 2 - d - d / 2,
|
|
797
|
+
y: u / 2 + d
|
|
798
|
+
},
|
|
799
|
+
...X(-l / 2 + d + d / 2, -u / 2, d, 20, -90, -180),
|
|
800
|
+
{
|
|
801
|
+
x: l / 2 - d / 2,
|
|
802
|
+
y: d
|
|
803
|
+
},
|
|
804
|
+
...X(-l / 2 - d / 2, -d, d, 20, 0, 90),
|
|
805
|
+
...X(-l / 2 - d / 2, d, d, 20, -90, 0),
|
|
806
|
+
{
|
|
807
|
+
x: l / 2 - d / 2,
|
|
808
|
+
y: -d
|
|
809
|
+
},
|
|
810
|
+
...X(-l / 2 + d + d / 2, u / 2, d, 30, -180, -270)
|
|
811
|
+
], g = S.svg(i), _ = y(t, { fill: "none" });
|
|
812
|
+
t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
|
|
813
|
+
let b = D(p).replace("Z", ""), x = g.path(b, _), w = D(m).replace("Z", ""), O = g.path(w, _), k = D(h), A = g.path(k, { ..._ }), j = i.insert("g", ":first-child");
|
|
814
|
+
return j.insert(() => A, ":first-child").attr("stroke-opacity", 0), j.insert(() => x, ":first-child"), j.insert(() => O, ":first-child"), j.attr("class", "text"), f && t.look !== "handDrawn" && j.selectAll("path").attr("style", f), r && t.look !== "handDrawn" && j.selectAll("path").attr("style", r), j.attr("transform", `translate(${d - d / 4}, 0)`), o.attr("transform", `translate(${-l / 2 + (t.padding ?? 0) / 2 - (a.x - (a.left ?? 0))},${-u / 2 + (t.padding ?? 0) / 2 - (a.y - (a.top ?? 0))})`), T(t, j), t.intersect = function(e) {
|
|
815
|
+
return W.polygon(t, h, e);
|
|
816
|
+
}, i;
|
|
817
|
+
}
|
|
818
|
+
e(he, "curlyBraces");
|
|
819
|
+
async function ge(e, t) {
|
|
820
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
821
|
+
t.labelStyle = n;
|
|
822
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = Math.max(20, (c.width + a * 2) * 1.25, t?.width ?? 0), u = Math.max(5, c.height + o * 2, t?.height ?? 0), d = u / 2, { cssStyles: f } = t, p = S.svg(s), m = y(t, {});
|
|
823
|
+
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
824
|
+
let h = l, g = u, _ = h - d, b = g / 4, x = [
|
|
825
|
+
{
|
|
826
|
+
x: _,
|
|
827
|
+
y: 0
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
x: b,
|
|
831
|
+
y: 0
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
x: 0,
|
|
835
|
+
y: g / 2
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
x: b,
|
|
839
|
+
y: g
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
x: _,
|
|
843
|
+
y: g
|
|
844
|
+
},
|
|
845
|
+
...k(-_, -g / 2, d, 50, 270, 90)
|
|
846
|
+
], w = D(x), O = p.path(w, m), A = s.insert(() => O, ":first-child");
|
|
847
|
+
return A.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && A.selectChildren("path").attr("style", f), r && t.look !== "handDrawn" && A.selectChildren("path").attr("style", r), A.attr("transform", `translate(${-l / 2}, ${-u / 2})`), T(t, A), t.intersect = function(e) {
|
|
848
|
+
return W.polygon(t, x, e);
|
|
849
|
+
}, s;
|
|
850
|
+
}
|
|
851
|
+
e(ge, "curvedTrapezoid");
|
|
852
|
+
var _e = /* @__PURE__ */ e((e, t, n, r, i, a) => [
|
|
853
|
+
`M${e},${t + a}`,
|
|
854
|
+
`a${i},${a} 0,0,0 ${n},0`,
|
|
855
|
+
`a${i},${a} 0,0,0 ${-n},0`,
|
|
856
|
+
`l0,${r}`,
|
|
857
|
+
`a${i},${a} 0,0,0 ${n},0`,
|
|
858
|
+
`l0,${-r}`
|
|
859
|
+
].join(" "), "createCylinderPathD"), ve = /* @__PURE__ */ e((e, t, n, r, i, a) => [
|
|
860
|
+
`M${e},${t + a}`,
|
|
861
|
+
`M${e + n},${t + a}`,
|
|
862
|
+
`a${i},${a} 0,0,0 ${-n},0`,
|
|
863
|
+
`l0,${r}`,
|
|
864
|
+
`a${i},${a} 0,0,0 ${n},0`,
|
|
865
|
+
`l0,${-r}`
|
|
866
|
+
].join(" "), "createOuterCylinderPathD"), ye = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), be = 8, xe = 8;
|
|
867
|
+
async function Se(e, t) {
|
|
868
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
869
|
+
t.labelStyle = n;
|
|
870
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 24 : i, o = t.look === "neo" ? 24 : i;
|
|
871
|
+
if (t.width || t.height) {
|
|
872
|
+
let e = t.width ?? 0;
|
|
873
|
+
t.width = (t.width ?? 0) - o, t.width < xe && (t.width = xe);
|
|
874
|
+
let n = e / 2 / (2.5 + e / 50);
|
|
875
|
+
t.height = (t.height ?? 0) - a - n * 3, t.height < be && (t.height = be);
|
|
876
|
+
}
|
|
877
|
+
let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t.width ? t.width : c.width) + o, d = u / 2, f = d / (2.5 + u / 50), m = (t.height ? t.height : c.height) + a + f, h, { cssStyles: g } = t;
|
|
878
|
+
if (t.look === "handDrawn") {
|
|
879
|
+
let e = S.svg(s), n = ve(0, 0, u, m, d, f), r = ye(0, f, u, m, d, f), i = y(t, {}), a = e.path(n, i), o = e.path(r, y(t, { fill: "none" }));
|
|
880
|
+
h = s.insert(() => o, ":first-child"), h = s.insert(() => a, ":first-child"), h.attr("class", "basic label-container"), g && h.attr("style", g);
|
|
881
|
+
} else {
|
|
882
|
+
let e = _e(0, 0, u, m, d, f);
|
|
883
|
+
h = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", p(g)).attr("style", r);
|
|
884
|
+
}
|
|
885
|
+
return h.attr("label-offset-y", f), h.attr("transform", `translate(${-u / 2}, ${-(m / 2 + f)})`), T(t, h), l.attr("transform", `translate(${-(c.width / 2) - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + (t.padding ?? 0) / 1.5 - (c.y - (c.top ?? 0))})`), t.intersect = function(e) {
|
|
886
|
+
let n = W.rect(t, e), r = n.x - (t.x ?? 0);
|
|
887
|
+
if (d != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) {
|
|
888
|
+
let i = f * f * (1 - r * r / (d * d));
|
|
889
|
+
i > 0 && (i = Math.sqrt(i)), i = f - i, e.y - (t.y ?? 0) > 0 && (i = -i), n.y += i;
|
|
890
|
+
}
|
|
891
|
+
return n;
|
|
892
|
+
}, s;
|
|
893
|
+
}
|
|
894
|
+
e(Se, "cylinder");
|
|
895
|
+
async function Ce(e, t) {
|
|
896
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
897
|
+
t.labelStyle = n;
|
|
898
|
+
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 16 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = s.width + i, u = s.height + a, d = u * .2, f = -l / 2, p = -u / 2 - d / 2, { cssStyles: m } = t, h = S.svg(o), g = y(t, {});
|
|
899
|
+
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
900
|
+
let _ = [
|
|
901
|
+
{
|
|
902
|
+
x: f,
|
|
903
|
+
y: p + d
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
x: -f,
|
|
907
|
+
y: p + d
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
x: -f,
|
|
911
|
+
y: -p
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
x: f,
|
|
915
|
+
y: -p
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
x: f,
|
|
919
|
+
y: p
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
x: -f,
|
|
923
|
+
y: p
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
x: -f,
|
|
927
|
+
y: p + d
|
|
928
|
+
}
|
|
929
|
+
], b = h.polygon(_.map((e) => [e.x, e.y]), g), x = o.insert(() => b, ":first-child");
|
|
930
|
+
return x.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && x.selectAll("path").attr("style", m), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), c.attr("transform", `translate(${f + (t.padding ?? 0) / 2 - (s.x - (s.left ?? 0))}, ${p + d + (t.padding ?? 0) / 2 - (s.y - (s.top ?? 0))})`), T(t, x), t.intersect = function(e) {
|
|
931
|
+
return W.rect(t, e);
|
|
932
|
+
}, o;
|
|
933
|
+
}
|
|
934
|
+
e(Ce, "dividedRectangle");
|
|
935
|
+
async function we(e, n) {
|
|
936
|
+
let { labelStyles: r, nodeStyles: i } = v(n), a = n.look === "neo" ? 12 : 5;
|
|
937
|
+
n.labelStyle = r;
|
|
938
|
+
let o = n.padding ?? 0, s = n.look === "neo" ? 16 : o, { shapeSvg: c, bbox: l } = await C(e, n, E(n)), u = (n?.width ? n?.width / 2 : l.width / 2) + (s ?? 0), d = u - a, f, { cssStyles: m } = n;
|
|
939
|
+
if (n.look === "handDrawn") {
|
|
940
|
+
let e = S.svg(c), t = y(n, {
|
|
941
|
+
roughness: .2,
|
|
942
|
+
strokeWidth: 2.5
|
|
943
|
+
}), r = y(n, {
|
|
944
|
+
roughness: .2,
|
|
945
|
+
strokeWidth: 1.5
|
|
946
|
+
}), i = e.circle(0, 0, u * 2, t), a = e.circle(0, 0, d * 2, r);
|
|
947
|
+
f = c.insert("g", ":first-child"), f.attr("class", p(n.cssClasses)).attr("style", p(m)), f.node()?.appendChild(i), f.node()?.appendChild(a);
|
|
948
|
+
} else {
|
|
949
|
+
f = c.insert("g", ":first-child");
|
|
950
|
+
let e = f.insert("circle", ":first-child"), t = f.insert("circle");
|
|
951
|
+
f.attr("class", "basic label-container").attr("style", i), e.attr("class", "outer-circle").attr("style", i).attr("r", u).attr("cx", 0).attr("cy", 0), t.attr("class", "inner-circle").attr("style", i).attr("r", d).attr("cx", 0).attr("cy", 0);
|
|
952
|
+
}
|
|
953
|
+
return T(n, f), n.intersect = function(e) {
|
|
954
|
+
return t.info("DoubleCircle intersect", n, u, e), W.circle(n, u, e);
|
|
955
|
+
}, c;
|
|
956
|
+
}
|
|
957
|
+
e(we, "doublecircle");
|
|
958
|
+
function Te(e, n, { config: { themeVariables: r } }) {
|
|
959
|
+
let { labelStyles: i, nodeStyles: a } = v(n);
|
|
960
|
+
n.label = "", n.labelStyle = i;
|
|
961
|
+
let o = e.insert("g").attr("class", E(n)).attr("id", n.domId ?? n.id), { cssStyles: s } = n, c = S.svg(o), { nodeBorder: l } = r, u = y(n, { fillStyle: "solid" });
|
|
962
|
+
n.look !== "handDrawn" && (u.roughness = 0);
|
|
963
|
+
let d = c.circle(0, 0, 14, u), f = o.insert(() => d, ":first-child");
|
|
964
|
+
return f.selectAll("path").attr("style", `fill: ${l} !important;`), s && s.length > 0 && n.look !== "handDrawn" && f.selectAll("path").attr("style", s), a && n.look !== "handDrawn" && f.selectAll("path").attr("style", a), T(n, f), n.intersect = function(e) {
|
|
965
|
+
return t.info("filledCircle intersect", n, {
|
|
966
|
+
radius: 7,
|
|
967
|
+
point: e
|
|
968
|
+
}), W.circle(n, 7, e);
|
|
969
|
+
}, o;
|
|
970
|
+
}
|
|
971
|
+
e(Te, "filledCircle");
|
|
972
|
+
var Ee = 10, De = 10;
|
|
973
|
+
async function Oe(e, n) {
|
|
974
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
975
|
+
n.labelStyle = r;
|
|
976
|
+
let a = n.padding ?? 0, o = n.look === "neo" ? a * 2 : a;
|
|
977
|
+
(n.width || n.height) && (n.height = n?.height ?? 0, n.height < Ee && (n.height = Ee), n.width = (n?.width ?? 0) - o - o / 2, n.width < De && (n.width = De));
|
|
978
|
+
let { shapeSvg: s, bbox: c, label: l } = await C(e, n, E(n)), u = (n?.width ? n?.width : c.width) + (o ?? 0), d = n?.height ? n?.height : u + c.height, f = d, p = [
|
|
979
|
+
{
|
|
980
|
+
x: 0,
|
|
981
|
+
y: -d
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
x: f,
|
|
985
|
+
y: -d
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
x: f / 2,
|
|
989
|
+
y: 0
|
|
990
|
+
}
|
|
991
|
+
], { cssStyles: m } = n, h = S.svg(s), g = y(n, {});
|
|
992
|
+
n.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
993
|
+
let _ = D(p), b = h.path(_, g), x = s.insert(() => b, ":first-child").attr("transform", `translate(${-d / 2}, ${d / 2})`).attr("class", "outer-path");
|
|
994
|
+
return m && n.look !== "handDrawn" && x.selectChildren("path").attr("style", m), i && n.look !== "handDrawn" && x.selectChildren("path").attr("style", i), n.width = u, n.height = d, T(n, x), l.attr("transform", `translate(${-c.width / 2 - (c.x - (c.left ?? 0))}, ${-d / 2 + (n.padding ?? 0) / 2 + (c.y - (c.top ?? 0))})`), n.intersect = function(e) {
|
|
995
|
+
return t.info("Triangle intersect", n, p, e), W.polygon(n, p, e);
|
|
996
|
+
}, s;
|
|
997
|
+
}
|
|
998
|
+
e(Oe, "flippedTriangle");
|
|
999
|
+
function ke(e, t, { dir: n, config: { state: r, themeVariables: i } }) {
|
|
1000
|
+
let { nodeStyles: a } = v(t);
|
|
1001
|
+
t.label = "";
|
|
1002
|
+
let o = e.insert("g").attr("class", E(t)).attr("id", t.domId ?? t.id), { cssStyles: s } = t, c = Math.max(70, t?.width ?? 0), l = Math.max(10, t?.height ?? 0);
|
|
1003
|
+
n === "LR" && (c = Math.max(10, t?.width ?? 0), l = Math.max(70, t?.height ?? 0));
|
|
1004
|
+
let u = -1 * c / 2, d = -1 * l / 2, f = S.svg(o), p = y(t, {
|
|
1005
|
+
stroke: i.lineColor,
|
|
1006
|
+
fill: i.lineColor
|
|
1007
|
+
});
|
|
1008
|
+
t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
|
|
1009
|
+
let m = f.rectangle(u, d, c, l, p), h = o.insert(() => m, ":first-child");
|
|
1010
|
+
s && t.look !== "handDrawn" && h.selectAll("path").attr("style", s), a && t.look !== "handDrawn" && h.selectAll("path").attr("style", a), T(t, h);
|
|
1011
|
+
let g = r?.padding ?? 0;
|
|
1012
|
+
return t.width && t.height && (t.width += g / 2 || 0, t.height += g / 2 || 0), t.intersect = function(e) {
|
|
1013
|
+
return W.rect(t, e);
|
|
1014
|
+
}, o;
|
|
1015
|
+
}
|
|
1016
|
+
e(ke, "forkJoin");
|
|
1017
|
+
async function Ae(e, n) {
|
|
1018
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
1019
|
+
n.labelStyle = r;
|
|
1020
|
+
let a = n.look === "neo" ? 16 : n.padding ?? 0, o = n.look === "neo" ? 12 : n.padding ?? 0;
|
|
1021
|
+
(n.width || n.height) && (n.height = (n?.height ?? 0) - o * 2, n.height < 10 && (n.height = 10), n.width = (n?.width ?? 0) - a * 2, n.width < 15 && (n.width = 15));
|
|
1022
|
+
let { shapeSvg: s, bbox: c } = await C(e, n, E(n)), l = (n?.width ? n?.width : Math.max(15, c.width)) + a * 2, u = (n?.height ? n?.height : Math.max(10, c.height)) + o * 2, d = u / 2, { cssStyles: f } = n, p = S.svg(s), m = y(n, {});
|
|
1023
|
+
n.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
1024
|
+
let h = [
|
|
1025
|
+
{
|
|
1026
|
+
x: -l / 2,
|
|
1027
|
+
y: -u / 2
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
x: l / 2 - d,
|
|
1031
|
+
y: -u / 2
|
|
1032
|
+
},
|
|
1033
|
+
...k(-l / 2 + d, 0, d, 50, 90, 270),
|
|
1034
|
+
{
|
|
1035
|
+
x: l / 2 - d,
|
|
1036
|
+
y: u / 2
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
x: -l / 2,
|
|
1040
|
+
y: u / 2
|
|
1041
|
+
}
|
|
1042
|
+
], g = D(h), _ = p.path(g, m), b = s.insert(() => _, ":first-child");
|
|
1043
|
+
return b.attr("class", "basic label-container outer-path"), f && n.look !== "handDrawn" && b.selectChildren("path").attr("style", f), i && n.look !== "handDrawn" && b.selectChildren("path").attr("style", i), T(n, b), n.intersect = function(e) {
|
|
1044
|
+
return t.info("Pill intersect", n, {
|
|
1045
|
+
radius: d,
|
|
1046
|
+
point: e
|
|
1047
|
+
}), W.polygon(n, h, e);
|
|
1048
|
+
}, s;
|
|
1049
|
+
}
|
|
1050
|
+
e(Ae, "halfRoundedRectangle");
|
|
1051
|
+
var je = /* @__PURE__ */ e((e, t, n, r, i) => [
|
|
1052
|
+
`M${e + i},${t}`,
|
|
1053
|
+
`L${e + n - i},${t}`,
|
|
1054
|
+
`L${e + n},${t - r / 2}`,
|
|
1055
|
+
`L${e + n - i},${t - r}`,
|
|
1056
|
+
`L${e + i},${t - r}`,
|
|
1057
|
+
`L${e},${t - r / 2}`,
|
|
1058
|
+
"Z"
|
|
1059
|
+
].join(" "), "createHexagonPathD");
|
|
1060
|
+
async function Me(e, t) {
|
|
1061
|
+
let { labelStyles: n, nodeStyles: r } = v(t), i = t.look === "neo" ? 3.5 : 4;
|
|
1062
|
+
t.labelStyle = n;
|
|
1063
|
+
let a = t.padding ?? 0, o = t.look === "neo" ? 70 : a, s = t.look === "neo" ? 32 : a;
|
|
1064
|
+
if (t.width || t.height) {
|
|
1065
|
+
let e = (t.height ?? 0) / i;
|
|
1066
|
+
t.width = (t?.width ?? 0) - 2 * e - s, t.height = (t.height ?? 0) - o;
|
|
1067
|
+
}
|
|
1068
|
+
let { shapeSvg: c, bbox: l } = await C(e, t, E(t)), u = (t?.height ? t?.height : l.height) + o, d = u / i, f = (t?.width ? t?.width : l.width) + 2 * d + s, p = [
|
|
1069
|
+
{
|
|
1070
|
+
x: d,
|
|
1071
|
+
y: 0
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
x: f - d,
|
|
1075
|
+
y: 0
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
x: f,
|
|
1079
|
+
y: -u / 2
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
x: f - d,
|
|
1083
|
+
y: -u
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
x: d,
|
|
1087
|
+
y: -u
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
x: 0,
|
|
1091
|
+
y: -u / 2
|
|
1092
|
+
}
|
|
1093
|
+
], m, { cssStyles: h } = t;
|
|
1094
|
+
if (t.look === "handDrawn") {
|
|
1095
|
+
let e = S.svg(c), n = y(t, {}), r = je(0, 0, f, u, d), i = e.path(r, n);
|
|
1096
|
+
m = c.insert(() => i, ":first-child").attr("transform", `translate(${-f / 2}, ${u / 2})`), h && m.attr("style", h);
|
|
1097
|
+
} else m = q(c, f, u, p);
|
|
1098
|
+
return r && m.attr("style", r), t.width = f, t.height = u, T(t, m), t.intersect = function(e) {
|
|
1099
|
+
return W.polygon(t, p, e);
|
|
1100
|
+
}, c;
|
|
1101
|
+
}
|
|
1102
|
+
e(Me, "hexagon");
|
|
1103
|
+
async function Ne(e, n) {
|
|
1104
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
1105
|
+
n.label = "", n.labelStyle = r;
|
|
1106
|
+
let { shapeSvg: a } = await C(e, n, E(n)), o = Math.max(30, n?.width ?? 0), s = Math.max(30, n?.height ?? 0), { cssStyles: c } = n, l = S.svg(a), u = y(n, {});
|
|
1107
|
+
n.look !== "handDrawn" && (u.roughness = 0, u.fillStyle = "solid");
|
|
1108
|
+
let d = [
|
|
1109
|
+
{
|
|
1110
|
+
x: 0,
|
|
1111
|
+
y: 0
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
x: o,
|
|
1115
|
+
y: 0
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
x: 0,
|
|
1119
|
+
y: s
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
x: o,
|
|
1123
|
+
y: s
|
|
1124
|
+
}
|
|
1125
|
+
], f = D(d), p = l.path(f, u), m = a.insert(() => p, ":first-child");
|
|
1126
|
+
return m.attr("class", "basic label-container outer-path"), c && n.look !== "handDrawn" && m.selectChildren("path").attr("style", c), i && n.look !== "handDrawn" && m.selectChildren("path").attr("style", i), m.attr("transform", `translate(${-o / 2}, ${-s / 2})`), T(n, m), n.intersect = function(e) {
|
|
1127
|
+
return t.info("Pill intersect", n, { points: d }), W.polygon(n, d, e);
|
|
1128
|
+
}, a;
|
|
1129
|
+
}
|
|
1130
|
+
e(Ne, "hourglass");
|
|
1131
|
+
async function Pe(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1132
|
+
let { labelStyles: a } = v(n);
|
|
1133
|
+
n.labelStyle = a;
|
|
1134
|
+
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1135
|
+
n.width = Math.max(c, l ?? 0);
|
|
1136
|
+
let { shapeSvg: u, bbox: d, label: f } = await C(e, n, "icon-shape default"), p = n.pos === "t", m = c, h = c, { nodeBorder: _ } = r, { stylesMap: b } = g(n), w = -h / 2, E = -m / 2, D = n.label ? 8 : 0, O = S.svg(u), k = y(n, {
|
|
1137
|
+
stroke: "none",
|
|
1138
|
+
fill: "none"
|
|
1139
|
+
});
|
|
1140
|
+
n.look !== "handDrawn" && (k.roughness = 0, k.fillStyle = "solid");
|
|
1141
|
+
let A = O.rectangle(w, E, h, m, k), j = Math.max(h, d.width), M = m + d.height + D, N = O.rectangle(-j / 2, -M / 2, j, M, {
|
|
1142
|
+
...k,
|
|
1143
|
+
fill: "transparent",
|
|
1144
|
+
stroke: "none"
|
|
1145
|
+
}), P = u.insert(() => A, ":first-child"), F = u.insert(() => N);
|
|
1146
|
+
if (n.icon) {
|
|
1147
|
+
let e = u.append("g");
|
|
1148
|
+
e.html(`<g>${await x(n.icon, {
|
|
1149
|
+
height: c,
|
|
1150
|
+
width: c,
|
|
1151
|
+
fallbackPrefix: ""
|
|
1152
|
+
})}</g>`);
|
|
1153
|
+
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1154
|
+
e.attr("transform", `translate(${-r / 2 - a},${p ? d.height / 2 + D / 2 - i / 2 - o : -d.height / 2 - D / 2 - i / 2 - o})`), e.attr("style", `color: ${b.get("stroke") ?? _};`);
|
|
1155
|
+
}
|
|
1156
|
+
return f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${p ? -M / 2 : M / 2 - d.height})`), P.attr("transform", `translate(0,${p ? d.height / 2 + D / 2 : -d.height / 2 - D / 2})`), T(n, F), n.intersect = function(e) {
|
|
1157
|
+
if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
|
|
1158
|
+
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1159
|
+
return o = p ? [
|
|
1160
|
+
{
|
|
1161
|
+
x: r - d.width / 2,
|
|
1162
|
+
y: i - a / 2
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
x: r + d.width / 2,
|
|
1166
|
+
y: i - a / 2
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
x: r + d.width / 2,
|
|
1170
|
+
y: i - a / 2 + d.height + D
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
x: r + h / 2,
|
|
1174
|
+
y: i - a / 2 + d.height + D
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
x: r + h / 2,
|
|
1178
|
+
y: i + a / 2
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
x: r - h / 2,
|
|
1182
|
+
y: i + a / 2
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
x: r - h / 2,
|
|
1186
|
+
y: i - a / 2 + d.height + D
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
x: r - d.width / 2,
|
|
1190
|
+
y: i - a / 2 + d.height + D
|
|
1191
|
+
}
|
|
1192
|
+
] : [
|
|
1193
|
+
{
|
|
1194
|
+
x: r - h / 2,
|
|
1195
|
+
y: i - a / 2
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
x: r + h / 2,
|
|
1199
|
+
y: i - a / 2
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
x: r + h / 2,
|
|
1203
|
+
y: i - a / 2 + m
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
x: r + d.width / 2,
|
|
1207
|
+
y: i - a / 2 + m
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
x: r + d.width / 2 / 2,
|
|
1211
|
+
y: i + a / 2
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
x: r - d.width / 2,
|
|
1215
|
+
y: i + a / 2
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
x: r - d.width / 2,
|
|
1219
|
+
y: i - a / 2 + m
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
x: r - h / 2,
|
|
1223
|
+
y: i - a / 2 + m
|
|
1224
|
+
}
|
|
1225
|
+
], W.polygon(n, o, e);
|
|
1226
|
+
}, u;
|
|
1227
|
+
}
|
|
1228
|
+
e(Pe, "icon");
|
|
1229
|
+
async function Fe(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1230
|
+
let { labelStyles: a } = v(n);
|
|
1231
|
+
n.labelStyle = a;
|
|
1232
|
+
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1233
|
+
n.width = Math.max(c, l ?? 0);
|
|
1234
|
+
let { shapeSvg: u, bbox: d, label: f } = await C(e, n, "icon-shape default"), p = n.label ? 8 : 0, m = n.pos === "t", { nodeBorder: h, mainBkg: _ } = r, { stylesMap: b } = g(n), w = S.svg(u), E = y(n, {});
|
|
1235
|
+
n.look !== "handDrawn" && (E.roughness = 0, E.fillStyle = "solid"), E.stroke = b.get("fill") ?? _;
|
|
1236
|
+
let D = u.append("g");
|
|
1237
|
+
n.icon && D.html(`<g>${await x(n.icon, {
|
|
1238
|
+
height: c,
|
|
1239
|
+
width: c,
|
|
1240
|
+
fallbackPrefix: ""
|
|
1241
|
+
})}</g>`);
|
|
1242
|
+
let O = D.node().getBBox(), k = O.width, A = O.height, j = O.x, M = O.y, N = Math.max(k, A) * Math.SQRT2 + 40, P = w.circle(0, 0, N, E), F = Math.max(N, d.width), I = N + d.height + p, ee = w.rectangle(-F / 2, -I / 2, F, I, {
|
|
1243
|
+
...E,
|
|
1244
|
+
fill: "transparent",
|
|
1245
|
+
stroke: "none"
|
|
1246
|
+
}), te = u.insert(() => P, ":first-child"), L = u.insert(() => ee);
|
|
1247
|
+
return D.attr("transform", `translate(${-k / 2 - j},${m ? d.height / 2 + p / 2 - A / 2 - M : -d.height / 2 - p / 2 - A / 2 - M})`), D.attr("style", `color: ${b.get("stroke") ?? h};`), f.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -I / 2 : I / 2 - d.height})`), te.attr("transform", `translate(0,${m ? d.height / 2 + p / 2 : -d.height / 2 - p / 2})`), T(n, L), n.intersect = function(e) {
|
|
1248
|
+
return t.info("iconSquare intersect", n, e), W.rect(n, e);
|
|
1249
|
+
}, u;
|
|
1250
|
+
}
|
|
1251
|
+
e(Fe, "iconCircle");
|
|
1252
|
+
async function Ie(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1253
|
+
let { labelStyles: a } = v(n);
|
|
1254
|
+
n.labelStyle = a;
|
|
1255
|
+
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1256
|
+
n.width = Math.max(c, l ?? 0);
|
|
1257
|
+
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await C(e, n, "icon-shape default"), m = n.pos === "t", h = c + f * 2, _ = c + f * 2, { nodeBorder: b, mainBkg: w } = r, { stylesMap: E } = g(n), D = -_ / 2, O = -h / 2, k = n.label ? 8 : 0, A = S.svg(u), j = y(n, {});
|
|
1258
|
+
n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid"), j.stroke = E.get("fill") ?? w;
|
|
1259
|
+
let M = A.path(N(D, O, _, h, 5), j), P = Math.max(_, d.width), F = h + d.height + k, I = A.rectangle(-P / 2, -F / 2, P, F, {
|
|
1260
|
+
...j,
|
|
1261
|
+
fill: "transparent",
|
|
1262
|
+
stroke: "none"
|
|
1263
|
+
}), ee = u.insert(() => M, ":first-child").attr("class", "icon-shape2"), te = u.insert(() => I);
|
|
1264
|
+
if (n.icon) {
|
|
1265
|
+
let e = u.append("g");
|
|
1266
|
+
e.html(`<g>${await x(n.icon, {
|
|
1267
|
+
height: c,
|
|
1268
|
+
width: c,
|
|
1269
|
+
fallbackPrefix: ""
|
|
1270
|
+
})}</g>`);
|
|
1271
|
+
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1272
|
+
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + k / 2 - i / 2 - o : -d.height / 2 - k / 2 - i / 2 - o})`), e.attr("style", `color: ${E.get("stroke") ?? b};`);
|
|
1273
|
+
}
|
|
1274
|
+
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -F / 2 : F / 2 - d.height})`), ee.attr("transform", `translate(0,${m ? d.height / 2 + k / 2 : -d.height / 2 - k / 2})`), T(n, te), n.intersect = function(e) {
|
|
1275
|
+
if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
|
|
1276
|
+
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1277
|
+
return o = m ? [
|
|
1278
|
+
{
|
|
1279
|
+
x: r - d.width / 2,
|
|
1280
|
+
y: i - a / 2
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
x: r + d.width / 2,
|
|
1284
|
+
y: i - a / 2
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
x: r + d.width / 2,
|
|
1288
|
+
y: i - a / 2 + d.height + k
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
x: r + _ / 2,
|
|
1292
|
+
y: i - a / 2 + d.height + k
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
x: r + _ / 2,
|
|
1296
|
+
y: i + a / 2
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
x: r - _ / 2,
|
|
1300
|
+
y: i + a / 2
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
x: r - _ / 2,
|
|
1304
|
+
y: i - a / 2 + d.height + k
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
x: r - d.width / 2,
|
|
1308
|
+
y: i - a / 2 + d.height + k
|
|
1309
|
+
}
|
|
1310
|
+
] : [
|
|
1311
|
+
{
|
|
1312
|
+
x: r - _ / 2,
|
|
1313
|
+
y: i - a / 2
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
x: r + _ / 2,
|
|
1317
|
+
y: i - a / 2
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
x: r + _ / 2,
|
|
1321
|
+
y: i - a / 2 + h
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
x: r + d.width / 2,
|
|
1325
|
+
y: i - a / 2 + h
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
x: r + d.width / 2 / 2,
|
|
1329
|
+
y: i + a / 2
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
x: r - d.width / 2,
|
|
1333
|
+
y: i + a / 2
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
x: r - d.width / 2,
|
|
1337
|
+
y: i - a / 2 + h
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
x: r - _ / 2,
|
|
1341
|
+
y: i - a / 2 + h
|
|
1342
|
+
}
|
|
1343
|
+
], W.polygon(n, o, e);
|
|
1344
|
+
}, u;
|
|
1345
|
+
}
|
|
1346
|
+
e(Ie, "iconRounded");
|
|
1347
|
+
async function Le(e, n, { config: { themeVariables: r, flowchart: i } }) {
|
|
1348
|
+
let { labelStyles: a } = v(n);
|
|
1349
|
+
n.labelStyle = a;
|
|
1350
|
+
let o = n.assetHeight ?? 48, s = n.assetWidth ?? 48, c = Math.max(o, s), l = i?.wrappingWidth;
|
|
1351
|
+
n.width = Math.max(c, l ?? 0);
|
|
1352
|
+
let { shapeSvg: u, bbox: d, halfPadding: f, label: p } = await C(e, n, "icon-shape default"), m = n.pos === "t", h = c + f * 2, _ = c + f * 2, { nodeBorder: b, mainBkg: w } = r, { stylesMap: E } = g(n), D = -_ / 2, O = -h / 2, k = n.label ? 8 : 0, A = S.svg(u), j = y(n, {});
|
|
1353
|
+
n.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid"), j.stroke = E.get("fill") ?? w;
|
|
1354
|
+
let M = A.path(N(D, O, _, h, .1), j), P = Math.max(_, d.width), F = h + d.height + k, I = A.rectangle(-P / 2, -F / 2, P, F, {
|
|
1355
|
+
...j,
|
|
1356
|
+
fill: "transparent",
|
|
1357
|
+
stroke: "none"
|
|
1358
|
+
}), ee = u.insert(() => M, ":first-child"), te = u.insert(() => I);
|
|
1359
|
+
if (n.icon) {
|
|
1360
|
+
let e = u.append("g");
|
|
1361
|
+
e.html(`<g>${await x(n.icon, {
|
|
1362
|
+
height: c,
|
|
1363
|
+
width: c,
|
|
1364
|
+
fallbackPrefix: ""
|
|
1365
|
+
})}</g>`);
|
|
1366
|
+
let t = e.node().getBBox(), r = t.width, i = t.height, a = t.x, o = t.y;
|
|
1367
|
+
e.attr("transform", `translate(${-r / 2 - a},${m ? d.height / 2 + k / 2 - i / 2 - o : -d.height / 2 - k / 2 - i / 2 - o})`), e.attr("style", `color: ${E.get("stroke") ?? b};`);
|
|
1368
|
+
}
|
|
1369
|
+
return p.attr("transform", `translate(${-d.width / 2 - (d.x - (d.left ?? 0))},${m ? -F / 2 : F / 2 - d.height})`), ee.attr("transform", `translate(0,${m ? d.height / 2 + k / 2 : -d.height / 2 - k / 2})`), T(n, te), n.intersect = function(e) {
|
|
1370
|
+
if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
|
|
1371
|
+
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1372
|
+
return o = m ? [
|
|
1373
|
+
{
|
|
1374
|
+
x: r - d.width / 2,
|
|
1375
|
+
y: i - a / 2
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
x: r + d.width / 2,
|
|
1379
|
+
y: i - a / 2
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
x: r + d.width / 2,
|
|
1383
|
+
y: i - a / 2 + d.height + k
|
|
1384
|
+
},
|
|
1385
|
+
{
|
|
1386
|
+
x: r + _ / 2,
|
|
1387
|
+
y: i - a / 2 + d.height + k
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
x: r + _ / 2,
|
|
1391
|
+
y: i + a / 2
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
x: r - _ / 2,
|
|
1395
|
+
y: i + a / 2
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
x: r - _ / 2,
|
|
1399
|
+
y: i - a / 2 + d.height + k
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
x: r - d.width / 2,
|
|
1403
|
+
y: i - a / 2 + d.height + k
|
|
1404
|
+
}
|
|
1405
|
+
] : [
|
|
1406
|
+
{
|
|
1407
|
+
x: r - _ / 2,
|
|
1408
|
+
y: i - a / 2
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
x: r + _ / 2,
|
|
1412
|
+
y: i - a / 2
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
x: r + _ / 2,
|
|
1416
|
+
y: i - a / 2 + h
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
x: r + d.width / 2,
|
|
1420
|
+
y: i - a / 2 + h
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
x: r + d.width / 2 / 2,
|
|
1424
|
+
y: i + a / 2
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
x: r - d.width / 2,
|
|
1428
|
+
y: i + a / 2
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
x: r - d.width / 2,
|
|
1432
|
+
y: i - a / 2 + h
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
x: r - _ / 2,
|
|
1436
|
+
y: i - a / 2 + h
|
|
1437
|
+
}
|
|
1438
|
+
], W.polygon(n, o, e);
|
|
1439
|
+
}, u;
|
|
1440
|
+
}
|
|
1441
|
+
e(Le, "iconSquare");
|
|
1442
|
+
async function Re(e, n, { config: { flowchart: r } }) {
|
|
1443
|
+
let i = new Image();
|
|
1444
|
+
i.src = n?.img ?? "", await i.decode();
|
|
1445
|
+
let a = Number(i.naturalWidth.toString().replace("px", "")), o = Number(i.naturalHeight.toString().replace("px", ""));
|
|
1446
|
+
n.imageAspectRatio = a / o;
|
|
1447
|
+
let { labelStyles: s } = v(n);
|
|
1448
|
+
n.labelStyle = s;
|
|
1449
|
+
let c = r?.wrappingWidth;
|
|
1450
|
+
n.defaultWidth = r?.wrappingWidth;
|
|
1451
|
+
let l = Math.max(n.label ? c ?? 0 : 0, n?.assetWidth ?? a), u = n.constraint === "on" && n?.assetHeight ? n.assetHeight * n.imageAspectRatio : l, d = n.constraint === "on" ? u / n.imageAspectRatio : n?.assetHeight ?? o;
|
|
1452
|
+
n.width = Math.max(u, c ?? 0);
|
|
1453
|
+
let { shapeSvg: f, bbox: p, label: m } = await C(e, n, "image-shape default"), h = n.pos === "t", g = -u / 2, _ = -d / 2, b = n.label ? 8 : 0, x = S.svg(f), w = y(n, {});
|
|
1454
|
+
n.look !== "handDrawn" && (w.roughness = 0, w.fillStyle = "solid");
|
|
1455
|
+
let E = x.rectangle(g, _, u, d, w), D = Math.max(u, p.width), O = d + p.height + b, k = x.rectangle(-D / 2, -O / 2, D, O, {
|
|
1456
|
+
...w,
|
|
1457
|
+
fill: "none",
|
|
1458
|
+
stroke: "none"
|
|
1459
|
+
}), A = f.insert(() => E, ":first-child"), j = f.insert(() => k);
|
|
1460
|
+
if (n.img) {
|
|
1461
|
+
let e = f.append("image");
|
|
1462
|
+
e.attr("href", n.img), e.attr("width", u), e.attr("height", d), e.attr("preserveAspectRatio", "none"), e.attr("transform", `translate(${-u / 2},${h ? O / 2 - d : -O / 2})`);
|
|
1463
|
+
}
|
|
1464
|
+
return m.attr("transform", `translate(${-p.width / 2 - (p.x - (p.left ?? 0))},${h ? -d / 2 - p.height / 2 - b / 2 : d / 2 - p.height / 2 + b / 2})`), A.attr("transform", `translate(0,${h ? p.height / 2 + b / 2 : -p.height / 2 - b / 2})`), T(n, j), n.intersect = function(e) {
|
|
1465
|
+
if (t.info("iconSquare intersect", n, e), !n.label) return W.rect(n, e);
|
|
1466
|
+
let r = n.x ?? 0, i = n.y ?? 0, a = n.height ?? 0, o = [];
|
|
1467
|
+
return o = h ? [
|
|
1468
|
+
{
|
|
1469
|
+
x: r - p.width / 2,
|
|
1470
|
+
y: i - a / 2
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
x: r + p.width / 2,
|
|
1474
|
+
y: i - a / 2
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
x: r + p.width / 2,
|
|
1478
|
+
y: i - a / 2 + p.height + b
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
x: r + u / 2,
|
|
1482
|
+
y: i - a / 2 + p.height + b
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
x: r + u / 2,
|
|
1486
|
+
y: i + a / 2
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
x: r - u / 2,
|
|
1490
|
+
y: i + a / 2
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
x: r - u / 2,
|
|
1494
|
+
y: i - a / 2 + p.height + b
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
x: r - p.width / 2,
|
|
1498
|
+
y: i - a / 2 + p.height + b
|
|
1499
|
+
}
|
|
1500
|
+
] : [
|
|
1501
|
+
{
|
|
1502
|
+
x: r - u / 2,
|
|
1503
|
+
y: i - a / 2
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
x: r + u / 2,
|
|
1507
|
+
y: i - a / 2
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
x: r + u / 2,
|
|
1511
|
+
y: i - a / 2 + d
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
x: r + p.width / 2,
|
|
1515
|
+
y: i - a / 2 + d
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
x: r + p.width / 2 / 2,
|
|
1519
|
+
y: i + a / 2
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
x: r - p.width / 2,
|
|
1523
|
+
y: i + a / 2
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
x: r - p.width / 2,
|
|
1527
|
+
y: i - a / 2 + d
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
x: r - u / 2,
|
|
1531
|
+
y: i - a / 2 + d
|
|
1532
|
+
}
|
|
1533
|
+
], W.polygon(n, o, e);
|
|
1534
|
+
}, f;
|
|
1535
|
+
}
|
|
1536
|
+
e(Re, "imageSquare");
|
|
1537
|
+
async function ze(e, t) {
|
|
1538
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1539
|
+
t.labelStyle = n;
|
|
1540
|
+
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = Math.max(c.width + (o ?? 0) * 2, t?.width ?? 0), u = Math.max(c.height + (a ?? 0) * 2, t?.height ?? 0), d = [
|
|
1541
|
+
{
|
|
1542
|
+
x: 0,
|
|
1543
|
+
y: 0
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
x: l,
|
|
1547
|
+
y: 0
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
x: l + 3 * u / 6,
|
|
1551
|
+
y: -u
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
x: -3 * u / 6,
|
|
1555
|
+
y: -u
|
|
1556
|
+
}
|
|
1557
|
+
], f, { cssStyles: p } = t;
|
|
1558
|
+
if (t.look === "handDrawn") {
|
|
1559
|
+
let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
|
|
1560
|
+
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-l / 2}, ${u / 2})`), p && f.attr("style", p);
|
|
1561
|
+
} else f = q(s, l, u, d);
|
|
1562
|
+
return r && f.attr("style", r), t.width = l, t.height = u, T(t, f), t.intersect = function(e) {
|
|
1563
|
+
return W.polygon(t, d, e);
|
|
1564
|
+
}, s;
|
|
1565
|
+
}
|
|
1566
|
+
e(ze, "inv_trapezoid");
|
|
1567
|
+
async function Be(e, t, n) {
|
|
1568
|
+
let { labelStyles: r, nodeStyles: i } = v(t);
|
|
1569
|
+
t.labelStyle = r;
|
|
1570
|
+
let { shapeSvg: a, bbox: o } = await C(e, t, E(t)), s = Math.max(o.width + n.labelPaddingX * 2, t?.width || 0), c = Math.max(o.height + n.labelPaddingY * 2, t?.height || 0), l = -s / 2, u = -c / 2, d, { rx: f, ry: m } = t, { cssStyles: h } = t;
|
|
1571
|
+
if (n?.rx && n.ry && (f = n.rx, m = n.ry), t.look === "handDrawn") {
|
|
1572
|
+
let e = S.svg(a), n = y(t, {}), r = f || m ? e.path(N(l, u, s, c, f || 0), n) : e.rectangle(l, u, s, c, n);
|
|
1573
|
+
d = a.insert(() => r, ":first-child"), d.attr("class", "basic label-container").attr("style", p(h));
|
|
1574
|
+
} else d = a.insert("rect", ":first-child"), d.attr("class", "basic label-container").attr("style", i).attr("rx", p(f)).attr("ry", p(m)).attr("x", l).attr("y", u).attr("width", s).attr("height", c);
|
|
1575
|
+
return T(t, d), t.calcIntersect = function(e, t) {
|
|
1576
|
+
return W.rect(e, t);
|
|
1577
|
+
}, t.intersect = function(e) {
|
|
1578
|
+
return W.rect(t, e);
|
|
1579
|
+
}, a;
|
|
1580
|
+
}
|
|
1581
|
+
e(Be, "drawRect");
|
|
1582
|
+
async function Ve(e, t) {
|
|
1583
|
+
let { shapeSvg: n, bbox: r, label: i } = await C(e, t, "label"), a = n.insert("rect", ":first-child");
|
|
1584
|
+
return a.attr("width", .1).attr("height", .1), n.attr("class", "label edgeLabel"), i.attr("transform", `translate(${-(r.width / 2) - (r.x - (r.left ?? 0))}, ${-(r.height / 2) - (r.y - (r.top ?? 0))})`), T(t, a), t.intersect = function(e) {
|
|
1585
|
+
return W.rect(t, e);
|
|
1586
|
+
}, n;
|
|
1587
|
+
}
|
|
1588
|
+
e(Ve, "labelRect");
|
|
1589
|
+
async function He(e, t) {
|
|
1590
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1591
|
+
t.labelStyle = n;
|
|
1592
|
+
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ?? c.height) + a, u = (t?.width ?? c.width) + o, d = [
|
|
1593
|
+
{
|
|
1594
|
+
x: 0,
|
|
1595
|
+
y: 0
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
x: u + 3 * l / 6,
|
|
1599
|
+
y: 0
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
x: u,
|
|
1603
|
+
y: -l
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
x: -(3 * l) / 6,
|
|
1607
|
+
y: -l
|
|
1608
|
+
}
|
|
1609
|
+
], f, { cssStyles: p } = t;
|
|
1610
|
+
if (t.look === "handDrawn") {
|
|
1611
|
+
let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
|
|
1612
|
+
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
1613
|
+
} else f = q(s, u, l, d);
|
|
1614
|
+
return r && f.attr("style", r), t.width = u, t.height = l, T(t, f), t.intersect = function(e) {
|
|
1615
|
+
return W.polygon(t, d, e);
|
|
1616
|
+
}, s;
|
|
1617
|
+
}
|
|
1618
|
+
e(He, "lean_left");
|
|
1619
|
+
async function Ue(e, t) {
|
|
1620
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1621
|
+
t.labelStyle = n;
|
|
1622
|
+
let i = t.padding ?? 0, a = i, o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ?? c.height) + a, u = (t?.width ?? c.width) + o, d = [
|
|
1623
|
+
{
|
|
1624
|
+
x: -3 * l / 6,
|
|
1625
|
+
y: 0
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
x: u,
|
|
1629
|
+
y: 0
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
x: u + 3 * l / 6,
|
|
1633
|
+
y: -l
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
x: 0,
|
|
1637
|
+
y: -l
|
|
1638
|
+
}
|
|
1639
|
+
], f, { cssStyles: p } = t;
|
|
1640
|
+
if (t.look === "handDrawn") {
|
|
1641
|
+
let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
|
|
1642
|
+
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
1643
|
+
} else f = q(s, u, l, d);
|
|
1644
|
+
return r && f.attr("style", r), t.width = u, t.height = l, T(t, f), t.intersect = function(e) {
|
|
1645
|
+
return W.polygon(t, d, e);
|
|
1646
|
+
}, s;
|
|
1647
|
+
}
|
|
1648
|
+
e(Ue, "lean_right");
|
|
1649
|
+
function We(e, n) {
|
|
1650
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
1651
|
+
n.label = "", n.labelStyle = r;
|
|
1652
|
+
let a = e.insert("g").attr("class", E(n)).attr("id", n.domId ?? n.id), { cssStyles: o } = n, s = Math.max(35, n?.width ?? 0), c = Math.max(35, n?.height ?? 0), l = [
|
|
1653
|
+
{
|
|
1654
|
+
x: s,
|
|
1655
|
+
y: 0
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
x: 0,
|
|
1659
|
+
y: c + 7 / 2
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
x: s - 14,
|
|
1663
|
+
y: c + 7 / 2
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
x: 0,
|
|
1667
|
+
y: 2 * c
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
x: s,
|
|
1671
|
+
y: c - 7 / 2
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
x: 14,
|
|
1675
|
+
y: c - 7 / 2
|
|
1676
|
+
}
|
|
1677
|
+
], u = S.svg(a), d = y(n, {});
|
|
1678
|
+
n.look !== "handDrawn" && (d.roughness = 0, d.fillStyle = "solid");
|
|
1679
|
+
let f = D(l), p = u.path(f, d), m = a.insert(() => p, ":first-child");
|
|
1680
|
+
return m.attr("class", "outer-path"), o && n.look !== "handDrawn" && m.selectAll("path").attr("style", o), i && n.look !== "handDrawn" && m.selectAll("path").attr("style", i), m.attr("transform", `translate(-${s / 2},${-c})`), T(n, m), n.intersect = function(e) {
|
|
1681
|
+
return t.info("lightningBolt intersect", n, e), W.polygon(n, l, e);
|
|
1682
|
+
}, a;
|
|
1683
|
+
}
|
|
1684
|
+
e(We, "lightningBolt");
|
|
1685
|
+
var Ge = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
|
|
1686
|
+
`M${e},${t + a}`,
|
|
1687
|
+
`a${i},${a} 0,0,0 ${n},0`,
|
|
1688
|
+
`a${i},${a} 0,0,0 ${-n},0`,
|
|
1689
|
+
`l0,${r}`,
|
|
1690
|
+
`a${i},${a} 0,0,0 ${n},0`,
|
|
1691
|
+
`l0,${-r}`,
|
|
1692
|
+
`M${e},${t + a + o}`,
|
|
1693
|
+
`a${i},${a} 0,0,0 ${n},0`
|
|
1694
|
+
].join(" "), "createCylinderPathD"), Ke = /* @__PURE__ */ e((e, t, n, r, i, a, o) => [
|
|
1695
|
+
`M${e},${t + a}`,
|
|
1696
|
+
`M${e + n},${t + a}`,
|
|
1697
|
+
`a${i},${a} 0,0,0 ${-n},0`,
|
|
1698
|
+
`l0,${r}`,
|
|
1699
|
+
`a${i},${a} 0,0,0 ${n},0`,
|
|
1700
|
+
`l0,${-r}`,
|
|
1701
|
+
`M${e},${t + a + o}`,
|
|
1702
|
+
`a${i},${a} 0,0,0 ${n},0`
|
|
1703
|
+
].join(" "), "createOuterCylinderPathD"), qe = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e - n / 2},${-r / 2}`, `a${i},${a} 0,0,0 ${n},0`].join(" "), "createInnerCylinderPathD"), Je = 10, Ye = 10;
|
|
1704
|
+
async function Xe(e, t) {
|
|
1705
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1706
|
+
t.labelStyle = n;
|
|
1707
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 24 : i;
|
|
1708
|
+
if (t.width || t.height) {
|
|
1709
|
+
let e = t.width ?? 0;
|
|
1710
|
+
t.width = (t.width ?? 0) - a, t.width < Ye && (t.width = Ye);
|
|
1711
|
+
let n = e / 2 / (2.5 + e / 50);
|
|
1712
|
+
t.height = (t.height ?? 0) - o - n * 3, t.height < Je && (t.height = Je);
|
|
1713
|
+
}
|
|
1714
|
+
let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = u / 2, f = d / (2.5 + u / 50), m = (t?.height ? t?.height : c.height) + f + o * 2, h = m * .1, g, { cssStyles: _ } = t;
|
|
1715
|
+
if (t.look === "handDrawn") {
|
|
1716
|
+
let e = S.svg(s), n = Ke(0, 0, u, m, d, f, h), r = qe(0, f, u, m, d, f), i = y(t, {}), a = e.path(n, i), o = e.path(r, i);
|
|
1717
|
+
s.insert(() => o, ":first-child").attr("class", "line"), g = s.insert(() => a, ":first-child"), g.attr("class", "basic label-container"), _ && g.attr("style", _);
|
|
1718
|
+
} else {
|
|
1719
|
+
let e = Ge(0, 0, u, m, d, f, h);
|
|
1720
|
+
g = s.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container outer-path").attr("style", p(_)).attr("style", r);
|
|
1721
|
+
}
|
|
1722
|
+
return g.attr("label-offset-y", f), g.attr("transform", `translate(${-u / 2}, ${-(m / 2 + f)})`), T(t, g), l.attr("transform", `translate(${-(c.width / 2) - (c.x - (c.left ?? 0))}, ${-(c.height / 2) + f - (c.y - (c.top ?? 0))})`), t.intersect = function(e) {
|
|
1723
|
+
let n = W.rect(t, e), r = n.x - (t.x ?? 0);
|
|
1724
|
+
if (d != 0 && (Math.abs(r) < (t.width ?? 0) / 2 || Math.abs(r) == (t.width ?? 0) / 2 && Math.abs(n.y - (t.y ?? 0)) > (t.height ?? 0) / 2 - f)) {
|
|
1725
|
+
let i = f * f * (1 - r * r / (d * d));
|
|
1726
|
+
i > 0 && (i = Math.sqrt(i)), i = f - i, e.y - (t.y ?? 0) > 0 && (i = -i), n.y += i;
|
|
1727
|
+
}
|
|
1728
|
+
return n;
|
|
1729
|
+
}, s;
|
|
1730
|
+
}
|
|
1731
|
+
e(Xe, "linedCylinder");
|
|
1732
|
+
async function Ze(e, t) {
|
|
1733
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1734
|
+
t.labelStyle = n;
|
|
1735
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
1736
|
+
(t.width || t.height) && (t.width = (t.width ?? 0) * 10 / 11 - a * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - o * 2, t.height < 10 && (t.height = 10));
|
|
1737
|
+
let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ? t?.width : c.width) + (a ?? 0) * 2, d = (t?.height ? t?.height : c.height) + (o ?? 0) * 2, f = t.look === "neo" ? d / 4 : d / 8, p = d + f, { cssStyles: m } = t, h = S.svg(s), g = y(t, {});
|
|
1738
|
+
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1739
|
+
let _ = [
|
|
1740
|
+
{
|
|
1741
|
+
x: -u / 2 - u / 2 * .1,
|
|
1742
|
+
y: -p / 2
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
x: -u / 2 - u / 2 * .1,
|
|
1746
|
+
y: p / 2
|
|
1747
|
+
},
|
|
1748
|
+
...O(-u / 2 - u / 2 * .1, p / 2, u / 2 + u / 2 * .1, p / 2, f, .8),
|
|
1749
|
+
{
|
|
1750
|
+
x: u / 2 + u / 2 * .1,
|
|
1751
|
+
y: -p / 2
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
x: -u / 2 - u / 2 * .1,
|
|
1755
|
+
y: -p / 2
|
|
1756
|
+
},
|
|
1757
|
+
{
|
|
1758
|
+
x: -u / 2,
|
|
1759
|
+
y: -p / 2
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
x: -u / 2,
|
|
1763
|
+
y: p / 2 * 1.1
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
x: -u / 2,
|
|
1767
|
+
y: -p / 2
|
|
1768
|
+
}
|
|
1769
|
+
], b = h.polygon(_.map((e) => [e.x, e.y]), g), x = s.insert(() => b, ":first-child");
|
|
1770
|
+
return x.attr("class", "basic label-container outer-path"), m && t.look !== "handDrawn" && x.selectAll("path").attr("style", m), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), x.attr("transform", `translate(0,${-f / 2})`), l.attr("transform", `translate(${-u / 2 + (t.padding ?? 0) + u / 2 * .1 / 2 - (c.x - (c.left ?? 0))},${-d / 2 + (t.padding ?? 0) - f / 2 - (c.y - (c.top ?? 0))})`), T(t, x), t.intersect = function(e) {
|
|
1771
|
+
return W.polygon(t, _, e);
|
|
1772
|
+
}, s;
|
|
1773
|
+
}
|
|
1774
|
+
e(Ze, "linedWaveEdgedRect");
|
|
1775
|
+
async function Qe(e, t) {
|
|
1776
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1777
|
+
t.labelStyle = n;
|
|
1778
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, s = t.look === "neo" ? 10 : 5;
|
|
1779
|
+
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - a * 2 - 2 * s, 10), t.height = Math.max((t?.height ?? 0) - o * 2 - 2 * s, 10));
|
|
1780
|
+
let { shapeSvg: c, bbox: l, label: u } = await C(e, t, E(t)), d = (t?.width ? t?.width : l.width) + a * 2 + 2 * s, f = (t?.height ? t?.height : l.height) + o * 2 + 2 * s, p = d - 2 * s, m = f - 2 * s, h = -p / 2, g = -m / 2, { cssStyles: _ } = t, b = S.svg(c), x = y(t, {}), w = [
|
|
1781
|
+
{
|
|
1782
|
+
x: h - s,
|
|
1783
|
+
y: g + s
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
x: h - s,
|
|
1787
|
+
y: g + m + s
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
x: h + p - s,
|
|
1791
|
+
y: g + m + s
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
x: h + p - s,
|
|
1795
|
+
y: g + m
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
x: h + p,
|
|
1799
|
+
y: g + m
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
x: h + p,
|
|
1803
|
+
y: g + m - s
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
x: h + p + s,
|
|
1807
|
+
y: g + m - s
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
x: h + p + s,
|
|
1811
|
+
y: g - s
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
x: h + s,
|
|
1815
|
+
y: g - s
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
x: h + s,
|
|
1819
|
+
y: g
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
x: h,
|
|
1823
|
+
y: g
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
x: h,
|
|
1827
|
+
y: g + s
|
|
1828
|
+
}
|
|
1829
|
+
], O = [
|
|
1830
|
+
{
|
|
1831
|
+
x: h,
|
|
1832
|
+
y: g + s
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
x: h + p - s,
|
|
1836
|
+
y: g + s
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
x: h + p - s,
|
|
1840
|
+
y: g + m
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
x: h + p,
|
|
1844
|
+
y: g + m
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
x: h + p,
|
|
1848
|
+
y: g
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
x: h,
|
|
1852
|
+
y: g
|
|
1853
|
+
}
|
|
1854
|
+
];
|
|
1855
|
+
t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
|
|
1856
|
+
let k = D(w), j = b.path(k, x), M = D(O), N = b.path(M, x);
|
|
1857
|
+
t.look !== "handDrawn" && (j = A(j), N = A(N));
|
|
1858
|
+
let P = c.insert("g", ":first-child");
|
|
1859
|
+
return P.insert(() => j), P.insert(() => N), P.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && P.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && P.selectAll("path").attr("style", r), u.attr("transform", `translate(${-(l.width / 2) - s - (l.x - (l.left ?? 0))}, ${-(l.height / 2) + s - (l.y - (l.top ?? 0))})`), T(t, P), t.intersect = function(e) {
|
|
1860
|
+
return W.polygon(t, w, e);
|
|
1861
|
+
}, c;
|
|
1862
|
+
}
|
|
1863
|
+
e(Qe, "multiRect");
|
|
1864
|
+
async function $e(e, t) {
|
|
1865
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1866
|
+
t.labelStyle = n;
|
|
1867
|
+
let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = t.padding ?? 0, c = t.look === "neo" ? 16 : s, l = t.look === "neo" ? 12 : s, u = !0;
|
|
1868
|
+
(t.width || t.height) && (u = !1, t.width = (t?.width ?? 0) - c * 2, t.height = (t?.height ?? 0) - l * 3);
|
|
1869
|
+
let d = Math.max(a.width, t?.width ?? 0) + c * 2, f = Math.max(a.height, t?.height ?? 0) + l * 3, p = t.look === "neo" ? f / 4 : f / 8, m = f + (u ? p / 2 : -p / 2), h = -d / 2, g = -m / 2, { cssStyles: _ } = t, b = O(h - 10, g + m + 10, h + d - 10, g + m + 10, p, .8), x = b?.[b.length - 1], w = [
|
|
1870
|
+
{
|
|
1871
|
+
x: h - 10,
|
|
1872
|
+
y: g + 10
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
x: h - 10,
|
|
1876
|
+
y: g + m + 10
|
|
1877
|
+
},
|
|
1878
|
+
...b,
|
|
1879
|
+
{
|
|
1880
|
+
x: h + d - 10,
|
|
1881
|
+
y: x.y - 10
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
x: h + d,
|
|
1885
|
+
y: x.y - 10
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
x: h + d,
|
|
1889
|
+
y: x.y - 20
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
x: h + d + 10,
|
|
1893
|
+
y: x.y - 20
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
x: h + d + 10,
|
|
1897
|
+
y: g - 10
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
x: h + 10,
|
|
1901
|
+
y: g - 10
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
x: h + 10,
|
|
1905
|
+
y: g
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
x: h,
|
|
1909
|
+
y: g
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
x: h,
|
|
1913
|
+
y: g + 10
|
|
1914
|
+
}
|
|
1915
|
+
], k = [
|
|
1916
|
+
{
|
|
1917
|
+
x: h,
|
|
1918
|
+
y: g + 10
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
x: h + d - 10,
|
|
1922
|
+
y: g + 10
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
x: h + d - 10,
|
|
1926
|
+
y: x.y - 10
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
x: h + d,
|
|
1930
|
+
y: x.y - 10
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
x: h + d,
|
|
1934
|
+
y: g
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
x: h,
|
|
1938
|
+
y: g
|
|
1939
|
+
}
|
|
1940
|
+
], A = S.svg(i), j = y(t, {});
|
|
1941
|
+
t.look !== "handDrawn" && (j.roughness = 0, j.fillStyle = "solid");
|
|
1942
|
+
let M = D(w), N = A.path(M, j), P = D(k), F = A.path(P, j), I = i.insert(() => N, ":first-child");
|
|
1943
|
+
return I.insert(() => F), I.attr("class", "basic label-container outer-path"), _ && t.look !== "handDrawn" && I.selectAll("path").attr("style", _), r && t.look !== "handDrawn" && I.selectAll("path").attr("style", r), I.attr("transform", `translate(0,${-p / 2})`), o.attr("transform", `translate(${-(a.width / 2) - 10 - (a.x - (a.left ?? 0))}, ${-(a.height / 2) + 10 - p / 2 - (a.y - (a.top ?? 0))})`), T(t, I), t.intersect = function(e) {
|
|
1944
|
+
return W.polygon(t, w, e);
|
|
1945
|
+
}, i;
|
|
1946
|
+
}
|
|
1947
|
+
e($e, "multiWaveEdgedRectangle");
|
|
1948
|
+
async function et(e, t, { config: { themeVariables: n } }) {
|
|
1949
|
+
let { labelStyles: i, nodeStyles: o } = v(t);
|
|
1950
|
+
t.labelStyle = i, t.useHtmlLabels || a(r()) || (t.centerLabel = !0);
|
|
1951
|
+
let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = Math.max(c.width + (t.padding ?? 0) * 2, t?.width ?? 0), d = Math.max(c.height + (t.padding ?? 0) * 2, t?.height ?? 0), f = -u / 2, p = -d / 2, { cssStyles: m } = t, h = S.svg(s), g = y(t, {
|
|
1952
|
+
fill: n.noteBkgColor,
|
|
1953
|
+
stroke: n.noteBorderColor
|
|
1954
|
+
});
|
|
1955
|
+
t.look !== "handDrawn" && (g.roughness = 0, g.fillStyle = "solid");
|
|
1956
|
+
let _ = h.rectangle(f, p, u, d, g), b = s.insert(() => _, ":first-child");
|
|
1957
|
+
return b.attr("class", "basic label-container outer-path"), l.attr("class", "label noteLabel"), m && t.look !== "handDrawn" && b.selectAll("path").attr("style", m), o && t.look !== "handDrawn" && b.selectAll("path").attr("style", o), l.attr("transform", `translate(${-c.width / 2 - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), T(t, b), t.intersect = function(e) {
|
|
1958
|
+
return W.rect(t, e);
|
|
1959
|
+
}, s;
|
|
1960
|
+
}
|
|
1961
|
+
e(et, "note");
|
|
1962
|
+
var tt = /* @__PURE__ */ e((e, t, n) => [
|
|
1963
|
+
`M${e + n / 2},${t}`,
|
|
1964
|
+
`L${e + n},${t - n / 2}`,
|
|
1965
|
+
`L${e + n / 2},${t - n}`,
|
|
1966
|
+
`L${e},${t - n / 2}`,
|
|
1967
|
+
"Z"
|
|
1968
|
+
].join(" "), "createDecisionBoxPathD");
|
|
1969
|
+
async function nt(e, t) {
|
|
1970
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
1971
|
+
t.labelStyle = n;
|
|
1972
|
+
let { shapeSvg: i, bbox: a } = await C(e, t, E(t)), o = a.width + (t.padding ?? 0) + (a.height + (t.padding ?? 0)), s = .5, c = [
|
|
1973
|
+
{
|
|
1974
|
+
x: o / 2,
|
|
1975
|
+
y: 0
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
x: o,
|
|
1979
|
+
y: -o / 2
|
|
1980
|
+
},
|
|
1981
|
+
{
|
|
1982
|
+
x: o / 2,
|
|
1983
|
+
y: -o
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
x: 0,
|
|
1987
|
+
y: -o / 2
|
|
1988
|
+
}
|
|
1989
|
+
], l, { cssStyles: u } = t;
|
|
1990
|
+
if (t.look === "handDrawn") {
|
|
1991
|
+
let e = S.svg(i), n = y(t, {}), r = tt(0, 0, o), a = e.path(r, n);
|
|
1992
|
+
l = i.insert(() => a, ":first-child").attr("transform", `translate(${-o / 2 + s}, ${o / 2})`), u && l.attr("style", u);
|
|
1993
|
+
} else l = q(i, o, o, c), l.attr("transform", `translate(${-o / 2 + s}, ${o / 2})`);
|
|
1994
|
+
return r && l.attr("style", r), T(t, l), t.calcIntersect = function(e, t) {
|
|
1995
|
+
let n = e.width, r = [
|
|
1996
|
+
{
|
|
1997
|
+
x: n / 2,
|
|
1998
|
+
y: 0
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
x: n,
|
|
2002
|
+
y: -n / 2
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
x: n / 2,
|
|
2006
|
+
y: -n
|
|
2007
|
+
},
|
|
2008
|
+
{
|
|
2009
|
+
x: 0,
|
|
2010
|
+
y: -n / 2
|
|
2011
|
+
}
|
|
2012
|
+
], i = W.polygon(e, r, t);
|
|
2013
|
+
return {
|
|
2014
|
+
x: i.x - .5,
|
|
2015
|
+
y: i.y - .5
|
|
2016
|
+
};
|
|
2017
|
+
}, t.intersect = function(e) {
|
|
2018
|
+
return this.calcIntersect(t, e);
|
|
2019
|
+
}, i;
|
|
2020
|
+
}
|
|
2021
|
+
e(nt, "question");
|
|
2022
|
+
async function rt(e, t) {
|
|
2023
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2024
|
+
t.labelStyle = n;
|
|
2025
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 21 : i ?? 0, o = t.look === "neo" ? 12 : i ?? 0, { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ?? c.width) + (t.look === "neo" ? a * 2 : a), d = (t?.height ?? c.height) + (t.look === "neo" ? o * 2 : o), f = -u / 2, p = -d / 2, m = p / 2, h = [
|
|
2026
|
+
{
|
|
2027
|
+
x: f + m,
|
|
2028
|
+
y: p
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
x: f,
|
|
2032
|
+
y: 0
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
x: f + m,
|
|
2036
|
+
y: -p
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
x: -f,
|
|
2040
|
+
y: -p
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
x: -f,
|
|
2044
|
+
y: p
|
|
2045
|
+
}
|
|
2046
|
+
], { cssStyles: g } = t, _ = S.svg(s), b = y(t, {});
|
|
2047
|
+
t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
|
|
2048
|
+
let x = D(h), w = _.path(x, b), O = s.insert(() => w, ":first-child");
|
|
2049
|
+
return O.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && O.selectAll("path").attr("style", g), r && t.look !== "handDrawn" && O.selectAll("path").attr("style", r), O.attr("transform", `translate(${-m / 2},0)`), l.attr("transform", `translate(${-m / 2 - c.width / 2 - (c.x - (c.left ?? 0))}, ${-(c.height / 2) - (c.y - (c.top ?? 0))})`), T(t, O), t.intersect = function(e) {
|
|
2050
|
+
return W.polygon(t, h, e);
|
|
2051
|
+
}, s;
|
|
2052
|
+
}
|
|
2053
|
+
e(rt, "rect_left_inv_arrow");
|
|
2054
|
+
async function it(e, n) {
|
|
2055
|
+
let { labelStyles: r, nodeStyles: o } = v(n);
|
|
2056
|
+
n.labelStyle = r;
|
|
2057
|
+
let s;
|
|
2058
|
+
s = n.cssClasses ? "node " + n.cssClasses : "node default";
|
|
2059
|
+
let c = e.insert("g").attr("class", s).attr("id", n.domId || n.id), l = c.insert("g"), d = c.insert("g").attr("class", "label").attr("style", o), f = n.description, p = n.label, m = await M(d, p, n.labelStyle, !0, !0), h = {
|
|
2060
|
+
width: 0,
|
|
2061
|
+
height: 0
|
|
2062
|
+
};
|
|
2063
|
+
if (a(i())) {
|
|
2064
|
+
let e = m.children[0], t = u(m);
|
|
2065
|
+
h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
|
|
2066
|
+
}
|
|
2067
|
+
t.info("Text 2", f);
|
|
2068
|
+
let g = f || [], _ = m.getBBox(), b = await M(d, Array.isArray(g) ? g.join("<br/>") : g, n.labelStyle, !0, !0), x = b.children[0], C = u(b);
|
|
2069
|
+
h = x.getBoundingClientRect(), C.attr("width", h.width), C.attr("height", h.height);
|
|
2070
|
+
let w = (n.padding || 0) / 2;
|
|
2071
|
+
u(b).attr("transform", "translate( " + (h.width > _.width ? 0 : (_.width - h.width) / 2) + ", " + (_.height + w + 5) + ")"), u(m).attr("transform", "translate( " + (h.width < _.width ? 0 : -(_.width - h.width) / 2) + ", 0)"), h = d.node().getBBox(), d.attr("transform", "translate(" + -h.width / 2 + ", " + (-h.height / 2 - w + 3) + ")");
|
|
2072
|
+
let E = h.width + (n.padding || 0), D = h.height + (n.padding || 0), O = -h.width / 2 - w, k = -h.height / 2 - w, A, j;
|
|
2073
|
+
if (n.look === "handDrawn") {
|
|
2074
|
+
let e = S.svg(c), r = y(n, {}), i = e.path(N(O, k, E, D, n.rx || 0), r), a = e.line(-h.width / 2 - w, -h.height / 2 - w + _.height + w, h.width / 2 + w, -h.height / 2 - w + _.height + w, r);
|
|
2075
|
+
j = c.insert(() => (t.debug("Rough node insert CXC", i), a), ":first-child"), A = c.insert(() => (t.debug("Rough node insert CXC", i), i), ":first-child");
|
|
2076
|
+
} else A = l.insert("rect", ":first-child"), j = l.insert("line"), A.attr("class", "outer title-state").attr("style", o).attr("x", -h.width / 2 - w).attr("y", -h.height / 2 - w).attr("width", h.width + (n.padding || 0)).attr("height", h.height + (n.padding || 0)), j.attr("class", "divider").attr("x1", -h.width / 2 - w).attr("x2", h.width / 2 + w).attr("y1", -h.height / 2 - w + _.height + w).attr("y2", -h.height / 2 - w + _.height + w);
|
|
2077
|
+
return T(n, A), n.intersect = function(e) {
|
|
2078
|
+
return W.rect(n, e);
|
|
2079
|
+
}, c;
|
|
2080
|
+
}
|
|
2081
|
+
e(it, "rectWithTitle");
|
|
2082
|
+
async function at(e, t, { config: { themeVariables: n } }) {
|
|
2083
|
+
let r = n?.radius ?? 5;
|
|
2084
|
+
return Be(e, t, {
|
|
2085
|
+
rx: r,
|
|
2086
|
+
ry: r,
|
|
2087
|
+
classes: "",
|
|
2088
|
+
labelPaddingX: (t?.padding ?? 0) * 1,
|
|
2089
|
+
labelPaddingY: (t?.padding ?? 0) * 1
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
e(at, "roundedRect");
|
|
2093
|
+
var Z = 8;
|
|
2094
|
+
async function ot(e, t) {
|
|
2095
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2096
|
+
t.labelStyle = n;
|
|
2097
|
+
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0, { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = (t?.width ?? s.width) + i * 2 + (t.look === "neo" ? Z : Z * 2), u = (t?.height ?? s.height) + a * 2, d = l - Z, f = u, m = Z - l / 2, h = -u / 2, { cssStyles: g } = t, _ = S.svg(o), b = y(t, {});
|
|
2098
|
+
t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
|
|
2099
|
+
let x = [
|
|
2100
|
+
{
|
|
2101
|
+
x: m,
|
|
2102
|
+
y: h
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
x: m + d,
|
|
2106
|
+
y: h
|
|
2107
|
+
},
|
|
2108
|
+
{
|
|
2109
|
+
x: m + d,
|
|
2110
|
+
y: h + f
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
x: m - Z,
|
|
2114
|
+
y: h + f
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
x: m - Z,
|
|
2118
|
+
y: h
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
x: m,
|
|
2122
|
+
y: h
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
x: m,
|
|
2126
|
+
y: h + f
|
|
2127
|
+
}
|
|
2128
|
+
], w = _.polygon(x.map((e) => [e.x, e.y]), b), D = o.insert(() => w, ":first-child");
|
|
2129
|
+
return D.attr("class", "basic label-container outer-path").attr("style", p(g)), r && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), g && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), c.attr("transform", `translate(${Z / 2 - s.width / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`), T(t, D), t.intersect = function(e) {
|
|
2130
|
+
return W.rect(t, e);
|
|
2131
|
+
}, o;
|
|
2132
|
+
}
|
|
2133
|
+
e(ot, "shadedProcess");
|
|
2134
|
+
async function st(e, t) {
|
|
2135
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2136
|
+
t.labelStyle = n;
|
|
2137
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
2138
|
+
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - a * 2, 10), t.height = Math.max((t?.height ?? 0) / 1.5 - o * 2, 10));
|
|
2139
|
+
let { shapeSvg: s, bbox: c, label: l } = await C(e, t, E(t)), u = (t?.width ? t?.width : c.width) + a * 2, d = ((t?.height ? t?.height : c.height) + o * 2) * 1.5, f = u, p = d / 1.5, m = -f / 2, h = -p / 2, { cssStyles: g } = t, _ = S.svg(s), b = y(t, {});
|
|
2140
|
+
t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
|
|
2141
|
+
let x = [
|
|
2142
|
+
{
|
|
2143
|
+
x: m,
|
|
2144
|
+
y: h
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
x: m,
|
|
2148
|
+
y: h + p
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
x: m + f,
|
|
2152
|
+
y: h + p
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
x: m + f,
|
|
2156
|
+
y: h - p / 2
|
|
2157
|
+
}
|
|
2158
|
+
], w = D(x), O = _.path(w, b), k = s.insert(() => O, ":first-child");
|
|
2159
|
+
return k.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && k.selectChildren("path").attr("style", g), r && t.look !== "handDrawn" && k.selectChildren("path").attr("style", r), k.attr("transform", `translate(0, ${p / 4})`), l.attr("transform", `translate(${-f / 2 + (t.padding ?? 0) - (c.x - (c.left ?? 0))}, ${-p / 4 + (t.padding ?? 0) - (c.y - (c.top ?? 0))})`), T(t, k), t.intersect = function(e) {
|
|
2160
|
+
return W.polygon(t, x, e);
|
|
2161
|
+
}, s;
|
|
2162
|
+
}
|
|
2163
|
+
e(st, "slopedRect");
|
|
2164
|
+
async function ct(e, t) {
|
|
2165
|
+
let n = t.padding ?? 0, r = t.look === "neo" ? 16 : n * 2, i = t.look === "neo" ? 12 : n;
|
|
2166
|
+
return Be(e, t, {
|
|
2167
|
+
rx: 0,
|
|
2168
|
+
ry: 0,
|
|
2169
|
+
classes: "",
|
|
2170
|
+
labelPaddingX: t.labelPaddingX ?? r,
|
|
2171
|
+
labelPaddingY: i
|
|
2172
|
+
});
|
|
2173
|
+
}
|
|
2174
|
+
e(ct, "squareRect");
|
|
2175
|
+
async function lt(e, t) {
|
|
2176
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2177
|
+
t.labelStyle = n;
|
|
2178
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 20 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = c.height + (t.look === "neo" ? o * 2 : o), u = c.width + l / 4 + (t.look === "neo" ? a * 2 : a), d = l / 2, { cssStyles: f } = t, p = S.svg(s), m = y(t, {});
|
|
2179
|
+
t.look !== "handDrawn" && (m.roughness = 0, m.fillStyle = "solid");
|
|
2180
|
+
let h = [
|
|
2181
|
+
{
|
|
2182
|
+
x: -u / 2 + d,
|
|
2183
|
+
y: -l / 2
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
x: u / 2 - d,
|
|
2187
|
+
y: -l / 2
|
|
2188
|
+
},
|
|
2189
|
+
...k(-u / 2 + d, 0, d, 50, 90, 270),
|
|
2190
|
+
{
|
|
2191
|
+
x: u / 2 - d,
|
|
2192
|
+
y: l / 2
|
|
2193
|
+
},
|
|
2194
|
+
...k(u / 2 - d, 0, d, 50, 270, 450)
|
|
2195
|
+
], g = D(h), _ = p.path(g, m), b = s.insert(() => _, ":first-child");
|
|
2196
|
+
return b.attr("class", "basic label-container outer-path"), f && t.look !== "handDrawn" && b.selectChildren("path").attr("style", f), r && t.look !== "handDrawn" && b.selectChildren("path").attr("style", r), T(t, b), t.intersect = function(e) {
|
|
2197
|
+
return W.polygon(t, h, e);
|
|
2198
|
+
}, s;
|
|
2199
|
+
}
|
|
2200
|
+
e(lt, "stadium");
|
|
2201
|
+
async function ut(e, t) {
|
|
2202
|
+
return Be(e, t, {
|
|
2203
|
+
rx: t.look === "neo" ? 3 : 5,
|
|
2204
|
+
ry: t.look === "neo" ? 3 : 5,
|
|
2205
|
+
classes: "flowchart-node"
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
e(ut, "state");
|
|
2209
|
+
function dt(e, t, { config: { themeVariables: n } }) {
|
|
2210
|
+
let { labelStyles: r, nodeStyles: i } = v(t);
|
|
2211
|
+
t.labelStyle = r;
|
|
2212
|
+
let { cssStyles: a } = t, { lineColor: o, stateBorder: s, nodeBorder: c, nodeShadow: l } = n;
|
|
2213
|
+
(t.width || t.height) && ((t.width ?? 0) < 14 && (t.width = 14), (t.height ?? 0) < 14 && (t.height = 14)), t.width ||= 14, t.height ||= 14;
|
|
2214
|
+
let u = e.insert("g").attr("class", "node default").attr("id", t.domId ?? t.id), d = S.svg(u), f = y(t, {});
|
|
2215
|
+
t.look !== "handDrawn" && (f.roughness = 0, f.fillStyle = "solid");
|
|
2216
|
+
let p = d.circle(0, 0, t.width, {
|
|
2217
|
+
...f,
|
|
2218
|
+
stroke: o,
|
|
2219
|
+
strokeWidth: 2
|
|
2220
|
+
}), m = s ?? c, h = (t.width ?? 0) * 5 / 14, g = d.circle(0, 0, h, {
|
|
2221
|
+
...f,
|
|
2222
|
+
fill: m,
|
|
2223
|
+
stroke: m,
|
|
2224
|
+
strokeWidth: 2,
|
|
2225
|
+
fillStyle: "solid"
|
|
2226
|
+
}), _ = u.insert(() => p, ":first-child");
|
|
2227
|
+
if (_.insert(() => g), t.look !== "handDrawn" && _.attr("class", "outer-path"), a && _.selectAll("path").attr("style", a), i && _.selectAll("path").attr("style", i), t.width < 25 && l && t.look !== "handDrawn") {
|
|
2228
|
+
let t = e.node()?.ownerSVGElement?.id ?? "", n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
|
|
2229
|
+
_.attr("style", `filter:url(#${n})`);
|
|
2230
|
+
}
|
|
2231
|
+
return T(t, _), t.intersect = function(e) {
|
|
2232
|
+
return W.circle(t, (t.width ?? 0) / 2, e);
|
|
2233
|
+
}, u;
|
|
2234
|
+
}
|
|
2235
|
+
e(dt, "stateEnd");
|
|
2236
|
+
function ft(e, t, { config: { themeVariables: n } }) {
|
|
2237
|
+
let { lineColor: r, nodeShadow: i } = n;
|
|
2238
|
+
(t.width || t.height) && ((t.width ?? 0) < 14 && (t.width = 14), (t.height ?? 0) < 14 && (t.height = 14)), t.width ||= 14, t.height ||= 14;
|
|
2239
|
+
let a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), o;
|
|
2240
|
+
if (t.look === "handDrawn") {
|
|
2241
|
+
let e = S.svg(a).circle(0, 0, t.width, _(r));
|
|
2242
|
+
o = a.insert(() => e), o.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14);
|
|
2243
|
+
} else o = a.insert("circle", ":first-child"), o.attr("class", "state-start").attr("r", (t.width ?? 7) / 2).attr("width", t.width ?? 14).attr("height", t.height ?? 14);
|
|
2244
|
+
if (t.width < 25 && i && t.look !== "handDrawn") {
|
|
2245
|
+
let t = e.node()?.ownerSVGElement?.id ?? "", n = t ? `${t}-drop-shadow-small` : "drop-shadow-small";
|
|
2246
|
+
o.attr("style", `filter:url(#${n})`);
|
|
2247
|
+
}
|
|
2248
|
+
return T(t, o), t.intersect = function(e) {
|
|
2249
|
+
return W.circle(t, (t.width ?? 7) / 2, e);
|
|
2250
|
+
}, a;
|
|
2251
|
+
}
|
|
2252
|
+
e(ft, "stateStart");
|
|
2253
|
+
var pt = 8;
|
|
2254
|
+
async function mt(e, t) {
|
|
2255
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2256
|
+
t.labelStyle = n;
|
|
2257
|
+
let i = t?.padding ?? 8, a = t.look === "neo" ? 28 : i, o = t.look === "neo" ? 12 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ?? c.width) + 2 * pt + a, u = (t?.height ?? c.height) + o, d = l - 2 * pt, f = u, m = -l / 2, h = -u / 2, g = [
|
|
2258
|
+
{
|
|
2259
|
+
x: 0,
|
|
2260
|
+
y: 0
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
x: d,
|
|
2264
|
+
y: 0
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
x: d,
|
|
2268
|
+
y: -f
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
x: 0,
|
|
2272
|
+
y: -f
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
x: 0,
|
|
2276
|
+
y: 0
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
x: -8,
|
|
2280
|
+
y: 0
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
x: d + 8,
|
|
2284
|
+
y: 0
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
x: d + 8,
|
|
2288
|
+
y: -f
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
x: -8,
|
|
2292
|
+
y: -f
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
x: -8,
|
|
2296
|
+
y: 0
|
|
2297
|
+
}
|
|
2298
|
+
];
|
|
2299
|
+
if (t.look === "handDrawn") {
|
|
2300
|
+
let e = S.svg(s), n = y(t, {}), r = e.rectangle(m, h, d + 16, f, n), i = e.line(m + pt, h, m + pt, h + f, n), a = e.line(m + pt + d, h, m + pt + d, h + f, n);
|
|
2301
|
+
s.insert(() => i, ":first-child"), s.insert(() => a, ":first-child");
|
|
2302
|
+
let o = s.insert(() => r, ":first-child"), { cssStyles: c } = t;
|
|
2303
|
+
o.attr("class", "basic label-container").attr("style", p(c)), T(t, o);
|
|
2304
|
+
} else {
|
|
2305
|
+
let e = q(s, d, f, g);
|
|
2306
|
+
r && e.attr("style", r), T(t, e);
|
|
2307
|
+
}
|
|
2308
|
+
return t.intersect = function(e) {
|
|
2309
|
+
return W.polygon(t, g, e);
|
|
2310
|
+
}, s;
|
|
2311
|
+
}
|
|
2312
|
+
e(mt, "subroutine");
|
|
2313
|
+
var ht = .2;
|
|
2314
|
+
async function gt(e, t) {
|
|
2315
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2316
|
+
t.labelStyle = n;
|
|
2317
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
2318
|
+
(t.width || t.height) && (t.height = Math.max((t?.height ?? 0) - o * 2, 10), t.width = Math.max((t?.width ?? 0) - a * 2 - ht * (t.height + o * 2), 10));
|
|
2319
|
+
let { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ? t?.height : c.height) + o * 2, u = ht * l, d = ht * l, f = (t?.width ? t?.width : c.width) + a * 2 + u - u, p = l, m = -f / 2, h = -p / 2, { cssStyles: g } = t, _ = S.svg(s), b = y(t, {}), x = [
|
|
2320
|
+
{
|
|
2321
|
+
x: m - u / 2,
|
|
2322
|
+
y: h
|
|
2323
|
+
},
|
|
2324
|
+
{
|
|
2325
|
+
x: m + f + u / 2,
|
|
2326
|
+
y: h
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
x: m + f + u / 2,
|
|
2330
|
+
y: h + p
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
x: m - u / 2,
|
|
2334
|
+
y: h + p
|
|
2335
|
+
}
|
|
2336
|
+
], w = [
|
|
2337
|
+
{
|
|
2338
|
+
x: m + f - u / 2,
|
|
2339
|
+
y: h + p
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
x: m + f + u / 2,
|
|
2343
|
+
y: h + p
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
x: m + f + u / 2,
|
|
2347
|
+
y: h + p - d
|
|
2348
|
+
}
|
|
2349
|
+
];
|
|
2350
|
+
t.look !== "handDrawn" && (b.roughness = 0, b.fillStyle = "solid");
|
|
2351
|
+
let O = D(x), k = _.path(O, b), A = D(w), j = _.path(A, {
|
|
2352
|
+
...b,
|
|
2353
|
+
fillStyle: "solid"
|
|
2354
|
+
}), M = s.insert(() => j, ":first-child");
|
|
2355
|
+
return M.insert(() => k, ":first-child"), M.attr("class", "basic label-container outer-path"), g && t.look !== "handDrawn" && M.selectAll("path").attr("style", g), r && t.look !== "handDrawn" && M.selectAll("path").attr("style", r), T(t, M), t.intersect = function(e) {
|
|
2356
|
+
return W.polygon(t, x, e);
|
|
2357
|
+
}, s;
|
|
2358
|
+
}
|
|
2359
|
+
e(gt, "taggedRect");
|
|
2360
|
+
async function _t(e, t) {
|
|
2361
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2362
|
+
t.labelStyle = n;
|
|
2363
|
+
let { shapeSvg: i, bbox: a, label: o } = await C(e, t, E(t)), s = Math.max(a.width + (t.padding ?? 0) * 2, t?.width ?? 0), c = Math.max(a.height + (t.padding ?? 0) * 2, t?.height ?? 0), l = c / 8, u = .2 * s, d = .2 * c, f = c + l, { cssStyles: p } = t, m = S.svg(i), h = y(t, {});
|
|
2364
|
+
t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
|
|
2365
|
+
let g = [
|
|
2366
|
+
{
|
|
2367
|
+
x: -s / 2 - s / 2 * .1,
|
|
2368
|
+
y: f / 2
|
|
2369
|
+
},
|
|
2370
|
+
...O(-s / 2 - s / 2 * .1, f / 2, s / 2 + s / 2 * .1, f / 2, l, .8),
|
|
2371
|
+
{
|
|
2372
|
+
x: s / 2 + s / 2 * .1,
|
|
2373
|
+
y: -f / 2
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
x: -s / 2 - s / 2 * .1,
|
|
2377
|
+
y: -f / 2
|
|
2378
|
+
}
|
|
2379
|
+
], _ = -s / 2 + s / 2 * .1, b = -f / 2 - d * .4, x = [
|
|
2380
|
+
{
|
|
2381
|
+
x: _ + s - u,
|
|
2382
|
+
y: (b + c) * 1.3
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
x: _ + s,
|
|
2386
|
+
y: b + c - d
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
x: _ + s,
|
|
2390
|
+
y: (b + c) * .9
|
|
2391
|
+
},
|
|
2392
|
+
...O(_ + s, (b + c) * 1.25, _ + s - u, (b + c) * 1.3, -c * .02, .5)
|
|
2393
|
+
], w = D(g), k = m.path(w, h), A = D(x), j = m.path(A, {
|
|
2394
|
+
...h,
|
|
2395
|
+
fillStyle: "solid"
|
|
2396
|
+
}), M = i.insert(() => j, ":first-child");
|
|
2397
|
+
return M.insert(() => k, ":first-child"), M.attr("class", "basic label-container outer-path"), p && t.look !== "handDrawn" && M.selectAll("path").attr("style", p), r && t.look !== "handDrawn" && M.selectAll("path").attr("style", r), M.attr("transform", `translate(0,${-l / 2})`), o.attr("transform", `translate(${-s / 2 + (t.padding ?? 0) - (a.x - (a.left ?? 0))},${-c / 2 + (t.padding ?? 0) - l / 2 - (a.y - (a.top ?? 0))})`), T(t, M), t.intersect = function(e) {
|
|
2398
|
+
return W.polygon(t, g, e);
|
|
2399
|
+
}, i;
|
|
2400
|
+
}
|
|
2401
|
+
e(_t, "taggedWaveEdgedRectangle");
|
|
2402
|
+
async function vt(e, t) {
|
|
2403
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2404
|
+
t.labelStyle = n;
|
|
2405
|
+
let { shapeSvg: i, bbox: a } = await C(e, t, E(t)), o = Math.max(a.width + (t.padding ?? 0), t?.width || 0), s = Math.max(a.height + (t.padding ?? 0), t?.height || 0), c = -o / 2, l = -s / 2, u = i.insert("rect", ":first-child");
|
|
2406
|
+
return u.attr("class", "text").attr("style", r).attr("rx", 0).attr("ry", 0).attr("x", c).attr("y", l).attr("width", o).attr("height", s), T(t, u), t.intersect = function(e) {
|
|
2407
|
+
return W.rect(t, e);
|
|
2408
|
+
}, i;
|
|
2409
|
+
}
|
|
2410
|
+
e(vt, "text");
|
|
2411
|
+
var yt = /* @__PURE__ */ e((e, t, n, r, i, a) => `M${e},${t}
|
|
2412
|
+
a${i},${a} 0,0,1 0,${-r}
|
|
2413
|
+
l${n},0
|
|
2414
|
+
a${i},${a} 0,0,1 0,${r}
|
|
2415
|
+
M${n},${-r}
|
|
2416
|
+
a${i},${a} 0,0,0 0,${r}
|
|
2417
|
+
l${-n},0`, "createCylinderPathD"), bt = /* @__PURE__ */ e((e, t, n, r, i, a) => [
|
|
2418
|
+
`M${e},${t}`,
|
|
2419
|
+
`M${e + n},${t}`,
|
|
2420
|
+
`a${i},${a} 0,0,0 0,${-r}`,
|
|
2421
|
+
`l${-n},0`,
|
|
2422
|
+
`a${i},${a} 0,0,0 0,${r}`,
|
|
2423
|
+
`l${n},0`
|
|
2424
|
+
].join(" "), "createOuterCylinderPathD"), xt = /* @__PURE__ */ e((e, t, n, r, i, a) => [`M${e + n / 2},${-r / 2}`, `a${i},${a} 0,0,0 0,${r}`].join(" "), "createInnerCylinderPathD"), St = 5, Ct = 10;
|
|
2425
|
+
async function wt(e, t) {
|
|
2426
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2427
|
+
t.labelStyle = n;
|
|
2428
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 12 : i / 2;
|
|
2429
|
+
if (t.width || t.height) {
|
|
2430
|
+
let e = t.height ?? 0;
|
|
2431
|
+
t.height = (t.height ?? 0) - a, t.height < St && (t.height = St);
|
|
2432
|
+
let n = e / 2 / (2.5 + e / 50);
|
|
2433
|
+
t.width = (t.width ?? 0) - a - n * 3, t.width < Ct && (t.width = Ct);
|
|
2434
|
+
}
|
|
2435
|
+
let { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = (t.height ? t.height : s.height) + a, u = l / 2, d = u / (2.5 + l / 50), f = (t.width ? t.width : s.width) + d + a, { cssStyles: m } = t, h;
|
|
2436
|
+
if (t.look === "handDrawn") {
|
|
2437
|
+
let e = S.svg(o), n = bt(0, 0, f, l, d, u), r = xt(0, 0, f, l, d, u), i = e.path(n, y(t, {})), a = e.path(r, y(t, { fill: "none" }));
|
|
2438
|
+
h = o.insert(() => a, ":first-child"), h = o.insert(() => i, ":first-child"), h.attr("class", "basic label-container"), m && h.attr("style", m);
|
|
2439
|
+
} else {
|
|
2440
|
+
let e = yt(0, 0, f, l, d, u);
|
|
2441
|
+
h = o.insert("path", ":first-child").attr("d", e).attr("class", "basic label-container").attr("style", p(m)).attr("style", r), h.attr("class", "basic label-container outer-path"), m && h.selectAll("path").attr("style", m), r && h.selectAll("path").attr("style", r);
|
|
2442
|
+
}
|
|
2443
|
+
return h.attr("label-offset-x", d), h.attr("transform", `translate(${-f / 2}, ${l / 2} )`), c.attr("transform", `translate(${-(s.width / 2) - d - (s.x - (s.left ?? 0))}, ${-(s.height / 2) - (s.y - (s.top ?? 0))})`), T(t, h), t.intersect = function(e) {
|
|
2444
|
+
let n = W.rect(t, e), r = n.y - (t.y ?? 0);
|
|
2445
|
+
if (u != 0 && (Math.abs(r) < (t.height ?? 0) / 2 || Math.abs(r) == (t.height ?? 0) / 2 && Math.abs(n.x - (t.x ?? 0)) > (t.width ?? 0) / 2 - d)) {
|
|
2446
|
+
let i = d * d * (1 - r * r / (u * u));
|
|
2447
|
+
i != 0 && (i = Math.sqrt(Math.abs(i))), i = d - i, e.x - (t.x ?? 0) > 0 && (i = -i), n.x += i;
|
|
2448
|
+
}
|
|
2449
|
+
return n;
|
|
2450
|
+
}, o;
|
|
2451
|
+
}
|
|
2452
|
+
e(wt, "tiltedCylinder");
|
|
2453
|
+
async function Tt(e, t) {
|
|
2454
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2455
|
+
t.labelStyle = n;
|
|
2456
|
+
let i = t.padding ?? 0, a = (t.look, i), o = t.look === "neo" ? i * 2 : i, { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.height ?? c.height) + a, u = (t?.width ?? c.width) + o, d = [
|
|
2457
|
+
{
|
|
2458
|
+
x: -3 * l / 6,
|
|
2459
|
+
y: 0
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
x: u + 3 * l / 6,
|
|
2463
|
+
y: 0
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
x: u,
|
|
2467
|
+
y: -l
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
x: 0,
|
|
2471
|
+
y: -l
|
|
2472
|
+
}
|
|
2473
|
+
], f, { cssStyles: p } = t;
|
|
2474
|
+
if (t.look === "handDrawn") {
|
|
2475
|
+
let e = S.svg(s), n = y(t, {}), r = D(d), i = e.path(r, n);
|
|
2476
|
+
f = s.insert(() => i, ":first-child").attr("transform", `translate(${-u / 2}, ${l / 2})`), p && f.attr("style", p);
|
|
2477
|
+
} else f = q(s, u, l, d);
|
|
2478
|
+
return r && f.attr("style", r), t.width = u, t.height = l, T(t, f), t.intersect = function(e) {
|
|
2479
|
+
return W.polygon(t, d, e);
|
|
2480
|
+
}, s;
|
|
2481
|
+
}
|
|
2482
|
+
e(Tt, "trapezoid");
|
|
2483
|
+
async function Et(e, t) {
|
|
2484
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2485
|
+
t.labelStyle = n;
|
|
2486
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i;
|
|
2487
|
+
(t.width || t.height) && (t.height = (t.height ?? 0) - o * 2, t.height < 5 && (t.height = 5), t.width = (t.width ?? 0) - a * 2, t.width < 15 && (t.width = 15));
|
|
2488
|
+
let { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ? t?.width : c.width) + a * 2, u = (t?.height ? t?.height : c.height) + o * 2, { cssStyles: d } = t, f = S.svg(s), p = y(t, {});
|
|
2489
|
+
t.look !== "handDrawn" && (p.roughness = 0, p.fillStyle = "solid");
|
|
2490
|
+
let m = [
|
|
2491
|
+
{
|
|
2492
|
+
x: -l / 2 * .8,
|
|
2493
|
+
y: -u / 2
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
x: l / 2 * .8,
|
|
2497
|
+
y: -u / 2
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
x: l / 2,
|
|
2501
|
+
y: -u / 2 * .6
|
|
2502
|
+
},
|
|
2503
|
+
{
|
|
2504
|
+
x: l / 2,
|
|
2505
|
+
y: u / 2
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
x: -l / 2,
|
|
2509
|
+
y: u / 2
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
x: -l / 2,
|
|
2513
|
+
y: -u / 2 * .6
|
|
2514
|
+
}
|
|
2515
|
+
], h = D(m), g = f.path(h, p), _ = s.insert(() => g, ":first-child");
|
|
2516
|
+
return _.attr("class", "basic label-container outer-path"), d && t.look !== "handDrawn" && _.selectChildren("path").attr("style", d), r && t.look !== "handDrawn" && _.selectChildren("path").attr("style", r), T(t, _), t.intersect = function(e) {
|
|
2517
|
+
return W.polygon(t, m, e);
|
|
2518
|
+
}, s;
|
|
2519
|
+
}
|
|
2520
|
+
e(Et, "trapezoidalPentagon");
|
|
2521
|
+
var Dt = 10, Ot = 10;
|
|
2522
|
+
async function kt(e, r) {
|
|
2523
|
+
let { labelStyles: a, nodeStyles: o } = v(r);
|
|
2524
|
+
r.labelStyle = a;
|
|
2525
|
+
let s = r.padding ?? 0, c = r.look === "neo" ? s * 2 : s;
|
|
2526
|
+
(r.width || r.height) && (r.width = ((r?.width ?? 0) - c) / 2, r.width < Ot && (r.width = Ot), r.height = r?.height ?? 0, r.height < Dt && (r.height = Dt));
|
|
2527
|
+
let { shapeSvg: l, bbox: u, label: d } = await C(e, r, E(r)), f = n(i().flowchart?.htmlLabels), p = (r?.width ? r?.width : u.width) + c, m = r?.height ? r?.height : p + u.height, h = m, g = [
|
|
2528
|
+
{
|
|
2529
|
+
x: 0,
|
|
2530
|
+
y: 0
|
|
2531
|
+
},
|
|
2532
|
+
{
|
|
2533
|
+
x: h,
|
|
2534
|
+
y: 0
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
x: h / 2,
|
|
2538
|
+
y: -m
|
|
2539
|
+
}
|
|
2540
|
+
], { cssStyles: _ } = r, b = S.svg(l), x = y(r, {});
|
|
2541
|
+
r.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
|
|
2542
|
+
let w = D(g), O = b.path(w, x), k = l.insert(() => O, ":first-child").attr("transform", `translate(${-m / 2}, ${m / 2})`).attr("class", "outer-path");
|
|
2543
|
+
return _ && r.look !== "handDrawn" && k.selectChildren("path").attr("style", _), o && r.look !== "handDrawn" && k.selectChildren("path").attr("style", o), r.width = p, r.height = m, T(r, k), d.attr("transform", `translate(${-u.width / 2 - (u.x - (u.left ?? 0))}, ${m / 2 - (u.height + (r.padding ?? 0) / (f ? 2 : 1) - (u.y - (u.top ?? 0)))})`), r.intersect = function(e) {
|
|
2544
|
+
return t.info("Triangle intersect", r, g, e), W.polygon(r, g, e);
|
|
2545
|
+
}, l;
|
|
2546
|
+
}
|
|
2547
|
+
e(kt, "triangle");
|
|
2548
|
+
async function At(e, t) {
|
|
2549
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2550
|
+
t.labelStyle = n;
|
|
2551
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 12 : i, s = !0;
|
|
2552
|
+
(t.width || t.height) && (s = !1, t.width = (t?.width ?? 0) - a * 2, t.width < 10 && (t.width = 10), t.height = (t?.height ?? 0) - o * 2, t.height < 10 && (t.height = 10));
|
|
2553
|
+
let { shapeSvg: c, bbox: l, label: u } = await C(e, t, E(t)), d = (t?.width ? t?.width : l.width) + (a ?? 0) * 2, f = (t?.height ? t?.height : l.height) + (o ?? 0) * 2, p = t.look === "neo" ? f / 4 : f / 8, m = f + (s ? p : -p), { cssStyles: h } = t, g = 14 - d, _ = g > 0 ? g / 2 : 0, b = S.svg(c), x = y(t, {});
|
|
2554
|
+
t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
|
|
2555
|
+
let w = [
|
|
2556
|
+
{
|
|
2557
|
+
x: -d / 2 - _,
|
|
2558
|
+
y: m / 2
|
|
2559
|
+
},
|
|
2560
|
+
...O(-d / 2 - _, m / 2, d / 2 + _, m / 2, p, .8),
|
|
2561
|
+
{
|
|
2562
|
+
x: d / 2 + _,
|
|
2563
|
+
y: -m / 2
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
x: -d / 2 - _,
|
|
2567
|
+
y: -m / 2
|
|
2568
|
+
}
|
|
2569
|
+
], k = D(w), A = b.path(k, x), j = c.insert(() => A, ":first-child");
|
|
2570
|
+
return j.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && j.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && j.selectAll("path").attr("style", r), j.attr("transform", `translate(0,${-p / 2})`), u.attr("transform", `translate(${-d / 2 + (t.padding ?? 0) - (l.x - (l.left ?? 0))},${-f / 2 + (t.padding ?? 0) - p - (l.y - (l.top ?? 0))})`), T(t, j), t.intersect = function(e) {
|
|
2571
|
+
return W.polygon(t, w, e);
|
|
2572
|
+
}, c;
|
|
2573
|
+
}
|
|
2574
|
+
e(At, "waveEdgedRectangle");
|
|
2575
|
+
async function jt(e, t) {
|
|
2576
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2577
|
+
t.labelStyle = n;
|
|
2578
|
+
let i = t.padding ?? 0, a = t.look === "neo" ? 16 : i, o = t.look === "neo" ? 20 : i;
|
|
2579
|
+
if (t.width || t.height) {
|
|
2580
|
+
t.width = t?.width ?? 0, t.width < 20 && (t.width = 20), t.height = t?.height ?? 0, t.height < 10 && (t.height = 10);
|
|
2581
|
+
let e = Math.min(t.height * .2, t.height / 4);
|
|
2582
|
+
t.height = Math.ceil(t.height - o - 20 / 9 * e), t.width -= a * 2;
|
|
2583
|
+
}
|
|
2584
|
+
let { shapeSvg: s, bbox: c } = await C(e, t, E(t)), l = (t?.width ? t?.width : c.width) + a * 2, u = (t?.height ? t?.height : c.height) + o, d = u / 8, f = u + d * 2, { cssStyles: p } = t, m = S.svg(s), h = y(t, {});
|
|
2585
|
+
t.look !== "handDrawn" && (h.roughness = 0, h.fillStyle = "solid");
|
|
2586
|
+
let g = [
|
|
2587
|
+
{
|
|
2588
|
+
x: -l / 2,
|
|
2589
|
+
y: f / 2
|
|
2590
|
+
},
|
|
2591
|
+
...O(-l / 2, f / 2, l / 2, f / 2, d, 1),
|
|
2592
|
+
{
|
|
2593
|
+
x: l / 2,
|
|
2594
|
+
y: -f / 2
|
|
2595
|
+
},
|
|
2596
|
+
...O(l / 2, -f / 2, -l / 2, -f / 2, d, -1)
|
|
2597
|
+
], _ = D(g), b = m.path(_, h), x = s.insert(() => b, ":first-child");
|
|
2598
|
+
return x.attr("class", "basic label-container"), p && t.look !== "handDrawn" && x.selectAll("path").attr("style", p), r && t.look !== "handDrawn" && x.selectAll("path").attr("style", r), T(t, x), t.intersect = function(e) {
|
|
2599
|
+
return W.polygon(t, g, e);
|
|
2600
|
+
}, s;
|
|
2601
|
+
}
|
|
2602
|
+
e(jt, "waveRectangle");
|
|
2603
|
+
var Q = 10;
|
|
2604
|
+
async function Mt(e, t) {
|
|
2605
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2606
|
+
t.labelStyle = n;
|
|
2607
|
+
let i = t.look === "neo" ? 16 : t.padding ?? 0, a = t.look === "neo" ? 12 : t.padding ?? 0;
|
|
2608
|
+
(t.width || t.height) && (t.width = Math.max((t?.width ?? 0) - i * 2 - Q, 10), t.height = Math.max((t?.height ?? 0) - a * 2 - Q, 10));
|
|
2609
|
+
let { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = (t?.width ? t?.width : s.width) + i * 2 + Q, u = (t?.height ? t?.height : s.height) + a * 2 + Q, d = l - Q, f = u - Q, p = -d / 2, m = -f / 2, { cssStyles: h } = t, g = S.svg(o), _ = y(t, {}), b = [
|
|
2610
|
+
{
|
|
2611
|
+
x: p - Q,
|
|
2612
|
+
y: m - Q
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
x: p - Q,
|
|
2616
|
+
y: m + f
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
x: p + d,
|
|
2620
|
+
y: m + f
|
|
2621
|
+
},
|
|
2622
|
+
{
|
|
2623
|
+
x: p + d,
|
|
2624
|
+
y: m - Q
|
|
2625
|
+
}
|
|
2626
|
+
], x = `M${p - Q},${m - Q} L${p + d},${m - Q} L${p + d},${m + f} L${p - Q},${m + f} L${p - Q},${m - Q}
|
|
2627
|
+
M${p - Q},${m} L${p + d},${m}
|
|
2628
|
+
M${p},${m - Q} L${p},${m + f}`;
|
|
2629
|
+
t.look !== "handDrawn" && (_.roughness = 0, _.fillStyle = "solid");
|
|
2630
|
+
let w = g.path(x, _), D = o.insert(() => w, ":first-child");
|
|
2631
|
+
return D.attr("transform", `translate(${Q / 2}, ${Q / 2})`), D.attr("class", "basic label-container outer-path"), h && t.look !== "handDrawn" && D.selectAll("path").attr("style", h), r && t.look !== "handDrawn" && D.selectAll("path").attr("style", r), c.attr("transform", `translate(${-(s.width / 2) + Q / 2 - (s.x - (s.left ?? 0))}, ${-(s.height / 2) + Q / 2 - (s.y - (s.top ?? 0))})`), T(t, D), t.intersect = function(e) {
|
|
2632
|
+
return W.polygon(t, b, e);
|
|
2633
|
+
}, o;
|
|
2634
|
+
}
|
|
2635
|
+
e(Mt, "windowPane");
|
|
2636
|
+
var Nt = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Pt = /* @__PURE__ */ new Set([
|
|
2637
|
+
"redux",
|
|
2638
|
+
"redux-dark",
|
|
2639
|
+
"redux-color",
|
|
2640
|
+
"redux-dark-color"
|
|
2641
|
+
]);
|
|
2642
|
+
async function Ft(e, t) {
|
|
2643
|
+
let i = t;
|
|
2644
|
+
i.alias && (t.label = i.alias);
|
|
2645
|
+
let { theme: a, themeVariables: o } = r(), { rowEven: s, rowOdd: c, nodeBorder: l, borderColorArray: f } = o;
|
|
2646
|
+
if (t.look === "handDrawn") {
|
|
2647
|
+
let { themeVariables: n } = r(), { background: i } = n;
|
|
2648
|
+
await Ft(e, {
|
|
2649
|
+
...t,
|
|
2650
|
+
id: t.id + "-background",
|
|
2651
|
+
domId: (t.domId || t.id) + "-background",
|
|
2652
|
+
look: "default",
|
|
2653
|
+
cssStyles: ["stroke: none", `fill: ${i}`]
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
let p = r();
|
|
2657
|
+
t.useHtmlLabels = p.htmlLabels;
|
|
2658
|
+
let m = p.er?.diagramPadding ?? 10, h = p.er?.entityPadding ?? 6, { cssStyles: g } = t, { labelStyles: _, nodeStyles: b } = v(t);
|
|
2659
|
+
if (i.attributes.length === 0 && t.label) {
|
|
2660
|
+
let r = {
|
|
2661
|
+
rx: 0,
|
|
2662
|
+
ry: 0,
|
|
2663
|
+
labelPaddingX: m,
|
|
2664
|
+
labelPaddingY: m * 1.5,
|
|
2665
|
+
classes: ""
|
|
2666
|
+
};
|
|
2667
|
+
d(t.label, p) + r.labelPaddingX * 2 < p.er.minEntityWidth && (t.width = p.er.minEntityWidth);
|
|
2668
|
+
let o = await Be(e, t, r);
|
|
2669
|
+
if (a != null && Nt.has(a)) {
|
|
2670
|
+
let e = i.colorIndex ?? 0;
|
|
2671
|
+
o.attr("data-color-id", `color-${e % f.length}`);
|
|
2672
|
+
}
|
|
2673
|
+
if (!n(p.htmlLabels)) {
|
|
2674
|
+
let e = o.select("text"), t = e.node()?.getBBox();
|
|
2675
|
+
e.attr("transform", `translate(${-t.width / 2}, 0)`);
|
|
2676
|
+
}
|
|
2677
|
+
return o;
|
|
2678
|
+
}
|
|
2679
|
+
p.htmlLabels || (m *= 1.25, h *= 1.25);
|
|
2680
|
+
let x = E(t);
|
|
2681
|
+
x ||= "node default";
|
|
2682
|
+
let C = e.insert("g").attr("class", x).attr("id", t.domId || t.id), w = await It(C, t.label ?? "", p, 0, 0, ["name"], _);
|
|
2683
|
+
w.height += h;
|
|
2684
|
+
let D = 0, O = [], k = [], A = 0, j = 0, M = 0, N = 0, P = !0, F = !0;
|
|
2685
|
+
for (let e of i.attributes) {
|
|
2686
|
+
let t = await It(C, e.type, p, 0, D, ["attribute-type"], _);
|
|
2687
|
+
A = Math.max(A, t.width + m);
|
|
2688
|
+
let n = await It(C, e.name, p, 0, D, ["attribute-name"], _);
|
|
2689
|
+
j = Math.max(j, n.width + m);
|
|
2690
|
+
let r = await It(C, e.keys.join(), p, 0, D, ["attribute-keys"], _);
|
|
2691
|
+
M = Math.max(M, r.width + m);
|
|
2692
|
+
let i = await It(C, e.comment, p, 0, D, ["attribute-comment"], _);
|
|
2693
|
+
N = Math.max(N, i.width + m);
|
|
2694
|
+
let a = Math.max(t.height, n.height, r.height, i.height) + h;
|
|
2695
|
+
k.push({
|
|
2696
|
+
yOffset: D,
|
|
2697
|
+
rowHeight: a
|
|
2698
|
+
}), D += a;
|
|
2699
|
+
}
|
|
2700
|
+
let I = 4;
|
|
2701
|
+
M <= m && (P = !1, M = 0, I--), N <= m && (F = !1, N = 0, I--);
|
|
2702
|
+
let ee = C.node().getBBox();
|
|
2703
|
+
if (w.width + m * 2 - (A + j + M + N) > 0) {
|
|
2704
|
+
let e = w.width + m * 2 - (A + j + M + N);
|
|
2705
|
+
A += e / I, j += e / I, M > 0 && (M += e / I), N > 0 && (N += e / I);
|
|
2706
|
+
}
|
|
2707
|
+
let te = A + j + M + N, L = S.svg(C), R = y(t, {});
|
|
2708
|
+
t.look !== "handDrawn" && (R.roughness = 0, R.fillStyle = "solid");
|
|
2709
|
+
let ne = 0;
|
|
2710
|
+
k.length > 0 && (ne = k.reduce((e, t) => e + (t?.rowHeight ?? 0), 0));
|
|
2711
|
+
let z = Math.max(ee.width + m * 2, t?.width || 0, te), B = Math.max((ne ?? 0) + w.height, t?.height || 0), V = -z / 2, H = -B / 2;
|
|
2712
|
+
if (C.selectAll("g:not(:first-child)").each((e, t, n) => {
|
|
2713
|
+
let r = u(n[t]), i = r.attr("transform"), a = 0, o = 0;
|
|
2714
|
+
if (i) {
|
|
2715
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
|
|
2716
|
+
e && (a = parseFloat(e[1]), o = parseFloat(e[2]), r.attr("class").includes("attribute-name") ? a += A : r.attr("class").includes("attribute-keys") ? a += A + j : r.attr("class").includes("attribute-comment") && (a += A + j + M));
|
|
2717
|
+
}
|
|
2718
|
+
r.attr("transform", `translate(${V + m / 2 + a}, ${o + H + w.height + h / 2})`);
|
|
2719
|
+
}), C.select(".name").attr("transform", "translate(" + -w.width / 2 + ", " + (H + h / 2) + ")"), a != null && Nt.has(a)) {
|
|
2720
|
+
let e = i.colorIndex ?? 0;
|
|
2721
|
+
C.attr("data-color-id", `color-${e % f.length}`);
|
|
2722
|
+
}
|
|
2723
|
+
let re = L.rectangle(V, H, z, B, R), ie = C.insert(() => re, ":first-child").attr("class", "outer-path").attr("style", g.join(""));
|
|
2724
|
+
O.push(0);
|
|
2725
|
+
for (let [e, t] of k.entries()) {
|
|
2726
|
+
let n = (e + 1) % 2 == 0 && t.yOffset !== 0, r = L.rectangle(V, w.height + H + t?.yOffset, z, t?.rowHeight, {
|
|
2727
|
+
...R,
|
|
2728
|
+
fill: n ? s : c,
|
|
2729
|
+
stroke: l
|
|
2730
|
+
});
|
|
2731
|
+
C.insert(() => r, "g.label").attr("style", g.join("")).attr("class", `row-rect-${n ? "even" : "odd"}`);
|
|
2732
|
+
}
|
|
2733
|
+
let U = 1e-4, G = Lt(V, w.height + H, z + V, w.height + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R);
|
|
2734
|
+
if (C.insert(() => K).attr("class", "divider"), G = Lt(A + V, w.height + H, A + V, B + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider"), P) {
|
|
2735
|
+
let e = A + j + V;
|
|
2736
|
+
G = Lt(e, w.height + H, e, B + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider");
|
|
2737
|
+
}
|
|
2738
|
+
if (F) {
|
|
2739
|
+
let e = A + j + M + V;
|
|
2740
|
+
G = Lt(e, w.height + H, e, B + H, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider");
|
|
2741
|
+
}
|
|
2742
|
+
for (let e of O) {
|
|
2743
|
+
let t = w.height + H + e;
|
|
2744
|
+
G = Lt(V, t, z + V, t, U), K = L.polygon(G.map((e) => [e.x, e.y]), R), C.insert(() => K).attr("class", "divider");
|
|
2745
|
+
}
|
|
2746
|
+
if (T(t, ie), b && t.look !== "handDrawn") if (a != null && Pt.has(a)) C.selectAll("path").attr("style", b);
|
|
2747
|
+
else {
|
|
2748
|
+
let e = b.split(";")?.filter((e) => e.includes("stroke"))?.map((e) => `${e}`).join("; ");
|
|
2749
|
+
C.selectAll("path").attr("style", e ?? ""), C.selectAll(".row-rect-even path").attr("style", b);
|
|
2750
|
+
}
|
|
2751
|
+
return t.intersect = function(e) {
|
|
2752
|
+
return W.rect(t, e);
|
|
2753
|
+
}, C;
|
|
2754
|
+
}
|
|
2755
|
+
e(Ft, "erBox");
|
|
2756
|
+
async function It(e, t, r, i = 0, a = 0, o = [], c = "") {
|
|
2757
|
+
let l = e.insert("g").attr("class", `label ${o.join(" ")}`).attr("transform", `translate(${i}, ${a})`).attr("style", c);
|
|
2758
|
+
t !== s(t) && (t = s(t), t = t.replaceAll("<", "<").replaceAll(">", ">"));
|
|
2759
|
+
let f = l.node().appendChild(await b(l, t, {
|
|
2760
|
+
width: d(t, r) + 100,
|
|
2761
|
+
style: c,
|
|
2762
|
+
useHtmlLabels: r.htmlLabels
|
|
2763
|
+
}, r));
|
|
2764
|
+
if (t.includes("<") || t.includes(">")) {
|
|
2765
|
+
let e = f.children[0];
|
|
2766
|
+
for (e.textContent = e.textContent.replaceAll("<", "<").replaceAll(">", ">"); e.childNodes[0];) e = e.childNodes[0], e.textContent = e.textContent.replaceAll("<", "<").replaceAll(">", ">");
|
|
2767
|
+
}
|
|
2768
|
+
let p = f.getBBox();
|
|
2769
|
+
if (n(r.htmlLabels)) {
|
|
2770
|
+
let e = f.children[0];
|
|
2771
|
+
e.style.textAlign = "start";
|
|
2772
|
+
let t = u(f);
|
|
2773
|
+
p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
|
|
2774
|
+
}
|
|
2775
|
+
return p;
|
|
2776
|
+
}
|
|
2777
|
+
e(It, "addText");
|
|
2778
|
+
function Lt(e, t, n, r, i) {
|
|
2779
|
+
return e === n ? [
|
|
2780
|
+
{
|
|
2781
|
+
x: e - i / 2,
|
|
2782
|
+
y: t
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
x: e + i / 2,
|
|
2786
|
+
y: t
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
x: n + i / 2,
|
|
2790
|
+
y: r
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
x: n - i / 2,
|
|
2794
|
+
y: r
|
|
2795
|
+
}
|
|
2796
|
+
] : [
|
|
2797
|
+
{
|
|
2798
|
+
x: e,
|
|
2799
|
+
y: t - i / 2
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
x: e,
|
|
2803
|
+
y: t + i / 2
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
x: n,
|
|
2807
|
+
y: r + i / 2
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
x: n,
|
|
2811
|
+
y: r - i / 2
|
|
2812
|
+
}
|
|
2813
|
+
];
|
|
2814
|
+
}
|
|
2815
|
+
e(Lt, "lineToPolygon");
|
|
2816
|
+
async function Rt(e, t, n, r, i = n.class.padding ?? 12) {
|
|
2817
|
+
let a = r ? 0 : 3, o = e.insert("g").attr("class", E(t)).attr("id", t.domId || t.id), s = null, c = null, l = null, u = null, d = 0, f = 0, p = 0;
|
|
2818
|
+
if (s = o.insert("g").attr("class", "annotation-group text"), t.annotations.length > 0) {
|
|
2819
|
+
let e = t.annotations[0];
|
|
2820
|
+
await zt(s, { text: `\xAB${e}\xBB` }, 0), d = s.node().getBBox().height;
|
|
2821
|
+
}
|
|
2822
|
+
c = o.insert("g").attr("class", "label-group text"), await zt(c, t, 0, ["font-weight: bolder"]);
|
|
2823
|
+
let m = c.node().getBBox();
|
|
2824
|
+
f = m.height, l = o.insert("g").attr("class", "members-group text");
|
|
2825
|
+
let h = 0;
|
|
2826
|
+
for (let e of t.members) {
|
|
2827
|
+
let t = await zt(l, e, h, [e.parseClassifier()]);
|
|
2828
|
+
h += t + a;
|
|
2829
|
+
}
|
|
2830
|
+
p = l.node().getBBox().height, p <= 0 && (p = i / 2), u = o.insert("g").attr("class", "methods-group text");
|
|
2831
|
+
let g = 0;
|
|
2832
|
+
for (let e of t.methods) {
|
|
2833
|
+
let t = await zt(u, e, g, [e.parseClassifier()]);
|
|
2834
|
+
g += t + a;
|
|
2835
|
+
}
|
|
2836
|
+
let _ = o.node().getBBox();
|
|
2837
|
+
if (s !== null) {
|
|
2838
|
+
let e = s.node().getBBox();
|
|
2839
|
+
s.attr("transform", `translate(${-e.width / 2})`);
|
|
2840
|
+
}
|
|
2841
|
+
return c.attr("transform", `translate(${-m.width / 2}, ${d})`), _ = o.node().getBBox(), l.attr("transform", `translate(0, ${d + f + i * 2})`), _ = o.node().getBBox(), u.attr("transform", `translate(0, ${d + f + (p ? p + i * 4 : i * 2)})`), _ = o.node().getBBox(), {
|
|
2842
|
+
shapeSvg: o,
|
|
2843
|
+
bbox: _
|
|
2844
|
+
};
|
|
2845
|
+
}
|
|
2846
|
+
e(Rt, "textHelper");
|
|
2847
|
+
async function zt(t, i, a, s = []) {
|
|
2848
|
+
let c = t.insert("g").attr("class", "label").attr("style", s.join("; ")), p = r(), m = "useHtmlLabels" in i ? i.useHtmlLabels : n(p.htmlLabels) ?? !0, h = "";
|
|
2849
|
+
h = "text" in i ? i.text : i.label, !m && h.startsWith("\\") && (h = h.substring(1)), o(h) && (m = !0);
|
|
2850
|
+
let g = await b(c, l(f(h)), {
|
|
2851
|
+
width: d(h, p) + 50,
|
|
2852
|
+
classes: "markdown-node-label",
|
|
2853
|
+
useHtmlLabels: m
|
|
2854
|
+
}, p), _, v = 1;
|
|
2855
|
+
if (m) {
|
|
2856
|
+
let t = g.children[0], n = u(g);
|
|
2857
|
+
v = t.innerHTML.split("<br>").length, t.innerHTML.includes("</math>") && (v += t.innerHTML.split("<mrow>").length - 1);
|
|
2858
|
+
let r = t.getElementsByTagName("img");
|
|
2859
|
+
if (r) {
|
|
2860
|
+
let t = h.replace(/<img[^>]*>/g, "").trim() === "";
|
|
2861
|
+
await Promise.all([...r].map((n) => new Promise((r) => {
|
|
2862
|
+
function i() {
|
|
2863
|
+
if (n.style.display = "flex", n.style.flexDirection = "column", t) {
|
|
2864
|
+
let e = p.fontSize?.toString() ?? window.getComputedStyle(document.body).fontSize, t = parseInt(e, 10) * 5 + "px";
|
|
2865
|
+
n.style.minWidth = t, n.style.maxWidth = t;
|
|
2866
|
+
} else n.style.width = "100%";
|
|
2867
|
+
r(n);
|
|
2868
|
+
}
|
|
2869
|
+
e(i, "setupImage"), setTimeout(() => {
|
|
2870
|
+
n.complete && i();
|
|
2871
|
+
}), n.addEventListener("error", i), n.addEventListener("load", i);
|
|
2872
|
+
})));
|
|
2873
|
+
}
|
|
2874
|
+
_ = t.getBoundingClientRect(), n.attr("width", _.width), n.attr("height", _.height);
|
|
2875
|
+
} else {
|
|
2876
|
+
s.includes("font-weight: bolder") && u(g).selectAll("tspan").attr("font-weight", ""), v = g.children.length;
|
|
2877
|
+
let e = g.children[0];
|
|
2878
|
+
(g.textContent === "" || g.textContent.includes(">")) && (e.textContent = h[0] + h.substring(1).replaceAll(">", ">").replaceAll("<", "<").trim(), h[1] === " " && (e.textContent = e.textContent[0] + " " + e.textContent.substring(1))), e.textContent === "undefined" && (e.textContent = ""), _ = g.getBBox();
|
|
2879
|
+
}
|
|
2880
|
+
return c.attr("transform", "translate(0," + (-_.height / (2 * v) + a) + ")"), _.height;
|
|
2881
|
+
}
|
|
2882
|
+
e(zt, "addText");
|
|
2883
|
+
async function Bt(e, t) {
|
|
2884
|
+
let r = i(), { themeVariables: a } = r, { useGradient: o } = a, s = r.class.padding ?? 12, c = s, l = t.useHtmlLabels ?? n(r.htmlLabels) ?? !0, d = t;
|
|
2885
|
+
d.annotations = d.annotations ?? [], d.members = d.members ?? [], d.methods = d.methods ?? [];
|
|
2886
|
+
let { shapeSvg: f, bbox: p } = await Rt(e, t, r, l, c), { labelStyles: m, nodeStyles: h } = v(t);
|
|
2887
|
+
t.labelStyle = m, t.cssStyles = d.styles || "";
|
|
2888
|
+
let g = d.styles?.join(";") || h || "";
|
|
2889
|
+
t.cssStyles ||= g.replaceAll("!important", "").split(";");
|
|
2890
|
+
let _ = d.members.length === 0 && d.methods.length === 0 && !r.class?.hideEmptyMembersBox, b = S.svg(f), x = y(t, {});
|
|
2891
|
+
t.look !== "handDrawn" && (x.roughness = 0, x.fillStyle = "solid");
|
|
2892
|
+
let C = Math.max(t.width ?? 0, p.width), w = Math.max(t.height ?? 0, p.height), E = (t.height ?? 0) > p.height;
|
|
2893
|
+
d.members.length === 0 && d.methods.length === 0 ? w += c : d.members.length > 0 && d.methods.length === 0 && (w += c * 2);
|
|
2894
|
+
let D = -C / 2, O = -w / 2, k = _ ? s * 2 : d.members.length === 0 && d.methods.length === 0 ? -s : 0;
|
|
2895
|
+
E && (k = s * 2);
|
|
2896
|
+
let A = b.rectangle(D - s, O - s - (_ ? s : d.members.length === 0 && d.methods.length === 0 ? -s / 2 : 0), C + 2 * s, w + 2 * s + k, x), j = f.insert(() => A, ":first-child");
|
|
2897
|
+
j.attr("class", "basic label-container outer-path");
|
|
2898
|
+
let M = j.node().getBBox(), N = f.select(".annotation-group").node().getBBox().height - (_ ? s / 2 : 0) || 0, P = f.select(".label-group").node().getBBox().height - (_ ? s / 2 : 0) || 0, F = f.select(".members-group").node().getBBox().height - (_ ? s / 2 : 0) || 0, I = (N + P + O + s - (O - s - (_ ? s : d.members.length === 0 && d.methods.length === 0 ? -s / 2 : 0))) / 2;
|
|
2899
|
+
if (f.selectAll(".text").each((e, t, n) => {
|
|
2900
|
+
let i = u(n[t]), a = i.attr("transform"), o = 0;
|
|
2901
|
+
if (a) {
|
|
2902
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);
|
|
2903
|
+
e && (o = parseFloat(e[2]));
|
|
2904
|
+
}
|
|
2905
|
+
let p = o + O + s - (_ ? s : d.members.length === 0 && d.methods.length === 0 ? -s / 2 : 0);
|
|
2906
|
+
if (i.attr("class").includes("methods-group")) {
|
|
2907
|
+
let e = Math.max(F, c / 2);
|
|
2908
|
+
p = E ? Math.max(I, N + P + e + O + c * 2 + s) + c * 2 : N + P + e + O + c * 4 + s;
|
|
2909
|
+
}
|
|
2910
|
+
d.members.length === 0 && d.methods.length === 0 && r.class?.hideEmptyMembersBox && (p = d.annotations.length > 0 ? o - c : o), l || (p -= 4);
|
|
2911
|
+
let m = D;
|
|
2912
|
+
(i.attr("class").includes("label-group") || i.attr("class").includes("annotation-group")) && (m = -i.node()?.getBBox().width / 2 || 0, f.selectAll("text").each(function(e, t, n) {
|
|
2913
|
+
window.getComputedStyle(n[t]).textAnchor === "middle" && (m = 0);
|
|
2914
|
+
})), i.attr("transform", `translate(${m}, ${p})`);
|
|
2915
|
+
}), d.members.length > 0 || d.methods.length > 0 || _) {
|
|
2916
|
+
let e = N + P + O + s, n = b.line(M.x, e, M.x + M.width, e + .001, x);
|
|
2917
|
+
f.insert(() => n).attr("class", `divider${t.look === "neo" && !o ? " neo-line" : ""}`).attr("style", g);
|
|
2918
|
+
}
|
|
2919
|
+
if (_ || d.members.length > 0 || d.methods.length > 0) {
|
|
2920
|
+
let e = N + P + F + O + c * 2 + s, n = b.line(M.x, E ? Math.max(I, e) : e, M.x + M.width, (E ? Math.max(I, e) : e) + .001, x);
|
|
2921
|
+
f.insert(() => n).attr("class", `divider${t.look === "neo" && !o ? " neo-line" : ""}`).attr("style", g);
|
|
2922
|
+
}
|
|
2923
|
+
if (d.look !== "handDrawn" && f.selectAll("path").attr("style", g), j.select(":nth-child(2)").attr("style", g), f.selectAll(".divider").select("path").attr("style", g), t.labelStyle ? f.selectAll("span").attr("style", t.labelStyle) : f.selectAll("span").attr("style", g), !l) {
|
|
2924
|
+
let e = RegExp(/color\s*:\s*([^;]*)/), t = e.exec(g);
|
|
2925
|
+
if (t) {
|
|
2926
|
+
let e = t[0].replace("color", "fill");
|
|
2927
|
+
f.selectAll("tspan").attr("style", e);
|
|
2928
|
+
} else if (m) {
|
|
2929
|
+
let t = e.exec(m);
|
|
2930
|
+
if (t) {
|
|
2931
|
+
let e = t[0].replace("color", "fill");
|
|
2932
|
+
f.selectAll("tspan").attr("style", e);
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
return T(t, j), t.intersect = function(e) {
|
|
2937
|
+
return W.rect(t, e);
|
|
2938
|
+
}, f;
|
|
2939
|
+
}
|
|
2940
|
+
e(Bt, "classBox");
|
|
2941
|
+
async function Vt(e, t) {
|
|
2942
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
2943
|
+
t.labelStyle = n;
|
|
2944
|
+
let a = t, o = t, s = "verifyMethod" in t, c = E(t), { themeVariables: l } = i(), { borderColorArray: d, requirementEdgeLabelBackground: f } = l, p = e.insert("g").attr("class", c).attr("id", t.domId ?? t.id), m;
|
|
2945
|
+
m = s ? await $(p, `<<${a.type}>>`, 0, t.labelStyle) : await $(p, "<<Element>>", 0, t.labelStyle);
|
|
2946
|
+
let h = m, g = await $(p, a.name, h, t.labelStyle + "; font-weight: bold;");
|
|
2947
|
+
if (h += g + 20, s) {
|
|
2948
|
+
let e = await $(p, `${a.requirementId ? `ID: ${a.requirementId}` : ""}`, h, t.labelStyle);
|
|
2949
|
+
h += e;
|
|
2950
|
+
let n = await $(p, `${a.text ? `Text: ${a.text}` : ""}`, h, t.labelStyle);
|
|
2951
|
+
h += n;
|
|
2952
|
+
let r = await $(p, `${a.risk ? `Risk: ${a.risk}` : ""}`, h, t.labelStyle);
|
|
2953
|
+
h += r, await $(p, `${a.verifyMethod ? `Verification: ${a.verifyMethod}` : ""}`, h, t.labelStyle);
|
|
2954
|
+
} else {
|
|
2955
|
+
let e = await $(p, `${o.type ? `Type: ${o.type}` : ""}`, h, t.labelStyle);
|
|
2956
|
+
h += e, await $(p, `${o.docRef ? `Doc Ref: ${o.docRef}` : ""}`, h, t.labelStyle);
|
|
2957
|
+
}
|
|
2958
|
+
let _ = (p.node()?.getBBox().width ?? 200) + 20, b = (p.node()?.getBBox().height ?? 200) + 20, x = -_ / 2, C = -b / 2, w = S.svg(p), D = y(t, {});
|
|
2959
|
+
t.look !== "handDrawn" && (D.roughness = 0, D.fillStyle = "solid");
|
|
2960
|
+
let O = w.rectangle(x, C, _, b, D), k = p.insert(() => O, ":first-child");
|
|
2961
|
+
if (k.attr("class", "basic label-container outer-path").attr("style", r), d?.length) {
|
|
2962
|
+
let e = t.colorIndex ?? 0;
|
|
2963
|
+
p.attr("data-color-id", `color-${e % d.length}`);
|
|
2964
|
+
}
|
|
2965
|
+
if (p.selectAll(".label").each((e, t, n) => {
|
|
2966
|
+
let r = u(n[t]), i = r.attr("transform"), a = 0, o = 0;
|
|
2967
|
+
if (i) {
|
|
2968
|
+
let e = RegExp(/translate\(([^,]+),([^)]+)\)/).exec(i);
|
|
2969
|
+
e && (a = parseFloat(e[1]), o = parseFloat(e[2]));
|
|
2970
|
+
}
|
|
2971
|
+
let s = o - b / 2, c = x + 20 / 2;
|
|
2972
|
+
(t === 0 || t === 1) && (c = a), r.attr("transform", `translate(${c}, ${s + 20})`);
|
|
2973
|
+
}), h > m + g + 20) {
|
|
2974
|
+
let e = C + m + g + 20, n;
|
|
2975
|
+
if (t.look === "neo") {
|
|
2976
|
+
let t = .001, r = [
|
|
2977
|
+
[x, e],
|
|
2978
|
+
[x + _, e],
|
|
2979
|
+
[x + _, e + t],
|
|
2980
|
+
[x, e + t]
|
|
2981
|
+
];
|
|
2982
|
+
n = w.polygon(r, D);
|
|
2983
|
+
} else n = w.line(x, e, x + _, e, D);
|
|
2984
|
+
p.insert(() => n).attr("class", "divider");
|
|
2985
|
+
}
|
|
2986
|
+
return T(t, k), t.intersect = function(e) {
|
|
2987
|
+
return W.rect(t, e);
|
|
2988
|
+
}, r && t.look !== "handDrawn" && (f || d?.length) && p.selectAll("path").attr("style", r), p;
|
|
2989
|
+
}
|
|
2990
|
+
e(Vt, "requirementBox");
|
|
2991
|
+
async function $(e, t, n, r = "") {
|
|
2992
|
+
if (t === "") return 0;
|
|
2993
|
+
let a = e.insert("g").attr("class", "label").attr("style", r), o = i(), s = o.htmlLabels ?? !0, c = await b(a, l(f(t)), {
|
|
2994
|
+
width: d(t, o) + 50,
|
|
2995
|
+
classes: "markdown-node-label",
|
|
2996
|
+
useHtmlLabels: s,
|
|
2997
|
+
style: r
|
|
2998
|
+
}, o), p;
|
|
2999
|
+
if (s) {
|
|
3000
|
+
let e = c.children[0], t = u(c);
|
|
3001
|
+
p = e.getBoundingClientRect(), t.attr("width", p.width), t.attr("height", p.height);
|
|
3002
|
+
} else {
|
|
3003
|
+
let e = c.children[0];
|
|
3004
|
+
for (let t of e.children) r && t.setAttribute("style", r);
|
|
3005
|
+
p = c.getBBox(), p.height += 6;
|
|
3006
|
+
}
|
|
3007
|
+
return a.attr("transform", `translate(${-p.width / 2},${-p.height / 2 + n})`), p.height;
|
|
3008
|
+
}
|
|
3009
|
+
e($, "addText");
|
|
3010
|
+
var Ht = /* @__PURE__ */ e((e) => {
|
|
3011
|
+
switch (e) {
|
|
3012
|
+
case "Very High": return "red";
|
|
3013
|
+
case "High": return "orange";
|
|
3014
|
+
case "Medium": return null;
|
|
3015
|
+
case "Low": return "blue";
|
|
3016
|
+
case "Very Low": return "lightblue";
|
|
3017
|
+
}
|
|
3018
|
+
}, "colorFromPriority");
|
|
3019
|
+
async function Ut(e, t, { config: n }) {
|
|
3020
|
+
let { labelStyles: r, nodeStyles: i } = v(t);
|
|
3021
|
+
t.labelStyle = r || "";
|
|
3022
|
+
let a = t.width;
|
|
3023
|
+
t.width = (t.width ?? 200) - 10;
|
|
3024
|
+
let { shapeSvg: o, bbox: s, label: c } = await C(e, t, E(t)), l = t.padding || 10, u = "", d;
|
|
3025
|
+
"ticket" in t && t.ticket && n?.kanban?.ticketBaseUrl && (u = n?.kanban?.ticketBaseUrl.replace("#TICKET#", t.ticket), d = o.insert("svg:a", ":first-child").attr("class", "kanban-ticket-link").attr("xlink:href", u).attr("target", "_blank"));
|
|
3026
|
+
let f = {
|
|
3027
|
+
useHtmlLabels: t.useHtmlLabels,
|
|
3028
|
+
labelStyle: t.labelStyle || "",
|
|
3029
|
+
width: t.width,
|
|
3030
|
+
img: t.img,
|
|
3031
|
+
padding: t.padding || 8,
|
|
3032
|
+
centerLabel: !1
|
|
3033
|
+
}, p, m;
|
|
3034
|
+
d ? {label: p, bbox: m} = await w(d, "ticket" in t && t.ticket || "", f) : {label: p, bbox: m} = await w(o, "ticket" in t && t.ticket || "", f);
|
|
3035
|
+
let { label: h, bbox: g } = await w(o, "assigned" in t && t.assigned || "", f);
|
|
3036
|
+
t.width = a;
|
|
3037
|
+
let _ = t?.width || 0, b = Math.max(m.height, g.height) / 2, x = Math.max(s.height + 20, t?.height || 0) + b, D = -_ / 2, O = -x / 2;
|
|
3038
|
+
c.attr("transform", "translate(" + (l - _ / 2) + ", " + (-b - s.height / 2) + ")"), p.attr("transform", "translate(" + (l - _ / 2) + ", " + (-b + s.height / 2) + ")"), h.attr("transform", "translate(" + (l + _ / 2 - g.width - 20) + ", " + (-b + s.height / 2) + ")");
|
|
3039
|
+
let k, { rx: A, ry: j } = t, { cssStyles: M } = t;
|
|
3040
|
+
if (t.look === "handDrawn") {
|
|
3041
|
+
let e = S.svg(o), n = y(t, {}), r = A || j ? e.path(N(D, O, _, x, A || 0), n) : e.rectangle(D, O, _, x, n);
|
|
3042
|
+
k = o.insert(() => r, ":first-child"), k.attr("class", "basic label-container").attr("style", M || null);
|
|
3043
|
+
} else {
|
|
3044
|
+
k = o.insert("rect", ":first-child"), k.attr("class", "basic label-container __APA__").attr("style", i).attr("rx", A ?? 5).attr("ry", j ?? 5).attr("x", D).attr("y", O).attr("width", _).attr("height", x);
|
|
3045
|
+
let e = "priority" in t && t.priority;
|
|
3046
|
+
if (e) {
|
|
3047
|
+
let t = o.append("line"), n = D + 2, r = O + Math.floor((A ?? 0) / 2), i = O + x - Math.floor((A ?? 0) / 2);
|
|
3048
|
+
t.attr("x1", n).attr("y1", r).attr("x2", n).attr("y2", i).attr("stroke-width", "4").attr("stroke", Ht(e));
|
|
3049
|
+
}
|
|
3050
|
+
}
|
|
3051
|
+
return T(t, k), t.height = x, t.intersect = function(e) {
|
|
3052
|
+
return W.rect(t, e);
|
|
3053
|
+
}, o;
|
|
3054
|
+
}
|
|
3055
|
+
e(Ut, "kanbanItem");
|
|
3056
|
+
async function Wt(e, n) {
|
|
3057
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
3058
|
+
n.labelStyle = r;
|
|
3059
|
+
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await C(e, n, E(n)), l = o.width + 10 * s, u = o.height + 8 * s, d = .15 * l, { cssStyles: f } = n, m = o.width + 20, h = o.height + 20, g = Math.max(l, m), _ = Math.max(u, h);
|
|
3060
|
+
c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`);
|
|
3061
|
+
let b, x = `M0 0
|
|
3062
|
+
a${d},${d} 1 0,0 ${g * .25},${-1 * _ * .1}
|
|
3063
|
+
a${d},${d} 1 0,0 ${g * .25},0
|
|
3064
|
+
a${d},${d} 1 0,0 ${g * .25},0
|
|
3065
|
+
a${d},${d} 1 0,0 ${g * .25},${_ * .1}
|
|
3066
|
+
|
|
3067
|
+
a${d},${d} 1 0,0 ${g * .15},${_ * .33}
|
|
3068
|
+
a${d * .8},${d * .8} 1 0,0 0,${_ * .34}
|
|
3069
|
+
a${d},${d} 1 0,0 ${-1 * g * .15},${_ * .33}
|
|
3070
|
+
|
|
3071
|
+
a${d},${d} 1 0,0 ${-1 * g * .25},${_ * .15}
|
|
3072
|
+
a${d},${d} 1 0,0 ${-1 * g * .25},0
|
|
3073
|
+
a${d},${d} 1 0,0 ${-1 * g * .25},0
|
|
3074
|
+
a${d},${d} 1 0,0 ${-1 * g * .25},${-1 * _ * .15}
|
|
3075
|
+
|
|
3076
|
+
a${d},${d} 1 0,0 ${-1 * g * .1},${-1 * _ * .33}
|
|
3077
|
+
a${d * .8},${d * .8} 1 0,0 0,${-1 * _ * .34}
|
|
3078
|
+
a${d},${d} 1 0,0 ${g * .1},${-1 * _ * .33}
|
|
3079
|
+
H0 V0 Z`;
|
|
3080
|
+
if (n.look === "handDrawn") {
|
|
3081
|
+
let e = S.svg(a), t = y(n, {}), r = e.path(x, t);
|
|
3082
|
+
b = a.insert(() => r, ":first-child"), b.attr("class", "basic label-container").attr("style", p(f));
|
|
3083
|
+
} else b = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", x);
|
|
3084
|
+
return b.attr("transform", `translate(${-g / 2}, ${-_ / 2})`), T(n, b), n.calcIntersect = function(e, t) {
|
|
3085
|
+
return W.rect(e, t);
|
|
3086
|
+
}, n.intersect = function(e) {
|
|
3087
|
+
return t.info("Bang intersect", n, e), W.rect(n, e);
|
|
3088
|
+
}, a;
|
|
3089
|
+
}
|
|
3090
|
+
e(Wt, "bang");
|
|
3091
|
+
async function Gt(e, n) {
|
|
3092
|
+
let { labelStyles: r, nodeStyles: i } = v(n);
|
|
3093
|
+
n.labelStyle = r;
|
|
3094
|
+
let { shapeSvg: a, bbox: o, halfPadding: s, label: c } = await C(e, n, E(n)), l = o.width + 2 * s, u = o.height + 2 * s, d = .15 * l, f = .25 * l, m = .35 * l, h = .2 * l, { cssStyles: g } = n, _, b = `M0 0
|
|
3095
|
+
a${d},${d} 0 0,1 ${l * .25},${-1 * l * .1}
|
|
3096
|
+
a${m},${m} 1 0,1 ${l * .4},${-1 * l * .1}
|
|
3097
|
+
a${f},${f} 1 0,1 ${l * .35},${l * .2}
|
|
3098
|
+
|
|
3099
|
+
a${d},${d} 1 0,1 ${l * .15},${u * .35}
|
|
3100
|
+
a${h},${h} 1 0,1 ${-1 * l * .15},${u * .65}
|
|
3101
|
+
|
|
3102
|
+
a${f},${d} 1 0,1 ${-1 * l * .25},${l * .15}
|
|
3103
|
+
a${m},${m} 1 0,1 ${-1 * l * .5},0
|
|
3104
|
+
a${d},${d} 1 0,1 ${-1 * l * .25},${-1 * l * .15}
|
|
3105
|
+
|
|
3106
|
+
a${d},${d} 1 0,1 ${-1 * l * .1},${-1 * u * .35}
|
|
3107
|
+
a${h},${h} 1 0,1 ${l * .1},${-1 * u * .65}
|
|
3108
|
+
H0 V0 Z`;
|
|
3109
|
+
if (n.look === "handDrawn") {
|
|
3110
|
+
let e = S.svg(a), t = y(n, {}), r = e.path(b, t);
|
|
3111
|
+
_ = a.insert(() => r, ":first-child"), _.attr("class", "basic label-container").attr("style", p(g));
|
|
3112
|
+
} else _ = a.insert("path", ":first-child").attr("class", "basic label-container").attr("style", i).attr("d", b);
|
|
3113
|
+
return c.attr("transform", `translate(${-o.width / 2}, ${-o.height / 2})`), _.attr("transform", `translate(${-l / 2}, ${-u / 2})`), T(n, _), n.calcIntersect = function(e, t) {
|
|
3114
|
+
return W.rect(e, t);
|
|
3115
|
+
}, n.intersect = function(e) {
|
|
3116
|
+
return t.info("Cloud intersect", n, e), W.rect(n, e);
|
|
3117
|
+
}, a;
|
|
3118
|
+
}
|
|
3119
|
+
e(Gt, "cloud");
|
|
3120
|
+
async function Kt(e, t) {
|
|
3121
|
+
let { labelStyles: n, nodeStyles: r } = v(t);
|
|
3122
|
+
t.labelStyle = n;
|
|
3123
|
+
let { shapeSvg: i, bbox: a, halfPadding: o, label: s } = await C(e, t, E(t)), c = a.width + 8 * o, l = a.height + 2 * o, u = t.look === "neo" ? `
|
|
3124
|
+
M${-c / 2} ${l / 2 - 5}
|
|
3125
|
+
v${-l + 10}
|
|
3126
|
+
q0,-5 5,-5
|
|
3127
|
+
h${c - 10}
|
|
3128
|
+
q5,0 5,5
|
|
3129
|
+
v${l - 5}
|
|
3130
|
+
H${-c / 2}
|
|
3131
|
+
Z
|
|
3132
|
+
` : `
|
|
3133
|
+
M${-c / 2} ${l / 2 - 5}
|
|
3134
|
+
v${-l + 10}
|
|
3135
|
+
q0,-5 5,-5
|
|
3136
|
+
h${c - 10}
|
|
3137
|
+
q5,0 5,5
|
|
3138
|
+
v${l - 10}
|
|
3139
|
+
q0,5 -5,5
|
|
3140
|
+
h${-(c - 10)}
|
|
3141
|
+
q-5,0 -5,-5
|
|
3142
|
+
Z
|
|
3143
|
+
`;
|
|
3144
|
+
if (!t.domId) throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);
|
|
3145
|
+
let d = i.append("path").attr("id", t.domId).attr("class", "node-bkg node-" + t.type).attr("style", r).attr("d", u);
|
|
3146
|
+
return i.append("line").attr("class", "node-line-").attr("x1", -c / 2).attr("y1", l / 2).attr("x2", c / 2).attr("y2", l / 2), s.attr("transform", `translate(${-a.width / 2}, ${-a.height / 2})`), i.append(() => s.node()), T(t, d), t.calcIntersect = function(e, t) {
|
|
3147
|
+
return W.rect(e, t);
|
|
3148
|
+
}, t.intersect = function(e) {
|
|
3149
|
+
return W.rect(t, e);
|
|
3150
|
+
}, i;
|
|
3151
|
+
}
|
|
3152
|
+
e(Kt, "defaultMindmapNode");
|
|
3153
|
+
async function qt(e, t) {
|
|
3154
|
+
return ue(e, t, { padding: t.padding ?? 0 });
|
|
3155
|
+
}
|
|
3156
|
+
e(qt, "mindmapCircle");
|
|
3157
|
+
var Jt = [
|
|
3158
|
+
{
|
|
3159
|
+
semanticName: "Process",
|
|
3160
|
+
name: "Rectangle",
|
|
3161
|
+
shortName: "rect",
|
|
3162
|
+
description: "Standard process shape",
|
|
3163
|
+
aliases: [
|
|
3164
|
+
"proc",
|
|
3165
|
+
"process",
|
|
3166
|
+
"rectangle"
|
|
3167
|
+
],
|
|
3168
|
+
internalAliases: ["squareRect"],
|
|
3169
|
+
handler: ct
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
semanticName: "Event",
|
|
3173
|
+
name: "Rounded Rectangle",
|
|
3174
|
+
shortName: "rounded",
|
|
3175
|
+
description: "Represents an event",
|
|
3176
|
+
aliases: ["event"],
|
|
3177
|
+
internalAliases: ["roundedRect"],
|
|
3178
|
+
handler: at
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
semanticName: "Terminal Point",
|
|
3182
|
+
name: "Stadium",
|
|
3183
|
+
shortName: "stadium",
|
|
3184
|
+
description: "Terminal point",
|
|
3185
|
+
aliases: ["terminal", "pill"],
|
|
3186
|
+
handler: lt
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
semanticName: "Subprocess",
|
|
3190
|
+
name: "Framed Rectangle",
|
|
3191
|
+
shortName: "fr-rect",
|
|
3192
|
+
description: "Subprocess",
|
|
3193
|
+
aliases: [
|
|
3194
|
+
"subprocess",
|
|
3195
|
+
"subproc",
|
|
3196
|
+
"framed-rectangle",
|
|
3197
|
+
"subroutine"
|
|
3198
|
+
],
|
|
3199
|
+
handler: mt
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
semanticName: "Database",
|
|
3203
|
+
name: "Cylinder",
|
|
3204
|
+
shortName: "cyl",
|
|
3205
|
+
description: "Database storage",
|
|
3206
|
+
aliases: [
|
|
3207
|
+
"db",
|
|
3208
|
+
"database",
|
|
3209
|
+
"cylinder"
|
|
3210
|
+
],
|
|
3211
|
+
handler: Se
|
|
3212
|
+
},
|
|
3213
|
+
{
|
|
3214
|
+
semanticName: "Start",
|
|
3215
|
+
name: "Circle",
|
|
3216
|
+
shortName: "circle",
|
|
3217
|
+
description: "Starting point",
|
|
3218
|
+
aliases: ["circ"],
|
|
3219
|
+
handler: ue
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
semanticName: "Bang",
|
|
3223
|
+
name: "Bang",
|
|
3224
|
+
shortName: "bang",
|
|
3225
|
+
description: "Bang",
|
|
3226
|
+
aliases: ["bang"],
|
|
3227
|
+
handler: Wt
|
|
3228
|
+
},
|
|
3229
|
+
{
|
|
3230
|
+
semanticName: "Cloud",
|
|
3231
|
+
name: "Cloud",
|
|
3232
|
+
shortName: "cloud",
|
|
3233
|
+
description: "cloud",
|
|
3234
|
+
aliases: ["cloud"],
|
|
3235
|
+
handler: Gt
|
|
3236
|
+
},
|
|
3237
|
+
{
|
|
3238
|
+
semanticName: "Decision",
|
|
3239
|
+
name: "Diamond",
|
|
3240
|
+
shortName: "diam",
|
|
3241
|
+
description: "Decision-making step",
|
|
3242
|
+
aliases: [
|
|
3243
|
+
"decision",
|
|
3244
|
+
"diamond",
|
|
3245
|
+
"question"
|
|
3246
|
+
],
|
|
3247
|
+
handler: nt
|
|
3248
|
+
},
|
|
3249
|
+
{
|
|
3250
|
+
semanticName: "Prepare Conditional",
|
|
3251
|
+
name: "Hexagon",
|
|
3252
|
+
shortName: "hex",
|
|
3253
|
+
description: "Preparation or condition step",
|
|
3254
|
+
aliases: ["hexagon", "prepare"],
|
|
3255
|
+
handler: Me
|
|
3256
|
+
},
|
|
3257
|
+
{
|
|
3258
|
+
semanticName: "Data Input/Output",
|
|
3259
|
+
name: "Lean Right",
|
|
3260
|
+
shortName: "lean-r",
|
|
3261
|
+
description: "Represents input or output",
|
|
3262
|
+
aliases: ["lean-right", "in-out"],
|
|
3263
|
+
internalAliases: ["lean_right"],
|
|
3264
|
+
handler: Ue
|
|
3265
|
+
},
|
|
3266
|
+
{
|
|
3267
|
+
semanticName: "Data Input/Output",
|
|
3268
|
+
name: "Lean Left",
|
|
3269
|
+
shortName: "lean-l",
|
|
3270
|
+
description: "Represents output or input",
|
|
3271
|
+
aliases: ["lean-left", "out-in"],
|
|
3272
|
+
internalAliases: ["lean_left"],
|
|
3273
|
+
handler: He
|
|
3274
|
+
},
|
|
3275
|
+
{
|
|
3276
|
+
semanticName: "Priority Action",
|
|
3277
|
+
name: "Trapezoid Base Bottom",
|
|
3278
|
+
shortName: "trap-b",
|
|
3279
|
+
description: "Priority action",
|
|
3280
|
+
aliases: [
|
|
3281
|
+
"priority",
|
|
3282
|
+
"trapezoid-bottom",
|
|
3283
|
+
"trapezoid"
|
|
3284
|
+
],
|
|
3285
|
+
handler: Tt
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
semanticName: "Manual Operation",
|
|
3289
|
+
name: "Trapezoid Base Top",
|
|
3290
|
+
shortName: "trap-t",
|
|
3291
|
+
description: "Represents a manual task",
|
|
3292
|
+
aliases: [
|
|
3293
|
+
"manual",
|
|
3294
|
+
"trapezoid-top",
|
|
3295
|
+
"inv-trapezoid"
|
|
3296
|
+
],
|
|
3297
|
+
internalAliases: ["inv_trapezoid"],
|
|
3298
|
+
handler: ze
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
semanticName: "Stop",
|
|
3302
|
+
name: "Double Circle",
|
|
3303
|
+
shortName: "dbl-circ",
|
|
3304
|
+
description: "Represents a stop point",
|
|
3305
|
+
aliases: ["double-circle"],
|
|
3306
|
+
internalAliases: ["doublecircle"],
|
|
3307
|
+
handler: we
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
semanticName: "Text Block",
|
|
3311
|
+
name: "Text Block",
|
|
3312
|
+
shortName: "text",
|
|
3313
|
+
description: "Text block",
|
|
3314
|
+
handler: vt
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
semanticName: "Card",
|
|
3318
|
+
name: "Notched Rectangle",
|
|
3319
|
+
shortName: "notch-rect",
|
|
3320
|
+
description: "Represents a card",
|
|
3321
|
+
aliases: ["card", "notched-rectangle"],
|
|
3322
|
+
handler: ce
|
|
3323
|
+
},
|
|
3324
|
+
{
|
|
3325
|
+
semanticName: "Lined/Shaded Process",
|
|
3326
|
+
name: "Lined Rectangle",
|
|
3327
|
+
shortName: "lin-rect",
|
|
3328
|
+
description: "Lined process shape",
|
|
3329
|
+
aliases: [
|
|
3330
|
+
"lined-rectangle",
|
|
3331
|
+
"lined-process",
|
|
3332
|
+
"lin-proc",
|
|
3333
|
+
"shaded-process"
|
|
3334
|
+
],
|
|
3335
|
+
handler: ot
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
semanticName: "Start",
|
|
3339
|
+
name: "Small Circle",
|
|
3340
|
+
shortName: "sm-circ",
|
|
3341
|
+
description: "Small starting point",
|
|
3342
|
+
aliases: ["start", "small-circle"],
|
|
3343
|
+
internalAliases: ["stateStart"],
|
|
3344
|
+
handler: ft
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
semanticName: "Stop",
|
|
3348
|
+
name: "Framed Circle",
|
|
3349
|
+
shortName: "fr-circ",
|
|
3350
|
+
description: "Stop point",
|
|
3351
|
+
aliases: ["stop", "framed-circle"],
|
|
3352
|
+
internalAliases: ["stateEnd"],
|
|
3353
|
+
handler: dt
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
semanticName: "Fork/Join",
|
|
3357
|
+
name: "Filled Rectangle",
|
|
3358
|
+
shortName: "fork",
|
|
3359
|
+
description: "Fork or join in process flow",
|
|
3360
|
+
aliases: ["join"],
|
|
3361
|
+
internalAliases: ["forkJoin"],
|
|
3362
|
+
handler: ke
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
semanticName: "Collate",
|
|
3366
|
+
name: "Hourglass",
|
|
3367
|
+
shortName: "hourglass",
|
|
3368
|
+
description: "Represents a collate operation",
|
|
3369
|
+
aliases: ["hourglass", "collate"],
|
|
3370
|
+
handler: Ne
|
|
3371
|
+
},
|
|
3372
|
+
{
|
|
3373
|
+
semanticName: "Comment",
|
|
3374
|
+
name: "Curly Brace",
|
|
3375
|
+
shortName: "brace",
|
|
3376
|
+
description: "Adds a comment",
|
|
3377
|
+
aliases: ["comment", "brace-l"],
|
|
3378
|
+
handler: pe
|
|
3379
|
+
},
|
|
3380
|
+
{
|
|
3381
|
+
semanticName: "Comment Right",
|
|
3382
|
+
name: "Curly Brace",
|
|
3383
|
+
shortName: "brace-r",
|
|
3384
|
+
description: "Adds a comment",
|
|
3385
|
+
handler: me
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
semanticName: "Comment with braces on both sides",
|
|
3389
|
+
name: "Curly Braces",
|
|
3390
|
+
shortName: "braces",
|
|
3391
|
+
description: "Adds a comment",
|
|
3392
|
+
handler: he
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
semanticName: "Com Link",
|
|
3396
|
+
name: "Lightning Bolt",
|
|
3397
|
+
shortName: "bolt",
|
|
3398
|
+
description: "Communication link",
|
|
3399
|
+
aliases: ["com-link", "lightning-bolt"],
|
|
3400
|
+
handler: We
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
semanticName: "Document",
|
|
3404
|
+
name: "Document",
|
|
3405
|
+
shortName: "doc",
|
|
3406
|
+
description: "Represents a document",
|
|
3407
|
+
aliases: ["doc", "document"],
|
|
3408
|
+
handler: At
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
semanticName: "Delay",
|
|
3412
|
+
name: "Half-Rounded Rectangle",
|
|
3413
|
+
shortName: "delay",
|
|
3414
|
+
description: "Represents a delay",
|
|
3415
|
+
aliases: ["half-rounded-rectangle"],
|
|
3416
|
+
handler: Ae
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
semanticName: "Direct Access Storage",
|
|
3420
|
+
name: "Horizontal Cylinder",
|
|
3421
|
+
shortName: "h-cyl",
|
|
3422
|
+
description: "Direct access storage",
|
|
3423
|
+
aliases: ["das", "horizontal-cylinder"],
|
|
3424
|
+
handler: wt
|
|
3425
|
+
},
|
|
3426
|
+
{
|
|
3427
|
+
semanticName: "Disk Storage",
|
|
3428
|
+
name: "Lined Cylinder",
|
|
3429
|
+
shortName: "lin-cyl",
|
|
3430
|
+
description: "Disk storage",
|
|
3431
|
+
aliases: ["disk", "lined-cylinder"],
|
|
3432
|
+
handler: Xe
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
semanticName: "Display",
|
|
3436
|
+
name: "Curved Trapezoid",
|
|
3437
|
+
shortName: "curv-trap",
|
|
3438
|
+
description: "Represents a display",
|
|
3439
|
+
aliases: ["curved-trapezoid", "display"],
|
|
3440
|
+
handler: ge
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
semanticName: "Divided Process",
|
|
3444
|
+
name: "Divided Rectangle",
|
|
3445
|
+
shortName: "div-rect",
|
|
3446
|
+
description: "Divided process shape",
|
|
3447
|
+
aliases: [
|
|
3448
|
+
"div-proc",
|
|
3449
|
+
"divided-rectangle",
|
|
3450
|
+
"divided-process"
|
|
3451
|
+
],
|
|
3452
|
+
handler: Ce
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
semanticName: "Extract",
|
|
3456
|
+
name: "Triangle",
|
|
3457
|
+
shortName: "tri",
|
|
3458
|
+
description: "Extraction process",
|
|
3459
|
+
aliases: ["extract", "triangle"],
|
|
3460
|
+
handler: kt
|
|
3461
|
+
},
|
|
3462
|
+
{
|
|
3463
|
+
semanticName: "Internal Storage",
|
|
3464
|
+
name: "Window Pane",
|
|
3465
|
+
shortName: "win-pane",
|
|
3466
|
+
description: "Internal storage",
|
|
3467
|
+
aliases: ["internal-storage", "window-pane"],
|
|
3468
|
+
handler: Mt
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
semanticName: "Junction",
|
|
3472
|
+
name: "Filled Circle",
|
|
3473
|
+
shortName: "f-circ",
|
|
3474
|
+
description: "Junction point",
|
|
3475
|
+
aliases: ["junction", "filled-circle"],
|
|
3476
|
+
handler: Te
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
semanticName: "Loop Limit",
|
|
3480
|
+
name: "Trapezoidal Pentagon",
|
|
3481
|
+
shortName: "notch-pent",
|
|
3482
|
+
description: "Loop limit step",
|
|
3483
|
+
aliases: ["loop-limit", "notched-pentagon"],
|
|
3484
|
+
handler: Et
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
semanticName: "Manual File",
|
|
3488
|
+
name: "Flipped Triangle",
|
|
3489
|
+
shortName: "flip-tri",
|
|
3490
|
+
description: "Manual file operation",
|
|
3491
|
+
aliases: ["manual-file", "flipped-triangle"],
|
|
3492
|
+
handler: Oe
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
semanticName: "Manual Input",
|
|
3496
|
+
name: "Sloped Rectangle",
|
|
3497
|
+
shortName: "sl-rect",
|
|
3498
|
+
description: "Manual input step",
|
|
3499
|
+
aliases: ["manual-input", "sloped-rectangle"],
|
|
3500
|
+
handler: st
|
|
3501
|
+
},
|
|
3502
|
+
{
|
|
3503
|
+
semanticName: "Multi-Document",
|
|
3504
|
+
name: "Stacked Document",
|
|
3505
|
+
shortName: "docs",
|
|
3506
|
+
description: "Multiple documents",
|
|
3507
|
+
aliases: [
|
|
3508
|
+
"documents",
|
|
3509
|
+
"st-doc",
|
|
3510
|
+
"stacked-document"
|
|
3511
|
+
],
|
|
3512
|
+
handler: $e
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
semanticName: "Multi-Process",
|
|
3516
|
+
name: "Stacked Rectangle",
|
|
3517
|
+
shortName: "st-rect",
|
|
3518
|
+
description: "Multiple processes",
|
|
3519
|
+
aliases: [
|
|
3520
|
+
"procs",
|
|
3521
|
+
"processes",
|
|
3522
|
+
"stacked-rectangle"
|
|
3523
|
+
],
|
|
3524
|
+
handler: Qe
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
semanticName: "Stored Data",
|
|
3528
|
+
name: "Bow Tie Rectangle",
|
|
3529
|
+
shortName: "bow-rect",
|
|
3530
|
+
description: "Stored data",
|
|
3531
|
+
aliases: ["stored-data", "bow-tie-rectangle"],
|
|
3532
|
+
handler: oe
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
semanticName: "Summary",
|
|
3536
|
+
name: "Crossed Circle",
|
|
3537
|
+
shortName: "cross-circ",
|
|
3538
|
+
description: "Summary",
|
|
3539
|
+
aliases: ["summary", "crossed-circle"],
|
|
3540
|
+
handler: fe
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
semanticName: "Tagged Document",
|
|
3544
|
+
name: "Tagged Document",
|
|
3545
|
+
shortName: "tag-doc",
|
|
3546
|
+
description: "Tagged document",
|
|
3547
|
+
aliases: ["tag-doc", "tagged-document"],
|
|
3548
|
+
handler: _t
|
|
3549
|
+
},
|
|
3550
|
+
{
|
|
3551
|
+
semanticName: "Tagged Process",
|
|
3552
|
+
name: "Tagged Rectangle",
|
|
3553
|
+
shortName: "tag-rect",
|
|
3554
|
+
description: "Tagged process",
|
|
3555
|
+
aliases: [
|
|
3556
|
+
"tagged-rectangle",
|
|
3557
|
+
"tag-proc",
|
|
3558
|
+
"tagged-process"
|
|
3559
|
+
],
|
|
3560
|
+
handler: gt
|
|
3561
|
+
},
|
|
3562
|
+
{
|
|
3563
|
+
semanticName: "Paper Tape",
|
|
3564
|
+
name: "Flag",
|
|
3565
|
+
shortName: "flag",
|
|
3566
|
+
description: "Paper tape",
|
|
3567
|
+
aliases: ["paper-tape"],
|
|
3568
|
+
handler: jt
|
|
3569
|
+
},
|
|
3570
|
+
{
|
|
3571
|
+
semanticName: "Odd",
|
|
3572
|
+
name: "Odd",
|
|
3573
|
+
shortName: "odd",
|
|
3574
|
+
description: "Odd shape",
|
|
3575
|
+
internalAliases: ["rect_left_inv_arrow"],
|
|
3576
|
+
handler: rt
|
|
3577
|
+
},
|
|
3578
|
+
{
|
|
3579
|
+
semanticName: "Lined Document",
|
|
3580
|
+
name: "Lined Document",
|
|
3581
|
+
shortName: "lin-doc",
|
|
3582
|
+
description: "Lined document",
|
|
3583
|
+
aliases: ["lined-document"],
|
|
3584
|
+
handler: Ze
|
|
3585
|
+
}
|
|
3586
|
+
], Yt = (/* @__PURE__ */ e(() => {
|
|
3587
|
+
let e = [...Object.entries({
|
|
3588
|
+
state: ut,
|
|
3589
|
+
choice: le,
|
|
3590
|
+
note: et,
|
|
3591
|
+
rectWithTitle: it,
|
|
3592
|
+
labelRect: Ve,
|
|
3593
|
+
iconSquare: Le,
|
|
3594
|
+
iconCircle: Fe,
|
|
3595
|
+
icon: Pe,
|
|
3596
|
+
iconRounded: Ie,
|
|
3597
|
+
imageSquare: Re,
|
|
3598
|
+
anchor: G,
|
|
3599
|
+
kanbanItem: Ut,
|
|
3600
|
+
mindmapCircle: qt,
|
|
3601
|
+
defaultMindmapNode: Kt,
|
|
3602
|
+
classBox: Bt,
|
|
3603
|
+
erBox: Ft,
|
|
3604
|
+
requirementBox: Vt
|
|
3605
|
+
}), ...Jt.flatMap((e) => [
|
|
3606
|
+
e.shortName,
|
|
3607
|
+
..."aliases" in e ? e.aliases : [],
|
|
3608
|
+
..."internalAliases" in e ? e.internalAliases : []
|
|
3609
|
+
].map((t) => [t, e.handler]))];
|
|
3610
|
+
return Object.fromEntries(e);
|
|
3611
|
+
}, "generateShapeMap"))();
|
|
3612
|
+
function Xt(e) {
|
|
3613
|
+
return e in Yt;
|
|
3614
|
+
}
|
|
3615
|
+
e(Xt, "isValidShape");
|
|
3616
|
+
var Zt = /* @__PURE__ */ new Map();
|
|
3617
|
+
async function Qt(e, t, n) {
|
|
3618
|
+
let r, i;
|
|
3619
|
+
t.shape === "rect" && (t.rx && t.ry ? t.shape = "roundedRect" : t.shape = "squareRect");
|
|
3620
|
+
let a = t.shape ? Yt[t.shape] : void 0;
|
|
3621
|
+
if (!a) throw Error(`No such shape: ${t.shape}. Please check your syntax.`);
|
|
3622
|
+
if (t.link) {
|
|
3623
|
+
let o;
|
|
3624
|
+
n.config.securityLevel === "sandbox" ? o = "_top" : t.linkTarget && (o = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", o ?? null), i = await a(r, t, n);
|
|
3625
|
+
} else i = await a(e, t, n), r = i;
|
|
3626
|
+
return r.attr("data-look", p(t.look)), t.tooltip && i.attr("title", t.tooltip), Zt.set(t.id, r), t.haveCallback && r.attr("class", r.attr("class") + " clickable"), r;
|
|
3627
|
+
}
|
|
3628
|
+
e(Qt, "insertNode");
|
|
3629
|
+
var $t = /* @__PURE__ */ e((e, t) => {
|
|
3630
|
+
Zt.set(t.id, e);
|
|
3631
|
+
}, "setNodeElem"), en = /* @__PURE__ */ e(() => {
|
|
3632
|
+
Zt.clear();
|
|
3633
|
+
}, "clear"), tn = /* @__PURE__ */ e((e) => {
|
|
3634
|
+
let n = Zt.get(e.id);
|
|
3635
|
+
t.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
3636
|
+
let r = e.diff || 0;
|
|
3637
|
+
return e.clusterNode ? n.attr("transform", "translate(" + (e.x + r - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : n.attr("transform", "translate(" + e.x + ", " + e.y + ")"), r;
|
|
3638
|
+
}, "positionNode");
|
|
3639
|
+
//#endregion
|
|
3640
|
+
export { te as clear, en as clear2, M as createLabel_default, ee as insertCluster, Qt as insertNode, Xt as isValidShape, C as labelHelper, tn as positionNode, $t as setNodeElem, T as updateNodeBounds };
|