@loopstack/loopstack-studio 0.28.0 → 0.29.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 +13 -15
- package/dist/api/config.js +2 -2
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/NewRunDialog.js +2 -2
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/Workspaces.js +2 -2
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/query-keys.js +3 -3
- package/dist/hooks/useConfig.js +15 -15
- package/dist/index.d.ts +12 -12
- package/dist/index.js +3 -3
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +293 -205
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/DebugWorkflowDetailsPage.js +2 -2
- package/dist/pages/DebugWorkflowsPage.js +12 -12
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/dist/pages/WorkspacePage.js +2 -2
- package/package.json +2 -2
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __name, log } from "./chunk-AGHRB4JF.js";
|
|
2
2
|
import rgba_default from "../../../../khroma/dist/methods/rgba.js";
|
|
3
3
|
import channel_default from "../../../../khroma/dist/methods/channel.js";
|
|
4
|
-
import { clear, common_default, configureSvgSize, getConfig, getConfig2, getEffectiveHtmlLabels, getUrl, sanitizeText } from "./chunk-
|
|
4
|
+
import { clear, common_default, configureSvgSize, getConfig, getConfig2, getEffectiveHtmlLabels, getUrl, sanitizeText } from "./chunk-CSCIHK7Q.js";
|
|
5
5
|
import select_default from "../../../../d3-selection/src/select.js";
|
|
6
6
|
import line_default from "../../../../d3-shape/src/line.js";
|
|
7
7
|
import basis_default from "../../../../d3-shape/src/curve/basis.js";
|
|
8
8
|
import "../../../../d3/src/index.js";
|
|
9
9
|
import { computeLabelTransform, getLineFunctionsWithOffset } from "./chunk-BSJP7CBP.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { clone } from "../../../../es-toolkit/dist/compat/object/clone.js";
|
|
11
|
+
import { decodeEntities, getStylesFromArray, utils_default } from "./chunk-5ZQYHXKU.js";
|
|
12
|
+
import { configureLabelImages, getSubGraphTitleMargins } from "./chunk-L5ZTLDWV.js";
|
|
13
|
+
import { createText } from "./chunk-O5CBEL6O.js";
|
|
13
14
|
import { getIconStyles } from "./chunk-FMBD7UC4.js";
|
|
14
|
-
import clone_default from "../../../../lodash-es/clone.js";
|
|
15
15
|
import { Graph } from "../../../../dagre-d3-es/src/graphlib/graph.js";
|
|
16
16
|
import "../../../../dagre-d3-es/src/graphlib/index.js";
|
|
17
17
|
var parser = (function() {
|
|
@@ -241,7 +241,7 @@ var parser = (function() {
|
|
|
241
241
|
break;
|
|
242
242
|
case 23:
|
|
243
243
|
w.getLogger().debug("Rule: (nodeStatement link node) ", E[O - 2], E[O - 1], E[O], " typestr: ", E[O - 1].edgeTypeStr);
|
|
244
|
-
let C = w.edgeStrToEdgeData(E[O - 1].edgeTypeStr);
|
|
244
|
+
let C = w.edgeStrToEdgeData(E[O - 1].edgeTypeStr), T = w.edgeStrToEdgeStartData(E[O - 1].edgeTypeStr), D = w.edgeStrToThickness(E[O - 1].edgeTypeStr), k = w.edgeStrToPattern(E[O - 1].edgeTypeStr);
|
|
245
245
|
this.$ = [
|
|
246
246
|
{
|
|
247
247
|
id: E[O - 2].id,
|
|
@@ -255,9 +255,11 @@ var parser = (function() {
|
|
|
255
255
|
end: E[O].id,
|
|
256
256
|
label: E[O - 1].label,
|
|
257
257
|
type: "edge",
|
|
258
|
+
thickness: D,
|
|
259
|
+
pattern: k,
|
|
258
260
|
directions: E[O].directions,
|
|
259
261
|
arrowTypeEnd: C,
|
|
260
|
-
arrowTypeStart:
|
|
262
|
+
arrowTypeStart: T
|
|
261
263
|
},
|
|
262
264
|
{
|
|
263
265
|
id: E[O].id,
|
|
@@ -938,7 +940,7 @@ var parser = (function() {
|
|
|
938
940
|
/^(?:\[\\)/,
|
|
939
941
|
/^(?:\[)/,
|
|
940
942
|
/^(?:<\[)/,
|
|
941
|
-
/^(?:[^\(\[\n\-\)\{\}\s
|
|
943
|
+
/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
|
|
942
944
|
/^(?:$)/,
|
|
943
945
|
/^(?:["][`])/,
|
|
944
946
|
/^(?:["][`])/,
|
|
@@ -1204,7 +1206,7 @@ var block_default = parser, blockDatabase = /* @__PURE__ */ new Map(), edgeList
|
|
|
1204
1206
|
if (S === void 0 ? blockDatabase.set(e.id, e) : (e.type !== "na" && (S.type = e.type), e.label !== e.id && (S.label = e.label)), e.children && populateBlockDatabase(e.children, e), e.type === "space") {
|
|
1205
1207
|
let S = e.width ?? 1;
|
|
1206
1208
|
for (let C = 0; C < S; C++) {
|
|
1207
|
-
let S =
|
|
1209
|
+
let S = clone(e);
|
|
1208
1210
|
S.id = S.id + "-" + C, blockDatabase.set(S.id, S), T.push(S);
|
|
1209
1211
|
}
|
|
1210
1212
|
} else S === void 0 && T.push(e);
|
|
@@ -1253,7 +1255,7 @@ function edgeTypeStr2Type(e) {
|
|
|
1253
1255
|
}
|
|
1254
1256
|
__name(edgeTypeStr2Type, "edgeTypeStr2Type");
|
|
1255
1257
|
function edgeStrToEdgeData(e) {
|
|
1256
|
-
switch (e.
|
|
1258
|
+
switch (e.trim().slice(-1)) {
|
|
1257
1259
|
case "x": return "arrow_cross";
|
|
1258
1260
|
case "o": return "arrow_circle";
|
|
1259
1261
|
case ">": return "arrow_point";
|
|
@@ -1261,11 +1263,31 @@ function edgeStrToEdgeData(e) {
|
|
|
1261
1263
|
}
|
|
1262
1264
|
}
|
|
1263
1265
|
__name(edgeStrToEdgeData, "edgeStrToEdgeData");
|
|
1266
|
+
function edgeStrToEdgeStartData(e) {
|
|
1267
|
+
switch (e.trim().charAt(0)) {
|
|
1268
|
+
case "x": return "arrow_cross";
|
|
1269
|
+
case "o": return "arrow_circle";
|
|
1270
|
+
case "<": return "arrow_point";
|
|
1271
|
+
default: return "arrow_open";
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
__name(edgeStrToEdgeStartData, "edgeStrToEdgeStartData");
|
|
1275
|
+
function edgeStrToThickness(e) {
|
|
1276
|
+
return e.includes("==") ? "thick" : "normal";
|
|
1277
|
+
}
|
|
1278
|
+
__name(edgeStrToThickness, "edgeStrToThickness");
|
|
1279
|
+
function edgeStrToPattern(e) {
|
|
1280
|
+
return e.includes(".-") ? "dotted" : "solid";
|
|
1281
|
+
}
|
|
1282
|
+
__name(edgeStrToPattern, "edgeStrToPattern");
|
|
1264
1283
|
var cnt = 0, blockDB_default = {
|
|
1265
1284
|
getConfig: /* @__PURE__ */ __name(() => getConfig().block, "getConfig"),
|
|
1266
1285
|
typeStr2Type,
|
|
1267
1286
|
edgeTypeStr2Type,
|
|
1268
1287
|
edgeStrToEdgeData,
|
|
1288
|
+
edgeStrToEdgeStartData,
|
|
1289
|
+
edgeStrToThickness,
|
|
1290
|
+
edgeStrToPattern,
|
|
1269
1291
|
getLogger: /* @__PURE__ */ __name(() => log, "getLogger"),
|
|
1270
1292
|
getBlocksFlat: /* @__PURE__ */ __name(() => [...blockDatabase.values()], "getBlocksFlat"),
|
|
1271
1293
|
getBlocks: /* @__PURE__ */ __name(() => blocks || [], "getBlocks"),
|
|
@@ -1473,7 +1495,9 @@ var getMaxChildSize = /* @__PURE__ */ __name((e) => {
|
|
|
1473
1495
|
x: 0,
|
|
1474
1496
|
y: 0
|
|
1475
1497
|
};
|
|
1476
|
-
log.debug("getMaxChildSize abc95 child:", T.id, "width:", e, "height:", E, "x:", D, "y:", O, T.type), T.type
|
|
1498
|
+
if (log.debug("getMaxChildSize abc95 child:", T.id, "width:", e, "height:", E, "x:", D, "y:", O, T.type), T.type === "space") continue;
|
|
1499
|
+
let k = e / (T.widthInColumns ?? 1);
|
|
1500
|
+
k > C && (C = k), E > w && (w = E);
|
|
1477
1501
|
}
|
|
1478
1502
|
return {
|
|
1479
1503
|
width: C,
|
|
@@ -1667,8 +1691,8 @@ var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w = !1, T = !1)
|
|
|
1667
1691
|
T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startLeft = C, setTerminalWidth(P, S.startLabelLeft);
|
|
1668
1692
|
}
|
|
1669
1693
|
if (S.startLabelRight) {
|
|
1670
|
-
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(
|
|
1671
|
-
P = E
|
|
1694
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(T, S.startLabelRight, S.labelStyle);
|
|
1695
|
+
P = E;
|
|
1672
1696
|
let D = E.getBBox();
|
|
1673
1697
|
if (w) {
|
|
1674
1698
|
let e = E.children[0], S = select_default(E);
|
|
@@ -1677,24 +1701,24 @@ var createLabel_default = /* @__PURE__ */ __name(async (e, S, C, w = !1, T = !1)
|
|
|
1677
1701
|
T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].startRight = C, setTerminalWidth(P, S.startLabelRight);
|
|
1678
1702
|
}
|
|
1679
1703
|
if (S.endLabelLeft) {
|
|
1680
|
-
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(
|
|
1704
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(C, S.endLabelLeft, S.labelStyle);
|
|
1681
1705
|
P = E;
|
|
1682
1706
|
let D = E.getBBox();
|
|
1683
1707
|
if (w) {
|
|
1684
1708
|
let e = E.children[0], S = select_default(E);
|
|
1685
1709
|
D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
|
|
1686
1710
|
}
|
|
1687
|
-
T.attr("transform", computeLabelTransform(D, w)),
|
|
1711
|
+
T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endLeft = C, setTerminalWidth(P, S.endLabelLeft);
|
|
1688
1712
|
}
|
|
1689
1713
|
if (S.endLabelRight) {
|
|
1690
|
-
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(
|
|
1714
|
+
let C = e.insert("g").attr("class", "edgeTerminals"), T = C.insert("g").attr("class", "inner"), E = await createLabel_default(C, S.endLabelRight, S.labelStyle);
|
|
1691
1715
|
P = E;
|
|
1692
1716
|
let D = E.getBBox();
|
|
1693
1717
|
if (w) {
|
|
1694
1718
|
let e = E.children[0], S = select_default(E);
|
|
1695
1719
|
D = e.getBoundingClientRect(), S.attr("width", D.width), S.attr("height", D.height);
|
|
1696
1720
|
}
|
|
1697
|
-
T.attr("transform", computeLabelTransform(D, w)),
|
|
1721
|
+
T.attr("transform", computeLabelTransform(D, w)), terminalLabels[S.id] || (terminalLabels[S.id] = {}), terminalLabels[S.id].endRight = C, setTerminalWidth(P, S.endLabelRight);
|
|
1698
1722
|
}
|
|
1699
1723
|
return O;
|
|
1700
1724
|
}, "insertEdgeLabel");
|
|
@@ -1834,273 +1858,273 @@ var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
|
|
|
1834
1858
|
break;
|
|
1835
1859
|
}
|
|
1836
1860
|
return S;
|
|
1837
|
-
}, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C) => {
|
|
1838
|
-
let
|
|
1839
|
-
return
|
|
1861
|
+
}, "expandAndDeduplicateDirections"), getArrowPoints = /* @__PURE__ */ __name((e, S, C, w) => {
|
|
1862
|
+
let T = expandAndDeduplicateDirections(e), E = S.height + 2 * C.padding, D = E / 2, O = w ?? S.width + 2 * D + C.padding, k = C.padding / 2;
|
|
1863
|
+
return T.has("right") && T.has("left") && T.has("up") && T.has("down") ? [
|
|
1840
1864
|
{
|
|
1841
1865
|
x: 0,
|
|
1842
1866
|
y: 0
|
|
1843
1867
|
},
|
|
1844
1868
|
{
|
|
1845
|
-
x:
|
|
1869
|
+
x: D,
|
|
1846
1870
|
y: 0
|
|
1847
1871
|
},
|
|
1848
1872
|
{
|
|
1849
|
-
x:
|
|
1850
|
-
y: 2 *
|
|
1873
|
+
x: O / 2,
|
|
1874
|
+
y: 2 * k
|
|
1851
1875
|
},
|
|
1852
1876
|
{
|
|
1853
|
-
x:
|
|
1877
|
+
x: O - D,
|
|
1854
1878
|
y: 0
|
|
1855
1879
|
},
|
|
1856
1880
|
{
|
|
1857
|
-
x:
|
|
1881
|
+
x: O,
|
|
1858
1882
|
y: 0
|
|
1859
1883
|
},
|
|
1860
1884
|
{
|
|
1861
|
-
x:
|
|
1862
|
-
y: -
|
|
1885
|
+
x: O,
|
|
1886
|
+
y: -E / 3
|
|
1863
1887
|
},
|
|
1864
1888
|
{
|
|
1865
|
-
x:
|
|
1866
|
-
y: -
|
|
1889
|
+
x: O + 2 * k,
|
|
1890
|
+
y: -E / 2
|
|
1867
1891
|
},
|
|
1868
1892
|
{
|
|
1869
|
-
x:
|
|
1870
|
-
y: -2 *
|
|
1893
|
+
x: O,
|
|
1894
|
+
y: -2 * E / 3
|
|
1871
1895
|
},
|
|
1872
1896
|
{
|
|
1873
|
-
x:
|
|
1874
|
-
y: -
|
|
1897
|
+
x: O,
|
|
1898
|
+
y: -E
|
|
1875
1899
|
},
|
|
1876
1900
|
{
|
|
1877
|
-
x:
|
|
1878
|
-
y: -
|
|
1901
|
+
x: O - D,
|
|
1902
|
+
y: -E
|
|
1879
1903
|
},
|
|
1880
1904
|
{
|
|
1881
|
-
x:
|
|
1882
|
-
y: -
|
|
1905
|
+
x: O / 2,
|
|
1906
|
+
y: -E - 2 * k
|
|
1883
1907
|
},
|
|
1884
1908
|
{
|
|
1885
|
-
x:
|
|
1886
|
-
y: -
|
|
1909
|
+
x: D,
|
|
1910
|
+
y: -E
|
|
1887
1911
|
},
|
|
1888
1912
|
{
|
|
1889
1913
|
x: 0,
|
|
1890
|
-
y: -
|
|
1914
|
+
y: -E
|
|
1891
1915
|
},
|
|
1892
1916
|
{
|
|
1893
1917
|
x: 0,
|
|
1894
|
-
y: -2 *
|
|
1918
|
+
y: -2 * E / 3
|
|
1895
1919
|
},
|
|
1896
1920
|
{
|
|
1897
|
-
x: -2 *
|
|
1898
|
-
y: -
|
|
1921
|
+
x: -2 * k,
|
|
1922
|
+
y: -E / 2
|
|
1899
1923
|
},
|
|
1900
1924
|
{
|
|
1901
1925
|
x: 0,
|
|
1902
|
-
y: -
|
|
1926
|
+
y: -E / 3
|
|
1903
1927
|
}
|
|
1904
|
-
] :
|
|
1928
|
+
] : T.has("right") && T.has("left") && T.has("up") ? [
|
|
1905
1929
|
{
|
|
1906
|
-
x:
|
|
1930
|
+
x: D,
|
|
1907
1931
|
y: 0
|
|
1908
1932
|
},
|
|
1909
1933
|
{
|
|
1910
|
-
x:
|
|
1934
|
+
x: O - D,
|
|
1911
1935
|
y: 0
|
|
1912
1936
|
},
|
|
1913
1937
|
{
|
|
1914
|
-
x:
|
|
1915
|
-
y: -
|
|
1938
|
+
x: O,
|
|
1939
|
+
y: -E / 2
|
|
1916
1940
|
},
|
|
1917
1941
|
{
|
|
1918
|
-
x:
|
|
1919
|
-
y: -
|
|
1942
|
+
x: O - D,
|
|
1943
|
+
y: -E
|
|
1920
1944
|
},
|
|
1921
1945
|
{
|
|
1922
|
-
x:
|
|
1923
|
-
y: -
|
|
1946
|
+
x: D,
|
|
1947
|
+
y: -E
|
|
1924
1948
|
},
|
|
1925
1949
|
{
|
|
1926
1950
|
x: 0,
|
|
1927
|
-
y: -
|
|
1951
|
+
y: -E / 2
|
|
1928
1952
|
}
|
|
1929
|
-
] :
|
|
1953
|
+
] : T.has("right") && T.has("left") && T.has("down") ? [
|
|
1930
1954
|
{
|
|
1931
1955
|
x: 0,
|
|
1932
1956
|
y: 0
|
|
1933
1957
|
},
|
|
1934
1958
|
{
|
|
1935
|
-
x:
|
|
1936
|
-
y: -
|
|
1959
|
+
x: D,
|
|
1960
|
+
y: -E
|
|
1937
1961
|
},
|
|
1938
1962
|
{
|
|
1939
|
-
x:
|
|
1940
|
-
y: -
|
|
1963
|
+
x: O - D,
|
|
1964
|
+
y: -E
|
|
1941
1965
|
},
|
|
1942
1966
|
{
|
|
1943
|
-
x:
|
|
1967
|
+
x: O,
|
|
1944
1968
|
y: 0
|
|
1945
1969
|
}
|
|
1946
|
-
] :
|
|
1970
|
+
] : T.has("right") && T.has("up") && T.has("down") ? [
|
|
1947
1971
|
{
|
|
1948
1972
|
x: 0,
|
|
1949
1973
|
y: 0
|
|
1950
1974
|
},
|
|
1951
1975
|
{
|
|
1952
|
-
x:
|
|
1953
|
-
y: -
|
|
1976
|
+
x: O,
|
|
1977
|
+
y: -D
|
|
1954
1978
|
},
|
|
1955
1979
|
{
|
|
1956
|
-
x:
|
|
1957
|
-
y: -
|
|
1980
|
+
x: O,
|
|
1981
|
+
y: -E + D
|
|
1958
1982
|
},
|
|
1959
1983
|
{
|
|
1960
1984
|
x: 0,
|
|
1961
|
-
y: -
|
|
1985
|
+
y: -E
|
|
1962
1986
|
}
|
|
1963
|
-
] :
|
|
1987
|
+
] : T.has("left") && T.has("up") && T.has("down") ? [
|
|
1964
1988
|
{
|
|
1965
|
-
x:
|
|
1989
|
+
x: O,
|
|
1966
1990
|
y: 0
|
|
1967
1991
|
},
|
|
1968
1992
|
{
|
|
1969
1993
|
x: 0,
|
|
1970
|
-
y: -
|
|
1994
|
+
y: -D
|
|
1971
1995
|
},
|
|
1972
1996
|
{
|
|
1973
1997
|
x: 0,
|
|
1974
|
-
y: -
|
|
1998
|
+
y: -E + D
|
|
1975
1999
|
},
|
|
1976
2000
|
{
|
|
1977
|
-
x:
|
|
1978
|
-
y: -
|
|
2001
|
+
x: O,
|
|
2002
|
+
y: -E
|
|
1979
2003
|
}
|
|
1980
|
-
] :
|
|
2004
|
+
] : T.has("right") && T.has("left") ? [
|
|
1981
2005
|
{
|
|
1982
|
-
x:
|
|
2006
|
+
x: D,
|
|
1983
2007
|
y: 0
|
|
1984
2008
|
},
|
|
1985
2009
|
{
|
|
1986
|
-
x:
|
|
1987
|
-
y: -
|
|
2010
|
+
x: D,
|
|
2011
|
+
y: -k
|
|
1988
2012
|
},
|
|
1989
2013
|
{
|
|
1990
|
-
x:
|
|
1991
|
-
y: -
|
|
2014
|
+
x: O - D,
|
|
2015
|
+
y: -k
|
|
1992
2016
|
},
|
|
1993
2017
|
{
|
|
1994
|
-
x:
|
|
2018
|
+
x: O - D,
|
|
1995
2019
|
y: 0
|
|
1996
2020
|
},
|
|
1997
2021
|
{
|
|
1998
|
-
x:
|
|
1999
|
-
y: -
|
|
2022
|
+
x: O,
|
|
2023
|
+
y: -E / 2
|
|
2000
2024
|
},
|
|
2001
2025
|
{
|
|
2002
|
-
x:
|
|
2003
|
-
y: -
|
|
2026
|
+
x: O - D,
|
|
2027
|
+
y: -E
|
|
2004
2028
|
},
|
|
2005
2029
|
{
|
|
2006
|
-
x:
|
|
2007
|
-
y: -
|
|
2030
|
+
x: O - D,
|
|
2031
|
+
y: -E + k
|
|
2008
2032
|
},
|
|
2009
2033
|
{
|
|
2010
|
-
x:
|
|
2011
|
-
y: -
|
|
2034
|
+
x: D,
|
|
2035
|
+
y: -E + k
|
|
2012
2036
|
},
|
|
2013
2037
|
{
|
|
2014
|
-
x:
|
|
2015
|
-
y: -
|
|
2038
|
+
x: D,
|
|
2039
|
+
y: -E
|
|
2016
2040
|
},
|
|
2017
2041
|
{
|
|
2018
2042
|
x: 0,
|
|
2019
|
-
y: -
|
|
2043
|
+
y: -E / 2
|
|
2020
2044
|
}
|
|
2021
|
-
] :
|
|
2045
|
+
] : T.has("up") && T.has("down") ? [
|
|
2022
2046
|
{
|
|
2023
|
-
x:
|
|
2047
|
+
x: O / 2,
|
|
2024
2048
|
y: 0
|
|
2025
2049
|
},
|
|
2026
2050
|
{
|
|
2027
2051
|
x: 0,
|
|
2028
|
-
y: -
|
|
2052
|
+
y: -k
|
|
2029
2053
|
},
|
|
2030
2054
|
{
|
|
2031
|
-
x:
|
|
2032
|
-
y: -
|
|
2055
|
+
x: D,
|
|
2056
|
+
y: -k
|
|
2033
2057
|
},
|
|
2034
2058
|
{
|
|
2035
|
-
x:
|
|
2036
|
-
y: -
|
|
2059
|
+
x: D,
|
|
2060
|
+
y: -E + k
|
|
2037
2061
|
},
|
|
2038
2062
|
{
|
|
2039
2063
|
x: 0,
|
|
2040
|
-
y: -
|
|
2064
|
+
y: -E + k
|
|
2041
2065
|
},
|
|
2042
2066
|
{
|
|
2043
|
-
x:
|
|
2044
|
-
y: -
|
|
2067
|
+
x: O / 2,
|
|
2068
|
+
y: -E
|
|
2045
2069
|
},
|
|
2046
2070
|
{
|
|
2047
|
-
x:
|
|
2048
|
-
y: -
|
|
2071
|
+
x: O,
|
|
2072
|
+
y: -E + k
|
|
2049
2073
|
},
|
|
2050
2074
|
{
|
|
2051
|
-
x:
|
|
2052
|
-
y: -
|
|
2075
|
+
x: O - D,
|
|
2076
|
+
y: -E + k
|
|
2053
2077
|
},
|
|
2054
2078
|
{
|
|
2055
|
-
x:
|
|
2056
|
-
y: -
|
|
2079
|
+
x: O - D,
|
|
2080
|
+
y: -k
|
|
2057
2081
|
},
|
|
2058
2082
|
{
|
|
2059
|
-
x:
|
|
2060
|
-
y: -
|
|
2083
|
+
x: O,
|
|
2084
|
+
y: -k
|
|
2061
2085
|
}
|
|
2062
|
-
] :
|
|
2086
|
+
] : T.has("right") && T.has("up") ? [
|
|
2063
2087
|
{
|
|
2064
2088
|
x: 0,
|
|
2065
2089
|
y: 0
|
|
2066
2090
|
},
|
|
2067
2091
|
{
|
|
2068
|
-
x:
|
|
2069
|
-
y: -
|
|
2092
|
+
x: O,
|
|
2093
|
+
y: -D
|
|
2070
2094
|
},
|
|
2071
2095
|
{
|
|
2072
2096
|
x: 0,
|
|
2073
|
-
y: -
|
|
2097
|
+
y: -E
|
|
2074
2098
|
}
|
|
2075
|
-
] :
|
|
2099
|
+
] : T.has("right") && T.has("down") ? [
|
|
2076
2100
|
{
|
|
2077
2101
|
x: 0,
|
|
2078
2102
|
y: 0
|
|
2079
2103
|
},
|
|
2080
2104
|
{
|
|
2081
|
-
x:
|
|
2105
|
+
x: O,
|
|
2082
2106
|
y: 0
|
|
2083
2107
|
},
|
|
2084
2108
|
{
|
|
2085
2109
|
x: 0,
|
|
2086
|
-
y: -
|
|
2110
|
+
y: -E
|
|
2087
2111
|
}
|
|
2088
|
-
] :
|
|
2112
|
+
] : T.has("left") && T.has("up") ? [
|
|
2089
2113
|
{
|
|
2090
|
-
x:
|
|
2114
|
+
x: O,
|
|
2091
2115
|
y: 0
|
|
2092
2116
|
},
|
|
2093
2117
|
{
|
|
2094
2118
|
x: 0,
|
|
2095
|
-
y: -
|
|
2119
|
+
y: -D
|
|
2096
2120
|
},
|
|
2097
2121
|
{
|
|
2098
|
-
x:
|
|
2099
|
-
y: -
|
|
2122
|
+
x: O,
|
|
2123
|
+
y: -E
|
|
2100
2124
|
}
|
|
2101
|
-
] :
|
|
2125
|
+
] : T.has("left") && T.has("down") ? [
|
|
2102
2126
|
{
|
|
2103
|
-
x:
|
|
2127
|
+
x: O,
|
|
2104
2128
|
y: 0
|
|
2105
2129
|
},
|
|
2106
2130
|
{
|
|
@@ -2108,132 +2132,132 @@ var positionEdgeLabel = /* @__PURE__ */ __name((e, C) => {
|
|
|
2108
2132
|
y: 0
|
|
2109
2133
|
},
|
|
2110
2134
|
{
|
|
2111
|
-
x:
|
|
2112
|
-
y: -
|
|
2135
|
+
x: O,
|
|
2136
|
+
y: -E
|
|
2113
2137
|
}
|
|
2114
|
-
] :
|
|
2138
|
+
] : T.has("right") ? [
|
|
2115
2139
|
{
|
|
2116
|
-
x:
|
|
2117
|
-
y: -
|
|
2140
|
+
x: D,
|
|
2141
|
+
y: -k
|
|
2118
2142
|
},
|
|
2119
2143
|
{
|
|
2120
|
-
x:
|
|
2121
|
-
y: -
|
|
2144
|
+
x: D,
|
|
2145
|
+
y: -k
|
|
2122
2146
|
},
|
|
2123
2147
|
{
|
|
2124
|
-
x:
|
|
2125
|
-
y: -
|
|
2148
|
+
x: O - D,
|
|
2149
|
+
y: -k
|
|
2126
2150
|
},
|
|
2127
2151
|
{
|
|
2128
|
-
x:
|
|
2152
|
+
x: O - D,
|
|
2129
2153
|
y: 0
|
|
2130
2154
|
},
|
|
2131
2155
|
{
|
|
2132
|
-
x:
|
|
2133
|
-
y: -
|
|
2156
|
+
x: O,
|
|
2157
|
+
y: -E / 2
|
|
2134
2158
|
},
|
|
2135
2159
|
{
|
|
2136
|
-
x:
|
|
2137
|
-
y: -
|
|
2160
|
+
x: O - D,
|
|
2161
|
+
y: -E
|
|
2138
2162
|
},
|
|
2139
2163
|
{
|
|
2140
|
-
x:
|
|
2141
|
-
y: -
|
|
2164
|
+
x: O - D,
|
|
2165
|
+
y: -E + k
|
|
2142
2166
|
},
|
|
2143
2167
|
{
|
|
2144
|
-
x:
|
|
2145
|
-
y: -
|
|
2168
|
+
x: D,
|
|
2169
|
+
y: -E + k
|
|
2146
2170
|
},
|
|
2147
2171
|
{
|
|
2148
|
-
x:
|
|
2149
|
-
y: -
|
|
2172
|
+
x: D,
|
|
2173
|
+
y: -E + k
|
|
2150
2174
|
}
|
|
2151
|
-
] :
|
|
2175
|
+
] : T.has("left") ? [
|
|
2152
2176
|
{
|
|
2153
|
-
x:
|
|
2177
|
+
x: D,
|
|
2154
2178
|
y: 0
|
|
2155
2179
|
},
|
|
2156
2180
|
{
|
|
2157
|
-
x:
|
|
2158
|
-
y: -
|
|
2181
|
+
x: D,
|
|
2182
|
+
y: -k
|
|
2159
2183
|
},
|
|
2160
2184
|
{
|
|
2161
|
-
x:
|
|
2162
|
-
y: -
|
|
2185
|
+
x: O - D,
|
|
2186
|
+
y: -k
|
|
2163
2187
|
},
|
|
2164
2188
|
{
|
|
2165
|
-
x:
|
|
2166
|
-
y: -
|
|
2189
|
+
x: O - D,
|
|
2190
|
+
y: -E + k
|
|
2167
2191
|
},
|
|
2168
2192
|
{
|
|
2169
|
-
x:
|
|
2170
|
-
y: -
|
|
2193
|
+
x: D,
|
|
2194
|
+
y: -E + k
|
|
2171
2195
|
},
|
|
2172
2196
|
{
|
|
2173
|
-
x:
|
|
2174
|
-
y: -
|
|
2197
|
+
x: D,
|
|
2198
|
+
y: -E
|
|
2175
2199
|
},
|
|
2176
2200
|
{
|
|
2177
2201
|
x: 0,
|
|
2178
|
-
y: -
|
|
2202
|
+
y: -E / 2
|
|
2179
2203
|
}
|
|
2180
|
-
] :
|
|
2204
|
+
] : T.has("up") ? [
|
|
2181
2205
|
{
|
|
2182
|
-
x:
|
|
2183
|
-
y: -
|
|
2206
|
+
x: D,
|
|
2207
|
+
y: -k
|
|
2184
2208
|
},
|
|
2185
2209
|
{
|
|
2186
|
-
x:
|
|
2187
|
-
y: -
|
|
2210
|
+
x: D,
|
|
2211
|
+
y: -E + k
|
|
2188
2212
|
},
|
|
2189
2213
|
{
|
|
2190
2214
|
x: 0,
|
|
2191
|
-
y: -
|
|
2215
|
+
y: -E + k
|
|
2192
2216
|
},
|
|
2193
2217
|
{
|
|
2194
|
-
x:
|
|
2195
|
-
y: -
|
|
2218
|
+
x: O / 2,
|
|
2219
|
+
y: -E
|
|
2196
2220
|
},
|
|
2197
2221
|
{
|
|
2198
|
-
x:
|
|
2199
|
-
y: -
|
|
2222
|
+
x: O,
|
|
2223
|
+
y: -E + k
|
|
2200
2224
|
},
|
|
2201
2225
|
{
|
|
2202
|
-
x:
|
|
2203
|
-
y: -
|
|
2226
|
+
x: O - D,
|
|
2227
|
+
y: -E + k
|
|
2204
2228
|
},
|
|
2205
2229
|
{
|
|
2206
|
-
x:
|
|
2207
|
-
y: -
|
|
2230
|
+
x: O - D,
|
|
2231
|
+
y: -k
|
|
2208
2232
|
}
|
|
2209
|
-
] :
|
|
2233
|
+
] : T.has("down") ? [
|
|
2210
2234
|
{
|
|
2211
|
-
x:
|
|
2235
|
+
x: O / 2,
|
|
2212
2236
|
y: 0
|
|
2213
2237
|
},
|
|
2214
2238
|
{
|
|
2215
2239
|
x: 0,
|
|
2216
|
-
y: -
|
|
2240
|
+
y: -k
|
|
2217
2241
|
},
|
|
2218
2242
|
{
|
|
2219
|
-
x:
|
|
2220
|
-
y: -
|
|
2243
|
+
x: D,
|
|
2244
|
+
y: -k
|
|
2221
2245
|
},
|
|
2222
2246
|
{
|
|
2223
|
-
x:
|
|
2224
|
-
y: -
|
|
2247
|
+
x: D,
|
|
2248
|
+
y: -E + k
|
|
2225
2249
|
},
|
|
2226
2250
|
{
|
|
2227
|
-
x:
|
|
2228
|
-
y: -
|
|
2251
|
+
x: O - D,
|
|
2252
|
+
y: -E + k
|
|
2229
2253
|
},
|
|
2230
2254
|
{
|
|
2231
|
-
x:
|
|
2232
|
-
y: -
|
|
2255
|
+
x: O - D,
|
|
2256
|
+
y: -k
|
|
2233
2257
|
},
|
|
2234
2258
|
{
|
|
2235
|
-
x:
|
|
2236
|
-
y: -
|
|
2259
|
+
x: O,
|
|
2260
|
+
y: -k
|
|
2237
2261
|
}
|
|
2238
2262
|
] : [{
|
|
2239
2263
|
x: 0,
|
|
@@ -2396,7 +2420,7 @@ var note_default = /* @__PURE__ */ __name(async (e, C) => {
|
|
|
2396
2420
|
return intersect_default.circle(S, 14, e);
|
|
2397
2421
|
}, C;
|
|
2398
2422
|
}, "choice"), hexagon = /* @__PURE__ */ __name(async (e, S) => {
|
|
2399
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.height + S.padding, E = T / 4, D = w.width + 2 * E + S.padding, O = [
|
|
2423
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = S.positioned ? S.height : w.height + S.padding, E = T / 4, D = S.positioned ? S.width : w.width + 2 * E + S.padding, O = [
|
|
2400
2424
|
{
|
|
2401
2425
|
x: E,
|
|
2402
2426
|
y: 0
|
|
@@ -2426,9 +2450,9 @@ var note_default = /* @__PURE__ */ __name(async (e, C) => {
|
|
|
2426
2450
|
return intersect_default.polygon(S, O, e);
|
|
2427
2451
|
}, C;
|
|
2428
2452
|
}, "hexagon"), block_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2429
|
-
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, !0), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = getArrowPoints(S.directions, w, S),
|
|
2430
|
-
return
|
|
2431
|
-
return intersect_default.polygon(S,
|
|
2453
|
+
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, void 0, !0), T = w.height + 2 * S.padding, E = T / 2, D = w.width + 2 * E + S.padding, O = S.positioned && (S.widthInColumns ?? 1) > 1 && S.width > D ? S.width : D, k = getArrowPoints(S.directions, w, S, O), A = insertPolygonShape(C, O, T, k);
|
|
2454
|
+
return A.attr("style", S.style), updateNodeBounds(S, A), S.intersect = function(e) {
|
|
2455
|
+
return intersect_default.polygon(S, k, e);
|
|
2432
2456
|
}, C;
|
|
2433
2457
|
}, "block_arrow"), rect_left_inv_arrow = /* @__PURE__ */ __name(async (e, S) => {
|
|
2434
2458
|
let { shapeSvg: C, bbox: w } = await labelHelper(e, S, getClassesFromNode(S, void 0), !0), T = w.width + S.padding, E = w.height + S.padding, D = [
|
|
@@ -2908,7 +2932,8 @@ function getNodeFromBlock(e, S, C = !1) {
|
|
|
2908
2932
|
positioned: C,
|
|
2909
2933
|
intersect: void 0,
|
|
2910
2934
|
type: w.type,
|
|
2911
|
-
padding: k ?? getConfig()?.block?.padding ?? 0
|
|
2935
|
+
padding: k ?? getConfig()?.block?.padding ?? 0,
|
|
2936
|
+
widthInColumns: w.widthInColumns ?? 1
|
|
2912
2937
|
};
|
|
2913
2938
|
}
|
|
2914
2939
|
__name(getNodeFromBlock, "getNodeFromBlock");
|
|
@@ -2975,7 +3000,7 @@ async function insertEdges(e, S, C, w, T) {
|
|
|
2975
3000
|
x: O.x,
|
|
2976
3001
|
y: O.y
|
|
2977
3002
|
}
|
|
2978
|
-
], A = T ? `${T}-${C.id}` : C.id
|
|
3003
|
+
], A = T ? `${T}-${C.id}` : C.id, j = `${C.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${C.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
|
|
2979
3004
|
insertEdge(e, {
|
|
2980
3005
|
v: C.start,
|
|
2981
3006
|
w: C.end,
|
|
@@ -2986,7 +3011,7 @@ async function insertEdges(e, S, C, w, T) {
|
|
|
2986
3011
|
arrowTypeEnd: C.arrowTypeEnd,
|
|
2987
3012
|
arrowTypeStart: C.arrowTypeStart,
|
|
2988
3013
|
points: k,
|
|
2989
|
-
classes:
|
|
3014
|
+
classes: j
|
|
2990
3015
|
}, void 0, "block", E, T), C.label && (await insertEdgeLabel(e, {
|
|
2991
3016
|
...C,
|
|
2992
3017
|
label: C.label,
|
|
@@ -2994,7 +3019,7 @@ async function insertEdges(e, S, C, w, T) {
|
|
|
2994
3019
|
arrowTypeEnd: C.arrowTypeEnd,
|
|
2995
3020
|
arrowTypeStart: C.arrowTypeStart,
|
|
2996
3021
|
points: k,
|
|
2997
|
-
classes:
|
|
3022
|
+
classes: j
|
|
2998
3023
|
}), positionEdgeLabel({
|
|
2999
3024
|
...C,
|
|
3000
3025
|
x: k[1].x,
|