@plumile/ui 0.1.116 → 0.1.117
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/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +49 -49
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +69 -69
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/_internal/globalThis.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/getTag.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/getTag.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +9 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/tags.js +6 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/_internal/tags.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/function/memoize.js +16 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/function/memoize.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/clone.js +101 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/clone.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +9 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeep.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +33 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/merge.js +10 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/merge.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/mergeWith.js +53 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/object/mergeWith.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +9 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArguments.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArray.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArray.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +9 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +10 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +20 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +16 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +9 -0
- package/lib/esm/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/function/noop.js +6 -0
- package/lib/esm/node_modules/es-toolkit/dist/function/noop.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/object/clone.js +28 -0
- package/lib/esm/node_modules/es-toolkit/dist/object/clone.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/object/cloneDeepWith.js +118 -0
- package/lib/esm/node_modules/es-toolkit/dist/object/cloneDeepWith.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isBuffer.js +9 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isBuffer.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isLength.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isLength.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isPrimitive.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isPrimitive.js.map +1 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isTypedArray.js +8 -0
- package/lib/esm/node_modules/es-toolkit/dist/predicate/isTypedArray.js.map +1 -0
- package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
- package/lib/esm/node_modules/lodash-es/_assignMergeValue.js +3 -3
- package/lib/esm/node_modules/lodash-es/_assignValue.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseClone.js +31 -31
- package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +10 -10
- package/lib/esm/node_modules/lodash-es/_baseMerge.js +9 -9
- package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +17 -17
- package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +11 -11
- package/lib/esm/node_modules/lodash-es/_baseRest.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseSet.js +4 -4
- package/lib/esm/node_modules/lodash-es/_baseSetToString.js +7 -7
- package/lib/esm/node_modules/lodash-es/_baseToString.js +5 -5
- package/lib/esm/node_modules/lodash-es/_createRange.js +3 -3
- package/lib/esm/node_modules/lodash-es/_createSet.js +5 -5
- package/lib/esm/node_modules/lodash-es/_flatRest.js +3 -3
- package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +7 -7
- package/lib/esm/node_modules/lodash-es/_getTag.js +7 -7
- package/lib/esm/node_modules/lodash-es/_hasPath.js +4 -4
- package/lib/esm/node_modules/lodash-es/_initCloneByTag.js +8 -8
- package/lib/esm/node_modules/lodash-es/_initCloneObject.js +3 -3
- package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
- package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +4 -4
- package/lib/esm/node_modules/lodash-es/_isKey.js +4 -4
- package/lib/esm/node_modules/lodash-es/_setToString.js +3 -3
- package/lib/esm/node_modules/lodash-es/defaults.js +9 -9
- package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/isEmpty.js +6 -6
- package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/map.js +3 -3
- package/lib/esm/node_modules/lodash-es/merge.js +4 -4
- package/lib/esm/node_modules/lodash-es/toNumber.js +7 -7
- package/lib/esm/node_modules/lodash-es/union.js +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +14 -12
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js.map → architectureDiagram-3BPJPVTR.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +453 -428
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js.map → c4Diagram-AAUBKEIU.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +3 -3
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js.map → chunk-2J33WTMH.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +290 -262
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-3OPIFGDE.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5ZQYHXKU.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +487 -391
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-727SXJPM.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +157 -147
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AQP2D5EJ.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +193 -99
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CSCIHK7Q.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +14 -14
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KSCS5N6A.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +4 -4
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js.map → chunk-L5ZTLDWV.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +7 -7
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js.map → chunk-LZXEDZCA.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +3 -3
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js.map → chunk-ND2GUHAM.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +3 -3
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js.map → chunk-NZK2D7GU.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +4 -4
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js.map → chunk-O5CBEL6O.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +3 -3
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js.map → chunk-WU5MYG2G.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +13 -13
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js.map → classDiagram-4FO5ZUOK.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +13 -13
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js.map → classDiagram-v2-Q7XG4LA2.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +10 -10
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js.map → dagre-BM42HDAG.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js.map → diagram-2AECGRRQ.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js.map → diagram-5GNKFQAL.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +435 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js.map → diagram-LMA3HP47.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +7 -7
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js.map → diagram-OG6HWLK6.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +11 -11
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js.map → erDiagram-TEJ5UH35.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +12 -12
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js.map → flowDiagram-I6XJVG4X.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +9 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-6RSMTGT7.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +4 -4
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js.map → gitGraphDiagram-PVQCEYII.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js.map → infoDiagram-5YYISTIA.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js.map → ishikawaDiagram-YF4QCWOH.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +4 -4
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js.map → journeyDiagram-JHISSGLW.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +9 -9
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js.map → kanban-definition-UN3LZRKU.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +12 -12
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js.map → mindmap-definition-RKZ34NQL.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js.map → pieDiagram-4H26LBE5.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +316 -289
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-W4KKPZXB.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +11 -11
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js.map → requirementDiagram-4Y6WPE33.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +80 -31
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js.map → sankeyDiagram-5OEKKPKP.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +17 -10
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-3UESZ5HK.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +12 -12
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js.map → stateDiagram-AJRCARHV.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +12 -12
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js.map → stateDiagram-v2-BHNVJYJU.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js.map → timeline-definition-PNZ67QCA.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +5 -5
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js.map → vennDiagram-CIIHVFJN.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{wardleyDiagram-NUSXRM2D.js → wardleyDiagram-YWT4CUSO.js} +188 -122
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js.map +1 -0
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js.map → xychartDiagram-2RQKCTM6.js.map} +1 -1
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +308 -281
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
- package/lib/esm/node_modules/stylis/src/Enum.js +2 -2
- package/lib/esm/node_modules/stylis/src/Enum.js.map +1 -1
- package/lib/esm/node_modules/stylis/src/Middleware.js +13 -0
- package/lib/esm/node_modules/stylis/src/Middleware.js.map +1 -0
- package/lib/esm/node_modules/uuid/dist/rng.js +9 -0
- package/lib/esm/node_modules/uuid/dist/rng.js.map +1 -0
- package/lib/esm/node_modules/uuid/dist/{esm-browser/stringify.js → stringify.js} +1 -1
- package/lib/esm/node_modules/uuid/dist/stringify.js.map +1 -0
- package/lib/esm/node_modules/uuid/dist/v4.js +21 -0
- package/lib/esm/node_modules/uuid/dist/v4.js.map +1 -0
- package/package.json +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-DXYQGD6D.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4TB4RGXK.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OYMX7WX6.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-T4ZO3ILL.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-34T5L4WZ.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js.map +0 -1
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js.map +0 -1
- package/lib/esm/node_modules/uuid/dist/esm-browser/native.js +0 -5
- package/lib/esm/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
- package/lib/esm/node_modules/uuid/dist/esm-browser/rng.js +0 -13
- package/lib/esm/node_modules/uuid/dist/esm-browser/rng.js.map +0 -1
- package/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +0 -1
- package/lib/esm/node_modules/uuid/dist/esm-browser/v4.js +0 -20
- package/lib/esm/node_modules/uuid/dist/esm-browser/v4.js.map +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { __name as e, log as t } from "./chunk-AGHRB4JF.js";
|
|
2
2
|
import n from "../../../../khroma/dist/methods/rgba.js";
|
|
3
3
|
import r from "../../../../khroma/dist/methods/channel.js";
|
|
4
|
-
import { clear as i, common_default as a, configureSvgSize as o, getConfig as s, getConfig2 as c, getEffectiveHtmlLabels as l, getUrl as u, sanitizeText as d } from "./chunk-
|
|
4
|
+
import { clear as i, common_default as a, configureSvgSize as o, getConfig as s, getConfig2 as c, getEffectiveHtmlLabels as l, getUrl as u, sanitizeText as d } from "./chunk-CSCIHK7Q.js";
|
|
5
5
|
import f from "../../../../d3-selection/src/select.js";
|
|
6
6
|
import p from "../../../../d3-shape/src/line.js";
|
|
7
7
|
import m from "../../../../d3-shape/src/curve/basis.js";
|
|
8
8
|
import "../../../../d3/src/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import w from "
|
|
9
|
+
import { clone as h } from "../../../../es-toolkit/dist/compat/object/clone.js";
|
|
10
|
+
import { decodeEntities as g, getStylesFromArray as _, utils_default as v } from "./chunk-5ZQYHXKU.js";
|
|
11
|
+
import { createText as y } from "./chunk-O5CBEL6O.js";
|
|
12
|
+
import { getIconStyles as b } from "./chunk-FMBD7UC4.js";
|
|
13
|
+
import { computeLabelTransform as x, getLineFunctionsWithOffset as S } from "./chunk-BSJP7CBP.js";
|
|
14
|
+
import { configureLabelImages as C, getSubGraphTitleMargins as w } from "./chunk-L5ZTLDWV.js";
|
|
15
15
|
import { Graph as T } from "../../../../dagre-d3-es/src/graphlib/graph.js";
|
|
16
16
|
import "../../../../dagre-d3-es/src/graphlib/index.js";
|
|
17
|
-
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-
|
|
17
|
+
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.mjs
|
|
18
18
|
var E = (function() {
|
|
19
19
|
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
20
20
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -242,7 +242,7 @@ var E = (function() {
|
|
|
242
242
|
break;
|
|
243
243
|
case 23:
|
|
244
244
|
r.getLogger().debug("Rule: (nodeStatement link node) ", a[s - 2], a[s - 1], a[s], " typestr: ", a[s - 1].edgeTypeStr);
|
|
245
|
-
let i = r.edgeStrToEdgeData(a[s - 1].edgeTypeStr);
|
|
245
|
+
let i = r.edgeStrToEdgeData(a[s - 1].edgeTypeStr), o = r.edgeStrToEdgeStartData(a[s - 1].edgeTypeStr), c = r.edgeStrToThickness(a[s - 1].edgeTypeStr), l = r.edgeStrToPattern(a[s - 1].edgeTypeStr);
|
|
246
246
|
this.$ = [
|
|
247
247
|
{
|
|
248
248
|
id: a[s - 2].id,
|
|
@@ -256,9 +256,11 @@ var E = (function() {
|
|
|
256
256
|
end: a[s].id,
|
|
257
257
|
label: a[s - 1].label,
|
|
258
258
|
type: "edge",
|
|
259
|
+
thickness: c,
|
|
260
|
+
pattern: l,
|
|
259
261
|
directions: a[s].directions,
|
|
260
262
|
arrowTypeEnd: i,
|
|
261
|
-
arrowTypeStart:
|
|
263
|
+
arrowTypeStart: o
|
|
262
264
|
},
|
|
263
265
|
{
|
|
264
266
|
id: a[s].id,
|
|
@@ -301,9 +303,9 @@ var E = (function() {
|
|
|
301
303
|
break;
|
|
302
304
|
case 28:
|
|
303
305
|
r.getLogger().debug("Rule: blockStatement : ", a[s - 2], a[s - 1], a[s]);
|
|
304
|
-
let
|
|
306
|
+
let u = r.generateId();
|
|
305
307
|
this.$ = {
|
|
306
|
-
id:
|
|
308
|
+
id: u,
|
|
307
309
|
type: "composite",
|
|
308
310
|
label: "",
|
|
309
311
|
children: a[s - 1]
|
|
@@ -941,7 +943,7 @@ var E = (function() {
|
|
|
941
943
|
/^(?:\[\\)/,
|
|
942
944
|
/^(?:\[)/,
|
|
943
945
|
/^(?:<\[)/,
|
|
944
|
-
/^(?:[^\(\[\n\-\)\{\}\s
|
|
946
|
+
/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
|
|
945
947
|
/^(?:$)/,
|
|
946
948
|
/^(?:["][`])/,
|
|
947
949
|
/^(?:["][`])/,
|
|
@@ -1152,7 +1154,7 @@ var E = (function() {
|
|
|
1152
1154
|
return e(v, "Parser"), v.prototype = _, _.Parser = v, new v();
|
|
1153
1155
|
})();
|
|
1154
1156
|
E.parser = E;
|
|
1155
|
-
var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(), j = "color", M = "fill", ee = "bgFill", te = ",", ne = c(), N = /* @__PURE__ */ new Map(),
|
|
1157
|
+
var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(), j = "color", M = "fill", ee = "bgFill", te = ",", ne = c(), N = /* @__PURE__ */ new Map(), P = "", re = /* @__PURE__ */ e((e) => a.sanitizeText(e, ne), "sanitizeText"), ie = /* @__PURE__ */ e(function(e, t = "") {
|
|
1156
1158
|
let n = N.get(e);
|
|
1157
1159
|
n || (n = {
|
|
1158
1160
|
id: e,
|
|
@@ -1166,10 +1168,10 @@ var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(),
|
|
|
1166
1168
|
}
|
|
1167
1169
|
n.styles.push(t);
|
|
1168
1170
|
});
|
|
1169
|
-
}, "addStyleClass"),
|
|
1171
|
+
}, "addStyleClass"), ae = /* @__PURE__ */ e(function(e, t = "") {
|
|
1170
1172
|
let n = O.get(e);
|
|
1171
1173
|
t != null && (n.styles = t.split(te));
|
|
1172
|
-
}, "addStyle2Node"),
|
|
1174
|
+
}, "addStyle2Node"), oe = /* @__PURE__ */ e(function(e, t) {
|
|
1173
1175
|
e.split(",").forEach(function(e) {
|
|
1174
1176
|
let n = O.get(e);
|
|
1175
1177
|
if (n === void 0) {
|
|
@@ -1182,19 +1184,19 @@ var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(),
|
|
|
1182
1184
|
}
|
|
1183
1185
|
n.classes ||= [], n.classes.push(t);
|
|
1184
1186
|
});
|
|
1185
|
-
}, "setCssClass"),
|
|
1187
|
+
}, "setCssClass"), se = /* @__PURE__ */ e((e, n) => {
|
|
1186
1188
|
let r = e.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
|
|
1187
1189
|
for (let e of r) {
|
|
1188
|
-
if (typeof a == "number" && a > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > a && t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`), e.label &&=
|
|
1189
|
-
|
|
1190
|
+
if (typeof a == "number" && a > 0 && e.type !== "column-setting" && typeof e.widthInColumns == "number" && e.widthInColumns > a && t.warn(`Block ${e.id} width ${e.widthInColumns} exceeds configured column width ${a}`), e.label &&= re(e.label), e.type === "classDef") {
|
|
1191
|
+
ie(e.id, e.css);
|
|
1190
1192
|
continue;
|
|
1191
1193
|
}
|
|
1192
1194
|
if (e.type === "applyClass") {
|
|
1193
|
-
|
|
1195
|
+
oe(e.id, e?.styleClass ?? "");
|
|
1194
1196
|
continue;
|
|
1195
1197
|
}
|
|
1196
1198
|
if (e.type === "applyStyles") {
|
|
1197
|
-
e?.stylesStr &&
|
|
1199
|
+
e?.stylesStr && ae(e.id, e?.stylesStr);
|
|
1198
1200
|
continue;
|
|
1199
1201
|
}
|
|
1200
1202
|
if (e.type === "column-setting") n.columns = e.columns ?? -1;
|
|
@@ -1204,30 +1206,30 @@ var D = E, O = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(),
|
|
|
1204
1206
|
} else {
|
|
1205
1207
|
e.label || (e.type === "composite" ? e.label = "" : e.label = e.id);
|
|
1206
1208
|
let t = O.get(e.id);
|
|
1207
|
-
if (t === void 0 ? O.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children &&
|
|
1209
|
+
if (t === void 0 ? O.set(e.id, e) : (e.type !== "na" && (t.type = e.type), e.label !== e.id && (t.label = e.label)), e.children && se(e.children, e), e.type === "space") {
|
|
1208
1210
|
let t = e.width ?? 1;
|
|
1209
1211
|
for (let n = 0; n < t; n++) {
|
|
1210
|
-
let t =
|
|
1212
|
+
let t = h(e);
|
|
1211
1213
|
t.id = t.id + "-" + n, O.set(t.id, t), i.push(t);
|
|
1212
1214
|
}
|
|
1213
1215
|
} else t === void 0 && i.push(e);
|
|
1214
1216
|
}
|
|
1215
1217
|
}
|
|
1216
1218
|
n.children = i;
|
|
1217
|
-
}, "populateBlockDatabase"),
|
|
1219
|
+
}, "populateBlockDatabase"), F = [], I = {
|
|
1218
1220
|
id: "root",
|
|
1219
1221
|
type: "composite",
|
|
1220
1222
|
children: [],
|
|
1221
1223
|
columns: -1
|
|
1222
|
-
},
|
|
1223
|
-
t.debug("Clear called"), i(),
|
|
1224
|
+
}, ce = /* @__PURE__ */ e(() => {
|
|
1225
|
+
t.debug("Clear called"), i(), I = {
|
|
1224
1226
|
id: "root",
|
|
1225
1227
|
type: "composite",
|
|
1226
1228
|
children: [],
|
|
1227
1229
|
columns: -1
|
|
1228
|
-
}, O = /* @__PURE__ */ new Map([["root",
|
|
1230
|
+
}, O = /* @__PURE__ */ new Map([["root", I]]), F = [], N = /* @__PURE__ */ new Map(), k = [], A = /* @__PURE__ */ new Map(), P = "";
|
|
1229
1231
|
}, "clear");
|
|
1230
|
-
function
|
|
1232
|
+
function le(e) {
|
|
1231
1233
|
switch (t.debug("typeStr2Type", e), e) {
|
|
1232
1234
|
case "[]": return "square";
|
|
1233
1235
|
case "()": return t.debug("we have a round"), "round";
|
|
@@ -1247,34 +1249,54 @@ function de(e) {
|
|
|
1247
1249
|
default: return "na";
|
|
1248
1250
|
}
|
|
1249
1251
|
}
|
|
1250
|
-
e(
|
|
1251
|
-
function
|
|
1252
|
+
e(le, "typeStr2Type");
|
|
1253
|
+
function ue(e) {
|
|
1252
1254
|
switch (t.debug("typeStr2Type", e), e) {
|
|
1253
1255
|
case "==": return "thick";
|
|
1254
1256
|
default: return "normal";
|
|
1255
1257
|
}
|
|
1256
1258
|
}
|
|
1257
|
-
e(
|
|
1258
|
-
function
|
|
1259
|
-
switch (e.
|
|
1259
|
+
e(ue, "edgeTypeStr2Type");
|
|
1260
|
+
function de(e) {
|
|
1261
|
+
switch (e.trim().slice(-1)) {
|
|
1260
1262
|
case "x": return "arrow_cross";
|
|
1261
1263
|
case "o": return "arrow_circle";
|
|
1262
1264
|
case ">": return "arrow_point";
|
|
1263
1265
|
default: return "";
|
|
1264
1266
|
}
|
|
1265
1267
|
}
|
|
1266
|
-
e(
|
|
1267
|
-
|
|
1268
|
+
e(de, "edgeStrToEdgeData");
|
|
1269
|
+
function fe(e) {
|
|
1270
|
+
switch (e.trim().charAt(0)) {
|
|
1271
|
+
case "x": return "arrow_cross";
|
|
1272
|
+
case "o": return "arrow_circle";
|
|
1273
|
+
case "<": return "arrow_point";
|
|
1274
|
+
default: return "arrow_open";
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
e(fe, "edgeStrToEdgeStartData");
|
|
1278
|
+
function pe(e) {
|
|
1279
|
+
return e.includes("==") ? "thick" : "normal";
|
|
1280
|
+
}
|
|
1281
|
+
e(pe, "edgeStrToThickness");
|
|
1282
|
+
function me(e) {
|
|
1283
|
+
return e.includes(".-") ? "dotted" : "solid";
|
|
1284
|
+
}
|
|
1285
|
+
e(me, "edgeStrToPattern");
|
|
1286
|
+
var he = 0, ge = {
|
|
1268
1287
|
getConfig: /* @__PURE__ */ e(() => s().block, "getConfig"),
|
|
1269
|
-
typeStr2Type:
|
|
1270
|
-
edgeTypeStr2Type:
|
|
1271
|
-
edgeStrToEdgeData:
|
|
1288
|
+
typeStr2Type: le,
|
|
1289
|
+
edgeTypeStr2Type: ue,
|
|
1290
|
+
edgeStrToEdgeData: de,
|
|
1291
|
+
edgeStrToEdgeStartData: fe,
|
|
1292
|
+
edgeStrToThickness: pe,
|
|
1293
|
+
edgeStrToPattern: me,
|
|
1272
1294
|
getLogger: /* @__PURE__ */ e(() => t, "getLogger"),
|
|
1273
1295
|
getBlocksFlat: /* @__PURE__ */ e(() => [...O.values()], "getBlocksFlat"),
|
|
1274
|
-
getBlocks: /* @__PURE__ */ e(() =>
|
|
1296
|
+
getBlocks: /* @__PURE__ */ e(() => F || [], "getBlocks"),
|
|
1275
1297
|
getEdges: /* @__PURE__ */ e(() => k, "getEdges"),
|
|
1276
1298
|
setHierarchy: /* @__PURE__ */ e((e) => {
|
|
1277
|
-
|
|
1299
|
+
I.children = e, se(e, I), F = I.children;
|
|
1278
1300
|
}, "setHierarchy"),
|
|
1279
1301
|
getBlock: /* @__PURE__ */ e((e) => O.get(e), "getBlock"),
|
|
1280
1302
|
setBlock: /* @__PURE__ */ e((e) => {
|
|
@@ -1287,16 +1309,16 @@ var me = 0, he = {
|
|
|
1287
1309
|
getClasses: /* @__PURE__ */ e(function() {
|
|
1288
1310
|
return N;
|
|
1289
1311
|
}, "getClasses"),
|
|
1290
|
-
clear:
|
|
1291
|
-
generateId: /* @__PURE__ */ e(() => (
|
|
1312
|
+
clear: ce,
|
|
1313
|
+
generateId: /* @__PURE__ */ e(() => (he++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + he), "generateId"),
|
|
1292
1314
|
setDiagramId: /* @__PURE__ */ e((e) => {
|
|
1293
|
-
|
|
1315
|
+
P = e;
|
|
1294
1316
|
}, "setDiagramId"),
|
|
1295
|
-
getDiagramId: /* @__PURE__ */ e(() =>
|
|
1296
|
-
},
|
|
1317
|
+
getDiagramId: /* @__PURE__ */ e(() => P, "getDiagramId")
|
|
1318
|
+
}, L = /* @__PURE__ */ e((e, t) => {
|
|
1297
1319
|
let i = r;
|
|
1298
1320
|
return n(i(e, "r"), i(e, "g"), i(e, "b"), t);
|
|
1299
|
-
}, "fade"),
|
|
1321
|
+
}, "fade"), _e = /* @__PURE__ */ e((e) => `.label {
|
|
1300
1322
|
font-family: ${e.fontFamily};
|
|
1301
1323
|
color: ${e.nodeTextColor || e.textColor};
|
|
1302
1324
|
}
|
|
@@ -1381,9 +1403,9 @@ var me = 0, he = {
|
|
|
1381
1403
|
}
|
|
1382
1404
|
|
|
1383
1405
|
.node .cluster {
|
|
1384
|
-
// fill: ${
|
|
1385
|
-
fill: ${
|
|
1386
|
-
stroke: ${
|
|
1406
|
+
// fill: ${L(e.mainBkg, .5)};
|
|
1407
|
+
fill: ${L(e.clusterBkg, .5)};
|
|
1408
|
+
stroke: ${L(e.clusterBorder, .2)};
|
|
1387
1409
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
1388
1410
|
stroke-width: 1px;
|
|
1389
1411
|
}
|
|
@@ -1418,12 +1440,12 @@ var me = 0, he = {
|
|
|
1418
1440
|
font-size: 18px;
|
|
1419
1441
|
fill: ${e.textColor};
|
|
1420
1442
|
}
|
|
1421
|
-
${
|
|
1422
|
-
`, "getStyles"),
|
|
1443
|
+
${b()}
|
|
1444
|
+
`, "getStyles"), ve = /* @__PURE__ */ e((e, t, n, r) => {
|
|
1423
1445
|
t.forEach((t) => {
|
|
1424
|
-
|
|
1446
|
+
ye[t](e, n, r);
|
|
1425
1447
|
});
|
|
1426
|
-
}, "insertMarkers"),
|
|
1448
|
+
}, "insertMarkers"), ye = {
|
|
1427
1449
|
extension: /* @__PURE__ */ e((e, n, r) => {
|
|
1428
1450
|
t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
1429
1451
|
}, "extension"),
|
|
@@ -1451,8 +1473,8 @@ var me = 0, he = {
|
|
|
1451
1473
|
barb: /* @__PURE__ */ e((e, t, n) => {
|
|
1452
1474
|
e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
1453
1475
|
}, "barb")
|
|
1454
|
-
},
|
|
1455
|
-
function
|
|
1476
|
+
}, be = ve, R = c()?.block?.padding ?? 8;
|
|
1477
|
+
function z(e, t) {
|
|
1456
1478
|
if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
|
|
1457
1479
|
if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
|
|
1458
1480
|
return e < 0 ? {
|
|
@@ -1466,8 +1488,8 @@ function L(e, t) {
|
|
|
1466
1488
|
py: Math.floor(t / e)
|
|
1467
1489
|
};
|
|
1468
1490
|
}
|
|
1469
|
-
e(
|
|
1470
|
-
var
|
|
1491
|
+
e(z, "calculateBlockPosition");
|
|
1492
|
+
var xe = /* @__PURE__ */ e((e) => {
|
|
1471
1493
|
let n = 0, r = 0;
|
|
1472
1494
|
for (let i of e.children) {
|
|
1473
1495
|
let { width: e, height: a, x: o, y: s } = i.size ?? {
|
|
@@ -1476,14 +1498,16 @@ var be = /* @__PURE__ */ e((e) => {
|
|
|
1476
1498
|
x: 0,
|
|
1477
1499
|
y: 0
|
|
1478
1500
|
};
|
|
1479
|
-
t.debug("getMaxChildSize abc95 child:", i.id, "width:", e, "height:", a, "x:", o, "y:", s, i.type), i.type
|
|
1501
|
+
if (t.debug("getMaxChildSize abc95 child:", i.id, "width:", e, "height:", a, "x:", o, "y:", s, i.type), i.type === "space") continue;
|
|
1502
|
+
let c = e / (i.widthInColumns ?? 1);
|
|
1503
|
+
c > n && (n = c), a > r && (r = a);
|
|
1480
1504
|
}
|
|
1481
1505
|
return {
|
|
1482
1506
|
width: n,
|
|
1483
1507
|
height: r
|
|
1484
1508
|
};
|
|
1485
1509
|
}, "getMaxChildSize");
|
|
1486
|
-
function
|
|
1510
|
+
function B(e, n, r = 0, i = 0) {
|
|
1487
1511
|
t.debug("setBlockSizes abc95 (start)", e.id, e?.size?.x, "block width =", e?.size, "siblingWidth", r), e?.size?.width || (e.size = {
|
|
1488
1512
|
width: r,
|
|
1489
1513
|
height: i,
|
|
@@ -1492,27 +1516,27 @@ function R(e, n, r = 0, i = 0) {
|
|
|
1492
1516
|
});
|
|
1493
1517
|
let a = 0, o = 0;
|
|
1494
1518
|
if (e.children?.length > 0) {
|
|
1495
|
-
for (let t of e.children)
|
|
1496
|
-
let s =
|
|
1519
|
+
for (let t of e.children) B(t, n);
|
|
1520
|
+
let s = xe(e);
|
|
1497
1521
|
a = s.width, o = s.height, t.debug("setBlockSizes abc95 maxWidth of", e.id, ":s children is ", a, o);
|
|
1498
|
-
for (let n of e.children) n.size && (t.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${a} ${o} ${JSON.stringify(n.size)}`), n.size.width = a * (n.widthInColumns ?? 1) +
|
|
1499
|
-
for (let t of e.children)
|
|
1522
|
+
for (let n of e.children) n.size && (t.debug(`abc95 Setting size of children of ${e.id} id=${n.id} ${a} ${o} ${JSON.stringify(n.size)}`), n.size.width = a * (n.widthInColumns ?? 1) + R * ((n.widthInColumns ?? 1) - 1), n.size.height = o, n.size.x = 0, n.size.y = 0, t.debug(`abc95 updating size of ${e.id} children child:${n.id} maxWidth:${a} maxHeight:${o}`));
|
|
1523
|
+
for (let t of e.children) B(t, n, a, o);
|
|
1500
1524
|
let c = e.columns ?? -1, l = 0;
|
|
1501
1525
|
for (let t of e.children) l += t.widthInColumns ?? 1;
|
|
1502
1526
|
let u = e.children.length;
|
|
1503
1527
|
c > 0 && c < l && (u = c);
|
|
1504
|
-
let d = Math.ceil(l / u), f = u * (a +
|
|
1528
|
+
let d = Math.ceil(l / u), f = u * (a + R) + R, p = d * (o + R) + R;
|
|
1505
1529
|
if (f < r) {
|
|
1506
1530
|
t.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${i} width ${f}`), f = r, p = i;
|
|
1507
|
-
let n = (r - u *
|
|
1508
|
-
t.debug("Size indata abc88", e.id, "childWidth", n, "maxWidth", a), t.debug("Size indata abc88", e.id, "childHeight", s, "maxHeight", o), t.debug("Size indata abc88 xSize", u, "padding",
|
|
1531
|
+
let n = (r - u * R - R) / u, s = (i - d * R - R) / d;
|
|
1532
|
+
t.debug("Size indata abc88", e.id, "childWidth", n, "maxWidth", a), t.debug("Size indata abc88", e.id, "childHeight", s, "maxHeight", o), t.debug("Size indata abc88 xSize", u, "padding", R);
|
|
1509
1533
|
for (let t of e.children) t.size && (t.size.width = n, t.size.height = s, t.size.x = 0, t.size.y = 0);
|
|
1510
1534
|
}
|
|
1511
1535
|
if (t.debug(`abc95 (finale calc) ${e.id} xSize ${u} ySize ${d} columns ${c}${e.children.length} width=${Math.max(f, e.size?.width || 0)}`), f < (e?.size?.width || 0)) {
|
|
1512
1536
|
f = e?.size?.width || 0;
|
|
1513
1537
|
let n = c > 0 ? Math.min(e.children.length, c) : e.children.length;
|
|
1514
1538
|
if (n > 0) {
|
|
1515
|
-
let r = (f - n *
|
|
1539
|
+
let r = (f - n * R - R) / n;
|
|
1516
1540
|
t.debug("abc95 (growing to fit) width", e.id, f, e.size?.width, r);
|
|
1517
1541
|
for (let t of e.children) t.size && (t.size.width = r);
|
|
1518
1542
|
}
|
|
@@ -1526,19 +1550,19 @@ function R(e, n, r = 0, i = 0) {
|
|
|
1526
1550
|
}
|
|
1527
1551
|
t.debug("setBlockSizes abc94 (done)", e.id, e?.size?.x, e?.size?.width, e?.size?.y, e?.size?.height);
|
|
1528
1552
|
}
|
|
1529
|
-
e(
|
|
1530
|
-
function
|
|
1553
|
+
e(B, "setBlockSizes");
|
|
1554
|
+
function V(e, n) {
|
|
1531
1555
|
t.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
|
|
1532
1556
|
let r = e.columns ?? -1;
|
|
1533
1557
|
if (t.debug("layoutBlocks columns abc95", e.id, "=>", r, e), e.children && e.children.length > 0) {
|
|
1534
|
-
let i = e?.children[0]?.size?.width ?? 0, a = e.children.length * i + (e.children.length - 1) *
|
|
1558
|
+
let i = e?.children[0]?.size?.width ?? 0, a = e.children.length * i + (e.children.length - 1) * R;
|
|
1535
1559
|
t.debug("widthOfChildren 88", a, "posX");
|
|
1536
1560
|
let o = /* @__PURE__ */ new Map();
|
|
1537
1561
|
{
|
|
1538
1562
|
let t = 0;
|
|
1539
1563
|
for (let n of e.children) {
|
|
1540
1564
|
if (!n.size) continue;
|
|
1541
|
-
let { py: e } =
|
|
1565
|
+
let { py: e } = z(r, t), i = o.get(e) ?? 0;
|
|
1542
1566
|
n.size.height > i && o.set(e, n.size.height);
|
|
1543
1567
|
let a = n?.widthInColumns ?? 1;
|
|
1544
1568
|
r > 0 && (a = Math.min(a, r - t % r)), t += a;
|
|
@@ -1547,30 +1571,30 @@ function z(e, n) {
|
|
|
1547
1571
|
let s = /* @__PURE__ */ new Map();
|
|
1548
1572
|
{
|
|
1549
1573
|
let e = 0, t = [...o.keys()].sort((e, t) => e - t);
|
|
1550
|
-
for (let n of t) s.set(n, e), e += (o.get(n) ?? 0) +
|
|
1574
|
+
for (let n of t) s.set(n, e), e += (o.get(n) ?? 0) + R;
|
|
1551
1575
|
}
|
|
1552
1576
|
let c = 0;
|
|
1553
1577
|
t.debug("abc91 block?.size?.x", e.id, e?.size?.x);
|
|
1554
|
-
let l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -
|
|
1578
|
+
let l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -R, u = 0;
|
|
1555
1579
|
for (let i of e.children) {
|
|
1556
1580
|
let a = e;
|
|
1557
1581
|
if (!i.size) continue;
|
|
1558
|
-
let { width: d, height: f } = i.size, { px: p, py: m } =
|
|
1559
|
-
if (m != u && (u = m, l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -
|
|
1582
|
+
let { width: d, height: f } = i.size, { px: p, py: m } = z(r, c);
|
|
1583
|
+
if (m != u && (u = m, l = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -R, t.debug("New row in layout for block", e.id, " and child ", i.id, u)), t.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${R}`), a.size) {
|
|
1560
1584
|
let e = d / 2;
|
|
1561
|
-
i.size.x = l +
|
|
1585
|
+
i.size.x = l + R + e, t.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${e} padding=${R} width=${d} halfWidth=${e} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d * (i?.widthInColumns ?? 1) / 2}`), l = i.size.x + e;
|
|
1562
1586
|
let n = s.get(m) ?? 0, r = o.get(m) ?? f;
|
|
1563
|
-
i.size.y = a.size.y - a.size.height / 2 + n + r / 2 +
|
|
1587
|
+
i.size.y = a.size.y - a.size.height / 2 + n + r / 2 + R, t.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${R}${e}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d * (i?.widthInColumns ?? 1) / 2}`);
|
|
1564
1588
|
}
|
|
1565
|
-
i.children &&
|
|
1589
|
+
i.children && V(i, n);
|
|
1566
1590
|
let h = i?.widthInColumns ?? 1;
|
|
1567
1591
|
r > 0 && (h = Math.min(h, r - c % r)), c += h, t.debug("abc88 columnsPos", i, c);
|
|
1568
1592
|
}
|
|
1569
1593
|
}
|
|
1570
1594
|
t.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);
|
|
1571
1595
|
}
|
|
1572
|
-
e(
|
|
1573
|
-
function
|
|
1596
|
+
e(V, "layoutBlocks");
|
|
1597
|
+
function H(e, { minX: t, minY: n, maxX: r, maxY: i } = {
|
|
1574
1598
|
minX: 0,
|
|
1575
1599
|
minY: 0,
|
|
1576
1600
|
maxX: 0,
|
|
@@ -1580,7 +1604,7 @@ function B(e, { minX: t, minY: n, maxX: r, maxY: i } = {
|
|
|
1580
1604
|
let { x: a, y: o, width: s, height: c } = e.size;
|
|
1581
1605
|
a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
|
|
1582
1606
|
}
|
|
1583
|
-
if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} =
|
|
1607
|
+
if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = H(a, {
|
|
1584
1608
|
minX: t,
|
|
1585
1609
|
minY: n,
|
|
1586
1610
|
maxX: r,
|
|
@@ -1593,12 +1617,12 @@ function B(e, { minX: t, minY: n, maxX: r, maxY: i } = {
|
|
|
1593
1617
|
maxY: i
|
|
1594
1618
|
};
|
|
1595
1619
|
}
|
|
1596
|
-
e(
|
|
1597
|
-
function
|
|
1620
|
+
e(H, "findBounds");
|
|
1621
|
+
function Se(e) {
|
|
1598
1622
|
let n = e.getBlock("root");
|
|
1599
1623
|
if (!n) return;
|
|
1600
|
-
|
|
1601
|
-
let { minX: r, minY: i, maxX: a, maxY: o } =
|
|
1624
|
+
B(n, e, 0, 0), V(n, e), t.debug("getBlocks", JSON.stringify(n, null, 2));
|
|
1625
|
+
let { minX: r, minY: i, maxX: a, maxY: o } = H(n), s = o - i;
|
|
1602
1626
|
return {
|
|
1603
1627
|
x: r,
|
|
1604
1628
|
y: i,
|
|
@@ -1606,12 +1630,12 @@ function xe(e) {
|
|
|
1606
1630
|
height: s
|
|
1607
1631
|
};
|
|
1608
1632
|
}
|
|
1609
|
-
e(
|
|
1610
|
-
var
|
|
1633
|
+
e(Se, "layout");
|
|
1634
|
+
var U = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
|
|
1611
1635
|
let a = t || "";
|
|
1612
1636
|
typeof a == "object" && (a = a[0]);
|
|
1613
1637
|
let o = c(), s = l(o);
|
|
1614
|
-
return await
|
|
1638
|
+
return await y(e, a, {
|
|
1615
1639
|
style: n,
|
|
1616
1640
|
isTitle: r,
|
|
1617
1641
|
useHtmlLabels: s,
|
|
@@ -1619,9 +1643,9 @@ var V = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
|
|
|
1619
1643
|
isNode: i,
|
|
1620
1644
|
width: Infinity
|
|
1621
1645
|
}, o);
|
|
1622
|
-
}, "createLabel"),
|
|
1623
|
-
t.arrowTypeStart &&
|
|
1624
|
-
}, "addEdgeMarkers"),
|
|
1646
|
+
}, "createLabel"), Ce = /* @__PURE__ */ e((e, t, n, r, i) => {
|
|
1647
|
+
t.arrowTypeStart && Te(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && Te(e, "end", t.arrowTypeEnd, n, r, i);
|
|
1648
|
+
}, "addEdgeMarkers"), we = {
|
|
1625
1649
|
arrow_cross: "cross",
|
|
1626
1650
|
arrow_point: "point",
|
|
1627
1651
|
arrow_barb: "barb",
|
|
@@ -1631,16 +1655,16 @@ var V = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
|
|
|
1631
1655
|
composition: "composition",
|
|
1632
1656
|
dependency: "dependency",
|
|
1633
1657
|
lollipop: "lollipop"
|
|
1634
|
-
},
|
|
1635
|
-
let s =
|
|
1658
|
+
}, Te = /* @__PURE__ */ e((e, n, r, i, a, o) => {
|
|
1659
|
+
let s = we[r];
|
|
1636
1660
|
if (!s) {
|
|
1637
1661
|
t.warn(`Unknown arrow type: ${r}`);
|
|
1638
1662
|
return;
|
|
1639
1663
|
}
|
|
1640
1664
|
let c = n === "start" ? "Start" : "End";
|
|
1641
1665
|
e.attr(`marker-${n}`, `url(${i}#${a}_${o}-${s}${c})`);
|
|
1642
|
-
}, "addEdgeMarker"),
|
|
1643
|
-
let n = c(), r = l(n), i = e.insert("g").attr("class", "edgeLabel"), a = i.insert("g").attr("class", "label"), o = t.labelType === "markdown", s = await
|
|
1666
|
+
}, "addEdgeMarker"), Ee = {}, W = {}, De = /* @__PURE__ */ e(async (e, t) => {
|
|
1667
|
+
let n = c(), r = l(n), i = e.insert("g").attr("class", "edgeLabel"), a = i.insert("g").attr("class", "label"), o = t.labelType === "markdown", s = await y(e, t.label, {
|
|
1644
1668
|
style: t.labelStyle,
|
|
1645
1669
|
useHtmlLabels: r,
|
|
1646
1670
|
addSvgBackground: o,
|
|
@@ -1657,101 +1681,101 @@ var V = /* @__PURE__ */ e(async (e, t, n, r = !1, i = !1) => {
|
|
|
1657
1681
|
let e = f(s).select("text").node();
|
|
1658
1682
|
e && typeof e.getBBox == "function" && (d = e.getBBox());
|
|
1659
1683
|
}
|
|
1660
|
-
a.attr("transform",
|
|
1684
|
+
a.attr("transform", x(d, r)), Ee[t.id] = i, t.width = u.width, t.height = u.height;
|
|
1661
1685
|
let p;
|
|
1662
1686
|
if (t.startLabelLeft) {
|
|
1663
|
-
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await
|
|
1687
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await U(i, t.startLabelLeft, t.labelStyle);
|
|
1664
1688
|
p = a;
|
|
1665
1689
|
let o = a.getBBox();
|
|
1666
1690
|
if (r) {
|
|
1667
1691
|
let e = a.children[0], t = f(a);
|
|
1668
1692
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1669
1693
|
}
|
|
1670
|
-
i.attr("transform",
|
|
1694
|
+
i.attr("transform", x(o, r)), W[t.id] || (W[t.id] = {}), W[t.id].startLeft = n, G(p, t.startLabelLeft);
|
|
1671
1695
|
}
|
|
1672
1696
|
if (t.startLabelRight) {
|
|
1673
|
-
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await
|
|
1674
|
-
p = a
|
|
1697
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await U(i, t.startLabelRight, t.labelStyle);
|
|
1698
|
+
p = a;
|
|
1675
1699
|
let o = a.getBBox();
|
|
1676
1700
|
if (r) {
|
|
1677
1701
|
let e = a.children[0], t = f(a);
|
|
1678
1702
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1679
1703
|
}
|
|
1680
|
-
i.attr("transform",
|
|
1704
|
+
i.attr("transform", x(o, r)), W[t.id] || (W[t.id] = {}), W[t.id].startRight = n, G(p, t.startLabelRight);
|
|
1681
1705
|
}
|
|
1682
1706
|
if (t.endLabelLeft) {
|
|
1683
|
-
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await
|
|
1707
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await U(n, t.endLabelLeft, t.labelStyle);
|
|
1684
1708
|
p = a;
|
|
1685
1709
|
let o = a.getBBox();
|
|
1686
1710
|
if (r) {
|
|
1687
1711
|
let e = a.children[0], t = f(a);
|
|
1688
1712
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1689
1713
|
}
|
|
1690
|
-
i.attr("transform",
|
|
1714
|
+
i.attr("transform", x(o, r)), W[t.id] || (W[t.id] = {}), W[t.id].endLeft = n, G(p, t.endLabelLeft);
|
|
1691
1715
|
}
|
|
1692
1716
|
if (t.endLabelRight) {
|
|
1693
|
-
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await
|
|
1717
|
+
let n = e.insert("g").attr("class", "edgeTerminals"), i = n.insert("g").attr("class", "inner"), a = await U(n, t.endLabelRight, t.labelStyle);
|
|
1694
1718
|
p = a;
|
|
1695
1719
|
let o = a.getBBox();
|
|
1696
1720
|
if (r) {
|
|
1697
1721
|
let e = a.children[0], t = f(a);
|
|
1698
1722
|
o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
|
|
1699
1723
|
}
|
|
1700
|
-
i.attr("transform",
|
|
1724
|
+
i.attr("transform", x(o, r)), W[t.id] || (W[t.id] = {}), W[t.id].endRight = n, G(p, t.endLabelRight);
|
|
1701
1725
|
}
|
|
1702
1726
|
return s;
|
|
1703
1727
|
}, "insertEdgeLabel");
|
|
1704
|
-
function
|
|
1728
|
+
function G(e, t) {
|
|
1705
1729
|
l(c()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
|
|
1706
1730
|
}
|
|
1707
|
-
e(
|
|
1708
|
-
var
|
|
1709
|
-
t.debug("Moving label abc88 ", e.id, e.label,
|
|
1710
|
-
let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } =
|
|
1731
|
+
e(G, "setTerminalWidth");
|
|
1732
|
+
var Oe = /* @__PURE__ */ e((e, n) => {
|
|
1733
|
+
t.debug("Moving label abc88 ", e.id, e.label, Ee[e.id], n);
|
|
1734
|
+
let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = w(c());
|
|
1711
1735
|
if (e.label) {
|
|
1712
|
-
let a =
|
|
1736
|
+
let a = Ee[e.id], o = e.x, s = e.y;
|
|
1713
1737
|
if (r) {
|
|
1714
|
-
let i =
|
|
1738
|
+
let i = v.calcLabelPosition(r);
|
|
1715
1739
|
t.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
|
|
1716
1740
|
}
|
|
1717
1741
|
a.attr("transform", `translate(${o}, ${s + i / 2})`);
|
|
1718
1742
|
}
|
|
1719
1743
|
if (e.startLabelLeft) {
|
|
1720
|
-
let t =
|
|
1744
|
+
let t = W[e.id].startLeft, n = e.x, i = e.y;
|
|
1721
1745
|
if (r) {
|
|
1722
|
-
let t =
|
|
1746
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
|
|
1723
1747
|
n = t.x, i = t.y;
|
|
1724
1748
|
}
|
|
1725
1749
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
1726
1750
|
}
|
|
1727
1751
|
if (e.startLabelRight) {
|
|
1728
|
-
let t =
|
|
1752
|
+
let t = W[e.id].startRight, n = e.x, i = e.y;
|
|
1729
1753
|
if (r) {
|
|
1730
|
-
let t =
|
|
1754
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
|
|
1731
1755
|
n = t.x, i = t.y;
|
|
1732
1756
|
}
|
|
1733
1757
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
1734
1758
|
}
|
|
1735
1759
|
if (e.endLabelLeft) {
|
|
1736
|
-
let t =
|
|
1760
|
+
let t = W[e.id].endLeft, n = e.x, i = e.y;
|
|
1737
1761
|
if (r) {
|
|
1738
|
-
let t =
|
|
1762
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
|
|
1739
1763
|
n = t.x, i = t.y;
|
|
1740
1764
|
}
|
|
1741
1765
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
1742
1766
|
}
|
|
1743
1767
|
if (e.endLabelRight) {
|
|
1744
|
-
let t =
|
|
1768
|
+
let t = W[e.id].endRight, n = e.x, i = e.y;
|
|
1745
1769
|
if (r) {
|
|
1746
|
-
let t =
|
|
1770
|
+
let t = v.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
|
|
1747
1771
|
n = t.x, i = t.y;
|
|
1748
1772
|
}
|
|
1749
1773
|
t.attr("transform", `translate(${n}, ${i})`);
|
|
1750
1774
|
}
|
|
1751
|
-
}, "positionEdgeLabel"),
|
|
1775
|
+
}, "positionEdgeLabel"), ke = /* @__PURE__ */ e((e, t) => {
|
|
1752
1776
|
let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
|
|
1753
1777
|
return i >= o || a >= s;
|
|
1754
|
-
}, "outsideNode"),
|
|
1778
|
+
}, "outsideNode"), Ae = /* @__PURE__ */ e((e, n, r) => {
|
|
1755
1779
|
t.debug(`intersection calc abc89:
|
|
1756
1780
|
outsidePoint: ${JSON.stringify(n)}
|
|
1757
1781
|
insidePoint : ${JSON.stringify(r)}
|
|
@@ -1776,54 +1800,54 @@ var Ee = /* @__PURE__ */ e((e, n) => {
|
|
|
1776
1800
|
y: o
|
|
1777
1801
|
};
|
|
1778
1802
|
}
|
|
1779
|
-
}, "intersection"),
|
|
1803
|
+
}, "intersection"), je = /* @__PURE__ */ e((e, n) => {
|
|
1780
1804
|
t.debug("abc88 cutPathAtIntersect", e, n);
|
|
1781
1805
|
let r = [], i = e[0], a = !1;
|
|
1782
1806
|
return e.forEach((e) => {
|
|
1783
|
-
if (!
|
|
1784
|
-
let t =
|
|
1807
|
+
if (!ke(n, e) && !a) {
|
|
1808
|
+
let t = Ae(n, i, e), o = !1;
|
|
1785
1809
|
r.forEach((e) => {
|
|
1786
1810
|
o ||= e.x === t.x && e.y === t.y;
|
|
1787
1811
|
}), r.some((e) => e.x === t.x && e.y === t.y) || r.push(t), a = !0;
|
|
1788
1812
|
} else i = e, a || r.push(e);
|
|
1789
1813
|
}), r;
|
|
1790
|
-
}, "cutPathAtIntersect"),
|
|
1814
|
+
}, "cutPathAtIntersect"), Me = /* @__PURE__ */ e(function(e, n, r, i, a, o, s) {
|
|
1791
1815
|
let l = r.points;
|
|
1792
1816
|
t.debug("abc88 InsertEdge: edge=", r, "e=", n);
|
|
1793
1817
|
let d = !1, f = o.node(n.v);
|
|
1794
1818
|
var h = o.node(n.w);
|
|
1795
|
-
h?.intersect && f?.intersect && (l = l.slice(1, r.points.length - 1), l.unshift(f.intersect(l[0])), l.push(h.intersect(l[l.length - 1]))), r.toCluster && (t.debug("to cluster abc88", i[r.toCluster]), l =
|
|
1819
|
+
h?.intersect && f?.intersect && (l = l.slice(1, r.points.length - 1), l.unshift(f.intersect(l[0])), l.push(h.intersect(l[l.length - 1]))), r.toCluster && (t.debug("to cluster abc88", i[r.toCluster]), l = je(r.points, i[r.toCluster].node), d = !0), r.fromCluster && (t.debug("from cluster abc88", i[r.fromCluster]), l = je(l.reverse(), i[r.fromCluster].node).reverse(), d = !0);
|
|
1796
1820
|
let g = l.filter((e) => !Number.isNaN(e.y)), _ = m;
|
|
1797
1821
|
r.curve && (a === "graph" || a === "flowchart") && (_ = r.curve);
|
|
1798
|
-
let { x: v, y } =
|
|
1822
|
+
let { x: v, y } = S(r), b = p().x(v).y(y).curve(_), x;
|
|
1799
1823
|
switch (r.thickness) {
|
|
1800
1824
|
case "normal":
|
|
1801
|
-
|
|
1825
|
+
x = "edge-thickness-normal";
|
|
1802
1826
|
break;
|
|
1803
1827
|
case "thick":
|
|
1804
|
-
|
|
1828
|
+
x = "edge-thickness-thick";
|
|
1805
1829
|
break;
|
|
1806
1830
|
case "invisible":
|
|
1807
|
-
|
|
1831
|
+
x = "edge-thickness-thick";
|
|
1808
1832
|
break;
|
|
1809
|
-
default:
|
|
1833
|
+
default: x = "";
|
|
1810
1834
|
}
|
|
1811
1835
|
switch (r.pattern) {
|
|
1812
1836
|
case "solid":
|
|
1813
|
-
|
|
1837
|
+
x += " edge-pattern-solid";
|
|
1814
1838
|
break;
|
|
1815
1839
|
case "dotted":
|
|
1816
|
-
|
|
1840
|
+
x += " edge-pattern-dotted";
|
|
1817
1841
|
break;
|
|
1818
1842
|
case "dashed":
|
|
1819
|
-
|
|
1843
|
+
x += " edge-pattern-dashed";
|
|
1820
1844
|
break;
|
|
1821
1845
|
}
|
|
1822
|
-
let C = e.append("path").attr("d", b(g)).attr("id", r.id).attr("class", " " +
|
|
1823
|
-
(c().flowchart.arrowMarkerAbsolute || c().state.arrowMarkerAbsolute) && (w = u(!0)),
|
|
1846
|
+
let C = e.append("path").attr("d", b(g)).attr("id", r.id).attr("class", " " + x + (r.classes ? " " + r.classes : "")).attr("style", r.style), w = "";
|
|
1847
|
+
(c().flowchart.arrowMarkerAbsolute || c().state.arrowMarkerAbsolute) && (w = u(!0)), Ce(C, r, w, s, a);
|
|
1824
1848
|
let T = {};
|
|
1825
1849
|
return d && (T.updatedPath = l), T.originalPath = r.points, T;
|
|
1826
|
-
}, "insertEdge"),
|
|
1850
|
+
}, "insertEdge"), Ne = /* @__PURE__ */ e((e) => {
|
|
1827
1851
|
let t = /* @__PURE__ */ new Set();
|
|
1828
1852
|
for (let n of e) switch (n) {
|
|
1829
1853
|
case "x":
|
|
@@ -1837,273 +1861,273 @@ var Ee = /* @__PURE__ */ e((e, n) => {
|
|
|
1837
1861
|
break;
|
|
1838
1862
|
}
|
|
1839
1863
|
return t;
|
|
1840
|
-
}, "expandAndDeduplicateDirections"),
|
|
1841
|
-
let
|
|
1842
|
-
return
|
|
1864
|
+
}, "expandAndDeduplicateDirections"), Pe = /* @__PURE__ */ e((e, t, n, r) => {
|
|
1865
|
+
let i = Ne(e), a = t.height + 2 * n.padding, o = a / 2, s = r ?? t.width + 2 * o + n.padding, c = n.padding / 2;
|
|
1866
|
+
return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
|
|
1843
1867
|
{
|
|
1844
1868
|
x: 0,
|
|
1845
1869
|
y: 0
|
|
1846
1870
|
},
|
|
1847
1871
|
{
|
|
1848
|
-
x:
|
|
1872
|
+
x: o,
|
|
1849
1873
|
y: 0
|
|
1850
1874
|
},
|
|
1851
1875
|
{
|
|
1852
|
-
x:
|
|
1853
|
-
y: 2 *
|
|
1876
|
+
x: s / 2,
|
|
1877
|
+
y: 2 * c
|
|
1854
1878
|
},
|
|
1855
1879
|
{
|
|
1856
|
-
x:
|
|
1880
|
+
x: s - o,
|
|
1857
1881
|
y: 0
|
|
1858
1882
|
},
|
|
1859
1883
|
{
|
|
1860
|
-
x:
|
|
1884
|
+
x: s,
|
|
1861
1885
|
y: 0
|
|
1862
1886
|
},
|
|
1863
1887
|
{
|
|
1864
|
-
x:
|
|
1865
|
-
y: -
|
|
1888
|
+
x: s,
|
|
1889
|
+
y: -a / 3
|
|
1866
1890
|
},
|
|
1867
1891
|
{
|
|
1868
|
-
x:
|
|
1869
|
-
y: -
|
|
1892
|
+
x: s + 2 * c,
|
|
1893
|
+
y: -a / 2
|
|
1870
1894
|
},
|
|
1871
1895
|
{
|
|
1872
|
-
x:
|
|
1873
|
-
y: -2 *
|
|
1896
|
+
x: s,
|
|
1897
|
+
y: -2 * a / 3
|
|
1874
1898
|
},
|
|
1875
1899
|
{
|
|
1876
|
-
x:
|
|
1877
|
-
y: -
|
|
1900
|
+
x: s,
|
|
1901
|
+
y: -a
|
|
1878
1902
|
},
|
|
1879
1903
|
{
|
|
1880
|
-
x:
|
|
1881
|
-
y: -
|
|
1904
|
+
x: s - o,
|
|
1905
|
+
y: -a
|
|
1882
1906
|
},
|
|
1883
1907
|
{
|
|
1884
|
-
x:
|
|
1885
|
-
y: -
|
|
1908
|
+
x: s / 2,
|
|
1909
|
+
y: -a - 2 * c
|
|
1886
1910
|
},
|
|
1887
1911
|
{
|
|
1888
|
-
x:
|
|
1889
|
-
y: -
|
|
1912
|
+
x: o,
|
|
1913
|
+
y: -a
|
|
1890
1914
|
},
|
|
1891
1915
|
{
|
|
1892
1916
|
x: 0,
|
|
1893
|
-
y: -
|
|
1917
|
+
y: -a
|
|
1894
1918
|
},
|
|
1895
1919
|
{
|
|
1896
1920
|
x: 0,
|
|
1897
|
-
y: -2 *
|
|
1921
|
+
y: -2 * a / 3
|
|
1898
1922
|
},
|
|
1899
1923
|
{
|
|
1900
|
-
x: -2 *
|
|
1901
|
-
y: -
|
|
1924
|
+
x: -2 * c,
|
|
1925
|
+
y: -a / 2
|
|
1902
1926
|
},
|
|
1903
1927
|
{
|
|
1904
1928
|
x: 0,
|
|
1905
|
-
y: -
|
|
1929
|
+
y: -a / 3
|
|
1906
1930
|
}
|
|
1907
|
-
] :
|
|
1931
|
+
] : i.has("right") && i.has("left") && i.has("up") ? [
|
|
1908
1932
|
{
|
|
1909
|
-
x:
|
|
1933
|
+
x: o,
|
|
1910
1934
|
y: 0
|
|
1911
1935
|
},
|
|
1912
1936
|
{
|
|
1913
|
-
x:
|
|
1937
|
+
x: s - o,
|
|
1914
1938
|
y: 0
|
|
1915
1939
|
},
|
|
1916
1940
|
{
|
|
1917
|
-
x:
|
|
1918
|
-
y: -
|
|
1941
|
+
x: s,
|
|
1942
|
+
y: -a / 2
|
|
1919
1943
|
},
|
|
1920
1944
|
{
|
|
1921
|
-
x:
|
|
1922
|
-
y: -
|
|
1945
|
+
x: s - o,
|
|
1946
|
+
y: -a
|
|
1923
1947
|
},
|
|
1924
1948
|
{
|
|
1925
|
-
x:
|
|
1926
|
-
y: -
|
|
1949
|
+
x: o,
|
|
1950
|
+
y: -a
|
|
1927
1951
|
},
|
|
1928
1952
|
{
|
|
1929
1953
|
x: 0,
|
|
1930
|
-
y: -
|
|
1954
|
+
y: -a / 2
|
|
1931
1955
|
}
|
|
1932
|
-
] :
|
|
1956
|
+
] : i.has("right") && i.has("left") && i.has("down") ? [
|
|
1933
1957
|
{
|
|
1934
1958
|
x: 0,
|
|
1935
1959
|
y: 0
|
|
1936
1960
|
},
|
|
1937
1961
|
{
|
|
1938
|
-
x:
|
|
1939
|
-
y: -
|
|
1962
|
+
x: o,
|
|
1963
|
+
y: -a
|
|
1940
1964
|
},
|
|
1941
1965
|
{
|
|
1942
|
-
x:
|
|
1943
|
-
y: -
|
|
1966
|
+
x: s - o,
|
|
1967
|
+
y: -a
|
|
1944
1968
|
},
|
|
1945
1969
|
{
|
|
1946
|
-
x:
|
|
1970
|
+
x: s,
|
|
1947
1971
|
y: 0
|
|
1948
1972
|
}
|
|
1949
|
-
] :
|
|
1973
|
+
] : i.has("right") && i.has("up") && i.has("down") ? [
|
|
1950
1974
|
{
|
|
1951
1975
|
x: 0,
|
|
1952
1976
|
y: 0
|
|
1953
1977
|
},
|
|
1954
1978
|
{
|
|
1955
|
-
x:
|
|
1956
|
-
y: -
|
|
1979
|
+
x: s,
|
|
1980
|
+
y: -o
|
|
1957
1981
|
},
|
|
1958
1982
|
{
|
|
1959
|
-
x:
|
|
1960
|
-
y: -
|
|
1983
|
+
x: s,
|
|
1984
|
+
y: -a + o
|
|
1961
1985
|
},
|
|
1962
1986
|
{
|
|
1963
1987
|
x: 0,
|
|
1964
|
-
y: -
|
|
1988
|
+
y: -a
|
|
1965
1989
|
}
|
|
1966
|
-
] :
|
|
1990
|
+
] : i.has("left") && i.has("up") && i.has("down") ? [
|
|
1967
1991
|
{
|
|
1968
|
-
x:
|
|
1992
|
+
x: s,
|
|
1969
1993
|
y: 0
|
|
1970
1994
|
},
|
|
1971
1995
|
{
|
|
1972
1996
|
x: 0,
|
|
1973
|
-
y: -
|
|
1997
|
+
y: -o
|
|
1974
1998
|
},
|
|
1975
1999
|
{
|
|
1976
2000
|
x: 0,
|
|
1977
|
-
y: -
|
|
2001
|
+
y: -a + o
|
|
1978
2002
|
},
|
|
1979
2003
|
{
|
|
1980
|
-
x:
|
|
1981
|
-
y: -
|
|
2004
|
+
x: s,
|
|
2005
|
+
y: -a
|
|
1982
2006
|
}
|
|
1983
|
-
] :
|
|
2007
|
+
] : i.has("right") && i.has("left") ? [
|
|
1984
2008
|
{
|
|
1985
|
-
x:
|
|
2009
|
+
x: o,
|
|
1986
2010
|
y: 0
|
|
1987
2011
|
},
|
|
1988
2012
|
{
|
|
1989
|
-
x:
|
|
1990
|
-
y: -
|
|
2013
|
+
x: o,
|
|
2014
|
+
y: -c
|
|
1991
2015
|
},
|
|
1992
2016
|
{
|
|
1993
|
-
x:
|
|
1994
|
-
y: -
|
|
2017
|
+
x: s - o,
|
|
2018
|
+
y: -c
|
|
1995
2019
|
},
|
|
1996
2020
|
{
|
|
1997
|
-
x:
|
|
2021
|
+
x: s - o,
|
|
1998
2022
|
y: 0
|
|
1999
2023
|
},
|
|
2000
2024
|
{
|
|
2001
|
-
x:
|
|
2002
|
-
y: -
|
|
2025
|
+
x: s,
|
|
2026
|
+
y: -a / 2
|
|
2003
2027
|
},
|
|
2004
2028
|
{
|
|
2005
|
-
x:
|
|
2006
|
-
y: -
|
|
2029
|
+
x: s - o,
|
|
2030
|
+
y: -a
|
|
2007
2031
|
},
|
|
2008
2032
|
{
|
|
2009
|
-
x:
|
|
2010
|
-
y: -
|
|
2033
|
+
x: s - o,
|
|
2034
|
+
y: -a + c
|
|
2011
2035
|
},
|
|
2012
2036
|
{
|
|
2013
|
-
x:
|
|
2014
|
-
y: -
|
|
2037
|
+
x: o,
|
|
2038
|
+
y: -a + c
|
|
2015
2039
|
},
|
|
2016
2040
|
{
|
|
2017
|
-
x:
|
|
2018
|
-
y: -
|
|
2041
|
+
x: o,
|
|
2042
|
+
y: -a
|
|
2019
2043
|
},
|
|
2020
2044
|
{
|
|
2021
2045
|
x: 0,
|
|
2022
|
-
y: -
|
|
2046
|
+
y: -a / 2
|
|
2023
2047
|
}
|
|
2024
|
-
] :
|
|
2048
|
+
] : i.has("up") && i.has("down") ? [
|
|
2025
2049
|
{
|
|
2026
|
-
x:
|
|
2050
|
+
x: s / 2,
|
|
2027
2051
|
y: 0
|
|
2028
2052
|
},
|
|
2029
2053
|
{
|
|
2030
2054
|
x: 0,
|
|
2031
|
-
y: -
|
|
2055
|
+
y: -c
|
|
2032
2056
|
},
|
|
2033
2057
|
{
|
|
2034
|
-
x:
|
|
2035
|
-
y: -
|
|
2058
|
+
x: o,
|
|
2059
|
+
y: -c
|
|
2036
2060
|
},
|
|
2037
2061
|
{
|
|
2038
|
-
x:
|
|
2039
|
-
y: -
|
|
2062
|
+
x: o,
|
|
2063
|
+
y: -a + c
|
|
2040
2064
|
},
|
|
2041
2065
|
{
|
|
2042
2066
|
x: 0,
|
|
2043
|
-
y: -
|
|
2067
|
+
y: -a + c
|
|
2044
2068
|
},
|
|
2045
2069
|
{
|
|
2046
|
-
x:
|
|
2047
|
-
y: -
|
|
2070
|
+
x: s / 2,
|
|
2071
|
+
y: -a
|
|
2048
2072
|
},
|
|
2049
2073
|
{
|
|
2050
|
-
x:
|
|
2051
|
-
y: -
|
|
2074
|
+
x: s,
|
|
2075
|
+
y: -a + c
|
|
2052
2076
|
},
|
|
2053
2077
|
{
|
|
2054
|
-
x:
|
|
2055
|
-
y: -
|
|
2078
|
+
x: s - o,
|
|
2079
|
+
y: -a + c
|
|
2056
2080
|
},
|
|
2057
2081
|
{
|
|
2058
|
-
x:
|
|
2059
|
-
y: -
|
|
2082
|
+
x: s - o,
|
|
2083
|
+
y: -c
|
|
2060
2084
|
},
|
|
2061
2085
|
{
|
|
2062
|
-
x:
|
|
2063
|
-
y: -
|
|
2086
|
+
x: s,
|
|
2087
|
+
y: -c
|
|
2064
2088
|
}
|
|
2065
|
-
] :
|
|
2089
|
+
] : i.has("right") && i.has("up") ? [
|
|
2066
2090
|
{
|
|
2067
2091
|
x: 0,
|
|
2068
2092
|
y: 0
|
|
2069
2093
|
},
|
|
2070
2094
|
{
|
|
2071
|
-
x:
|
|
2072
|
-
y: -
|
|
2095
|
+
x: s,
|
|
2096
|
+
y: -o
|
|
2073
2097
|
},
|
|
2074
2098
|
{
|
|
2075
2099
|
x: 0,
|
|
2076
|
-
y: -
|
|
2100
|
+
y: -a
|
|
2077
2101
|
}
|
|
2078
|
-
] :
|
|
2102
|
+
] : i.has("right") && i.has("down") ? [
|
|
2079
2103
|
{
|
|
2080
2104
|
x: 0,
|
|
2081
2105
|
y: 0
|
|
2082
2106
|
},
|
|
2083
2107
|
{
|
|
2084
|
-
x:
|
|
2108
|
+
x: s,
|
|
2085
2109
|
y: 0
|
|
2086
2110
|
},
|
|
2087
2111
|
{
|
|
2088
2112
|
x: 0,
|
|
2089
|
-
y: -
|
|
2113
|
+
y: -a
|
|
2090
2114
|
}
|
|
2091
|
-
] :
|
|
2115
|
+
] : i.has("left") && i.has("up") ? [
|
|
2092
2116
|
{
|
|
2093
|
-
x:
|
|
2117
|
+
x: s,
|
|
2094
2118
|
y: 0
|
|
2095
2119
|
},
|
|
2096
2120
|
{
|
|
2097
2121
|
x: 0,
|
|
2098
|
-
y: -
|
|
2122
|
+
y: -o
|
|
2099
2123
|
},
|
|
2100
2124
|
{
|
|
2101
|
-
x:
|
|
2102
|
-
y: -
|
|
2125
|
+
x: s,
|
|
2126
|
+
y: -a
|
|
2103
2127
|
}
|
|
2104
|
-
] :
|
|
2128
|
+
] : i.has("left") && i.has("down") ? [
|
|
2105
2129
|
{
|
|
2106
|
-
x:
|
|
2130
|
+
x: s,
|
|
2107
2131
|
y: 0
|
|
2108
2132
|
},
|
|
2109
2133
|
{
|
|
@@ -2111,144 +2135,144 @@ var Ee = /* @__PURE__ */ e((e, n) => {
|
|
|
2111
2135
|
y: 0
|
|
2112
2136
|
},
|
|
2113
2137
|
{
|
|
2114
|
-
x:
|
|
2115
|
-
y: -
|
|
2138
|
+
x: s,
|
|
2139
|
+
y: -a
|
|
2116
2140
|
}
|
|
2117
|
-
] :
|
|
2141
|
+
] : i.has("right") ? [
|
|
2118
2142
|
{
|
|
2119
|
-
x:
|
|
2120
|
-
y: -
|
|
2143
|
+
x: o,
|
|
2144
|
+
y: -c
|
|
2121
2145
|
},
|
|
2122
2146
|
{
|
|
2123
|
-
x:
|
|
2124
|
-
y: -
|
|
2147
|
+
x: o,
|
|
2148
|
+
y: -c
|
|
2125
2149
|
},
|
|
2126
2150
|
{
|
|
2127
|
-
x:
|
|
2128
|
-
y: -
|
|
2151
|
+
x: s - o,
|
|
2152
|
+
y: -c
|
|
2129
2153
|
},
|
|
2130
2154
|
{
|
|
2131
|
-
x:
|
|
2155
|
+
x: s - o,
|
|
2132
2156
|
y: 0
|
|
2133
2157
|
},
|
|
2134
2158
|
{
|
|
2135
|
-
x:
|
|
2136
|
-
y: -
|
|
2159
|
+
x: s,
|
|
2160
|
+
y: -a / 2
|
|
2137
2161
|
},
|
|
2138
2162
|
{
|
|
2139
|
-
x:
|
|
2140
|
-
y: -
|
|
2163
|
+
x: s - o,
|
|
2164
|
+
y: -a
|
|
2141
2165
|
},
|
|
2142
2166
|
{
|
|
2143
|
-
x:
|
|
2144
|
-
y: -
|
|
2167
|
+
x: s - o,
|
|
2168
|
+
y: -a + c
|
|
2145
2169
|
},
|
|
2146
2170
|
{
|
|
2147
|
-
x:
|
|
2148
|
-
y: -
|
|
2171
|
+
x: o,
|
|
2172
|
+
y: -a + c
|
|
2149
2173
|
},
|
|
2150
2174
|
{
|
|
2151
|
-
x:
|
|
2152
|
-
y: -
|
|
2175
|
+
x: o,
|
|
2176
|
+
y: -a + c
|
|
2153
2177
|
}
|
|
2154
|
-
] :
|
|
2178
|
+
] : i.has("left") ? [
|
|
2155
2179
|
{
|
|
2156
|
-
x:
|
|
2180
|
+
x: o,
|
|
2157
2181
|
y: 0
|
|
2158
2182
|
},
|
|
2159
2183
|
{
|
|
2160
|
-
x:
|
|
2161
|
-
y: -
|
|
2184
|
+
x: o,
|
|
2185
|
+
y: -c
|
|
2162
2186
|
},
|
|
2163
2187
|
{
|
|
2164
|
-
x:
|
|
2165
|
-
y: -
|
|
2188
|
+
x: s - o,
|
|
2189
|
+
y: -c
|
|
2166
2190
|
},
|
|
2167
2191
|
{
|
|
2168
|
-
x:
|
|
2169
|
-
y: -
|
|
2192
|
+
x: s - o,
|
|
2193
|
+
y: -a + c
|
|
2170
2194
|
},
|
|
2171
2195
|
{
|
|
2172
|
-
x:
|
|
2173
|
-
y: -
|
|
2196
|
+
x: o,
|
|
2197
|
+
y: -a + c
|
|
2174
2198
|
},
|
|
2175
2199
|
{
|
|
2176
|
-
x:
|
|
2177
|
-
y: -
|
|
2200
|
+
x: o,
|
|
2201
|
+
y: -a
|
|
2178
2202
|
},
|
|
2179
2203
|
{
|
|
2180
2204
|
x: 0,
|
|
2181
|
-
y: -
|
|
2205
|
+
y: -a / 2
|
|
2182
2206
|
}
|
|
2183
|
-
] :
|
|
2207
|
+
] : i.has("up") ? [
|
|
2184
2208
|
{
|
|
2185
|
-
x:
|
|
2186
|
-
y: -
|
|
2209
|
+
x: o,
|
|
2210
|
+
y: -c
|
|
2187
2211
|
},
|
|
2188
2212
|
{
|
|
2189
|
-
x:
|
|
2190
|
-
y: -
|
|
2213
|
+
x: o,
|
|
2214
|
+
y: -a + c
|
|
2191
2215
|
},
|
|
2192
2216
|
{
|
|
2193
2217
|
x: 0,
|
|
2194
|
-
y: -
|
|
2218
|
+
y: -a + c
|
|
2195
2219
|
},
|
|
2196
2220
|
{
|
|
2197
|
-
x:
|
|
2198
|
-
y: -
|
|
2221
|
+
x: s / 2,
|
|
2222
|
+
y: -a
|
|
2199
2223
|
},
|
|
2200
2224
|
{
|
|
2201
|
-
x:
|
|
2202
|
-
y: -
|
|
2225
|
+
x: s,
|
|
2226
|
+
y: -a + c
|
|
2203
2227
|
},
|
|
2204
2228
|
{
|
|
2205
|
-
x:
|
|
2206
|
-
y: -
|
|
2229
|
+
x: s - o,
|
|
2230
|
+
y: -a + c
|
|
2207
2231
|
},
|
|
2208
2232
|
{
|
|
2209
|
-
x:
|
|
2210
|
-
y: -
|
|
2233
|
+
x: s - o,
|
|
2234
|
+
y: -c
|
|
2211
2235
|
}
|
|
2212
|
-
] :
|
|
2236
|
+
] : i.has("down") ? [
|
|
2213
2237
|
{
|
|
2214
|
-
x:
|
|
2238
|
+
x: s / 2,
|
|
2215
2239
|
y: 0
|
|
2216
2240
|
},
|
|
2217
2241
|
{
|
|
2218
2242
|
x: 0,
|
|
2219
|
-
y: -
|
|
2243
|
+
y: -c
|
|
2220
2244
|
},
|
|
2221
2245
|
{
|
|
2222
|
-
x:
|
|
2223
|
-
y: -
|
|
2246
|
+
x: o,
|
|
2247
|
+
y: -c
|
|
2224
2248
|
},
|
|
2225
2249
|
{
|
|
2226
|
-
x:
|
|
2227
|
-
y: -
|
|
2250
|
+
x: o,
|
|
2251
|
+
y: -a + c
|
|
2228
2252
|
},
|
|
2229
2253
|
{
|
|
2230
|
-
x:
|
|
2231
|
-
y: -
|
|
2254
|
+
x: s - o,
|
|
2255
|
+
y: -a + c
|
|
2232
2256
|
},
|
|
2233
2257
|
{
|
|
2234
|
-
x:
|
|
2235
|
-
y: -
|
|
2258
|
+
x: s - o,
|
|
2259
|
+
y: -c
|
|
2236
2260
|
},
|
|
2237
2261
|
{
|
|
2238
|
-
x:
|
|
2239
|
-
y: -
|
|
2262
|
+
x: s,
|
|
2263
|
+
y: -c
|
|
2240
2264
|
}
|
|
2241
2265
|
] : [{
|
|
2242
2266
|
x: 0,
|
|
2243
2267
|
y: 0
|
|
2244
2268
|
}];
|
|
2245
2269
|
}, "getArrowPoints");
|
|
2246
|
-
function
|
|
2270
|
+
function Fe(e, t) {
|
|
2247
2271
|
return e.intersect(t);
|
|
2248
2272
|
}
|
|
2249
|
-
e(
|
|
2250
|
-
var
|
|
2251
|
-
function
|
|
2273
|
+
e(Fe, "intersectNode");
|
|
2274
|
+
var Ie = Fe;
|
|
2275
|
+
function Le(e, t, n, r) {
|
|
2252
2276
|
var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
|
|
2253
2277
|
r.x < i && (l = -l);
|
|
2254
2278
|
var u = Math.abs(t * n * s / c);
|
|
@@ -2257,33 +2281,33 @@ function Fe(e, t, n, r) {
|
|
|
2257
2281
|
y: a + u
|
|
2258
2282
|
};
|
|
2259
2283
|
}
|
|
2260
|
-
e(
|
|
2261
|
-
var Ie = Fe;
|
|
2262
|
-
function Le(e, t, n) {
|
|
2263
|
-
return Ie(e, t, t, n);
|
|
2264
|
-
}
|
|
2265
|
-
e(Le, "intersectCircle");
|
|
2284
|
+
e(Le, "intersectEllipse");
|
|
2266
2285
|
var Re = Le;
|
|
2267
|
-
function ze(e, t, n
|
|
2286
|
+
function ze(e, t, n) {
|
|
2287
|
+
return Re(e, t, t, n);
|
|
2288
|
+
}
|
|
2289
|
+
e(ze, "intersectCircle");
|
|
2290
|
+
var Be = ze;
|
|
2291
|
+
function Ve(e, t, n, r) {
|
|
2268
2292
|
var i = t.y - e.y, a, o = e.x - t.x, s, c = t.x * e.y - e.x * t.y, l, u, d, f = i * n.x + o * n.y + c, p = i * r.x + o * r.y + c, m, h, g, _, v;
|
|
2269
|
-
if (!(f !== 0 && p !== 0 &&
|
|
2293
|
+
if (!(f !== 0 && p !== 0 && He(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && He(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
|
|
2270
2294
|
x: _,
|
|
2271
2295
|
y: v
|
|
2272
2296
|
};
|
|
2273
2297
|
}
|
|
2274
|
-
e(
|
|
2275
|
-
function
|
|
2298
|
+
e(Ve, "intersectLine");
|
|
2299
|
+
function He(e, t) {
|
|
2276
2300
|
return e * t > 0;
|
|
2277
2301
|
}
|
|
2278
|
-
e(
|
|
2279
|
-
var
|
|
2280
|
-
function
|
|
2302
|
+
e(He, "sameSign");
|
|
2303
|
+
var Ue = Ve, We = Ge;
|
|
2304
|
+
function Ge(e, t, n) {
|
|
2281
2305
|
var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
|
|
2282
2306
|
typeof t.forEach == "function" ? t.forEach(function(e) {
|
|
2283
2307
|
o = Math.min(o, e.x), s = Math.min(s, e.y);
|
|
2284
2308
|
}) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
|
|
2285
2309
|
for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
|
|
2286
|
-
var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p =
|
|
2310
|
+
var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = Ue(e, n, {
|
|
2287
2311
|
x: c + d.x,
|
|
2288
2312
|
y: l + d.y
|
|
2289
2313
|
}, {
|
|
@@ -2297,12 +2321,12 @@ function He(e, t, n) {
|
|
|
2297
2321
|
return a < c ? -1 : a === c ? 0 : 1;
|
|
2298
2322
|
}), a[0]) : e;
|
|
2299
2323
|
}
|
|
2300
|
-
e(
|
|
2324
|
+
e(Ge, "intersectPolygon");
|
|
2301
2325
|
var K = {
|
|
2302
|
-
node:
|
|
2303
|
-
circle:
|
|
2304
|
-
ellipse:
|
|
2305
|
-
polygon:
|
|
2326
|
+
node: Ie,
|
|
2327
|
+
circle: Be,
|
|
2328
|
+
ellipse: Re,
|
|
2329
|
+
polygon: We,
|
|
2306
2330
|
rect: /* @__PURE__ */ e((e, t) => {
|
|
2307
2331
|
var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
|
|
2308
2332
|
return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
|
|
@@ -2316,19 +2340,19 @@ var K = {
|
|
|
2316
2340
|
let s = e.insert("g").attr("class", a).attr("id", t.domId || t.id), u = s.insert("g").attr("class", "label").attr("style", t.labelStyle), p;
|
|
2317
2341
|
p = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
|
|
2318
2342
|
let m;
|
|
2319
|
-
m = t.labelType === "markdown" ?
|
|
2343
|
+
m = t.labelType === "markdown" ? y(u, d(g(p), i), {
|
|
2320
2344
|
useHtmlLabels: o,
|
|
2321
2345
|
width: t.width || i.flowchart.wrappingWidth,
|
|
2322
2346
|
classes: "markdown-node-label"
|
|
2323
|
-
}, i) : await
|
|
2324
|
-
let
|
|
2347
|
+
}, i) : await U(u, d(g(p), i), t.labelStyle, !1, r);
|
|
2348
|
+
let h = m.getBBox(), _ = t.padding / 2;
|
|
2325
2349
|
if (l(i)) {
|
|
2326
2350
|
let e = m.children[0], t = f(m);
|
|
2327
|
-
await
|
|
2351
|
+
await C(e, p), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
|
|
2328
2352
|
}
|
|
2329
|
-
return o ? u.attr("transform", "translate(" + -
|
|
2353
|
+
return o ? u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : u.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && u.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), u.insert("rect", ":first-child"), {
|
|
2330
2354
|
shapeSvg: s,
|
|
2331
|
-
bbox:
|
|
2355
|
+
bbox: h,
|
|
2332
2356
|
halfPadding: _,
|
|
2333
2357
|
label: u
|
|
2334
2358
|
};
|
|
@@ -2342,7 +2366,7 @@ function Y(e, t, n, r) {
|
|
|
2342
2366
|
}).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
|
|
2343
2367
|
}
|
|
2344
2368
|
e(Y, "insertPolygonShape");
|
|
2345
|
-
var
|
|
2369
|
+
var Ke = /* @__PURE__ */ e(async (e, n) => {
|
|
2346
2370
|
n.useHtmlLabels || l(c()) || (n.centerLabel = !0);
|
|
2347
2371
|
let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, "node " + n.classes, !0);
|
|
2348
2372
|
t.info("Classes = ", n.classes);
|
|
@@ -2350,7 +2374,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2350
2374
|
return o.attr("rx", n.rx).attr("ry", n.ry).attr("x", -i.width / 2 - a).attr("y", -i.height / 2 - a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), J(n, o), n.intersect = function(e) {
|
|
2351
2375
|
return K.rect(n, e);
|
|
2352
2376
|
}, r;
|
|
2353
|
-
}, "note"),
|
|
2377
|
+
}, "note"), qe = /* @__PURE__ */ e((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ e((e, t) => `${t || "node default"}${qe(e.classes)} ${qe(e.class)}`, "getClassesFromNode"), Je = /* @__PURE__ */ e(async (e, n) => {
|
|
2354
2378
|
let { shapeSvg: r, bbox: i } = await q(e, n, X(n, void 0), !0), a = i.width + n.padding + (i.height + n.padding), o = [
|
|
2355
2379
|
{
|
|
2356
2380
|
x: a / 2,
|
|
@@ -2374,7 +2398,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2374
2398
|
return s.attr("style", n.style), J(n, s), n.intersect = function(e) {
|
|
2375
2399
|
return t.warn("Intersect called"), K.polygon(n, o, e);
|
|
2376
2400
|
}, r;
|
|
2377
|
-
}, "question"),
|
|
2401
|
+
}, "question"), Ye = /* @__PURE__ */ e((e, t) => {
|
|
2378
2402
|
let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
|
|
2379
2403
|
return n.insert("polygon", ":first-child").attr("points", [
|
|
2380
2404
|
{
|
|
@@ -2398,8 +2422,8 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2398
2422
|
}).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
|
|
2399
2423
|
return K.circle(t, 14, e);
|
|
2400
2424
|
}, n;
|
|
2401
|
-
}, "choice"),
|
|
2402
|
-
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = i / 4, o = r.width + 2 * a + t.padding, s = [
|
|
2425
|
+
}, "choice"), Xe = /* @__PURE__ */ e(async (e, t) => {
|
|
2426
|
+
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = t.positioned ? t.height : r.height + t.padding, a = i / 4, o = t.positioned ? t.width : r.width + 2 * a + t.padding, s = [
|
|
2403
2427
|
{
|
|
2404
2428
|
x: a,
|
|
2405
2429
|
y: 0
|
|
@@ -2428,12 +2452,12 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2428
2452
|
return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
|
|
2429
2453
|
return K.polygon(t, s, e);
|
|
2430
2454
|
}, n;
|
|
2431
|
-
}, "hexagon"),
|
|
2432
|
-
let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s =
|
|
2433
|
-
return
|
|
2434
|
-
return K.polygon(t,
|
|
2455
|
+
}, "hexagon"), Ze = /* @__PURE__ */ e(async (e, t) => {
|
|
2456
|
+
let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = t.positioned && (t.widthInColumns ?? 1) > 1 && t.width > o ? t.width : o, c = Pe(t.directions, r, t, s), l = Y(n, s, i, c);
|
|
2457
|
+
return l.attr("style", t.style), J(t, l), t.intersect = function(e) {
|
|
2458
|
+
return K.polygon(t, c, e);
|
|
2435
2459
|
}, n;
|
|
2436
|
-
}, "block_arrow"),
|
|
2460
|
+
}, "block_arrow"), Qe = /* @__PURE__ */ e(async (e, t) => {
|
|
2437
2461
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2438
2462
|
{
|
|
2439
2463
|
x: -a / 2,
|
|
@@ -2459,7 +2483,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2459
2483
|
return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
|
|
2460
2484
|
return K.polygon(t, o, e);
|
|
2461
2485
|
}, n;
|
|
2462
|
-
}, "rect_left_inv_arrow"),
|
|
2486
|
+
}, "rect_left_inv_arrow"), $e = /* @__PURE__ */ e(async (e, t) => {
|
|
2463
2487
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2464
2488
|
{
|
|
2465
2489
|
x: -2 * a / 6,
|
|
@@ -2481,7 +2505,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2481
2505
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2482
2506
|
return K.polygon(t, o, e);
|
|
2483
2507
|
}, n;
|
|
2484
|
-
}, "lean_right"),
|
|
2508
|
+
}, "lean_right"), et = /* @__PURE__ */ e(async (e, t) => {
|
|
2485
2509
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2486
2510
|
{
|
|
2487
2511
|
x: 2 * a / 6,
|
|
@@ -2503,7 +2527,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2503
2527
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2504
2528
|
return K.polygon(t, o, e);
|
|
2505
2529
|
}, n;
|
|
2506
|
-
}, "lean_left"),
|
|
2530
|
+
}, "lean_left"), tt = /* @__PURE__ */ e(async (e, t) => {
|
|
2507
2531
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2508
2532
|
{
|
|
2509
2533
|
x: -2 * a / 6,
|
|
@@ -2525,7 +2549,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2525
2549
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2526
2550
|
return K.polygon(t, o, e);
|
|
2527
2551
|
}, n;
|
|
2528
|
-
}, "trapezoid"),
|
|
2552
|
+
}, "trapezoid"), nt = /* @__PURE__ */ e(async (e, t) => {
|
|
2529
2553
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2530
2554
|
{
|
|
2531
2555
|
x: a / 6,
|
|
@@ -2547,7 +2571,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2547
2571
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2548
2572
|
return K.polygon(t, o, e);
|
|
2549
2573
|
}, n;
|
|
2550
|
-
}, "inv_trapezoid"),
|
|
2574
|
+
}, "inv_trapezoid"), rt = /* @__PURE__ */ e(async (e, t) => {
|
|
2551
2575
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2552
2576
|
{
|
|
2553
2577
|
x: 0,
|
|
@@ -2573,7 +2597,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2573
2597
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2574
2598
|
return K.polygon(t, o, e);
|
|
2575
2599
|
}, n;
|
|
2576
|
-
}, "rect_right_inv_arrow"),
|
|
2600
|
+
}, "rect_right_inv_arrow"), it = /* @__PURE__ */ e(async (e, t) => {
|
|
2577
2601
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = i / 2, o = a / (2.5 + i / 50), s = r.height + o + t.padding, c = "M 0," + o + " a " + a + "," + o + " 0,0,0 " + i + " 0 a " + a + "," + o + " 0,0,0 " + -i + " 0 l 0," + s + " a " + a + "," + o + " 0,0,0 " + i + " 0 l 0," + -s;
|
|
2578
2602
|
return J(t, n.attr("label-offset-y", o).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -i / 2 + "," + -(s / 2 + o) + ")")), t.intersect = function(e) {
|
|
2579
2603
|
let n = K.rect(t, e), r = n.x - t.x;
|
|
@@ -2583,7 +2607,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2583
2607
|
}
|
|
2584
2608
|
return n;
|
|
2585
2609
|
}, n;
|
|
2586
|
-
}, "cylinder"),
|
|
2610
|
+
}, "cylinder"), at = /* @__PURE__ */ e(async (e, n) => {
|
|
2587
2611
|
let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, "node " + n.classes + " " + n.class, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
|
|
2588
2612
|
if (o.attr("class", "basic label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
|
|
2589
2613
|
let e = new Set(Object.keys(n.props));
|
|
@@ -2594,7 +2618,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2594
2618
|
return J(n, o), n.intersect = function(e) {
|
|
2595
2619
|
return K.rect(n, e);
|
|
2596
2620
|
}, r;
|
|
2597
|
-
}, "rect"),
|
|
2621
|
+
}, "rect"), ot = /* @__PURE__ */ e(async (e, n) => {
|
|
2598
2622
|
let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, "node " + n.classes, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
|
|
2599
2623
|
if (o.attr("class", "basic cluster composite label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
|
|
2600
2624
|
let e = new Set(Object.keys(n.props));
|
|
@@ -2605,7 +2629,7 @@ var Ue = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2605
2629
|
return J(n, o), n.intersect = function(e) {
|
|
2606
2630
|
return K.rect(n, e);
|
|
2607
2631
|
}, r;
|
|
2608
|
-
}, "composite"),
|
|
2632
|
+
}, "composite"), st = /* @__PURE__ */ e(async (e, n) => {
|
|
2609
2633
|
let { shapeSvg: r } = await q(e, n, "label", !0);
|
|
2610
2634
|
t.trace("Classes = ", n.class);
|
|
2611
2635
|
let i = r.insert("rect", ":first-child");
|
|
@@ -2628,12 +2652,12 @@ function Z(n, r, i, a) {
|
|
|
2628
2652
|
r.includes("t") ? (t.debug("add top border"), s(i)) : c(i), r.includes("r") ? (t.debug("add right border"), s(a)) : c(a), r.includes("b") ? (t.debug("add bottom border"), s(i)) : c(i), r.includes("l") ? (t.debug("add left border"), s(a)) : c(a), n.attr("stroke-dasharray", o.join(" "));
|
|
2629
2653
|
}
|
|
2630
2654
|
e(Z, "applyNodePropertyBorders");
|
|
2631
|
-
var
|
|
2655
|
+
var ct = /* @__PURE__ */ e(async (e, n) => {
|
|
2632
2656
|
let r;
|
|
2633
2657
|
r = n.classes ? "node " + n.classes : "node default";
|
|
2634
2658
|
let i = e.insert("g").attr("class", r).attr("id", n.domId || n.id), a = i.insert("rect", ":first-child"), o = i.insert("line"), s = i.insert("g").attr("class", "label"), u = n.labelText.flat ? n.labelText.flat() : n.labelText, d = "";
|
|
2635
2659
|
d = typeof u == "object" ? u[0] : u, t.info("Label text abc79", d, u, typeof u == "object");
|
|
2636
|
-
let p = await
|
|
2660
|
+
let p = await U(s, d, n.labelStyle, !0, !0), m = {
|
|
2637
2661
|
width: 0,
|
|
2638
2662
|
height: 0
|
|
2639
2663
|
};
|
|
@@ -2642,7 +2666,7 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2642
2666
|
m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
|
|
2643
2667
|
}
|
|
2644
2668
|
t.info("Text 2", u);
|
|
2645
|
-
let h = u.slice(1, u.length), g = p.getBBox(), _ = await
|
|
2669
|
+
let h = u.slice(1, u.length), g = p.getBBox(), _ = await U(s, h.join ? h.join("<br/>") : h, n.labelStyle, !0, !0);
|
|
2646
2670
|
if (l(c())) {
|
|
2647
2671
|
let e = _.children[0], t = f(_);
|
|
2648
2672
|
m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
|
|
@@ -2651,22 +2675,22 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2651
2675
|
return f(_).attr("transform", "translate( " + (m.width > g.width ? 0 : (g.width - m.width) / 2) + ", " + (g.height + v + 5) + ")"), f(p).attr("transform", "translate( " + (m.width < g.width ? 0 : -(g.width - m.width) / 2) + ", 0)"), m = s.node().getBBox(), s.attr("transform", "translate(" + -m.width / 2 + ", " + (-m.height / 2 - v + 3) + ")"), a.attr("class", "outer title-state").attr("x", -m.width / 2 - v).attr("y", -m.height / 2 - v).attr("width", m.width + n.padding).attr("height", m.height + n.padding), o.attr("class", "divider").attr("x1", -m.width / 2 - v).attr("x2", m.width / 2 + v).attr("y1", -m.height / 2 - v + g.height + v).attr("y2", -m.height / 2 - v + g.height + v), J(n, a), n.intersect = function(e) {
|
|
2652
2676
|
return K.rect(n, e);
|
|
2653
2677
|
}, i;
|
|
2654
|
-
}, "rectWithTitle"),
|
|
2678
|
+
}, "rectWithTitle"), lt = /* @__PURE__ */ e(async (e, t) => {
|
|
2655
2679
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
|
|
2656
2680
|
return J(t, n.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i)), t.intersect = function(e) {
|
|
2657
2681
|
return K.rect(t, e);
|
|
2658
2682
|
}, n;
|
|
2659
|
-
}, "stadium"),
|
|
2683
|
+
}, "stadium"), ut = /* @__PURE__ */ e(async (e, n) => {
|
|
2660
2684
|
let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, X(n, void 0), !0), o = r.insert("circle", ":first-child");
|
|
2661
2685
|
return o.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), t.info("Circle main"), J(n, o), n.intersect = function(e) {
|
|
2662
2686
|
return t.info("Circle intersect", n, i.width / 2 + a, e), K.circle(n, i.width / 2 + a, e);
|
|
2663
2687
|
}, r;
|
|
2664
|
-
}, "circle"),
|
|
2688
|
+
}, "circle"), dt = /* @__PURE__ */ e(async (e, n) => {
|
|
2665
2689
|
let { shapeSvg: r, bbox: i, halfPadding: a } = await q(e, n, X(n, void 0), !0), o = r.insert("g", ":first-child"), s = o.insert("circle"), c = o.insert("circle");
|
|
2666
2690
|
return o.attr("class", n.class), s.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a + 5).attr("width", i.width + n.padding + 10).attr("height", i.height + n.padding + 10), c.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), t.info("DoubleCircle main"), J(n, s), n.intersect = function(e) {
|
|
2667
2691
|
return t.info("DoubleCircle intersect", n, i.width / 2 + a + 5, e), K.circle(n, i.width / 2 + a + 5, e);
|
|
2668
2692
|
}, r;
|
|
2669
|
-
}, "doublecircle"),
|
|
2693
|
+
}, "doublecircle"), ft = /* @__PURE__ */ e(async (e, t) => {
|
|
2670
2694
|
let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
|
|
2671
2695
|
{
|
|
2672
2696
|
x: 0,
|
|
@@ -2712,51 +2736,51 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2712
2736
|
return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
|
|
2713
2737
|
return K.polygon(t, o, e);
|
|
2714
2738
|
}, n;
|
|
2715
|
-
}, "subroutine"),
|
|
2739
|
+
}, "subroutine"), pt = /* @__PURE__ */ e((e, t) => {
|
|
2716
2740
|
let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
|
|
2717
2741
|
return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
|
|
2718
2742
|
return K.circle(t, 7, e);
|
|
2719
2743
|
}, n;
|
|
2720
|
-
}, "start"),
|
|
2744
|
+
}, "start"), mt = /* @__PURE__ */ e((e, t, n) => {
|
|
2721
2745
|
let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
|
|
2722
2746
|
return n === "LR" && (i = 10, a = 70), J(t, r.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join")), t.height += t.padding / 2, t.width += t.padding / 2, t.intersect = function(e) {
|
|
2723
2747
|
return K.rect(t, e);
|
|
2724
2748
|
}, r;
|
|
2725
|
-
}, "forkJoin"),
|
|
2726
|
-
rhombus:
|
|
2727
|
-
composite:
|
|
2728
|
-
question:
|
|
2729
|
-
rect:
|
|
2730
|
-
labelRect:
|
|
2731
|
-
rectWithTitle:
|
|
2732
|
-
choice:
|
|
2733
|
-
circle:
|
|
2734
|
-
doublecircle:
|
|
2735
|
-
stadium:
|
|
2736
|
-
hexagon:
|
|
2737
|
-
block_arrow:
|
|
2738
|
-
rect_left_inv_arrow:
|
|
2739
|
-
lean_right:
|
|
2740
|
-
lean_left:
|
|
2741
|
-
trapezoid:
|
|
2742
|
-
inv_trapezoid:
|
|
2743
|
-
rect_right_inv_arrow:
|
|
2744
|
-
cylinder:
|
|
2745
|
-
start:
|
|
2749
|
+
}, "forkJoin"), ht = {
|
|
2750
|
+
rhombus: Je,
|
|
2751
|
+
composite: ot,
|
|
2752
|
+
question: Je,
|
|
2753
|
+
rect: at,
|
|
2754
|
+
labelRect: st,
|
|
2755
|
+
rectWithTitle: ct,
|
|
2756
|
+
choice: Ye,
|
|
2757
|
+
circle: ut,
|
|
2758
|
+
doublecircle: dt,
|
|
2759
|
+
stadium: lt,
|
|
2760
|
+
hexagon: Xe,
|
|
2761
|
+
block_arrow: Ze,
|
|
2762
|
+
rect_left_inv_arrow: Qe,
|
|
2763
|
+
lean_right: $e,
|
|
2764
|
+
lean_left: et,
|
|
2765
|
+
trapezoid: tt,
|
|
2766
|
+
inv_trapezoid: nt,
|
|
2767
|
+
rect_right_inv_arrow: rt,
|
|
2768
|
+
cylinder: it,
|
|
2769
|
+
start: pt,
|
|
2746
2770
|
end: /* @__PURE__ */ e((e, t) => {
|
|
2747
2771
|
let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child"), i = n.insert("circle", ":first-child");
|
|
2748
2772
|
return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), r.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), J(t, i), t.intersect = function(e) {
|
|
2749
2773
|
return K.circle(t, 7, e);
|
|
2750
2774
|
}, n;
|
|
2751
2775
|
}, "end"),
|
|
2752
|
-
note:
|
|
2753
|
-
subroutine:
|
|
2754
|
-
fork:
|
|
2755
|
-
join:
|
|
2776
|
+
note: Ke,
|
|
2777
|
+
subroutine: ft,
|
|
2778
|
+
fork: mt,
|
|
2779
|
+
join: mt,
|
|
2756
2780
|
class_box: /* @__PURE__ */ e(async (e, t) => {
|
|
2757
2781
|
let n = t.padding / 2, r;
|
|
2758
2782
|
r = t.classes ? "node " + t.classes : "node default";
|
|
2759
|
-
let i = e.insert("g").attr("class", r).attr("id", t.domId || t.id), a = i.insert("rect", ":first-child"), o = i.insert("line"), s = i.insert("line"), u = 0, d = 4, p = i.insert("g").attr("class", "label"), m = 0, h = t.classData.annotations?.[0], g = await
|
|
2783
|
+
let i = e.insert("g").attr("class", r).attr("id", t.domId || t.id), a = i.insert("rect", ":first-child"), o = i.insert("line"), s = i.insert("line"), u = 0, d = 4, p = i.insert("g").attr("class", "label"), m = 0, h = t.classData.annotations?.[0], g = await U(p, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), _ = g.getBBox();
|
|
2760
2784
|
if (l(c())) {
|
|
2761
2785
|
let e = g.children[0], t = f(g);
|
|
2762
2786
|
_ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
|
|
@@ -2764,7 +2788,7 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2764
2788
|
t.classData.annotations[0] && (d += _.height + 4, u += _.width);
|
|
2765
2789
|
let v = t.classData.label;
|
|
2766
2790
|
t.classData.type !== void 0 && t.classData.type !== "" && (l(c()) ? v += "<" + t.classData.type + ">" : v += "<" + t.classData.type + ">");
|
|
2767
|
-
let y = await
|
|
2791
|
+
let y = await U(p, v, t.labelStyle, !0, !0);
|
|
2768
2792
|
f(y).attr("class", "classTitle");
|
|
2769
2793
|
let b = y.getBBox();
|
|
2770
2794
|
if (l(c())) {
|
|
@@ -2776,7 +2800,7 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2776
2800
|
t.classData.members.forEach(async (e) => {
|
|
2777
2801
|
let n = e.getDisplayDetails(), r = n.displayText;
|
|
2778
2802
|
l(c()) && (r = r.replace(/</g, "<").replace(/>/g, ">"));
|
|
2779
|
-
let i = await
|
|
2803
|
+
let i = await U(p, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
|
|
2780
2804
|
if (l(c())) {
|
|
2781
2805
|
let e = i.children[0], t = f(i);
|
|
2782
2806
|
a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
|
|
@@ -2787,7 +2811,7 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2787
2811
|
if (t.classData.methods.forEach(async (e) => {
|
|
2788
2812
|
let n = e.getDisplayDetails(), r = n.displayText;
|
|
2789
2813
|
l(c()) && (r = r.replace(/</g, "<").replace(/>/g, ">"));
|
|
2790
|
-
let i = await
|
|
2814
|
+
let i = await U(p, r, n.cssStyle ? n.cssStyle : t.labelStyle, !0, !0), a = i.getBBox();
|
|
2791
2815
|
if (l(c())) {
|
|
2792
2816
|
let e = i.children[0], t = f(i);
|
|
2793
2817
|
a = e.getBoundingClientRect(), t.attr("width", a.width), t.attr("height", a.height);
|
|
@@ -2810,20 +2834,20 @@ var at = /* @__PURE__ */ e(async (e, n) => {
|
|
|
2810
2834
|
return K.rect(t, e);
|
|
2811
2835
|
}, i;
|
|
2812
2836
|
}, "class_box")
|
|
2813
|
-
}, Q = {},
|
|
2837
|
+
}, Q = {}, gt = /* @__PURE__ */ e(async (e, t, n) => {
|
|
2814
2838
|
let r, i;
|
|
2815
2839
|
if (t.link) {
|
|
2816
2840
|
let a;
|
|
2817
|
-
c().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await
|
|
2818
|
-
} else i = await
|
|
2841
|
+
c().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await ht[t.shape](r, t, n);
|
|
2842
|
+
} else i = await ht[t.shape](e, t, n), r = i;
|
|
2819
2843
|
return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
|
|
2820
|
-
}, "insertNode"),
|
|
2844
|
+
}, "insertNode"), _t = /* @__PURE__ */ e((e) => {
|
|
2821
2845
|
let n = Q[e.id];
|
|
2822
2846
|
t.trace("Transforming node", e.diff, e, "translate(" + (e.x - e.width / 2 - 5) + ", " + e.width / 2 + ")");
|
|
2823
2847
|
let r = e.diff || 0;
|
|
2824
2848
|
return e.clusterNode ? n.attr("transform", "translate(" + (e.x + r - e.width / 2) + ", " + (e.y - e.height / 2 - 8) + ")") : n.attr("transform", "translate(" + e.x + ", " + e.y + ")"), r;
|
|
2825
2849
|
}, "positionNode");
|
|
2826
|
-
function
|
|
2850
|
+
function vt(e, t, n = !1) {
|
|
2827
2851
|
let r = e, i = "default";
|
|
2828
2852
|
(r?.classes?.length || 0) > 0 && (i = (r?.classes ?? []).join(" ")), i += " flowchart-label";
|
|
2829
2853
|
let a = 0, o = "", c;
|
|
@@ -2887,7 +2911,7 @@ function ht(e, t, n = !1) {
|
|
|
2887
2911
|
break;
|
|
2888
2912
|
default: o = "rect";
|
|
2889
2913
|
}
|
|
2890
|
-
let l =
|
|
2914
|
+
let l = _(r?.styles ?? []), u = r.label, d = r.size ?? {
|
|
2891
2915
|
width: 0,
|
|
2892
2916
|
height: 0,
|
|
2893
2917
|
x: 0,
|
|
@@ -2911,14 +2935,15 @@ function ht(e, t, n = !1) {
|
|
|
2911
2935
|
positioned: n,
|
|
2912
2936
|
intersect: void 0,
|
|
2913
2937
|
type: r.type,
|
|
2914
|
-
padding: c ?? s()?.block?.padding ?? 0
|
|
2938
|
+
padding: c ?? s()?.block?.padding ?? 0,
|
|
2939
|
+
widthInColumns: r.widthInColumns ?? 1
|
|
2915
2940
|
};
|
|
2916
2941
|
}
|
|
2917
|
-
e(
|
|
2918
|
-
async function
|
|
2919
|
-
let r =
|
|
2942
|
+
e(vt, "getNodeFromBlock");
|
|
2943
|
+
async function yt(e, t, n) {
|
|
2944
|
+
let r = vt(t, n, !1);
|
|
2920
2945
|
if (r.type === "group") return;
|
|
2921
|
-
let i = await
|
|
2946
|
+
let i = await gt(e, r, { config: s() }), a = i.node().getBBox(), o = n.getBlock(r.id);
|
|
2922
2947
|
o.size = {
|
|
2923
2948
|
width: a.width,
|
|
2924
2949
|
height: a.height,
|
|
@@ -2927,25 +2952,25 @@ async function gt(e, t, n) {
|
|
|
2927
2952
|
node: i
|
|
2928
2953
|
}, n.setBlock(o), i.remove();
|
|
2929
2954
|
}
|
|
2930
|
-
e(
|
|
2931
|
-
async function
|
|
2932
|
-
let r =
|
|
2933
|
-
n.getBlock(r.id).type !== "space" && (await
|
|
2955
|
+
e(yt, "calculateBlockSize");
|
|
2956
|
+
async function bt(e, t, n) {
|
|
2957
|
+
let r = vt(t, n, !0);
|
|
2958
|
+
n.getBlock(r.id).type !== "space" && (await gt(e, r, { config: s() }), t.intersect = r?.intersect, _t(r));
|
|
2934
2959
|
}
|
|
2935
|
-
e(
|
|
2960
|
+
e(bt, "insertBlockPositioned");
|
|
2936
2961
|
async function $(e, t, n, r) {
|
|
2937
2962
|
for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
|
|
2938
2963
|
}
|
|
2939
2964
|
e($, "performOperations");
|
|
2940
|
-
async function
|
|
2941
|
-
await $(e, t, n,
|
|
2965
|
+
async function xt(e, t, n) {
|
|
2966
|
+
await $(e, t, n, yt);
|
|
2942
2967
|
}
|
|
2943
|
-
e(
|
|
2944
|
-
async function
|
|
2945
|
-
await $(e, t, n,
|
|
2968
|
+
e(xt, "calculateBlockSizes");
|
|
2969
|
+
async function St(e, t, n) {
|
|
2970
|
+
await $(e, t, n, bt);
|
|
2946
2971
|
}
|
|
2947
|
-
e(
|
|
2948
|
-
async function
|
|
2972
|
+
e(St, "insertBlocks");
|
|
2973
|
+
async function Ct(e, t, n, r, i) {
|
|
2949
2974
|
let a = new T({
|
|
2950
2975
|
multigraph: !0,
|
|
2951
2976
|
compound: !0
|
|
@@ -2978,8 +3003,8 @@ async function bt(e, t, n, r, i) {
|
|
|
2978
3003
|
x: s.x,
|
|
2979
3004
|
y: s.y
|
|
2980
3005
|
}
|
|
2981
|
-
], l = i ? `${i}-${n.id}` : n.id
|
|
2982
|
-
|
|
3006
|
+
], l = i ? `${i}-${n.id}` : n.id, u = `${n.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${n.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
|
|
3007
|
+
Me(e, {
|
|
2983
3008
|
v: n.start,
|
|
2984
3009
|
w: n.end,
|
|
2985
3010
|
name: l
|
|
@@ -2989,16 +3014,16 @@ async function bt(e, t, n, r, i) {
|
|
|
2989
3014
|
arrowTypeEnd: n.arrowTypeEnd,
|
|
2990
3015
|
arrowTypeStart: n.arrowTypeStart,
|
|
2991
3016
|
points: c,
|
|
2992
|
-
classes:
|
|
2993
|
-
}, void 0, "block", a, i), n.label && (await
|
|
3017
|
+
classes: u
|
|
3018
|
+
}, void 0, "block", a, i), n.label && (await De(e, {
|
|
2994
3019
|
...n,
|
|
2995
3020
|
label: n.label,
|
|
2996
3021
|
labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
|
|
2997
3022
|
arrowTypeEnd: n.arrowTypeEnd,
|
|
2998
3023
|
arrowTypeStart: n.arrowTypeStart,
|
|
2999
3024
|
points: c,
|
|
3000
|
-
classes:
|
|
3001
|
-
}),
|
|
3025
|
+
classes: u
|
|
3026
|
+
}), Oe({
|
|
3002
3027
|
...n,
|
|
3003
3028
|
x: c[1].x,
|
|
3004
3029
|
y: c[1].y
|
|
@@ -3006,10 +3031,10 @@ async function bt(e, t, n, r, i) {
|
|
|
3006
3031
|
}
|
|
3007
3032
|
}
|
|
3008
3033
|
}
|
|
3009
|
-
e(
|
|
3010
|
-
var
|
|
3034
|
+
e(Ct, "insertEdges");
|
|
3035
|
+
var wt = {
|
|
3011
3036
|
parser: D,
|
|
3012
|
-
db:
|
|
3037
|
+
db: ge,
|
|
3013
3038
|
renderer: {
|
|
3014
3039
|
draw: /* @__PURE__ */ e(async function(e, n, r, i) {
|
|
3015
3040
|
let { securityLevel: a, block: c } = s(), l = i.db;
|
|
@@ -3017,15 +3042,15 @@ var xt = {
|
|
|
3017
3042
|
let u;
|
|
3018
3043
|
a === "sandbox" && (u = f("#i" + n));
|
|
3019
3044
|
let d = f(a === "sandbox" ? u.nodes()[0].contentDocument.body : "body"), p = a === "sandbox" ? d.select(`[id="${n}"]`) : f(`[id="${n}"]`);
|
|
3020
|
-
|
|
3045
|
+
be(p, [
|
|
3021
3046
|
"point",
|
|
3022
3047
|
"circle",
|
|
3023
3048
|
"cross"
|
|
3024
3049
|
], i.type, n);
|
|
3025
3050
|
let m = l.getBlocks(), h = l.getBlocksFlat(), g = l.getEdges(), _ = p.insert("g").attr("class", "block");
|
|
3026
|
-
await
|
|
3027
|
-
let v =
|
|
3028
|
-
if (await
|
|
3051
|
+
await xt(_, m, l);
|
|
3052
|
+
let v = Se(l);
|
|
3053
|
+
if (await St(_, m, l), await Ct(_, g, h, l, n), v) {
|
|
3029
3054
|
let e = v, n = Math.max(1, Math.round(.125 * (e.width / e.height))), r = e.height + n + 10, i = e.width + 10, { useMaxWidth: a } = c;
|
|
3030
3055
|
o(p, r, i, !!a), t.debug("Here Bounds", v, e), p.attr("viewBox", `${e.x - 5} ${e.y - 5} ${e.width + 10} ${e.height + 10}`);
|
|
3031
3056
|
}
|
|
@@ -3034,9 +3059,9 @@ var xt = {
|
|
|
3034
3059
|
return t.db.getClasses();
|
|
3035
3060
|
}, "getClasses")
|
|
3036
3061
|
},
|
|
3037
|
-
styles:
|
|
3062
|
+
styles: _e
|
|
3038
3063
|
};
|
|
3039
3064
|
//#endregion
|
|
3040
|
-
export {
|
|
3065
|
+
export { wt as diagram };
|
|
3041
3066
|
|
|
3042
|
-
//# sourceMappingURL=blockDiagram-
|
|
3067
|
+
//# sourceMappingURL=blockDiagram-GPEHLZMM.js.map
|