@loopstack/loopstack-studio 0.27.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/ai-elements/code-block.js +2 -2
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/components/loopstack-elements/tool.js +18 -9
- 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/DocumentRenderer.js +2 -2
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/documents/renderers/LlmMessage.js +89 -0
- 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 +301 -209
- 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/features/documents/renderers/ClaudeMessage.js +0 -96
- 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
|
@@ -1895,12 +1895,12 @@ var Heap = /* @__PURE__ */ getDefaultExportFromCjs(requireHeap()), dijkstraDefau
|
|
|
1895
1895
|
Q.push(b(Z).edge);
|
|
1896
1896
|
for (var $ = b(Z).pred; Q.indexOf($) === -1;) Q.push($), Q.push(b($).edge), $ = b($).pred;
|
|
1897
1897
|
Q = Q.slice(Q.indexOf($));
|
|
1898
|
-
for (var
|
|
1899
|
-
Q = Q.slice(
|
|
1900
|
-
var
|
|
1898
|
+
for (var Ah = Q[0].id(), jh = 0, Mh = 2; Mh < Q.length; Mh += 2) Q[Mh].id() < Ah && (Ah = Q[Mh].id(), jh = Mh);
|
|
1899
|
+
Q = Q.slice(jh).concat(Q.slice(0, jh)), Q.push(Q[0]);
|
|
1900
|
+
var Nh = Q.map(function(e) {
|
|
1901
1901
|
return e.id();
|
|
1902
1902
|
}).join(",");
|
|
1903
|
-
z.indexOf(
|
|
1903
|
+
z.indexOf(Nh) === -1 && (_.push(c.spawn(Q)), z.push(Nh));
|
|
1904
1904
|
}
|
|
1905
1905
|
} else break;
|
|
1906
1906
|
}
|
|
@@ -3084,7 +3084,7 @@ var defaults$b = defaults$g({
|
|
|
3084
3084
|
var Q = J[a[n[Z].id()]];
|
|
3085
3085
|
Q != null && Y[Q].push(n[Z]);
|
|
3086
3086
|
}
|
|
3087
|
-
for (var $ = Array(q.length),
|
|
3087
|
+
for (var $ = Array(q.length), Ah = 0; Ah < q.length; Ah++) $[Ah] = t.collection(Y[q[Ah]]);
|
|
3088
3088
|
return $;
|
|
3089
3089
|
}, affinityPropagation$1 = {
|
|
3090
3090
|
affinityPropagation,
|
|
@@ -10849,10 +10849,10 @@ BreadthFirstLayout.prototype.run = function() {
|
|
|
10849
10849
|
for (var e = 0; e < J; e++) O(e);
|
|
10850
10850
|
}());
|
|
10851
10851
|
for (var Q = 0, $ = 0; $ < J; $++) Q = Math.max(b[$].length, Q);
|
|
10852
|
-
var
|
|
10852
|
+
var Ah = {
|
|
10853
10853
|
x: l.x1 + l.w / 2,
|
|
10854
10854
|
y: l.y1 + l.h / 2
|
|
10855
|
-
},
|
|
10855
|
+
}, jh = r.reduce(function(t, n) {
|
|
10856
10856
|
return function(e) {
|
|
10857
10857
|
return {
|
|
10858
10858
|
w: t.w === -1 ? e.w : (t.w + e.w) / 2,
|
|
@@ -10862,33 +10862,33 @@ BreadthFirstLayout.prototype.run = function() {
|
|
|
10862
10862
|
}, {
|
|
10863
10863
|
w: -1,
|
|
10864
10864
|
h: -1
|
|
10865
|
-
}),
|
|
10865
|
+
}), Mh = Math.max(J === 1 ? 0 : c ? (l.h - e.padding * 2 - jh.h) / (J - 1) : (l.h - e.padding * 2 - jh.h) / (J + 1), z), Nh = b.reduce(function(e, t) {
|
|
10866
10866
|
return Math.max(e, t.length);
|
|
10867
|
-
}, 0),
|
|
10867
|
+
}, 0), Ph = function(t) {
|
|
10868
10868
|
var n = getInfo(t), r = n.depth, a = n.index;
|
|
10869
10869
|
if (e.circle) {
|
|
10870
10870
|
var o = Math.min(l.w / 2 / J, l.h / 2 / J);
|
|
10871
10871
|
o = Math.max(o, z);
|
|
10872
10872
|
var s = o * r + o - (J > 0 && b[0].length <= 3 ? o / 2 : 0), u = 2 * Math.PI / b[r].length * a;
|
|
10873
10873
|
return r === 0 && b[0].length === 1 && (s = 1), {
|
|
10874
|
-
x:
|
|
10875
|
-
y:
|
|
10874
|
+
x: Ah.x + s * Math.cos(u),
|
|
10875
|
+
y: Ah.y + s * Math.sin(u)
|
|
10876
10876
|
};
|
|
10877
10877
|
} else {
|
|
10878
|
-
var d = b[r].length, f = Math.max(d === 1 ? 0 : c ? (l.w - e.padding * 2 -
|
|
10878
|
+
var d = b[r].length, f = Math.max(d === 1 ? 0 : c ? (l.w - e.padding * 2 - jh.w) / ((e.grid ? Nh : d) - 1) : (l.w - e.padding * 2 - jh.w) / ((e.grid ? Nh : d) + 1), z);
|
|
10879
10879
|
return {
|
|
10880
|
-
x:
|
|
10881
|
-
y:
|
|
10880
|
+
x: Ah.x + (a + 1 - (d + 1) / 2) * f,
|
|
10881
|
+
y: Ah.y + (r + 1 - (J + 1) / 2) * Mh
|
|
10882
10882
|
};
|
|
10883
10883
|
}
|
|
10884
|
-
},
|
|
10884
|
+
}, Fh = {
|
|
10885
10885
|
downward: 0,
|
|
10886
10886
|
leftward: 90,
|
|
10887
10887
|
upward: 180,
|
|
10888
10888
|
rightward: -90
|
|
10889
10889
|
};
|
|
10890
|
-
return Object.keys(
|
|
10891
|
-
return rotatePosAndSkewByBox(
|
|
10890
|
+
return Object.keys(Fh).indexOf(e.direction) === -1 && error(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(Fh).join(", ")}`), n.nodes().layoutPositions(this, e, function(t) {
|
|
10891
|
+
return rotatePosAndSkewByBox(Ph(t), l, Fh[e.direction]);
|
|
10892
10892
|
}), this;
|
|
10893
10893
|
};
|
|
10894
10894
|
var defaults$6 = {
|
|
@@ -12410,17 +12410,17 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12410
12410
|
$
|
|
12411
12411
|
];
|
|
12412
12412
|
} else {
|
|
12413
|
-
var
|
|
12413
|
+
var Ah = d.x1 + B + (_ ? f / 2 * R : 0);
|
|
12414
12414
|
n.segpts = [
|
|
12415
|
-
|
|
12415
|
+
Ah,
|
|
12416
12416
|
d.y1,
|
|
12417
|
-
|
|
12417
|
+
Ah,
|
|
12418
12418
|
d.y2
|
|
12419
12419
|
];
|
|
12420
12420
|
}
|
|
12421
12421
|
if (n.isRound) {
|
|
12422
|
-
var
|
|
12423
|
-
n.radii = Array(n.segpts.length / 2).fill(
|
|
12422
|
+
var jh = e.pstyle("taxi-radius").value, Mh = e.pstyle("radius-type").value[0] === "arc-radius";
|
|
12423
|
+
n.radii = Array(n.segpts.length / 2).fill(jh), n.isArcRadius = Array(n.segpts.length / 2).fill(Mh);
|
|
12424
12424
|
}
|
|
12425
12425
|
}, BRp$c.tryToCorrectInvalidPoints = function(e, t) {
|
|
12426
12426
|
var n = e._private.rscratch;
|
|
@@ -12647,8 +12647,8 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12647
12647
|
}
|
|
12648
12648
|
};
|
|
12649
12649
|
}
|
|
12650
|
-
var
|
|
12651
|
-
L.nodesOverlap =
|
|
12650
|
+
var jh = B ? f : d;
|
|
12651
|
+
L.nodesOverlap = jh.nodesOverlap, L.srcIntn = jh.srcIntn, L.tgtIntn = jh.tgtIntn, L.isRound = R.startsWith("round"), r && (g.isParent() || g.isChild() || _.isParent() || _.isChild()) && (g.parents().anySame(_) || _.parents().anySame(g) || g.same(_) && g.isParent()) ? t.findCompoundLoopPoints(I, jh, F, z) : g === _ ? t.findLoopPoints(I, jh, F, z) : R.endsWith("segments") ? t.findSegmentsPoints(I, jh) : R.endsWith("taxi") ? t.findTaxiPoints(I, jh) : R === "straight" || !z && d.eles.length % 2 == 1 && F === Math.floor(d.eles.length / 2) ? t.findStraightEdgePoints(I) : t.findBezierPoints(I, jh, F, z, B), t.findEndpoints(I), t.tryToCorrectInvalidPoints(I, jh), t.checkForInvalidEdgeWarning(I), t.storeAllpts(I), t.storeEdgeProjections(I), t.calculateArrowAngles(I), t.recalculateEdgeLabelProjections(I), t.calculateLabelAngles(I);
|
|
12652
12652
|
}
|
|
12653
12653
|
}, T = 0; T < s.length; T++) w();
|
|
12654
12654
|
this.findHaystackPoints(c);
|
|
@@ -12711,9 +12711,9 @@ BRp$b.manualEndptToPx = function(e, t) {
|
|
|
12711
12711
|
else if (F === "outside-to-node" || F === "outside-to-node-or-label" ? z = L : (F === "outside-to-line" || F === "outside-to-line-or-label") && (z = [c.x, c.y]), a = r.nodeShapes[this.getNodeShape(s)].intersectLine(l.x, l.y, s.outerWidth(), s.outerHeight(), z[0], z[1], 0, I, g), F === "outside-to-node-or-label" || F === "outside-to-line-or-label") {
|
|
12712
12712
|
var G = s._private.rscratch, q = G.labelWidth, J = G.labelHeight, Y = G.labelX, X = G.labelY, Z = q / 2, Q = J / 2, $ = s.pstyle("text-valign").value;
|
|
12713
12713
|
$ === "top" ? X -= Q : $ === "bottom" && (X += Q);
|
|
12714
|
-
var
|
|
12715
|
-
|
|
12716
|
-
var
|
|
12714
|
+
var jh = s.pstyle("text-halign").value;
|
|
12715
|
+
jh === "left" ? Y -= Z : jh === "right" && (Y += Z);
|
|
12716
|
+
var Mh = polygonIntersectLine(z[0], z[1], [
|
|
12717
12717
|
Y - Z,
|
|
12718
12718
|
X - Q,
|
|
12719
12719
|
Y + Z,
|
|
@@ -12723,43 +12723,43 @@ BRp$b.manualEndptToPx = function(e, t) {
|
|
|
12723
12723
|
Y - Z,
|
|
12724
12724
|
X + Q
|
|
12725
12725
|
], l.x, l.y);
|
|
12726
|
-
if (
|
|
12727
|
-
var
|
|
12728
|
-
|
|
12729
|
-
x:
|
|
12730
|
-
y:
|
|
12731
|
-
}) <
|
|
12726
|
+
if (Mh.length > 0) {
|
|
12727
|
+
var Nh = c, Ph = sqdist(Nh, array2point(a)), Fh = sqdist(Nh, array2point(Mh)), Ih = Ph;
|
|
12728
|
+
Fh < Ph && (a = Mh, Ih = Fh), Mh.length > 2 && sqdist(Nh, {
|
|
12729
|
+
x: Mh[2],
|
|
12730
|
+
y: Mh[3]
|
|
12731
|
+
}) < Ih && (a = [Mh[2], Mh[3]]);
|
|
12732
12732
|
}
|
|
12733
12733
|
}
|
|
12734
|
-
var
|
|
12735
|
-
if (v.endX =
|
|
12734
|
+
var Lh = shortenIntersection(a, L, r.arrowShapes[u].spacing(e) + f), Rh = shortenIntersection(a, L, r.arrowShapes[u].gap(e) + f);
|
|
12735
|
+
if (v.endX = Rh[0], v.endY = Rh[1], v.arrowEndX = Lh[0], v.arrowEndY = Lh[1], j === "inside-to-node") a = [c.x, c.y];
|
|
12736
12736
|
else if (A.units) a = this.manualEndptToPx(o, A);
|
|
12737
12737
|
else if (j === "outside-to-line") a = v.srcIntn;
|
|
12738
12738
|
else if (j === "outside-to-node" || j === "outside-to-node-or-label" ? B = R : (j === "outside-to-line" || j === "outside-to-line-or-label") && (B = [l.x, l.y]), a = r.nodeShapes[this.getNodeShape(o)].intersectLine(c.x, c.y, o.outerWidth(), o.outerHeight(), B[0], B[1], 0, M, h), j === "outside-to-node-or-label" || j === "outside-to-line-or-label") {
|
|
12739
|
-
var
|
|
12740
|
-
|
|
12741
|
-
var
|
|
12742
|
-
|
|
12743
|
-
var
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12739
|
+
var zh = o._private.rscratch, Bh = zh.labelWidth, Vh = zh.labelHeight, Hh = zh.labelX, Uh = zh.labelY, Wh = Bh / 2, Gh = Vh / 2, Kh = o.pstyle("text-valign").value;
|
|
12740
|
+
Kh === "top" ? Uh -= Gh : Kh === "bottom" && (Uh += Gh);
|
|
12741
|
+
var qh = o.pstyle("text-halign").value;
|
|
12742
|
+
qh === "left" ? Hh -= Wh : qh === "right" && (Hh += Wh);
|
|
12743
|
+
var Jh = polygonIntersectLine(B[0], B[1], [
|
|
12744
|
+
Hh - Wh,
|
|
12745
|
+
Uh - Gh,
|
|
12746
|
+
Hh + Wh,
|
|
12747
|
+
Uh - Gh,
|
|
12748
|
+
Hh + Wh,
|
|
12749
|
+
Uh + Gh,
|
|
12750
|
+
Hh - Wh,
|
|
12751
|
+
Uh + Gh
|
|
12752
12752
|
], c.x, c.y);
|
|
12753
|
-
if (
|
|
12754
|
-
var
|
|
12755
|
-
|
|
12756
|
-
x:
|
|
12757
|
-
y:
|
|
12758
|
-
}) <
|
|
12753
|
+
if (Jh.length > 0) {
|
|
12754
|
+
var Yh = l, Xh = sqdist(Yh, array2point(a)), Zh = sqdist(Yh, array2point(Jh)), Qh = Xh;
|
|
12755
|
+
Zh < Xh && (a = [Jh[0], Jh[1]], Qh = Zh), Jh.length > 2 && sqdist(Yh, {
|
|
12756
|
+
x: Jh[2],
|
|
12757
|
+
y: Jh[3]
|
|
12758
|
+
}) < Qh && (a = [Jh[2], Jh[3]]);
|
|
12759
12759
|
}
|
|
12760
12760
|
}
|
|
12761
|
-
var
|
|
12762
|
-
v.startX =
|
|
12761
|
+
var $h = shortenIntersection(a, R, r.arrowShapes[d].spacing(e) + m), eg = shortenIntersection(a, R, r.arrowShapes[d].gap(e) + m);
|
|
12762
|
+
v.startX = eg[0], v.startY = eg[1], v.arrowStartX = $h[0], v.arrowStartY = $h[1], O && (!number$1(v.startX) || !number$1(v.startY) || !number$1(v.endX) || !number$1(v.endY) ? v.badLine = !0 : v.badLine = !1);
|
|
12763
12763
|
}, BRp$b.getSourceEndpoint = function(e) {
|
|
12764
12764
|
var t = e[0]._private.rscratch;
|
|
12765
12765
|
switch (this.recalculateRenderedStyle(e), t.edgeType) {
|
|
@@ -13163,7 +13163,14 @@ BRp$4.getCachedImage = function(e, t, n) {
|
|
|
13163
13163
|
var c = "data:";
|
|
13164
13164
|
return e.substring(0, c.length).toLowerCase() !== c && (t = t === "null" ? null : t, s.crossOrigin = t), s.src = e, s;
|
|
13165
13165
|
};
|
|
13166
|
-
var
|
|
13166
|
+
var setGrabState = function(e, t) {
|
|
13167
|
+
var n = e[0];
|
|
13168
|
+
!n || n._private.grabbed === t || (n._private.grabbed = t, e.updateStyle(!1));
|
|
13169
|
+
}, setGrabbed = function(e) {
|
|
13170
|
+
setGrabState(e, !0);
|
|
13171
|
+
}, setFreed = function(e) {
|
|
13172
|
+
setGrabState(e, !1);
|
|
13173
|
+
}, BRp$3 = {};
|
|
13167
13174
|
BRp$3.registerBinding = function(e, t, n, r) {
|
|
13168
13175
|
var a = Array.prototype.slice.apply(arguments, [1]);
|
|
13169
13176
|
if (Array.isArray(e)) {
|
|
@@ -13241,51 +13248,47 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13241
13248
|
else r = !0;
|
|
13242
13249
|
return r;
|
|
13243
13250
|
}, c = function(e) {
|
|
13244
|
-
e[0]._private.grabbed = !0;
|
|
13245
|
-
}, l = function(e) {
|
|
13246
|
-
e[0]._private.grabbed = !1;
|
|
13247
|
-
}, u = function(e) {
|
|
13248
13251
|
e[0]._private.rscratch.inDragLayer = !0;
|
|
13249
|
-
},
|
|
13252
|
+
}, l = function(e) {
|
|
13250
13253
|
e[0]._private.rscratch.inDragLayer = !1;
|
|
13251
|
-
},
|
|
13254
|
+
}, u = function(e) {
|
|
13252
13255
|
e[0]._private.rscratch.isGrabTarget = !0;
|
|
13253
|
-
},
|
|
13256
|
+
}, d = function(e) {
|
|
13254
13257
|
e[0]._private.rscratch.isGrabTarget = !1;
|
|
13255
|
-
},
|
|
13258
|
+
}, f = function(e, t) {
|
|
13256
13259
|
var n = t.addToList;
|
|
13257
|
-
!n.has(e) && e.grabbable() && !e.locked() && (n.merge(e),
|
|
13258
|
-
},
|
|
13260
|
+
!n.has(e) && e.grabbable() && !e.locked() && (n.merge(e), setGrabbed(e));
|
|
13261
|
+
}, m = function(e, t) {
|
|
13259
13262
|
if (e.cy().hasCompoundNodes() && !(t.inDragLayer == null && t.addToList == null)) {
|
|
13260
13263
|
var n = e.descendants();
|
|
13261
|
-
t.inDragLayer && (n.forEach(
|
|
13264
|
+
t.inDragLayer && (n.forEach(c), n.connectedEdges().forEach(c)), t.addToList && f(n, t);
|
|
13262
13265
|
}
|
|
13263
|
-
},
|
|
13266
|
+
}, h = function(t, n) {
|
|
13264
13267
|
n ||= {};
|
|
13265
13268
|
var r = t.cy().hasCompoundNodes();
|
|
13266
|
-
n.inDragLayer && (t.forEach(
|
|
13269
|
+
n.inDragLayer && (t.forEach(c), t.neighborhood().stdFilter(function(e) {
|
|
13267
13270
|
return !r || e.isEdge();
|
|
13268
|
-
}).forEach(
|
|
13269
|
-
|
|
13270
|
-
}),
|
|
13271
|
-
},
|
|
13271
|
+
}).forEach(c)), n.addToList && t.forEach(function(e) {
|
|
13272
|
+
f(e, n);
|
|
13273
|
+
}), m(t, n), v(t, { inDragLayer: n.inDragLayer }), e.updateCachedGrabbedEles();
|
|
13274
|
+
}, g = h, _ = function(t) {
|
|
13272
13275
|
t && (e.getCachedZSortedEles().forEach(function(e) {
|
|
13273
|
-
|
|
13276
|
+
setFreed(e), l(e), d(e);
|
|
13274
13277
|
}), e.updateCachedGrabbedEles());
|
|
13275
|
-
},
|
|
13278
|
+
}, v = function(e, t) {
|
|
13276
13279
|
if (!(t.inDragLayer == null && t.addToList == null) && e.cy().hasCompoundNodes()) {
|
|
13277
13280
|
var n = e.ancestors().orphans();
|
|
13278
13281
|
if (!n.same(e)) {
|
|
13279
13282
|
var r = n.descendants().spawnSelf().merge(n).unmerge(e).unmerge(e.descendants()), a = r.connectedEdges();
|
|
13280
|
-
t.inDragLayer && (a.forEach(
|
|
13281
|
-
|
|
13283
|
+
t.inDragLayer && (a.forEach(c), r.forEach(c)), t.addToList && r.forEach(function(e) {
|
|
13284
|
+
f(e, t);
|
|
13282
13285
|
});
|
|
13283
13286
|
}
|
|
13284
13287
|
}
|
|
13285
|
-
},
|
|
13288
|
+
}, b = function() {
|
|
13286
13289
|
document.activeElement != null && document.activeElement.blur != null && document.activeElement.blur();
|
|
13287
|
-
},
|
|
13288
|
-
|
|
13290
|
+
}, S = typeof MutationObserver < "u", C = typeof ResizeObserver < "u";
|
|
13291
|
+
S ? (e.removeObserver = new MutationObserver(function(t) {
|
|
13289
13292
|
for (var n = 0; n < t.length; n++) {
|
|
13290
13293
|
var r = t[n].removedNodes;
|
|
13291
13294
|
if (r) {
|
|
@@ -13298,23 +13301,23 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13298
13301
|
}), e.container.parentNode && e.removeObserver.observe(e.container.parentNode, { childList: !0 })) : e.registerBinding(e.container, "DOMNodeRemoved", function(t) {
|
|
13299
13302
|
e.destroy();
|
|
13300
13303
|
});
|
|
13301
|
-
var
|
|
13304
|
+
var w = debounce(function() {
|
|
13302
13305
|
e.cy.resize();
|
|
13303
13306
|
}, 100);
|
|
13304
|
-
|
|
13305
|
-
var
|
|
13307
|
+
S && (e.styleObserver = new MutationObserver(w), e.styleObserver.observe(e.container, { attributes: !0 })), e.registerBinding(t, "resize", w), C && (e.resizeObserver = new ResizeObserver(w), e.resizeObserver.observe(e.container));
|
|
13308
|
+
var T = function(e, t) {
|
|
13306
13309
|
for (; e != null;) t(e), e = e.parentNode;
|
|
13307
|
-
},
|
|
13310
|
+
}, E = function() {
|
|
13308
13311
|
e.invalidateContainerClientCoordsCache();
|
|
13309
13312
|
};
|
|
13310
|
-
|
|
13311
|
-
e.registerBinding(t, "transitionend",
|
|
13313
|
+
T(e.container, function(t) {
|
|
13314
|
+
e.registerBinding(t, "transitionend", E), e.registerBinding(t, "animationend", E), e.registerBinding(t, "scroll", E);
|
|
13312
13315
|
}), e.registerBinding(e.container, "contextmenu", function(e) {
|
|
13313
13316
|
e.preventDefault();
|
|
13314
13317
|
});
|
|
13315
|
-
var
|
|
13318
|
+
var D = function() {
|
|
13316
13319
|
return e.selection[4] !== 0;
|
|
13317
|
-
},
|
|
13320
|
+
}, O = function(t) {
|
|
13318
13321
|
for (var n = e.findContainerClientCoords(), r = n[0], a = n[1], o = n[2], s = n[3], c = t.touches ? t.touches : [t], l = !1, u = 0; u < c.length; u++) {
|
|
13319
13322
|
var d = c[u];
|
|
13320
13323
|
if (r <= d.clientX && d.clientX <= r + o && a <= d.clientY && d.clientY <= a + s) {
|
|
@@ -13333,11 +13336,11 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13333
13336
|
return !!h;
|
|
13334
13337
|
};
|
|
13335
13338
|
e.registerBinding(e.container, "mousedown", function(t) {
|
|
13336
|
-
if (
|
|
13337
|
-
t.preventDefault(),
|
|
13338
|
-
var n = e.cy, r = [t.clientX, t.clientY], o = e.projectIntoViewport(r[0], r[1]), s = e.selection, c = e.findNearestElements(o[0], o[1], !0, !1), l = c[0],
|
|
13339
|
+
if (O(t) && !(e.hoverData.which === 1 && t.which !== 1)) {
|
|
13340
|
+
t.preventDefault(), b(), e.hoverData.capture = !0, e.hoverData.which = t.which;
|
|
13341
|
+
var n = e.cy, r = [t.clientX, t.clientY], o = e.projectIntoViewport(r[0], r[1]), s = e.selection, c = e.findNearestElements(o[0], o[1], !0, !1), l = c[0], d = e.dragData.possibleDragElements;
|
|
13339
13342
|
e.hoverData.mdownPos = o, e.hoverData.mdownGPos = r;
|
|
13340
|
-
var
|
|
13343
|
+
var f = function(e) {
|
|
13341
13344
|
return {
|
|
13342
13345
|
originalEvent: t,
|
|
13343
13346
|
type: e,
|
|
@@ -13350,13 +13353,13 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13350
13353
|
e.hoverData.tapholdCancelled = !1, clearTimeout(e.hoverData.tapholdTimeout), e.hoverData.tapholdTimeout = setTimeout(function() {
|
|
13351
13354
|
if (!e.hoverData.tapholdCancelled) {
|
|
13352
13355
|
var t = e.hoverData.down;
|
|
13353
|
-
t ? t.emit(
|
|
13356
|
+
t ? t.emit(f("taphold")) : n.emit(f("taphold"));
|
|
13354
13357
|
}
|
|
13355
13358
|
}, e.tapholdDuration);
|
|
13356
13359
|
};
|
|
13357
13360
|
if (t.which == 3) {
|
|
13358
13361
|
e.hoverData.cxtStarted = !0;
|
|
13359
|
-
var
|
|
13362
|
+
var _ = {
|
|
13360
13363
|
originalEvent: t,
|
|
13361
13364
|
type: "cxttapstart",
|
|
13362
13365
|
position: {
|
|
@@ -13364,19 +13367,19 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13364
13367
|
y: o[1]
|
|
13365
13368
|
}
|
|
13366
13369
|
};
|
|
13367
|
-
l ? (l.activate(), l.emit(
|
|
13370
|
+
l ? (l.activate(), l.emit(_), e.hoverData.down = l) : n.emit(_), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
|
|
13368
13371
|
} else if (t.which == 1) {
|
|
13369
13372
|
if (l && l.activate(), l != null && e.nodeIsGrabbable(l)) {
|
|
13370
|
-
var
|
|
13371
|
-
e.emit(
|
|
13373
|
+
var v = function(e) {
|
|
13374
|
+
e.emit(f("grab"));
|
|
13372
13375
|
};
|
|
13373
|
-
if (
|
|
13376
|
+
if (u(l), !l.selected()) d = e.dragData.possibleDragElements = n.collection(), g(l, { addToList: d }), l.emit(f("grabon")).emit(f("grab"));
|
|
13374
13377
|
else {
|
|
13375
|
-
|
|
13376
|
-
var
|
|
13378
|
+
d = e.dragData.possibleDragElements = n.collection();
|
|
13379
|
+
var S = n.$(function(t) {
|
|
13377
13380
|
return t.isNode() && t.selected() && e.nodeIsGrabbable(t);
|
|
13378
13381
|
});
|
|
13379
|
-
|
|
13382
|
+
h(S, { addToList: d }), l.emit(f("grabon")), S.forEach(v);
|
|
13380
13383
|
}
|
|
13381
13384
|
e.redrawHint("eles", !0), e.redrawHint("drag", !0);
|
|
13382
13385
|
}
|
|
@@ -13395,23 +13398,23 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13395
13398
|
s[0] = s[2] = o[0], s[1] = s[3] = o[1];
|
|
13396
13399
|
}
|
|
13397
13400
|
}, !1);
|
|
13398
|
-
var
|
|
13399
|
-
e.registerBinding([t,
|
|
13400
|
-
if (!(!e.hoverData.capture && !
|
|
13401
|
-
var n = !1, r = e.cy, c = r.zoom(), l = [t.clientX, t.clientY], u = e.projectIntoViewport(l[0], l[1]), d = e.hoverData.mdownPos, f = e.hoverData.mdownGPos, m = e.selection,
|
|
13402
|
-
!e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (
|
|
13403
|
-
var
|
|
13401
|
+
var k = r(e.container);
|
|
13402
|
+
e.registerBinding([t, k], "mousemove", function(t) {
|
|
13403
|
+
if (!(!e.hoverData.capture && !O(t))) {
|
|
13404
|
+
var n = !1, r = e.cy, c = r.zoom(), l = [t.clientX, t.clientY], u = e.projectIntoViewport(l[0], l[1]), d = e.hoverData.mdownPos, f = e.hoverData.mdownGPos, m = e.selection, g = null;
|
|
13405
|
+
!e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (g = e.findNearestElement(u[0], u[1], !0, !1));
|
|
13406
|
+
var v = e.hoverData.last, b = e.hoverData.down, S = [u[0] - m[2], u[1] - m[3]], C = e.dragData.possibleDragElements, w;
|
|
13404
13407
|
if (f) {
|
|
13405
|
-
var T = l[0] - f[0], E = T * T, D = l[1] - f[1],
|
|
13406
|
-
e.hoverData.isOverThresholdDrag = w =
|
|
13408
|
+
var T = l[0] - f[0], E = T * T, D = l[1] - f[1], k = E + D * D;
|
|
13409
|
+
e.hoverData.isOverThresholdDrag = w = k >= e.desktopTapThreshold2;
|
|
13407
13410
|
}
|
|
13408
|
-
var
|
|
13411
|
+
var A = o(t);
|
|
13409
13412
|
w && (e.hoverData.tapholdCancelled = !0);
|
|
13410
13413
|
var j = function() {
|
|
13411
13414
|
var t = e.hoverData.dragDelta = e.hoverData.dragDelta || [];
|
|
13412
13415
|
t.length === 0 ? (t.push(S[0]), t.push(S[1])) : (t[0] += S[0], t[1] += S[1]);
|
|
13413
13416
|
};
|
|
13414
|
-
n = !0, a(
|
|
13417
|
+
n = !0, a(g, [
|
|
13415
13418
|
"mousemove",
|
|
13416
13419
|
"vmousemove",
|
|
13417
13420
|
"tapdrag"
|
|
@@ -13434,7 +13437,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13434
13437
|
if (e.hoverData.which === 3) {
|
|
13435
13438
|
if (w) {
|
|
13436
13439
|
var F = M("cxtdrag");
|
|
13437
|
-
|
|
13440
|
+
b ? b.emit(F) : r.emit(F), e.hoverData.cxtDragged = !0, (!e.hoverData.cxtOver || g !== e.hoverData.cxtOver) && (e.hoverData.cxtOver && e.hoverData.cxtOver.emit(M("cxtdragout")), e.hoverData.cxtOver = g, g && g.emit(M("cxtdragover")));
|
|
13438
13441
|
}
|
|
13439
13442
|
} else if (e.hoverData.dragging) {
|
|
13440
13443
|
if (n = !0, r.panningEnabled() && r.userPanningEnabled()) {
|
|
@@ -13452,19 +13455,19 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13452
13455
|
r.panBy(I), r.emit(M("dragpan")), e.hoverData.dragged = !0;
|
|
13453
13456
|
}
|
|
13454
13457
|
u = e.projectIntoViewport(t.clientX, t.clientY);
|
|
13455
|
-
} else if (m[4] == 1 && (
|
|
13458
|
+
} else if (m[4] == 1 && (b == null || b.pannable())) w && (!e.hoverData.dragging && r.boxSelectionEnabled() && (A || !r.panningEnabled() || !r.userPanningEnabled()) ? N() : !e.hoverData.selecting && r.panningEnabled() && r.userPanningEnabled() && s(b, e.hoverData.downs) && (e.hoverData.dragging = !0, e.hoverData.justStartedPan = !0, m[4] = 0, e.data.bgActivePosistion = array2point(d), e.redrawHint("select", !0), e.redraw()), b && b.pannable() && b.active() && b.unactivate());
|
|
13456
13459
|
else {
|
|
13457
|
-
if (
|
|
13460
|
+
if (b && b.pannable() && b.active() && b.unactivate(), (!b || !b.grabbed()) && g != v && (v && a(v, ["mouseout", "tapdragout"], t, {
|
|
13458
13461
|
x: u[0],
|
|
13459
13462
|
y: u[1]
|
|
13460
|
-
}),
|
|
13463
|
+
}), g && a(g, ["mouseover", "tapdragover"], t, {
|
|
13461
13464
|
x: u[0],
|
|
13462
13465
|
y: u[1]
|
|
13463
|
-
}), e.hoverData.last =
|
|
13464
|
-
if (r.boxSelectionEnabled() &&
|
|
13465
|
-
else if (
|
|
13466
|
+
}), e.hoverData.last = g), b) if (w) {
|
|
13467
|
+
if (r.boxSelectionEnabled() && A) b && b.grabbed() && (_(C), b.emit(M("freeon")), C.emit(M("free")), e.dragData.didDrag && (b.emit(M("dragfreeon")), C.emit(M("dragfree")))), N();
|
|
13468
|
+
else if (b && b.grabbed() && e.nodeIsDraggable(b)) {
|
|
13466
13469
|
var R = !e.dragData.didDrag;
|
|
13467
|
-
R && e.redrawHint("eles", !0), e.dragData.didDrag = !0, e.hoverData.draggingEles ||
|
|
13470
|
+
R && e.redrawHint("eles", !0), e.dragData.didDrag = !0, e.hoverData.draggingEles || h(C, { inDragLayer: !0 });
|
|
13468
13471
|
var z = {
|
|
13469
13472
|
x: 0,
|
|
13470
13473
|
y: 0
|
|
@@ -13481,7 +13484,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13481
13484
|
if (m[2] = u[0], m[3] = u[1], n) return t.stopPropagation && t.stopPropagation(), t.preventDefault && t.preventDefault(), !1;
|
|
13482
13485
|
}
|
|
13483
13486
|
}, !1);
|
|
13484
|
-
var
|
|
13487
|
+
var A, j, M;
|
|
13485
13488
|
e.registerBinding(t, "mouseup", function(t) {
|
|
13486
13489
|
if (!(e.hoverData.which === 1 && t.which !== 1 && e.hoverData.capture) && e.hoverData.capture) {
|
|
13487
13490
|
e.hoverData.capture = !1;
|
|
@@ -13519,15 +13522,15 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13519
13522
|
], t, {
|
|
13520
13523
|
x: s[0],
|
|
13521
13524
|
y: s[1]
|
|
13522
|
-
}),
|
|
13525
|
+
}), j = !1, t.timeStamp - M <= r.multiClickDebounceTime() ? (A && clearTimeout(A), j = !0, M = null, a(d, [
|
|
13523
13526
|
"dblclick",
|
|
13524
13527
|
"dbltap",
|
|
13525
13528
|
"vdblclick"
|
|
13526
13529
|
], t, {
|
|
13527
13530
|
x: s[0],
|
|
13528
13531
|
y: s[1]
|
|
13529
|
-
})) : (
|
|
13530
|
-
|
|
13532
|
+
})) : (A = setTimeout(function() {
|
|
13533
|
+
j || a(d, [
|
|
13531
13534
|
"oneclick",
|
|
13532
13535
|
"onetap",
|
|
13533
13536
|
"voneclick"
|
|
@@ -13535,42 +13538,42 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13535
13538
|
x: s[0],
|
|
13536
13539
|
y: s[1]
|
|
13537
13540
|
});
|
|
13538
|
-
}, r.multiClickDebounceTime()),
|
|
13539
|
-
var
|
|
13540
|
-
e.redrawHint("select", !0),
|
|
13541
|
+
}, r.multiClickDebounceTime()), M = t.timeStamp)), d == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !o(t) && (r.$(n).unselect(["tapunselect"]), u.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = u = r.collection()), l == d && !e.dragData.didDrag && !e.hoverData.selecting && l != null && l._private.selectable && (e.hoverData.dragging || (r.selectionType() === "additive" || f ? l.selected() ? l.unselect(["tapunselect"]) : l.select(["tapselect"]) : f || (r.$(n).unmerge(l).unselect(["tapunselect"]), l.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
|
|
13542
|
+
var v = r.collection(e.getAllInBox(c[0], c[1], c[2], c[3]));
|
|
13543
|
+
e.redrawHint("select", !0), v.length > 0 && e.redrawHint("eles", !0), r.emit(m("boxend")), r.selectionType() === "additive" || f || r.$(n).unmerge(v).unselect(), v.emit(m("box")).stdFilter(function(e) {
|
|
13541
13544
|
return e.selectable() && !e.selected();
|
|
13542
13545
|
}).select().emit(m("boxselect")), e.redraw();
|
|
13543
13546
|
}
|
|
13544
13547
|
if (e.hoverData.dragging && (e.hoverData.dragging = !1, e.redrawHint("select", !0), e.redrawHint("eles", !0), e.redraw()), !c[4]) {
|
|
13545
13548
|
e.redrawHint("drag", !0), e.redrawHint("eles", !0);
|
|
13546
|
-
var
|
|
13547
|
-
|
|
13549
|
+
var b = d && d.grabbed();
|
|
13550
|
+
_(u), b && (d.emit(m("freeon")), u.emit(m("free")), e.dragData.didDrag && (d.emit(m("dragfreeon")), u.emit(m("dragfree"))));
|
|
13548
13551
|
}
|
|
13549
13552
|
}
|
|
13550
13553
|
c[4] = 0, e.hoverData.down = null, e.hoverData.cxtStarted = !1, e.hoverData.draggingEles = !1, e.hoverData.selecting = !1, e.hoverData.isOverThresholdDrag = !1, e.dragData.didDrag = !1, e.hoverData.dragged = !1, e.hoverData.dragDelta = [], e.hoverData.mdownPos = null, e.hoverData.mdownGPos = null, e.hoverData.which = null;
|
|
13551
13554
|
}
|
|
13552
13555
|
}, !1);
|
|
13553
|
-
var
|
|
13556
|
+
var N = [], F = 4, I, L = 1e5, R = function(e, t) {
|
|
13554
13557
|
for (var n = 0; n < e.length; n++) if (e[n] % t !== 0) return !1;
|
|
13555
13558
|
return !0;
|
|
13556
|
-
},
|
|
13559
|
+
}, z = function(e) {
|
|
13557
13560
|
for (var t = Math.abs(e[0]), n = 1; n < e.length; n++) if (Math.abs(e[n]) !== t) return !1;
|
|
13558
13561
|
return !0;
|
|
13559
|
-
},
|
|
13562
|
+
}, B = function(t) {
|
|
13560
13563
|
var n = !1, r = t.deltaY;
|
|
13561
13564
|
if (r ?? (t.wheelDeltaY == null ? t.wheelDelta != null && (r = t.wheelDelta / 4) : r = t.wheelDeltaY / 4), r !== 0) {
|
|
13562
|
-
if (
|
|
13563
|
-
var a =
|
|
13564
|
-
if (
|
|
13565
|
+
if (I == null) if (N.length >= F) {
|
|
13566
|
+
var a = N;
|
|
13567
|
+
if (I = R(a, 5), !I) {
|
|
13565
13568
|
var o = Math.abs(a[0]);
|
|
13566
|
-
|
|
13569
|
+
I = z(a) && o > 5;
|
|
13567
13570
|
}
|
|
13568
|
-
if (
|
|
13569
|
-
} else
|
|
13570
|
-
else
|
|
13571
|
+
if (I) for (var s = 0; s < a.length; s++) L = Math.min(Math.abs(a[s]), L);
|
|
13572
|
+
} else N.push(r), n = !0;
|
|
13573
|
+
else I && (L = Math.min(Math.abs(r), L));
|
|
13571
13574
|
if (!e.scrollingPage) {
|
|
13572
13575
|
var c = e.cy, l = c.zoom(), u = c.pan(), d = e.projectIntoViewport(t.clientX, t.clientY), f = [d[0] * l + u.x, d[1] * l + u.y];
|
|
13573
|
-
if (e.hoverData.draggingEles || e.hoverData.dragging || e.hoverData.cxtStarted ||
|
|
13576
|
+
if (e.hoverData.draggingEles || e.hoverData.dragging || e.hoverData.cxtStarted || D()) {
|
|
13574
13577
|
t.preventDefault();
|
|
13575
13578
|
return;
|
|
13576
13579
|
}
|
|
@@ -13579,7 +13582,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13579
13582
|
e.data.wheelZooming = !1, e.redrawHint("eles", !0), e.redraw();
|
|
13580
13583
|
}, 150);
|
|
13581
13584
|
var m;
|
|
13582
|
-
n && Math.abs(r) > 5 && (r = signum(r) * 5), m = r / -250,
|
|
13585
|
+
n && Math.abs(r) > 5 && (r = signum(r) * 5), m = r / -250, I && (m /= L, m *= 3), m *= e.wheelSensitivity, t.deltaMode === 1 && (m *= 33);
|
|
13583
13586
|
var h = c.zoom() * 10 ** m;
|
|
13584
13587
|
t.type === "gesturechange" && (h = e.gestureStartZoom * t.scale), c.zoom({
|
|
13585
13588
|
level: h,
|
|
@@ -13599,14 +13602,14 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13599
13602
|
}
|
|
13600
13603
|
}
|
|
13601
13604
|
};
|
|
13602
|
-
e.registerBinding(e.container, "wheel",
|
|
13605
|
+
e.registerBinding(e.container, "wheel", B, !0), e.registerBinding(t, "scroll", function(t) {
|
|
13603
13606
|
e.scrollingPage = !0, clearTimeout(e.scrollingPageTimeout), e.scrollingPageTimeout = setTimeout(function() {
|
|
13604
13607
|
e.scrollingPage = !1;
|
|
13605
13608
|
}, 250);
|
|
13606
13609
|
}, !0), e.registerBinding(e.container, "gesturestart", function(t) {
|
|
13607
13610
|
e.gestureStartZoom = e.cy.zoom(), e.hasTouchStarted || t.preventDefault();
|
|
13608
13611
|
}, !0), e.registerBinding(e.container, "gesturechange", function(t) {
|
|
13609
|
-
e.hasTouchStarted ||
|
|
13612
|
+
e.hasTouchStarted || B(t);
|
|
13610
13613
|
}, !0), e.registerBinding(e.container, "mouseout", function(t) {
|
|
13611
13614
|
var n = e.projectIntoViewport(t.clientX, t.clientY);
|
|
13612
13615
|
e.cy.emit({
|
|
@@ -13628,14 +13631,14 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13628
13631
|
}
|
|
13629
13632
|
});
|
|
13630
13633
|
}, !1);
|
|
13631
|
-
var U, W, G, q, J, Y, X, Z, Q, $,
|
|
13634
|
+
var V, H, U, W, G, q, J, Y, X, Z, Q, $, Ah, jh = function(e, t, n, r) {
|
|
13632
13635
|
return Math.sqrt((n - e) * (n - e) + (r - t) * (r - t));
|
|
13633
|
-
},
|
|
13636
|
+
}, Mh = function(e, t, n, r) {
|
|
13634
13637
|
return (n - e) * (n - e) + (r - t) * (r - t);
|
|
13635
|
-
},
|
|
13636
|
-
e.registerBinding(e.container, "touchstart",
|
|
13637
|
-
if (e.hasTouchStarted = !0,
|
|
13638
|
-
|
|
13638
|
+
}, Nh;
|
|
13639
|
+
e.registerBinding(e.container, "touchstart", Nh = function(t) {
|
|
13640
|
+
if (e.hasTouchStarted = !0, O(t)) {
|
|
13641
|
+
b(), e.touchData.capture = !0, e.data.bgActivePosistion = void 0;
|
|
13639
13642
|
var n = e.cy, r = e.touchData.now, o = e.touchData.earlier;
|
|
13640
13643
|
if (t.touches[0]) {
|
|
13641
13644
|
var s = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
|
|
@@ -13660,15 +13663,15 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13660
13663
|
};
|
|
13661
13664
|
};
|
|
13662
13665
|
if (t.touches[1]) {
|
|
13663
|
-
e.touchData.singleTouchMoved = !0,
|
|
13666
|
+
e.touchData.singleTouchMoved = !0, _(e.dragData.touchDragEles);
|
|
13664
13667
|
var l = e.findContainerClientCoords();
|
|
13665
|
-
|
|
13666
|
-
var
|
|
13667
|
-
|
|
13668
|
-
var m = 200,
|
|
13669
|
-
if (
|
|
13670
|
-
var
|
|
13671
|
-
|
|
13668
|
+
X = l[0], Z = l[1], Q = l[2], $ = l[3], V = t.touches[0].clientX - X, H = t.touches[0].clientY - Z, U = t.touches[1].clientX - X, W = t.touches[1].clientY - Z, Ah = 0 <= V && V <= Q && 0 <= U && U <= Q && 0 <= H && H <= $ && 0 <= W && W <= $;
|
|
13669
|
+
var d = n.pan(), f = n.zoom();
|
|
13670
|
+
G = jh(V, H, U, W), q = Mh(V, H, U, W), J = [(V + U) / 2, (H + W) / 2], Y = [(J[0] - d.x) / f, (J[1] - d.y) / f];
|
|
13671
|
+
var m = 200, v = m * m;
|
|
13672
|
+
if (q < v && !t.touches[2]) {
|
|
13673
|
+
var S = e.findNearestElement(r[0], r[1], !0, !0), C = e.findNearestElement(r[2], r[3], !0, !0);
|
|
13674
|
+
S && S.isNode() ? (S.activate().emit(c("cxttapstart")), e.touchData.start = S) : C && C.isNode() ? (C.activate().emit(c("cxttapstart")), e.touchData.start = C) : n.emit(c("cxttapstart")), e.touchData.start && (e.touchData.start._private.grabbed = !1), e.touchData.cxt = !0, e.touchData.cxtDragged = !1, e.data.bgActivePosistion = void 0, e.redraw();
|
|
13672
13675
|
return;
|
|
13673
13676
|
}
|
|
13674
13677
|
}
|
|
@@ -13679,7 +13682,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13679
13682
|
var E = e.dragData.touchDragEles = n.collection(), D = null;
|
|
13680
13683
|
e.redrawHint("eles", !0), e.redrawHint("drag", !0), T.selected() ? (D = n.$(function(t) {
|
|
13681
13684
|
return t.selected() && e.nodeIsGrabbable(t);
|
|
13682
|
-
}),
|
|
13685
|
+
}), h(D, { addToList: E })) : g(T, { addToList: E }), u(T), T.emit(c("grabon")), D ? D.forEach(function(e) {
|
|
13683
13686
|
e.emit(c("grab"));
|
|
13684
13687
|
}) : T.emit(c("grab"));
|
|
13685
13688
|
}
|
|
@@ -13701,23 +13704,23 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13701
13704
|
}, e.tapholdDuration);
|
|
13702
13705
|
}
|
|
13703
13706
|
if (t.touches.length >= 1) {
|
|
13704
|
-
for (var
|
|
13707
|
+
for (var k = e.touchData.startPosition = [
|
|
13705
13708
|
null,
|
|
13706
13709
|
null,
|
|
13707
13710
|
null,
|
|
13708
13711
|
null,
|
|
13709
13712
|
null,
|
|
13710
13713
|
null
|
|
13711
|
-
],
|
|
13714
|
+
], A = 0; A < r.length; A++) k[A] = o[A] = r[A];
|
|
13712
13715
|
var j = t.touches[0];
|
|
13713
13716
|
e.touchData.startGPosition = [j.clientX, j.clientY];
|
|
13714
13717
|
}
|
|
13715
13718
|
}
|
|
13716
13719
|
}, !1);
|
|
13717
|
-
var
|
|
13718
|
-
e.registerBinding(t, "touchmove",
|
|
13720
|
+
var Ph;
|
|
13721
|
+
e.registerBinding(t, "touchmove", Ph = function(t) {
|
|
13719
13722
|
var n = e.touchData.capture;
|
|
13720
|
-
if (!(!n && !
|
|
13723
|
+
if (!(!n && !O(t))) {
|
|
13721
13724
|
var r = e.selection, o = e.cy, c = e.touchData.now, l = e.touchData.earlier, u = o.zoom();
|
|
13722
13725
|
if (t.touches[0]) {
|
|
13723
13726
|
var d = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
|
|
@@ -13740,16 +13743,16 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13740
13743
|
y: c[1]
|
|
13741
13744
|
}
|
|
13742
13745
|
};
|
|
13743
|
-
}, m = e.touchData.startGPosition,
|
|
13746
|
+
}, m = e.touchData.startGPosition, g;
|
|
13744
13747
|
if (n && t.touches[0] && m) {
|
|
13745
|
-
for (var
|
|
13748
|
+
for (var v = [], b = 0; b < c.length; b++) v[b] = c[b] - l[b];
|
|
13746
13749
|
var S = t.touches[0].clientX - m[0], C = S * S, w = t.touches[0].clientY - m[1];
|
|
13747
|
-
|
|
13750
|
+
g = C + w * w >= e.touchTapThreshold2;
|
|
13748
13751
|
}
|
|
13749
13752
|
if (n && e.touchData.cxt) {
|
|
13750
13753
|
t.preventDefault();
|
|
13751
|
-
var T = t.touches[0].clientX -
|
|
13752
|
-
if (j >= F * F ||
|
|
13754
|
+
var T = t.touches[0].clientX - X, E = t.touches[0].clientY - Z, D = t.touches[1].clientX - X, k = t.touches[1].clientY - Z, A = Mh(T, E, D, k), j = A / q, M = 150, N = M * M, F = 1.5;
|
|
13755
|
+
if (j >= F * F || A >= N) {
|
|
13753
13756
|
e.touchData.cxt = !1, e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
|
|
13754
13757
|
var I = f("cxttapend");
|
|
13755
13758
|
e.touchData.start ? (e.touchData.start.unactivate().emit(I), e.touchData.start = null) : o.emit(I);
|
|
@@ -13771,21 +13774,21 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13771
13774
|
B.grabbed = !1, B.rscratch.inDragLayer = !1;
|
|
13772
13775
|
}
|
|
13773
13776
|
}
|
|
13774
|
-
var
|
|
13775
|
-
if (
|
|
13776
|
-
var
|
|
13777
|
-
x: -
|
|
13778
|
-
y: -
|
|
13777
|
+
var J = e.touchData.start, T = t.touches[0].clientX - X, E = t.touches[0].clientY - Z, D = t.touches[1].clientX - X, k = t.touches[1].clientY - Z, Q = jh(T, E, D, k), $ = Q / G;
|
|
13778
|
+
if (Ah) {
|
|
13779
|
+
var Nh = T - V, Ph = E - H, Fh = D - U, Ih = k - W, Lh = (Nh + Fh) / 2, Rh = (Ph + Ih) / 2, zh = o.zoom(), Bh = zh * $, Vh = o.pan(), Hh = Y[0] * zh + Vh.x, Uh = Y[1] * zh + Vh.y, Wh = {
|
|
13780
|
+
x: -Bh / zh * (Hh - Vh.x - Lh) + Hh,
|
|
13781
|
+
y: -Bh / zh * (Uh - Vh.y - Rh) + Uh
|
|
13779
13782
|
};
|
|
13780
|
-
if (
|
|
13783
|
+
if (J && J.active()) {
|
|
13781
13784
|
var R = e.dragData.touchDragEles;
|
|
13782
|
-
|
|
13785
|
+
_(R), e.redrawHint("drag", !0), e.redrawHint("eles", !0), J.unactivate().emit(f("freeon")), R.emit(f("free")), e.dragData.didDrag && (J.emit(f("dragfreeon")), R.emit(f("dragfree")));
|
|
13783
13786
|
}
|
|
13784
13787
|
o.viewport({
|
|
13785
|
-
zoom:
|
|
13786
|
-
pan:
|
|
13788
|
+
zoom: Bh,
|
|
13789
|
+
pan: Wh,
|
|
13787
13790
|
cancelOnFailedZoom: !0
|
|
13788
|
-
}), o.emit(f("pinchzoom")),
|
|
13791
|
+
}), o.emit(f("pinchzoom")), G = Q, V = T, H = E, U = D, W = k, e.pinching = !0;
|
|
13789
13792
|
}
|
|
13790
13793
|
if (t.touches[0]) {
|
|
13791
13794
|
var d = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
|
|
@@ -13800,55 +13803,55 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13800
13803
|
c[4] = d[0], c[5] = d[1];
|
|
13801
13804
|
}
|
|
13802
13805
|
} else if (t.touches[0] && !e.touchData.didSelect) {
|
|
13803
|
-
var
|
|
13804
|
-
if (!e.hoverData.draggingEles && !e.swipePanning && (L = e.findNearestElement(c[0], c[1], !0, !0)), n &&
|
|
13805
|
-
var R = e.dragData.touchDragEles,
|
|
13806
|
-
|
|
13807
|
-
var
|
|
13806
|
+
var Gh = e.touchData.start, Kh = e.touchData.last, L;
|
|
13807
|
+
if (!e.hoverData.draggingEles && !e.swipePanning && (L = e.findNearestElement(c[0], c[1], !0, !0)), n && Gh != null && t.preventDefault(), n && Gh != null && e.nodeIsDraggable(Gh)) if (g) {
|
|
13808
|
+
var R = e.dragData.touchDragEles, qh = !e.dragData.didDrag;
|
|
13809
|
+
qh && h(R, { inDragLayer: !0 }), e.dragData.didDrag = !0;
|
|
13810
|
+
var Jh = {
|
|
13808
13811
|
x: 0,
|
|
13809
13812
|
y: 0
|
|
13810
13813
|
};
|
|
13811
|
-
if (number$1(
|
|
13814
|
+
if (number$1(v[0]) && number$1(v[1]) && (Jh.x += v[0], Jh.y += v[1], qh)) {
|
|
13812
13815
|
e.redrawHint("eles", !0);
|
|
13813
|
-
var
|
|
13814
|
-
|
|
13816
|
+
var Yh = e.touchData.dragDelta;
|
|
13817
|
+
Yh && number$1(Yh[0]) && number$1(Yh[1]) && (Jh.x += Yh[0], Jh.y += Yh[1]);
|
|
13815
13818
|
}
|
|
13816
|
-
e.hoverData.draggingEles = !0, R.silentShift(
|
|
13819
|
+
e.hoverData.draggingEles = !0, R.silentShift(Jh).emit(f("position")).emit(f("drag")), e.redrawHint("drag", !0), e.touchData.startPosition[0] == l[0] && e.touchData.startPosition[1] == l[1] && e.redrawHint("eles", !0), e.redraw();
|
|
13817
13820
|
} else {
|
|
13818
|
-
var
|
|
13819
|
-
|
|
13821
|
+
var Yh = e.touchData.dragDelta = e.touchData.dragDelta || [];
|
|
13822
|
+
Yh.length === 0 ? (Yh.push(v[0]), Yh.push(v[1])) : (Yh[0] += v[0], Yh[1] += v[1]);
|
|
13820
13823
|
}
|
|
13821
|
-
if (a(
|
|
13824
|
+
if (a(Gh || L, [
|
|
13822
13825
|
"touchmove",
|
|
13823
13826
|
"tapdrag",
|
|
13824
13827
|
"vmousemove"
|
|
13825
13828
|
], t, {
|
|
13826
13829
|
x: c[0],
|
|
13827
13830
|
y: c[1]
|
|
13828
|
-
}), (!
|
|
13829
|
-
if (n && (
|
|
13830
|
-
s(
|
|
13831
|
-
x:
|
|
13832
|
-
y:
|
|
13833
|
-
}), o.emit(f("dragpan"))) :
|
|
13831
|
+
}), (!Gh || !Gh.grabbed()) && L != Kh && (Kh && Kh.emit(f("tapdragout")), L && L.emit(f("tapdragover"))), e.touchData.last = L, n) for (var z = 0; z < c.length; z++) c[z] && e.touchData.startPosition[z] && g && (e.touchData.singleTouchMoved = !0);
|
|
13832
|
+
if (n && (Gh == null || Gh.pannable()) && o.panningEnabled() && o.userPanningEnabled()) {
|
|
13833
|
+
s(Gh, e.touchData.starts) && (t.preventDefault(), e.data.bgActivePosistion || (e.data.bgActivePosistion = array2point(e.touchData.startPosition)), e.swipePanning ? (o.panBy({
|
|
13834
|
+
x: v[0] * u,
|
|
13835
|
+
y: v[1] * u
|
|
13836
|
+
}), o.emit(f("dragpan"))) : g && (e.swipePanning = !0, o.panBy({
|
|
13834
13837
|
x: S * u,
|
|
13835
13838
|
y: w * u
|
|
13836
|
-
}), o.emit(f("dragpan")),
|
|
13839
|
+
}), o.emit(f("dragpan")), Gh && (Gh.unactivate(), e.redrawHint("select", !0), e.touchData.start = null)));
|
|
13837
13840
|
var d = e.projectIntoViewport(t.touches[0].clientX, t.touches[0].clientY);
|
|
13838
13841
|
c[0] = d[0], c[1] = d[1];
|
|
13839
13842
|
}
|
|
13840
13843
|
}
|
|
13841
|
-
for (var
|
|
13844
|
+
for (var b = 0; b < c.length; b++) l[b] = c[b];
|
|
13842
13845
|
n && t.touches.length > 0 && !e.hoverData.draggingEles && !e.swipePanning && e.data.bgActivePosistion != null && (e.data.bgActivePosistion = void 0, e.redrawHint("select", !0), e.redraw());
|
|
13843
13846
|
}
|
|
13844
13847
|
}, !1);
|
|
13845
|
-
var
|
|
13846
|
-
e.registerBinding(t, "touchcancel",
|
|
13848
|
+
var Fh;
|
|
13849
|
+
e.registerBinding(t, "touchcancel", Fh = function(t) {
|
|
13847
13850
|
var n = e.touchData.start;
|
|
13848
13851
|
e.touchData.capture = !1, n && n.unactivate();
|
|
13849
13852
|
});
|
|
13850
|
-
var
|
|
13851
|
-
if (e.registerBinding(t, "touchend",
|
|
13853
|
+
var Ih, Lh, Rh, zh;
|
|
13854
|
+
if (e.registerBinding(t, "touchend", Ih = function(t) {
|
|
13852
13855
|
var r = e.touchData.start;
|
|
13853
13856
|
if (e.touchData.capture) t.touches.length === 0 && (e.touchData.capture = !1), t.preventDefault();
|
|
13854
13857
|
else return;
|
|
@@ -13897,10 +13900,10 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13897
13900
|
if (r?.unactivate(), t.touches[2]) e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
|
|
13898
13901
|
else if (!t.touches[1] && !t.touches[0] && !t.touches[0]) {
|
|
13899
13902
|
e.data.bgActivePosistion = void 0, e.redrawHint("select", !0);
|
|
13900
|
-
var
|
|
13903
|
+
var v = e.dragData.touchDragEles;
|
|
13901
13904
|
if (r != null) {
|
|
13902
|
-
var
|
|
13903
|
-
|
|
13905
|
+
var b = r._private.grabbed;
|
|
13906
|
+
_(v), e.redrawHint("drag", !0), e.redrawHint("eles", !0), b && (r.emit(f("freeon")), v.emit(f("free")), e.dragData.didDrag && (r.emit(f("dragfreeon")), v.emit(f("dragfree")))), a(r, [
|
|
13904
13907
|
"touchend",
|
|
13905
13908
|
"tapend",
|
|
13906
13909
|
"vmouseup",
|
|
@@ -13922,15 +13925,15 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13922
13925
|
e.touchData.singleTouchMoved || (r || s.$(":selected").unselect(["tapunselect"]), a(r, ["tap", "vclick"], t, {
|
|
13923
13926
|
x: l[0],
|
|
13924
13927
|
y: l[1]
|
|
13925
|
-
}),
|
|
13928
|
+
}), Lh = !1, t.timeStamp - zh <= s.multiClickDebounceTime() ? (Rh && clearTimeout(Rh), Lh = !0, zh = null, a(r, ["dbltap", "vdblclick"], t, {
|
|
13926
13929
|
x: l[0],
|
|
13927
13930
|
y: l[1]
|
|
13928
|
-
})) : (
|
|
13929
|
-
|
|
13931
|
+
})) : (Rh = setTimeout(function() {
|
|
13932
|
+
Lh || a(r, ["onetap", "voneclick"], t, {
|
|
13930
13933
|
x: l[0],
|
|
13931
13934
|
y: l[1]
|
|
13932
13935
|
});
|
|
13933
|
-
}, s.multiClickDebounceTime()),
|
|
13936
|
+
}, s.multiClickDebounceTime()), zh = t.timeStamp)), r != null && !e.dragData.didDrag && r._private.selectable && T < e.touchTapThreshold2 && !e.pinching && (s.selectionType() === "single" ? (s.$(n).unmerge(r).unselect(["tapunselect"]), r.select(["tapselect"])) : r.selected() ? r.unselect(["tapunselect"]) : r.select(["tapselect"]), e.redrawHint("eles", !0)), e.touchData.singleTouchMoved = !0;
|
|
13934
13937
|
}
|
|
13935
13938
|
for (var E = 0; E < l.length; E++) u[E] = l[E];
|
|
13936
13939
|
e.dragData.didDrag = !1, t.touches.length === 0 && (e.touchData.dragDelta = [], e.touchData.startPosition = [
|
|
@@ -13942,7 +13945,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13942
13945
|
null
|
|
13943
13946
|
], e.touchData.startGPosition = null, e.touchData.didSelect = !1), t.touches.length < 2 && (t.touches.length === 1 && (e.touchData.startGPosition = [t.touches[0].clientX, t.touches[0].clientY]), e.pinching = !1, e.redrawHint("eles", !0), e.redraw());
|
|
13944
13947
|
}, !1), typeof TouchEvent > "u") {
|
|
13945
|
-
var
|
|
13948
|
+
var Bh = [], Vh = function(e) {
|
|
13946
13949
|
return {
|
|
13947
13950
|
clientX: e.clientX,
|
|
13948
13951
|
clientY: e.clientY,
|
|
@@ -13956,38 +13959,38 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13956
13959
|
screenY: e.screenY,
|
|
13957
13960
|
target: e.target
|
|
13958
13961
|
};
|
|
13959
|
-
},
|
|
13962
|
+
}, Hh = function(e) {
|
|
13960
13963
|
return {
|
|
13961
13964
|
event: e,
|
|
13962
|
-
touch:
|
|
13965
|
+
touch: Vh(e)
|
|
13963
13966
|
};
|
|
13964
|
-
}, Hh = function(e) {
|
|
13965
|
-
zh.push(Vh(e));
|
|
13966
13967
|
}, Uh = function(e) {
|
|
13967
|
-
|
|
13968
|
-
|
|
13968
|
+
Bh.push(Hh(e));
|
|
13969
|
+
}, Wh = function(e) {
|
|
13970
|
+
for (var t = 0; t < Bh.length; t++) if (Bh[t].event.pointerId === e.pointerId) {
|
|
13971
|
+
Bh.splice(t, 1);
|
|
13969
13972
|
return;
|
|
13970
13973
|
}
|
|
13971
|
-
},
|
|
13972
|
-
var t =
|
|
13974
|
+
}, Gh = function(e) {
|
|
13975
|
+
var t = Bh.filter(function(t) {
|
|
13973
13976
|
return t.event.pointerId === e.pointerId;
|
|
13974
13977
|
})[0];
|
|
13975
|
-
t.event = e, t.touch =
|
|
13976
|
-
},
|
|
13977
|
-
e.touches =
|
|
13978
|
+
t.event = e, t.touch = Vh(e);
|
|
13979
|
+
}, Kh = function(e) {
|
|
13980
|
+
e.touches = Bh.map(function(e) {
|
|
13978
13981
|
return e.touch;
|
|
13979
13982
|
});
|
|
13980
|
-
},
|
|
13983
|
+
}, qh = function(e) {
|
|
13981
13984
|
return e.pointerType === "mouse" || e.pointerType === 4;
|
|
13982
13985
|
};
|
|
13983
13986
|
e.registerBinding(e.container, "pointerdown", function(e) {
|
|
13984
|
-
|
|
13987
|
+
qh(e) || (e.preventDefault(), Uh(e), Kh(e), Nh(e));
|
|
13985
13988
|
}), e.registerBinding(e.container, "pointerup", function(e) {
|
|
13986
|
-
|
|
13989
|
+
qh(e) || (Wh(e), Kh(e), Ih(e));
|
|
13987
13990
|
}), e.registerBinding(e.container, "pointercancel", function(e) {
|
|
13988
|
-
|
|
13991
|
+
qh(e) || (Wh(e), Kh(e), Fh(e));
|
|
13989
13992
|
}), e.registerBinding(e.container, "pointermove", function(e) {
|
|
13990
|
-
|
|
13993
|
+
qh(e) || (e.preventDefault(), Gh(e), Kh(e), Ph(e));
|
|
13991
13994
|
});
|
|
13992
13995
|
}
|
|
13993
13996
|
};
|
|
@@ -15493,10 +15496,10 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15493
15496
|
}, Q = t.pstyle("shape").strValue, $ = t.pstyle("shape-polygon-points").pfValue;
|
|
15494
15497
|
if (h) {
|
|
15495
15498
|
e.translate(f.x, f.y);
|
|
15496
|
-
var
|
|
15497
|
-
g =
|
|
15499
|
+
var Ah = Z(c, l, Q, $);
|
|
15500
|
+
g = Ah.path, _ = Ah.cacheHit;
|
|
15498
15501
|
}
|
|
15499
|
-
var
|
|
15502
|
+
var jh = function() {
|
|
15500
15503
|
if (!_) {
|
|
15501
15504
|
var n = f;
|
|
15502
15505
|
h && (n = {
|
|
@@ -15505,7 +15508,7 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15505
15508
|
}), s.nodeShapes[s.getNodeShape(t)].draw(g || e, n.x, n.y, c, l, q, d);
|
|
15506
15509
|
}
|
|
15507
15510
|
h ? e.fill(g) : e.fill();
|
|
15508
|
-
},
|
|
15511
|
+
}, Mh = function() {
|
|
15509
15512
|
for (var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, a = u.backgrounding, o = 0, c = 0; c < w.length; c++) {
|
|
15510
15513
|
var l = t.cy().style().getIndexedStyle(t, "background-image-containment", "value", c);
|
|
15511
15514
|
if (r && l === "over" || !r && l === "inside") {
|
|
@@ -15515,16 +15518,16 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15515
15518
|
C[c] && w[c].complete && !w[c].error && (o++, s.drawInscribedImage(e, w[c], t, c, n));
|
|
15516
15519
|
}
|
|
15517
15520
|
u.backgrounding = o !== T, a !== u.backgrounding && t.updateStyle(!1);
|
|
15518
|
-
},
|
|
15521
|
+
}, Nh = function() {
|
|
15519
15522
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m;
|
|
15520
15523
|
s.hasPie(t) && (s.drawPie(e, t, r), n && (h || s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d)));
|
|
15521
|
-
},
|
|
15524
|
+
}, Ph = function() {
|
|
15522
15525
|
var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m;
|
|
15523
15526
|
s.hasStripe(t) && (e.save(), h ? e.clip(d.pathCache) : (s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d), e.clip()), s.drawStripe(e, t, r), e.restore(), n && (h || s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d)));
|
|
15524
|
-
},
|
|
15527
|
+
}, Fh = function() {
|
|
15525
15528
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m, n = (k > 0 ? k : -k) * t, r = k > 0 ? 0 : 255;
|
|
15526
15529
|
k !== 0 && (s.colorFillStyle(e, r, r, r, n), h ? e.fill(g) : e.fill());
|
|
15527
|
-
},
|
|
15530
|
+
}, Ih = function() {
|
|
15528
15531
|
if (A > 0) {
|
|
15529
15532
|
if (e.lineWidth = A, e.lineCap = I, e.lineJoin = F, e.setLineDash) switch (N) {
|
|
15530
15533
|
case "dotted":
|
|
@@ -15553,7 +15556,7 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15553
15556
|
}
|
|
15554
15557
|
e.setLineDash && e.setLineDash([]);
|
|
15555
15558
|
}
|
|
15556
|
-
},
|
|
15559
|
+
}, Lh = function() {
|
|
15557
15560
|
if (V > 0) {
|
|
15558
15561
|
if (e.lineWidth = V, e.lineCap = "butt", e.setLineDash) switch (U) {
|
|
15559
15562
|
case "dotted":
|
|
@@ -15619,18 +15622,18 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15619
15622
|
}
|
|
15620
15623
|
e.setLineDash && e.setLineDash([]);
|
|
15621
15624
|
}
|
|
15622
|
-
},
|
|
15625
|
+
}, Rh = function() {
|
|
15623
15626
|
a && s.drawNodeOverlay(e, t, f, c, l);
|
|
15624
|
-
},
|
|
15627
|
+
}, zh = function() {
|
|
15625
15628
|
a && s.drawNodeUnderlay(e, t, f, c, l);
|
|
15626
|
-
},
|
|
15629
|
+
}, Bh = function() {
|
|
15627
15630
|
s.drawElementText(e, t, null, r);
|
|
15628
15631
|
};
|
|
15629
15632
|
if (t.pstyle("ghost").value === "yes") {
|
|
15630
|
-
var
|
|
15631
|
-
e.translate(
|
|
15633
|
+
var Vh = t.pstyle("ghost-offset-x").pfValue, Hh = t.pstyle("ghost-offset-y").pfValue, Uh = t.pstyle("ghost-opacity").value, Wh = Uh * m;
|
|
15634
|
+
e.translate(Vh, Hh), X(), Lh(), J(Uh * j), jh(), Mh(Wh, !0), Y(Uh * B), Ih(), Nh(k !== 0 || A !== 0), Ph(k !== 0 || A !== 0), Mh(Wh, !1), Fh(Wh), e.translate(-Vh, -Hh);
|
|
15632
15635
|
}
|
|
15633
|
-
h && e.translate(-f.x, -f.y),
|
|
15636
|
+
h && e.translate(-f.x, -f.y), zh(), h && e.translate(f.x, f.y), X(), Lh(), J(), jh(), Mh(m, !0), Y(), Ih(), Nh(k !== 0 || A !== 0), Ph(k !== 0 || A !== 0), Mh(m, !1), Fh(), h && e.translate(-f.x, -f.y), Bh(), Rh(), n && e.translate(b.x1, b.y1);
|
|
15634
15637
|
}
|
|
15635
15638
|
};
|
|
15636
15639
|
var drawNodeOverlayUnderlay = function(e) {
|
|
@@ -17084,20 +17087,20 @@ var AtlasManager = /* @__PURE__ */ function() {
|
|
|
17084
17087
|
u[0] = l, u[1] = l, u[2] = l, u[3] = l, o === BOTTOM_ROUND_RECTANGLE && (u[0] = 0, u[2] = 0);
|
|
17085
17088
|
}
|
|
17086
17089
|
indexToVec4(t, this.indexBuffer.getView(s));
|
|
17087
|
-
var d = this.renderTarget.picking ? 1 : e.pstyle(a.opacity).value,
|
|
17088
|
-
toWebGLColor(
|
|
17089
|
-
var
|
|
17090
|
-
if (
|
|
17091
|
-
var
|
|
17092
|
-
if (
|
|
17093
|
-
var
|
|
17094
|
-
toWebGLColor(
|
|
17090
|
+
var d = this.renderTarget.picking ? 1 : n === "node-body" ? e.effectiveOpacity() : 1, f = this.renderTarget.picking ? 1 : e.pstyle(a.opacity).value * d, m = e.pstyle(a.color).value;
|
|
17091
|
+
toWebGLColor(m, f, this.colorBuffer.getView(s));
|
|
17092
|
+
var h = this.lineWidthBuffer.getView(s);
|
|
17093
|
+
if (h[0] = 0, h[1] = 0, a.border) {
|
|
17094
|
+
var g = e.pstyle("border-width").value;
|
|
17095
|
+
if (g > 0) {
|
|
17096
|
+
var _ = e.pstyle("border-color").value;
|
|
17097
|
+
toWebGLColor(_, d * e.pstyle("border-opacity").value, this.borderColorBuffer.getView(s));
|
|
17095
17098
|
var v = e.pstyle("border-position").value;
|
|
17096
|
-
if (v === "inside")
|
|
17097
|
-
else if (v === "outside")
|
|
17099
|
+
if (v === "inside") h[0] = 0, h[1] = -g;
|
|
17100
|
+
else if (v === "outside") h[0] = g, h[1] = 0;
|
|
17098
17101
|
else {
|
|
17099
|
-
var b =
|
|
17100
|
-
|
|
17102
|
+
var b = g / 2;
|
|
17103
|
+
h[0] = b, h[1] = -b;
|
|
17101
17104
|
}
|
|
17102
17105
|
}
|
|
17103
17106
|
}
|
|
@@ -18090,7 +18093,7 @@ sheetfn.instanceString = function() {
|
|
|
18090
18093
|
}
|
|
18091
18094
|
return e;
|
|
18092
18095
|
};
|
|
18093
|
-
var version = "3.33.
|
|
18096
|
+
var version = "3.33.3", cytoscape = function(e) {
|
|
18094
18097
|
if (e === void 0 && (e = {}), plainObject(e)) return new Core(e);
|
|
18095
18098
|
if (string(e)) return extension.apply(extension, arguments);
|
|
18096
18099
|
};
|