@loopstack/loopstack-studio 0.28.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +13 -15
- 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/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/components/ExecutionTimeline.js +9 -8
- 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/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- 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,15 +1,15 @@
|
|
|
1
1
|
import constant_default from "../../../lodash-es/constant.js";
|
|
2
|
-
import map_default from "../../../lodash-es/map.js";
|
|
3
2
|
import flatten_default from "../../../lodash-es/flatten.js";
|
|
4
3
|
import forEach_default from "../../../lodash-es/forEach.js";
|
|
4
|
+
import map_default from "../../../lodash-es/map.js";
|
|
5
5
|
import range_default from "../../../lodash-es/range.js";
|
|
6
6
|
import { Graph } from "../graphlib/graph.js";
|
|
7
7
|
import "../graphlib/index.js";
|
|
8
8
|
import { List } from "./data/list.js";
|
|
9
9
|
var DEFAULT_WEIGHT_FN = constant_default(1);
|
|
10
|
-
function greedyFAS(e,
|
|
10
|
+
function greedyFAS(e, i) {
|
|
11
11
|
if (e.nodeCount() <= 1) return [];
|
|
12
|
-
var o = buildState(e,
|
|
12
|
+
var o = buildState(e, i || DEFAULT_WEIGHT_FN);
|
|
13
13
|
return flatten_default(map_default(doGreedyFAS(o.graph, o.buckets, o.zeroIdx), function(r) {
|
|
14
14
|
return e.outEdges(r.v, r.w);
|
|
15
15
|
}));
|
|
@@ -27,38 +27,38 @@ function doGreedyFAS(e, r, i) {
|
|
|
27
27
|
}
|
|
28
28
|
return a;
|
|
29
29
|
}
|
|
30
|
-
function removeNode(e, r,
|
|
30
|
+
function removeNode(e, r, a, o, s) {
|
|
31
31
|
var c = s ? [] : void 0;
|
|
32
|
-
return forEach_default(e.inEdges(o.v), function(
|
|
33
|
-
var o = e.edge(
|
|
32
|
+
return forEach_default(e.inEdges(o.v), function(i) {
|
|
33
|
+
var o = e.edge(i), l = e.node(i.v);
|
|
34
34
|
s && c.push({
|
|
35
|
-
v:
|
|
36
|
-
w:
|
|
37
|
-
}), l.out -= o, assignBucket(r,
|
|
38
|
-
}), forEach_default(e.outEdges(o.v), function(
|
|
39
|
-
var o = e.edge(
|
|
40
|
-
c.in -= o, assignBucket(r,
|
|
35
|
+
v: i.v,
|
|
36
|
+
w: i.w
|
|
37
|
+
}), l.out -= o, assignBucket(r, a, l);
|
|
38
|
+
}), forEach_default(e.outEdges(o.v), function(i) {
|
|
39
|
+
var o = e.edge(i), s = i.w, c = e.node(s);
|
|
40
|
+
c.in -= o, assignBucket(r, a, c);
|
|
41
41
|
}), e.removeNode(o.v), c;
|
|
42
42
|
}
|
|
43
43
|
function buildState(e, r) {
|
|
44
|
-
var
|
|
44
|
+
var a = new Graph(), l = 0, u = 0;
|
|
45
45
|
forEach_default(e.nodes(), function(e) {
|
|
46
|
-
|
|
46
|
+
a.setNode(e, {
|
|
47
47
|
v: e,
|
|
48
48
|
in: 0,
|
|
49
49
|
out: 0
|
|
50
50
|
});
|
|
51
51
|
}), forEach_default(e.edges(), function(e) {
|
|
52
|
-
var
|
|
53
|
-
|
|
52
|
+
var i = a.edge(e.v, e.w) || 0, o = r(e), s = i + o;
|
|
53
|
+
a.setEdge(e.v, e.w, s), u = Math.max(u, a.node(e.v).out += o), l = Math.max(l, a.node(e.w).in += o);
|
|
54
54
|
});
|
|
55
55
|
var d = range_default(u + l + 3).map(function() {
|
|
56
56
|
return new List();
|
|
57
57
|
}), f = l + 1;
|
|
58
|
-
return forEach_default(
|
|
59
|
-
assignBucket(d, f,
|
|
58
|
+
return forEach_default(a.nodes(), function(e) {
|
|
59
|
+
assignBucket(d, f, a.node(e));
|
|
60
60
|
}), {
|
|
61
|
-
graph:
|
|
61
|
+
graph: a,
|
|
62
62
|
buckets: d,
|
|
63
63
|
zeroIdx: f
|
|
64
64
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import merge_default from "../../../lodash-es/merge.js";
|
|
2
|
-
import forEach_default from "../../../lodash-es/forEach.js";
|
|
3
1
|
import defaults_default from "../../../lodash-es/defaults.js";
|
|
4
2
|
import last_default from "../../../lodash-es/last.js";
|
|
3
|
+
import forEach_default from "../../../lodash-es/forEach.js";
|
|
5
4
|
import mapValues_default from "../../../lodash-es/mapValues.js";
|
|
6
5
|
import max_default from "../../../lodash-es/max.js";
|
|
6
|
+
import merge_default from "../../../lodash-es/merge.js";
|
|
7
7
|
import pick_default from "../../../lodash-es/pick.js";
|
|
8
8
|
import { Graph } from "../graphlib/graph.js";
|
|
9
9
|
import "../graphlib/index.js";
|
|
@@ -27,14 +27,14 @@ function layout(g, G) {
|
|
|
27
27
|
function runLayout(g, G) {
|
|
28
28
|
G(" makeSpaceForEdgeLabels", () => makeSpaceForEdgeLabels(g)), G(" removeSelfEdges", () => removeSelfEdges(g)), G(" acyclic", () => run(g)), G(" nestingGraph.run", () => run$2(g)), G(" rank", () => rank(asNonCompoundGraph(g))), G(" injectEdgeLabelProxies", () => injectEdgeLabelProxies(g)), G(" removeEmptyRanks", () => removeEmptyRanks(g)), G(" nestingGraph.cleanup", () => cleanup(g)), G(" normalizeRanks", () => normalizeRanks(g)), G(" assignRankMinMax", () => assignRankMinMax(g)), G(" removeEdgeLabelProxies", () => removeEdgeLabelProxies(g)), G(" normalize.run", () => run$1(g)), G(" parentDummyChains", () => parentDummyChains(g)), G(" addBorderSegments", () => addBorderSegments(g)), G(" order", () => order(g)), G(" insertSelfEdges", () => insertSelfEdges(g)), G(" adjustCoordinateSystem", () => adjust(g)), G(" position", () => position(g)), G(" positionSelfEdges", () => positionSelfEdges(g)), G(" removeBorderNodes", () => removeBorderNodes(g)), G(" normalize.undo", () => undo$2(g)), G(" fixupEdgeLabelCoords", () => fixupEdgeLabelCoords(g)), G(" undoCoordinateSystem", () => undo$1(g)), G(" translateGraph", () => translateGraph(g)), G(" assignNodeIntersects", () => assignNodeIntersects(g)), G(" reversePoints", () => reversePointsForReversedEdges(g)), G(" acyclic.undo", () => undo(g));
|
|
29
29
|
}
|
|
30
|
-
function updateInputGraph(g,
|
|
31
|
-
forEach_default(g.nodes(), function(
|
|
32
|
-
var q = g.node(
|
|
33
|
-
q && (q.x = J.x, q.y = J.y,
|
|
34
|
-
}), forEach_default(g.edges(), function(
|
|
35
|
-
var q = g.edge(
|
|
30
|
+
function updateInputGraph(g, G) {
|
|
31
|
+
forEach_default(g.nodes(), function(K) {
|
|
32
|
+
var q = g.node(K), J = G.node(K);
|
|
33
|
+
q && (q.x = J.x, q.y = J.y, G.children(K).length && (q.width = J.width, q.height = J.height));
|
|
34
|
+
}), forEach_default(g.edges(), function(K) {
|
|
35
|
+
var q = g.edge(K), J = G.edge(K);
|
|
36
36
|
q.points = J.points, Object.prototype.hasOwnProperty.call(J, "x") && (q.x = J.x, q.y = J.y);
|
|
37
|
-
}), g.graph().width =
|
|
37
|
+
}), g.graph().width = G.graph().width, g.graph().height = G.graph().height;
|
|
38
38
|
}
|
|
39
39
|
var graphNumAttrs = [
|
|
40
40
|
"nodesep",
|
|
@@ -69,24 +69,24 @@ var graphNumAttrs = [
|
|
|
69
69
|
labeloffset: 10,
|
|
70
70
|
labelpos: "r"
|
|
71
71
|
}, edgeAttrs = ["labelpos"];
|
|
72
|
-
function buildLayoutGraph(
|
|
73
|
-
var
|
|
72
|
+
function buildLayoutGraph(G) {
|
|
73
|
+
var q = new Graph({
|
|
74
74
|
multigraph: !0,
|
|
75
75
|
compound: !0
|
|
76
|
-
}),
|
|
77
|
-
return
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
}), forEach_default(
|
|
81
|
-
var K = canonicalize(
|
|
82
|
-
|
|
83
|
-
}),
|
|
76
|
+
}), J = canonicalize(G.graph());
|
|
77
|
+
return q.setGraph(merge_default({}, graphDefaults, selectNumberAttrs(J, graphNumAttrs), pick_default(J, graphAttrs))), forEach_default(G.nodes(), function(K) {
|
|
78
|
+
var J = canonicalize(G.node(K));
|
|
79
|
+
q.setNode(K, defaults_default(selectNumberAttrs(J, nodeNumAttrs), nodeDefaults)), q.setParent(K, G.parent(K));
|
|
80
|
+
}), forEach_default(G.edges(), function(g) {
|
|
81
|
+
var K = canonicalize(G.edge(g));
|
|
82
|
+
q.setEdge(g, merge_default({}, edgeDefaults, selectNumberAttrs(K, edgeNumAttrs), pick_default(K, edgeAttrs)));
|
|
83
|
+
}), q;
|
|
84
84
|
}
|
|
85
85
|
function makeSpaceForEdgeLabels(g) {
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
var q = g.edge(
|
|
89
|
-
q.minlen *= 2, q.labelpos.toLowerCase() !== "c" && (
|
|
86
|
+
var G = g.graph();
|
|
87
|
+
G.ranksep /= 2, forEach_default(g.edges(), function(K) {
|
|
88
|
+
var q = g.edge(K);
|
|
89
|
+
q.minlen *= 2, q.labelpos.toLowerCase() !== "c" && (G.rankdir === "TB" || G.rankdir === "BT" ? q.width += q.labeloffset : q.height += q.labeloffset);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
function injectEdgeLabelProxies(g) {
|
|
@@ -102,11 +102,11 @@ function injectEdgeLabelProxies(g) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
function assignRankMinMax(g) {
|
|
105
|
-
var
|
|
106
|
-
forEach_default(g.nodes(), function(
|
|
107
|
-
var q = g.node(
|
|
108
|
-
q.borderTop && (q.minRank = g.node(q.borderTop).rank, q.maxRank = g.node(q.borderBottom).rank,
|
|
109
|
-
}), g.graph().maxRank =
|
|
105
|
+
var G = 0;
|
|
106
|
+
forEach_default(g.nodes(), function(K) {
|
|
107
|
+
var q = g.node(K);
|
|
108
|
+
q.borderTop && (q.minRank = g.node(q.borderTop).rank, q.maxRank = g.node(q.borderBottom).rank, G = max_default(G, q.maxRank));
|
|
109
|
+
}), g.graph().maxRank = G;
|
|
110
110
|
}
|
|
111
111
|
function removeEdgeLabelProxies(g) {
|
|
112
112
|
forEach_default(g.nodes(), function(G) {
|
|
@@ -115,25 +115,25 @@ function removeEdgeLabelProxies(g) {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
function translateGraph(g) {
|
|
118
|
-
var
|
|
118
|
+
var G = Infinity, q = 0, J = Infinity, Y = 0, X = g.graph(), Z = X.marginx || 0, Q = X.marginy || 0;
|
|
119
119
|
function $(g) {
|
|
120
|
-
var
|
|
121
|
-
|
|
120
|
+
var K = g.x, X = g.y, Z = g.width, Q = g.height;
|
|
121
|
+
G = Math.min(G, K - Z / 2), q = Math.max(q, K + Z / 2), J = Math.min(J, X - Q / 2), Y = Math.max(Y, X + Q / 2);
|
|
122
122
|
}
|
|
123
123
|
forEach_default(g.nodes(), function(G) {
|
|
124
124
|
$(g.node(G));
|
|
125
125
|
}), forEach_default(g.edges(), function(G) {
|
|
126
126
|
var K = g.edge(G);
|
|
127
127
|
Object.prototype.hasOwnProperty.call(K, "x") && $(K);
|
|
128
|
-
}),
|
|
129
|
-
var q = g.node(
|
|
130
|
-
q.x -=
|
|
128
|
+
}), G -= Z, J -= Q, forEach_default(g.nodes(), function(K) {
|
|
129
|
+
var q = g.node(K);
|
|
130
|
+
q.x -= G, q.y -= J;
|
|
131
131
|
}), forEach_default(g.edges(), function(q) {
|
|
132
132
|
var Y = g.edge(q);
|
|
133
133
|
forEach_default(Y.points, function(g) {
|
|
134
|
-
g.x -=
|
|
135
|
-
}), Object.prototype.hasOwnProperty.call(Y, "x") && (Y.x -=
|
|
136
|
-
}), X.width = q -
|
|
134
|
+
g.x -= G, g.y -= J;
|
|
135
|
+
}), Object.prototype.hasOwnProperty.call(Y, "x") && (Y.x -= G), Object.prototype.hasOwnProperty.call(Y, "y") && (Y.y -= J);
|
|
136
|
+
}), X.width = q - G + Z, X.height = Y - J + Q;
|
|
137
137
|
}
|
|
138
138
|
function assignNodeIntersects(g) {
|
|
139
139
|
forEach_default(g.edges(), function(G) {
|
|
@@ -161,10 +161,10 @@ function reversePointsForReversedEdges(g) {
|
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
function removeBorderNodes(g) {
|
|
164
|
-
forEach_default(g.nodes(), function(
|
|
165
|
-
if (g.children(
|
|
166
|
-
var
|
|
167
|
-
|
|
164
|
+
forEach_default(g.nodes(), function(K) {
|
|
165
|
+
if (g.children(K).length) {
|
|
166
|
+
var q = g.node(K), J = g.node(q.borderTop), Y = g.node(q.borderBottom), X = g.node(last_default(q.borderLeft)), Z = g.node(last_default(q.borderRight));
|
|
167
|
+
q.width = Math.abs(Z.x - X.x), q.height = Math.abs(Y.y - J.y), q.x = X.x + q.width / 2, q.y = J.y + q.height / 2;
|
|
168
168
|
}
|
|
169
169
|
}), forEach_default(g.nodes(), function(G) {
|
|
170
170
|
g.node(G).dummy === "border" && g.removeNode(G);
|
|
@@ -182,10 +182,10 @@ function removeSelfEdges(g) {
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
function insertSelfEdges(g) {
|
|
185
|
-
forEach_default(buildLayerMatrix(g), function(
|
|
185
|
+
forEach_default(buildLayerMatrix(g), function(G) {
|
|
186
186
|
var q = 0;
|
|
187
|
-
forEach_default(
|
|
188
|
-
var Y = g.node(
|
|
187
|
+
forEach_default(G, function(G, J) {
|
|
188
|
+
var Y = g.node(G);
|
|
189
189
|
Y.order = J + q, forEach_default(Y.selfEdges, function(G) {
|
|
190
190
|
addDummyNode(g, "selfedge", {
|
|
191
191
|
width: G.label.width,
|
|
@@ -233,9 +233,9 @@ function selectNumberAttrs(g, G) {
|
|
|
233
233
|
return mapValues_default(pick_default(g, G), Number);
|
|
234
234
|
}
|
|
235
235
|
function canonicalize(g) {
|
|
236
|
-
var
|
|
237
|
-
return forEach_default(g, function(g,
|
|
238
|
-
K
|
|
239
|
-
}),
|
|
236
|
+
var G = {};
|
|
237
|
+
return forEach_default(g, function(g, K) {
|
|
238
|
+
G[K.toLowerCase()] = g;
|
|
239
|
+
}), G;
|
|
240
240
|
}
|
|
241
241
|
export { layout };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import forEach_default from "../../../lodash-es/forEach.js";
|
|
2
|
-
import reduce_default from "../../../lodash-es/reduce.js";
|
|
3
2
|
import values_default from "../../../lodash-es/values.js";
|
|
4
3
|
import max_default from "../../../lodash-es/max.js";
|
|
4
|
+
import reduce_default from "../../../lodash-es/reduce.js";
|
|
5
5
|
import { addBorderNode, addDummyNode } from "./util.js";
|
|
6
|
-
function run(
|
|
7
|
-
var a = addDummyNode(
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function run(i) {
|
|
7
|
+
var a = addDummyNode(i, "root", {}, "_root"), s = treeDepths(i), u = max_default(values_default(s)) - 1, d = 2 * u + 1;
|
|
8
|
+
i.graph().nestingRoot = a, forEach_default(i.edges(), function(e) {
|
|
9
|
+
i.edge(e).minlen *= d;
|
|
10
10
|
});
|
|
11
|
-
var f = sumWeights(
|
|
12
|
-
forEach_default(
|
|
13
|
-
dfs(
|
|
14
|
-
}),
|
|
11
|
+
var f = sumWeights(i) + 1;
|
|
12
|
+
forEach_default(i.children(), function(e) {
|
|
13
|
+
dfs(i, a, d, f, u, s, e);
|
|
14
|
+
}), i.graph().nodeRankFactor = d;
|
|
15
15
|
}
|
|
16
16
|
function dfs(n, r, i, o, s, c, l) {
|
|
17
17
|
var u = n.children(l);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
2
1
|
import flatten_default from "../../../../lodash-es/flatten.js";
|
|
3
2
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
4
4
|
import sortBy_default from "../../../../lodash-es/sortBy.js";
|
|
5
5
|
import zipObject_default from "../../../../lodash-es/zipObject.js";
|
|
6
6
|
function crossCount(e, n) {
|
|
@@ -10,8 +10,8 @@ function crossCount(e, n) {
|
|
|
10
10
|
function twoLayerCrossCount(a, o, s) {
|
|
11
11
|
for (var c = zipObject_default(s, map_default(s, function(e, n) {
|
|
12
12
|
return n;
|
|
13
|
-
})), l = flatten_default(map_default(o, function(
|
|
14
|
-
return sortBy_default(map_default(a.outEdges(
|
|
13
|
+
})), l = flatten_default(map_default(o, function(e) {
|
|
14
|
+
return sortBy_default(map_default(a.outEdges(e), function(e) {
|
|
15
15
|
return {
|
|
16
16
|
pos: c[e.w],
|
|
17
17
|
weight: a.edge(e).weight
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
2
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
1
|
import cloneDeep_default from "../../../../lodash-es/cloneDeep.js";
|
|
2
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
4
4
|
import range_default from "../../../../lodash-es/range.js";
|
|
5
5
|
import { Graph } from "../../graphlib/graph.js";
|
|
6
6
|
import "../../graphlib/index.js";
|
|
@@ -10,19 +10,19 @@ import { buildLayerGraph } from "./build-layer-graph.js";
|
|
|
10
10
|
import { crossCount } from "./cross-count.js";
|
|
11
11
|
import { initOrder } from "./init-order.js";
|
|
12
12
|
import { sortSubgraph } from "./sort-subgraph.js";
|
|
13
|
-
function order(
|
|
14
|
-
var
|
|
15
|
-
assignOrder(
|
|
13
|
+
function order(s) {
|
|
14
|
+
var c = maxRank(s), u = buildLayerGraphs(s, range_default(1, c + 1), "inEdges"), f = buildLayerGraphs(s, range_default(c - 1, -1, -1), "outEdges"), p = initOrder(s);
|
|
15
|
+
assignOrder(s, p);
|
|
16
16
|
for (var m = Infinity, h, g = 0, _ = 0; _ < 4; ++g, ++_) {
|
|
17
|
-
sweepLayerGraphs(g % 2 ? u : f, g % 4 >= 2), p = buildLayerMatrix(
|
|
18
|
-
var v = crossCount(
|
|
17
|
+
sweepLayerGraphs(g % 2 ? u : f, g % 4 >= 2), p = buildLayerMatrix(s);
|
|
18
|
+
var v = crossCount(s, p);
|
|
19
19
|
v < m && (_ = 0, h = cloneDeep_default(p), m = v);
|
|
20
20
|
}
|
|
21
|
-
assignOrder(
|
|
21
|
+
assignOrder(s, h);
|
|
22
22
|
}
|
|
23
|
-
function buildLayerGraphs(
|
|
24
|
-
return map_default(
|
|
25
|
-
return buildLayerGraph(
|
|
23
|
+
function buildLayerGraphs(e, s, l) {
|
|
24
|
+
return map_default(s, function(s) {
|
|
25
|
+
return buildLayerGraph(e, s, l);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
function sweepLayerGraphs(e, c) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
2
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
1
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
2
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
4
4
|
import has_default from "../../../../lodash-es/has.js";
|
|
5
5
|
import max_default from "../../../../lodash-es/max.js";
|
|
6
6
|
import range_default from "../../../../lodash-es/range.js";
|
|
@@ -13,8 +13,8 @@ function initOrder(s) {
|
|
|
13
13
|
})) + 1), function() {
|
|
14
14
|
return [];
|
|
15
15
|
});
|
|
16
|
-
function d(
|
|
17
|
-
has_default(c,
|
|
16
|
+
function d(o) {
|
|
17
|
+
has_default(c, o) || (c[o] = !0, u[s.node(o).rank].push(o), forEach_default(s.successors(o), d));
|
|
18
18
|
}
|
|
19
19
|
return forEach_default(sortBy_default(l, function(e) {
|
|
20
20
|
return s.node(e).rank;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import map_default from "../../../../lodash-es/map.js";
|
|
2
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
1
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
2
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
3
|
+
import map_default from "../../../../lodash-es/map.js";
|
|
4
4
|
import isUndefined_default from "../../../../lodash-es/isUndefined.js";
|
|
5
5
|
import pick_default from "../../../../lodash-es/pick.js";
|
|
6
|
-
function resolveConflicts(
|
|
6
|
+
function resolveConflicts(r, a) {
|
|
7
7
|
var o = {};
|
|
8
|
-
return forEach_default(
|
|
8
|
+
return forEach_default(r, function(e, n) {
|
|
9
9
|
var r = o[e.v] = {
|
|
10
10
|
indegree: 0,
|
|
11
11
|
in: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import filter_default from "../../../../lodash-es/filter.js";
|
|
2
1
|
import flatten_default from "../../../../lodash-es/flatten.js";
|
|
3
2
|
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
|
+
import filter_default from "../../../../lodash-es/filter.js";
|
|
4
4
|
import isUndefined_default from "../../../../lodash-es/isUndefined.js";
|
|
5
5
|
import { barycenter } from "./barycenter.js";
|
|
6
6
|
import { resolveConflicts } from "./resolve-conflicts.js";
|
|
@@ -13,8 +13,8 @@ function sortSubgraph(l, u, d, f) {
|
|
|
13
13
|
var v = barycenter(l, p);
|
|
14
14
|
forEach_default(v, function(e) {
|
|
15
15
|
if (l.children(e.v).length) {
|
|
16
|
-
var
|
|
17
|
-
_[e.v] =
|
|
16
|
+
var s = sortSubgraph(l, e.v, d, f);
|
|
17
|
+
_[e.v] = s, Object.prototype.hasOwnProperty.call(s, "barycenter") && mergeBarycenters(e, s);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
var y = resolveConflicts(v, d);
|
|
@@ -30,14 +30,14 @@ function sortSubgraph(l, u, d, f) {
|
|
|
30
30
|
}
|
|
31
31
|
return b;
|
|
32
32
|
}
|
|
33
|
-
function expandSubgraphs(
|
|
34
|
-
forEach_default(
|
|
35
|
-
|
|
33
|
+
function expandSubgraphs(c, l) {
|
|
34
|
+
forEach_default(c, function(s) {
|
|
35
|
+
s.vs = flatten_default(s.vs.map(function(e) {
|
|
36
36
|
return l[e] ? l[e].vs : e;
|
|
37
37
|
}));
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function mergeBarycenters(e,
|
|
41
|
-
isUndefined_default(e.barycenter) ? (e.barycenter =
|
|
40
|
+
function mergeBarycenters(e, s) {
|
|
41
|
+
isUndefined_default(e.barycenter) ? (e.barycenter = s.barycenter, e.weight = s.weight) : (e.barycenter = (e.barycenter * e.weight + s.barycenter * s.weight) / (e.weight + s.weight), e.weight += s.weight);
|
|
42
42
|
}
|
|
43
43
|
export { sortSubgraph };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import flatten_default from "../../../../lodash-es/flatten.js";
|
|
2
|
-
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
3
2
|
import last_default from "../../../../lodash-es/last.js";
|
|
3
|
+
import forEach_default from "../../../../lodash-es/forEach.js";
|
|
4
4
|
import sortBy_default from "../../../../lodash-es/sortBy.js";
|
|
5
5
|
import { partition } from "../util.js";
|
|
6
|
-
function sort(
|
|
7
|
-
var c = partition(
|
|
6
|
+
function sort(r, s) {
|
|
7
|
+
var c = partition(r, function(e) {
|
|
8
8
|
return Object.prototype.hasOwnProperty.call(e, "barycenter");
|
|
9
9
|
}), l = c.lhs, u = sortBy_default(c.rhs, function(e) {
|
|
10
10
|
return -e.i;
|
|
@@ -15,8 +15,8 @@ function sort(i, s) {
|
|
|
15
15
|
var h = { vs: flatten_default(d) };
|
|
16
16
|
return p && (h.barycenter = f / p, h.weight = p), h;
|
|
17
17
|
}
|
|
18
|
-
function consumeUnsortable(e,
|
|
19
|
-
for (var o;
|
|
18
|
+
function consumeUnsortable(e, i, a) {
|
|
19
|
+
for (var o; i.length && (o = last_default(i)).i <= a;) i.pop(), e.push(o.vs), a++;
|
|
20
20
|
return a;
|
|
21
21
|
}
|
|
22
22
|
function compareWithBias(e) {
|