@pi-outpost/embed 0.32.4 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
- package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
- package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
- package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
- package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
- package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
- package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
- package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
- package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
- package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
- package/dist/channel-BjC1TKrU.cjs +1 -0
- package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
- package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
- package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
- package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
- package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
- package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
- package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
- package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
- package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
- package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
- package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
- package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
- package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
- package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
- package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
- package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
- package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
- package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
- package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
- package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
- package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
- package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
- package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
- package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
- package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
- package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
- package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
- package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
- package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
- package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
- package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
- package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
- package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
- package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
- package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
- package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
- package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
- package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
- package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
- package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
- package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
- package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
- package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
- package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
- package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
- package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
- package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
- package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
- package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
- package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
- package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
- package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
- package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
- package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
- package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
- package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
- package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
- package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
- package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
- package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
- package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
- package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
- package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
- package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
- package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
- package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
- package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
- package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
- package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
- package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
- package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
- package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
- package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
- package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
- package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
- package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
- package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
- package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
- package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
- package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
- package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
- package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
- package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
- package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
- package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
- package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
- package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
- package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
- package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
- package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
- package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
- package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
- package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
- package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
- package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
- package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
- package/dist/pi-outpost-embed.cjs +9 -10
- package/dist/pi-outpost-embed.js +2833 -2786
- package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
- package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
- package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
- package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
- package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
- package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
- package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
- package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
- package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
- package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
- package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
- package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
- package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
- package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
- package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
- package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
- package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
- package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
- package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
- package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
- package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
- package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
- package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
- package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
- package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
- package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
- package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
- package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
- package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
- package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
- package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
- package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
- package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
- package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
- package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
- package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
- package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
- package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
- package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
- package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
- package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
- package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
- package/package.json +2 -2
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
- package/dist/channel-DcrLLvcO.cjs +0 -1
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
- package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
- package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
- package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
- package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
- package/dist/conversationHistory-BmpdU77I.cjs +0 -286
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
- package/dist/dagre-BMKbPnPh.js +0 -1934
- package/dist/dagre-EEW2OxRU.cjs +0 -1
- package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
- package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
- package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
- package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
- package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
- package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
- package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
- package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
- package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
- package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
- package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
- package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-NGNAAXSQ-kHtfTQLE.cjs");const e=require("./mermaid-parser.core-BHBS1DqP.cjs");exports.createPieServices=e.b;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-
|
|
1
|
+
const e=require("./mermaid-parser.core-BHBS1DqP.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs"),r=require("./chunk-VPRB5NB3-CT204jN6.cjs"),i=require("./ordinal-Bm_chml2.cjs"),a=require("./path-DIS6ck99.cjs"),o=require("./dist-Dwv2VYAL.cjs"),s=require("./arc-Dh2Zrypi.cjs"),c=require("./array-DZSRzHA_.cjs"),l=require("./chunk-3YJQHVM4-ChvNe1M8.cjs"),u=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs"),d=require("./mermaid.core-4MZ-Iwu7.cjs");function f(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function p(e){return e}function m(){var e=p,t=f,n=null,r=a.n(0),i=a.n(o.m),s=a.n(0);function l(a){var l,u=(a=c.t(a)).length,d,f,p=0,m=Array(u),h=Array(u),g=+r.apply(this,arguments),_=Math.min(o.m,Math.max(-o.m,i.apply(this,arguments)-g)),v,y=Math.min(Math.abs(_)/u,s.apply(this,arguments)),b=y*(_<0?-1:1),x;for(l=0;l<u;++l)(x=h[m[l]=l]=+e(a[l],l,a))>0&&(p+=x);for(t==null?n!=null&&m.sort(function(e,t){return n(a[e],a[t])}):m.sort(function(e,n){return t(h[e],h[n])}),l=0,f=p?(_-u*b)/p:0;l<u;++l,g=v)d=m[l],x=h[d],v=g+(x>0?x*f:0)+b,h[d]={data:a[d],index:l,value:x,startAngle:g,endAngle:v,padAngle:y};return h}return l.value=function(t){return arguments.length?(e=typeof t==`function`?t:a.n(+t),l):e},l.sortValues=function(e){return arguments.length?(t=e,n=null,l):t},l.sort=function(e){return arguments.length?(n=e,t=null,l):n},l.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:a.n(+e),l):r},l.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:a.n(+e),l):i},l.padAngle=function(e){return arguments.length?(s=typeof e==`function`?e:a.n(+e),l):s},l}var h=r.f.pie,g={sections:new Map,showData:!1,config:h},_=g.sections,v=g.showData,y=structuredClone(h),b={getConfig:t.n(()=>structuredClone(y),`getConfig`),clear:t.n(()=>{_=new Map,v=g.showData,r.a()},`clear`),setDiagramTitle:r.q,getDiagramTitle:r.C,setAccTitle:r.U,getAccTitle:r.v,setAccDescription:r.H,getAccDescription:r._,addSection:t.n(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);_.has(e)||(_.set(e,t),n.m.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t.n(()=>_,`getSections`),setShowData:t.n(e=>{v=e},`setShowData`),getShowData:t.n(()=>v,`getShowData`)},x=t.n((e,t)=>{u.t(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),S={parse:t.n(async t=>{let r=await e.n(`pie`,t);n.m.debug(r),x(r,b)},`parse`)},C=t.n(e=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${e.pieStrokeColor};
|
|
4
4
|
stroke-width : ${e.pieStrokeWidth};
|
|
@@ -36,4 +36,4 @@ const e=require("./mermaid-parser.core-CBiDgMLi.cjs"),t=require("./chunk-Y2CYZVJ
|
|
|
36
36
|
font-size: ${e.pieLegendTextSize};
|
|
37
37
|
}
|
|
38
38
|
`,`getStyles`),w=t.n(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return m().value(e=>e.value).sort(null)(n)},`createPieArcs`),T={parser:S,db:b,renderer:{draw:t.n((e,t,a,o)=>{n.m.debug(`rendering pie chart
|
|
39
|
-
`+e);let c=o.db,u=r.
|
|
39
|
+
`+e);let c=o.db,u=r.b(),f=l.i(c.getConfig(),u.pie),p=d.o(t),m=p.append(`g`);m.attr(`transform`,`translate(225,225)`);let{themeVariables:h}=u,[g]=l.m(h.pieOuterStrokeWidth);g??=2;let _=f.legendPosition,v=f.textPosition,y=f.donutHole>0&&f.donutHole<=.9?f.donutHole:0,b=s.t().innerRadius(y*185).outerRadius(185),x=s.t().innerRadius(185*v).outerRadius(185*v),S=m.append(`g`);S.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+g/2).attr(`class`,`pieOuterCircle`);let C=c.getSections(),T=w(C),E=[h.pie1,h.pie2,h.pie3,h.pie4,h.pie5,h.pie6,h.pie7,h.pie8,h.pie9,h.pie10,h.pie11,h.pie12],D=0;C.forEach(e=>{D+=e});let O=T.filter(e=>(e.data.value/D*100).toFixed(0)!==`0`),k=i.t(E).domain([...C.keys()]);S.selectAll(`mySlices`).data(O).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>k(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return f.highlightSlice===`hover`?t+=` highlightedOnHover`:f.highlightSlice===e.data.label&&(t+=` highlighted`),t}),S.selectAll(`mySlices`).data(O).enter().append(`text`).text(e=>(e.data.value/D*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let A=m.append(`text`).text(c.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),j=[...C.entries()].map(([e,t])=>({label:e,value:t})),M=m.selectAll(`.legend`).data(j).enter().append(`g`).attr(`class`,`legend`);M.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>k(e.label)).style(`stroke`,e=>k(e.label)),M.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>c.getShowData()?`${e.label} [${e.value}]`:e.label);let N=Math.max(...M.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),P=450,F=490,I=j.length*22;switch(_){case`center`:M.attr(`transform`,(e,t)=>{let n=22*j.length/2,r=-N/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:P+=I,M.attr(`transform`,(e,t)=>`translate(${-N/2-22}, ${t*22-185})`),S.attr(`transform`,()=>`translate(0, ${I+22})`);break;case`bottom`:P+=I,M.attr(`transform`,(e,t)=>{let n=-N/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:F+=22+N,M.attr(`transform`,(e,t)=>{let n=22*j.length/2;return`translate(-207,`+(t*22-n)+`)`}),S.attr(`transform`,()=>`translate(${N+18+4}, 0)`);break;default:F+=22+N,M.attr(`transform`,(e,t)=>{let n=22*j.length/2;return`translate(216,`+(t*22-n)+`)`})}let L=A.node()?.getBoundingClientRect().width??0,R=225-L/2,z=225+L/2,B=Math.min(0,R),V=Math.max(F,z)-B;p.attr(`viewBox`,`${B} 0 ${V} ${P}`),r.c(p,P,V,f.useMaxWidth)},`draw`)},styles:C};exports.diagram=T;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n as e } from "./mermaid-parser.core-
|
|
1
|
+
import { n as e } from "./mermaid-parser.core-CI12FMcX.js";
|
|
2
2
|
import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as n } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import {
|
|
4
|
+
import { C as r, H as i, U as a, _ as o, a as s, b as c, c as l, f as u, q as d, v as f } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
5
|
import { t as p } from "./ordinal-D3SPD7Kk.js";
|
|
6
6
|
import { n as m } from "./path-PGqhG0Rz.js";
|
|
7
7
|
import { m as h } from "./dist-DWv23S35.js";
|
|
8
8
|
import { t as g } from "./arc-CLGGhOeW.js";
|
|
9
9
|
import { t as _ } from "./array-CApNbSU9.js";
|
|
10
|
-
import { i as v,
|
|
10
|
+
import { i as v, m as y } from "./chunk-3YJQHVM4-BNbfg-7y.js";
|
|
11
11
|
import { t as b } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
12
|
-
import {
|
|
12
|
+
import { o as x } from "./mermaid.core-BJkDCzqA.js";
|
|
13
13
|
//#region ../node_modules/d3-shape/src/descending.js
|
|
14
14
|
function S(e, t) {
|
|
15
15
|
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
|
|
@@ -55,22 +55,22 @@ function w() {
|
|
|
55
55
|
}, o;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-
|
|
59
|
-
var T =
|
|
58
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-CAPJLFHJ.mjs
|
|
59
|
+
var T = u.pie, E = {
|
|
60
60
|
sections: /* @__PURE__ */ new Map(),
|
|
61
61
|
showData: !1,
|
|
62
62
|
config: T
|
|
63
63
|
}, D = E.sections, O = E.showData, k = structuredClone(T), A = {
|
|
64
64
|
getConfig: /* @__PURE__ */ t(() => structuredClone(k), "getConfig"),
|
|
65
65
|
clear: /* @__PURE__ */ t(() => {
|
|
66
|
-
D = /* @__PURE__ */ new Map(), O = E.showData,
|
|
66
|
+
D = /* @__PURE__ */ new Map(), O = E.showData, s();
|
|
67
67
|
}, "clear"),
|
|
68
|
-
setDiagramTitle:
|
|
69
|
-
getDiagramTitle:
|
|
68
|
+
setDiagramTitle: d,
|
|
69
|
+
getDiagramTitle: r,
|
|
70
70
|
setAccTitle: a,
|
|
71
71
|
getAccTitle: f,
|
|
72
|
-
setAccDescription:
|
|
73
|
-
getAccDescription:
|
|
72
|
+
setAccDescription: i,
|
|
73
|
+
getAccDescription: o,
|
|
74
74
|
addSection: /* @__PURE__ */ t(({ label: e, value: t }) => {
|
|
75
75
|
if (t < 0) throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);
|
|
76
76
|
D.has(e) || (D.set(e, t), n.debug(`added new section: ${e}, with value: ${t}`));
|
|
@@ -133,11 +133,11 @@ var T = c.pie, E = {
|
|
|
133
133
|
db: A,
|
|
134
134
|
renderer: { draw: /* @__PURE__ */ t((e, t, r, i) => {
|
|
135
135
|
n.debug("rendering pie chart\n" + e);
|
|
136
|
-
let a = i.db, o =
|
|
137
|
-
|
|
136
|
+
let a = i.db, o = c(), s = v(a.getConfig(), o.pie), u = x(t), d = u.append("g");
|
|
137
|
+
d.attr("transform", "translate(225,225)");
|
|
138
138
|
let { themeVariables: f } = o, [m] = y(f.pieOuterStrokeWidth);
|
|
139
139
|
m ??= 2;
|
|
140
|
-
let h =
|
|
140
|
+
let h = s.legendPosition, _ = s.textPosition, b = s.donutHole > 0 && s.donutHole <= .9 ? s.donutHole : 0, S = g().innerRadius(b * 185).outerRadius(185), C = g().innerRadius(185 * _).outerRadius(185 * _), w = d.append("g");
|
|
141
141
|
w.append("circle").attr("cx", 0).attr("cy", 0).attr("r", 185 + m / 2).attr("class", "pieOuterCircle");
|
|
142
142
|
let T = a.getSections(), E = P(T), D = [
|
|
143
143
|
f.pie1,
|
|
@@ -159,12 +159,12 @@ var T = c.pie, E = {
|
|
|
159
159
|
let k = E.filter((e) => (e.data.value / O * 100).toFixed(0) !== "0"), A = p(D).domain([...T.keys()]);
|
|
160
160
|
w.selectAll("mySlices").data(k).enter().append("path").attr("d", S).attr("fill", (e) => A(e.data.label)).attr("class", (e) => {
|
|
161
161
|
let t = "pieCircle";
|
|
162
|
-
return
|
|
162
|
+
return s.highlightSlice === "hover" ? t += " highlightedOnHover" : s.highlightSlice === e.data.label && (t += " highlighted"), t;
|
|
163
163
|
}), w.selectAll("mySlices").data(k).enter().append("text").text((e) => (e.data.value / O * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + C.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice");
|
|
164
|
-
let j =
|
|
164
|
+
let j = d.append("text").text(a.getDiagramTitle()).attr("x", 0).attr("y", -200).attr("class", "pieTitleText"), M = [...T.entries()].map(([e, t]) => ({
|
|
165
165
|
label: e,
|
|
166
166
|
value: t
|
|
167
|
-
})), N =
|
|
167
|
+
})), N = d.selectAll(".legend").data(M).enter().append("g").attr("class", "legend");
|
|
168
168
|
N.append("rect").attr("width", 18).attr("height", 18).style("fill", (e) => A(e.label)).style("stroke", (e) => A(e.label)), N.append("text").attr("x", 22).attr("y", 14).text((e) => a.getShowData() ? `${e.label} [${e.value}]` : e.label);
|
|
169
169
|
let F = Math.max(...N.selectAll("text").nodes().map((e) => e?.getBoundingClientRect().width ?? 0)), I = 450, L = 490, R = M.length * 22;
|
|
170
170
|
switch (h) {
|
|
@@ -195,7 +195,7 @@ var T = c.pie, E = {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
let z = j.node()?.getBoundingClientRect().width ?? 0, B = 225 - z / 2, V = 225 + z / 2, H = Math.min(0, B), U = Math.max(L, V) - H;
|
|
198
|
-
|
|
198
|
+
u.attr("viewBox", `${H} 0 ${U} ${I}`), l(u, I, U, s.useMaxWidth);
|
|
199
199
|
}, "draw") },
|
|
200
200
|
styles: N
|
|
201
201
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
2
|
import { m as t, p as n } from "./src-Dkp7vqs8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { C as r, E as i, H as a, U as o, _ as s, a as c, b as l, c as u, f as d, q as f, v as p, z as m } from "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
4
4
|
import { t as h } from "./linear-DVFZQF4V.js";
|
|
5
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-
|
|
5
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-GDMTTRAM.mjs
|
|
6
6
|
var g = (function() {
|
|
7
7
|
var t = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
8
8
|
for (n ||= {}, r = e.length; r--; n[e[r]] = t);
|
|
@@ -1490,7 +1490,7 @@ var g = (function() {
|
|
|
1490
1490
|
return e($, "Parser"), $.prototype = me, me.Parser = $, new $();
|
|
1491
1491
|
})();
|
|
1492
1492
|
g.parser = g;
|
|
1493
|
-
var _ = g, v =
|
|
1493
|
+
var _ = g, v = i(), y = class {
|
|
1494
1494
|
constructor() {
|
|
1495
1495
|
this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
1496
1496
|
}
|
|
@@ -1516,24 +1516,24 @@ var _ = g, v = r(), y = class {
|
|
|
1516
1516
|
showXAxis: !0,
|
|
1517
1517
|
showYAxis: !0,
|
|
1518
1518
|
showTitle: !0,
|
|
1519
|
-
chartHeight:
|
|
1520
|
-
chartWidth:
|
|
1521
|
-
titlePadding:
|
|
1522
|
-
titleFontSize:
|
|
1523
|
-
quadrantPadding:
|
|
1524
|
-
xAxisLabelPadding:
|
|
1525
|
-
yAxisLabelPadding:
|
|
1526
|
-
xAxisLabelFontSize:
|
|
1527
|
-
yAxisLabelFontSize:
|
|
1528
|
-
quadrantLabelFontSize:
|
|
1529
|
-
quadrantTextTopPadding:
|
|
1530
|
-
pointTextPadding:
|
|
1531
|
-
pointLabelFontSize:
|
|
1532
|
-
pointRadius:
|
|
1533
|
-
xAxisPosition:
|
|
1534
|
-
yAxisPosition:
|
|
1535
|
-
quadrantInternalBorderStrokeWidth:
|
|
1536
|
-
quadrantExternalBorderStrokeWidth:
|
|
1519
|
+
chartHeight: d.quadrantChart?.chartWidth || 500,
|
|
1520
|
+
chartWidth: d.quadrantChart?.chartHeight || 500,
|
|
1521
|
+
titlePadding: d.quadrantChart?.titlePadding || 10,
|
|
1522
|
+
titleFontSize: d.quadrantChart?.titleFontSize || 20,
|
|
1523
|
+
quadrantPadding: d.quadrantChart?.quadrantPadding || 5,
|
|
1524
|
+
xAxisLabelPadding: d.quadrantChart?.xAxisLabelPadding || 5,
|
|
1525
|
+
yAxisLabelPadding: d.quadrantChart?.yAxisLabelPadding || 5,
|
|
1526
|
+
xAxisLabelFontSize: d.quadrantChart?.xAxisLabelFontSize || 16,
|
|
1527
|
+
yAxisLabelFontSize: d.quadrantChart?.yAxisLabelFontSize || 16,
|
|
1528
|
+
quadrantLabelFontSize: d.quadrantChart?.quadrantLabelFontSize || 16,
|
|
1529
|
+
quadrantTextTopPadding: d.quadrantChart?.quadrantTextTopPadding || 5,
|
|
1530
|
+
pointTextPadding: d.quadrantChart?.pointTextPadding || 5,
|
|
1531
|
+
pointLabelFontSize: d.quadrantChart?.pointLabelFontSize || 12,
|
|
1532
|
+
pointRadius: d.quadrantChart?.pointRadius || 5,
|
|
1533
|
+
xAxisPosition: d.quadrantChart?.xAxisPosition || "top",
|
|
1534
|
+
yAxisPosition: d.quadrantChart?.yAxisPosition || "left",
|
|
1535
|
+
quadrantInternalBorderStrokeWidth: d.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
|
|
1536
|
+
quadrantExternalBorderStrokeWidth: d.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
|
|
1537
1537
|
};
|
|
1538
1538
|
}
|
|
1539
1539
|
getDefaultThemeConfig() {
|
|
@@ -1841,7 +1841,7 @@ function C(e) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
e(C, "validateSizeInPixels");
|
|
1843
1843
|
function w(e) {
|
|
1844
|
-
return m(e.trim(),
|
|
1844
|
+
return m(e.trim(), l());
|
|
1845
1845
|
}
|
|
1846
1846
|
e(w, "textSanitizer");
|
|
1847
1847
|
var T = new y();
|
|
@@ -1922,7 +1922,7 @@ function R(e) {
|
|
|
1922
1922
|
}
|
|
1923
1923
|
e(R, "setHeight");
|
|
1924
1924
|
function z() {
|
|
1925
|
-
let { themeVariables: e, quadrantChart: t } =
|
|
1925
|
+
let { themeVariables: e, quadrantChart: t } = l();
|
|
1926
1926
|
return t && T.setConfig(t), T.setThemeConfig({
|
|
1927
1927
|
quadrant1Fill: e.quadrant1Fill,
|
|
1928
1928
|
quadrant2Fill: e.quadrant2Fill,
|
|
@@ -1939,7 +1939,7 @@ function z() {
|
|
|
1939
1939
|
quadrantExternalBorderStrokeFill: e.quadrantExternalBorderStrokeFill,
|
|
1940
1940
|
quadrantInternalBorderStrokeFill: e.quadrantInternalBorderStrokeFill,
|
|
1941
1941
|
quadrantTitleFill: e.quadrantTitleFill
|
|
1942
|
-
}), T.setData({ titleText:
|
|
1942
|
+
}), T.setData({ titleText: r() }), T.build();
|
|
1943
1943
|
}
|
|
1944
1944
|
e(z, "getQuadrantData");
|
|
1945
1945
|
var B = {
|
|
@@ -1960,40 +1960,40 @@ var B = {
|
|
|
1960
1960
|
addClass: I,
|
|
1961
1961
|
getQuadrantData: z,
|
|
1962
1962
|
clear: /* @__PURE__ */ e(function() {
|
|
1963
|
-
T.clear(),
|
|
1963
|
+
T.clear(), c();
|
|
1964
1964
|
}, "clear"),
|
|
1965
1965
|
setAccTitle: o,
|
|
1966
1966
|
getAccTitle: p,
|
|
1967
|
-
setDiagramTitle:
|
|
1968
|
-
getDiagramTitle:
|
|
1969
|
-
getAccDescription:
|
|
1970
|
-
setAccDescription:
|
|
1967
|
+
setDiagramTitle: f,
|
|
1968
|
+
getDiagramTitle: r,
|
|
1969
|
+
getAccDescription: s,
|
|
1970
|
+
setAccDescription: a
|
|
1971
1971
|
},
|
|
1972
1972
|
renderer: { draw: /* @__PURE__ */ e((r, i, a, o) => {
|
|
1973
1973
|
function s(e) {
|
|
1974
1974
|
return e === "top" ? "hanging" : "middle";
|
|
1975
1975
|
}
|
|
1976
1976
|
e(s, "getDominantBaseLine");
|
|
1977
|
-
function
|
|
1977
|
+
function c(e) {
|
|
1978
1978
|
return e === "left" ? "start" : "middle";
|
|
1979
1979
|
}
|
|
1980
|
-
e(
|
|
1981
|
-
function
|
|
1980
|
+
e(c, "getTextAnchor");
|
|
1981
|
+
function d(e) {
|
|
1982
1982
|
return `translate(${e.x}, ${e.y}) rotate(${e.rotation || 0})`;
|
|
1983
1983
|
}
|
|
1984
|
-
e(
|
|
1985
|
-
let
|
|
1984
|
+
e(d, "getTransformation");
|
|
1985
|
+
let f = l();
|
|
1986
1986
|
t.debug("Rendering quadrant chart\n" + r);
|
|
1987
|
-
let p =
|
|
1987
|
+
let p = f.securityLevel, m;
|
|
1988
1988
|
p === "sandbox" && (m = n("#i" + i));
|
|
1989
|
-
let h = n(p === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${i}"]`), g = h.append("g").attr("class", "main"), _ =
|
|
1990
|
-
|
|
1989
|
+
let h = n(p === "sandbox" ? m.nodes()[0].contentDocument.body : "body").select(`[id="${i}"]`), g = h.append("g").attr("class", "main"), _ = f.quadrantChart?.chartWidth ?? 500, v = f.quadrantChart?.chartHeight ?? 500;
|
|
1990
|
+
u(h, v, _, f.quadrantChart?.useMaxWidth ?? !0), h.attr("viewBox", "0 0 " + _ + " " + v), o.db.setHeight(v), o.db.setWidth(_);
|
|
1991
1991
|
let y = o.db.getQuadrantData(), b = g.append("g").attr("class", "quadrants"), x = g.append("g").attr("class", "border"), S = g.append("g").attr("class", "data-points"), C = g.append("g").attr("class", "labels"), w = g.append("g").attr("class", "title");
|
|
1992
|
-
y.title && w.append("text").attr("x", 0).attr("y", 0).attr("fill", y.title.fill).attr("font-size", y.title.fontSize).attr("dominant-baseline", s(y.title.horizontalPos)).attr("text-anchor",
|
|
1992
|
+
y.title && w.append("text").attr("x", 0).attr("y", 0).attr("fill", y.title.fill).attr("font-size", y.title.fontSize).attr("dominant-baseline", s(y.title.horizontalPos)).attr("text-anchor", c(y.title.verticalPos)).attr("transform", d(y.title)).text(y.title.text), y.borderLines && x.selectAll("line").data(y.borderLines).enter().append("line").attr("x1", (e) => e.x1).attr("y1", (e) => e.y1).attr("x2", (e) => e.x2).attr("y2", (e) => e.y2).style("stroke", (e) => e.strokeFill).style("stroke-width", (e) => e.strokeWidth);
|
|
1993
1993
|
let T = b.selectAll("g.quadrant").data(y.quadrants).enter().append("g").attr("class", "quadrant");
|
|
1994
|
-
T.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) =>
|
|
1994
|
+
T.append("rect").attr("x", (e) => e.x).attr("y", (e) => e.y).attr("width", (e) => e.width).attr("height", (e) => e.height).attr("fill", (e) => e.fill), T.append("text").attr("x", 0).attr("y", 0).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) => c(e.text.verticalPos)).attr("transform", (e) => d(e.text)).text((e) => e.text.text), C.selectAll("g.label").data(y.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((e) => e.text).attr("fill", (e) => e.fill).attr("font-size", (e) => e.fontSize).attr("dominant-baseline", (e) => s(e.horizontalPos)).attr("text-anchor", (e) => c(e.verticalPos)).attr("transform", (e) => d(e));
|
|
1995
1995
|
let E = S.selectAll("g.data-point").data(y.points).enter().append("g").attr("class", "data-point");
|
|
1996
|
-
E.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), E.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) =>
|
|
1996
|
+
E.append("circle").attr("cx", (e) => e.x).attr("cy", (e) => e.y).attr("r", (e) => e.radius).attr("fill", (e) => e.fill).attr("stroke", (e) => e.strokeColor).attr("stroke-width", (e) => e.strokeWidth), E.append("text").attr("x", 0).attr("y", 0).text((e) => e.text.text).attr("fill", (e) => e.text.fill).attr("font-size", (e) => e.text.fontSize).attr("dominant-baseline", (e) => s(e.text.horizontalPos)).attr("text-anchor", (e) => c(e.text.verticalPos)).attr("transform", (e) => d(e.text));
|
|
1997
1997
|
}, "draw") },
|
|
1998
1998
|
styles: /* @__PURE__ */ e(() => "", "styles")
|
|
1999
1999
|
};
|
package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-VPRB5NB3-CT204jN6.cjs"),r=require("./linear-Nt9BuHfn.cjs");var i=(function(){var t=e.n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[1,7],s=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],c=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],l=[55,56,57],u=[2,36],d=[1,37],f=[1,36],p=[1,38],m=[1,35],h=[1,43],g=[1,41],_=[1,45],v=[1,14],y=[1,23],b=[1,18],x=[1,19],S=[1,20],C=[1,21],w=[1,22],T=[1,24],E=[1,25],D=[1,26],O=[1,27],k=[1,28],A=[1,29],j=[1,32],M=[1,33],N=[1,34],P=[1,39],F=[1,40],I=[1,42],L=[1,44],R=[1,63],z=[1,62],B=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ee=[1,66],te=[1,67],ne=[1,68],re=[1,69],ie=[1,70],ae=[1,71],oe=[1,72],se=[1,73],ce=[1,74],le=[1,75],ue=[1,76],de=[1,77],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],H=[1,91],U=[1,92],W=[1,93],G=[1,100],K=[1,94],q=[1,97],J=[1,95],Y=[1,96],X=[1,98],Z=[1,99],fe=[1,103],pe=[10,55,56,57],Q=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],me={trace:e.n(function(){},`trace`),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:`error`,4:`ALPHA`,5:`NUM`,6:`NODE_STRING`,7:`DOWN`,8:`MINUS`,9:`DEFAULT`,10:`COMMA`,11:`COLON`,12:`AMP`,13:`BRKT`,14:`MULT`,15:`UNICODE_TEXT`,17:`UNIT`,18:`SPACE`,19:`STYLE`,20:`PCT`,25:`CLASSDEF`,28:`QUADRANT`,35:`title`,36:`title_value`,37:`acc_title`,38:`acc_title_value`,39:`acc_descr`,40:`acc_descr_value`,41:`acc_descr_multiline_value`,42:`section`,44:`point_start`,45:`point_x`,46:`point_y`,47:`class_name`,48:`X-AXIS`,49:`AXIS-TEXT-DELIMITER`,50:`Y-AXIS`,51:`QUADRANT_1`,52:`QUADRANT_2`,53:`QUADRANT_3`,54:`QUADRANT_4`,55:`NEWLINE`,56:`SEMI`,57:`EOF`,60:`STR`,61:`MD_STR`,63:`PUNCTUATION`,64:`PLUS`,65:`EQUALS`,66:`DOT`,67:`UNDERSCORE`},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e.n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 23:this.$=a[s];break;case 24:this.$=a[s-1]+``+a[s];break;case 26:this.$=a[s-1]+a[s];break;case 27:this.$=[a[s].trim()];break;case 28:a[s-2].push(a[s].trim()),this.$=a[s-2];break;case 29:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 37:this.$=[];break;case 42:this.$=a[s].trim(),r.setDiagramTitle(this.$);break;case 43:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 44:case 45:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 46:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 47:r.addPoint(a[s-3],``,a[s-1],a[s],[]);break;case 48:r.addPoint(a[s-4],a[s-3],a[s-1],a[s],[]);break;case 49:r.addPoint(a[s-4],``,a[s-2],a[s-1],a[s]);break;case 50:r.addPoint(a[s-5],a[s-4],a[s-2],a[s-1],a[s]);break;case 51:r.setXAxisLeftText(a[s-2]),r.setXAxisRightText(a[s]);break;case 52:a[s-1].text+=` ⟶ `,r.setXAxisLeftText(a[s-1]);break;case 53:r.setXAxisLeftText(a[s]);break;case 54:r.setYAxisBottomText(a[s-2]),r.setYAxisTopText(a[s]);break;case 55:a[s-1].text+=` ⟶ `,r.setYAxisBottomText(a[s-1]);break;case 56:r.setYAxisBottomText(a[s]);break;case 57:r.setQuadrant1Text(a[s]);break;case 58:r.setQuadrant2Text(a[s]);break;case 59:r.setQuadrant3Text(a[s]);break;case 60:r.setQuadrant4Text(a[s]);break;case 64:this.$={text:a[s],type:`text`};break;case 65:this.$={text:a[s-1].text+``+a[s],type:a[s-1].type};break;case 66:this.$={text:a[s],type:`text`};break;case 67:this.$={text:a[s],type:`markdown`};break;case 68:this.$=a[s];break;case 69:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[{18:n,26:1,27:2,28:r,55:i,56:a,57:o},{1:[3]},{18:n,26:8,27:2,28:r,55:i,56:a,57:o},{18:n,26:9,27:2,28:r,55:i,56:a,57:o},t(s,[2,33],{29:10}),t(c,[2,61]),t(c,[2,62]),t(c,[2,63]),{1:[2,30]},{1:[2,31]},t(l,u,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(s,[2,34]),{27:46,55:i,56:a,57:o},t(l,[2,37]),t(l,u,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:d,5:f,10:p,12:m,13:h,14:g,15:_,18:v,25:y,35:b,37:x,39:S,41:C,42:w,48:T,50:E,51:D,52:O,53:k,54:A,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,39]),t(l,[2,40]),t(l,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(l,[2,45]),t(l,[2,46]),{18:[1,51]},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:52,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:53,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:54,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:55,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:56,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,10:p,12:m,13:h,14:g,15:_,43:57,58:31,60:j,61:M,63:N,64:P,65:F,66:I,67:L},{4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,44:[1,58],47:[1,59],58:61,59:60,63:N,64:P,65:F,66:I,67:L},t(B,[2,64]),t(B,[2,66]),t(B,[2,67]),t(B,[2,70]),t(B,[2,71]),t(B,[2,72]),t(B,[2,73]),t(B,[2,74]),t(B,[2,75]),t(B,[2,76]),t(B,[2,77]),t(B,[2,78]),t(B,[2,79]),t(B,[2,80]),t(B,[2,81]),t(s,[2,35]),t(l,[2,38]),t(l,[2,42]),t(l,[2,43]),t(l,[2,44]),{3:65,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,21:64},t(l,[2,53],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,78],63:N,64:P,65:F,66:I,67:L}),t(l,[2,56],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,49:[1,79],63:N,64:P,65:F,66:I,67:L}),t(l,[2,57],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,58],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,59],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,60],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),{45:[1,80]},{44:[1,81]},t(B,[2,65]),t(B,[2,82]),t(B,[2,83]),t(B,[2,84]),{3:83,4:ee,5:te,6:ne,7:re,8:ie,9:ae,10:oe,11:se,12:ce,13:le,14:ue,15:de,18:[1,82]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(l,[2,52],{58:31,43:84,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),t(l,[2,55],{58:31,43:85,4:d,5:f,10:p,12:m,13:h,14:g,15:_,60:j,61:M,63:N,64:P,65:F,66:I,67:L}),{46:[1,86]},{45:[1,87]},{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:89,23:88},t(V,[2,24]),t(l,[2,51],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,54],{59:60,58:61,4:d,5:f,8:R,10:p,12:m,13:h,14:g,15:_,18:z,63:N,64:P,65:F,66:I,67:L}),t(l,[2,47],{22:89,16:90,23:101,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{46:[1,102]},t(l,[2,29],{10:fe}),t(pe,[2,27],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),t(Q,[2,25]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),t(Q,[2,17]),t(Q,[2,18]),t(Q,[2,19]),t(Q,[2,20]),t(Q,[2,21]),t(Q,[2,22]),t(l,[2,49],{10:fe}),t(l,[2,48],{22:89,16:90,23:105,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z}),{4:H,5:U,6:W,8:G,11:K,13:q,16:90,17:J,18:Y,19:X,20:Z,22:106},t(Q,[2,26]),t(l,[2,50],{10:fe}),t(pe,[2,28],{16:104,4:H,5:U,6:W,8:G,11:K,13:q,17:J,18:Y,19:X,20:Z})],defaultActions:{8:[2,30],9:[2,31]},parseError:e.n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e.n(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e.n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e.n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};me.lexer=(function(){return{EOF:1,parseError:e.n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e.n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e.n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e.n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e.n(function(){return this._more=!0,this},`more`),reject:e.n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e.n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e.n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e.n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e.n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
5
|
`+t+`^`},`showPosition`),test_match:e.n(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e.n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e.n(function(){return this.next()||this.lex()},`lex`),begin:e.n(function(e){this.conditionStack.push(e)},`begin`),popState:e.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.n(function(e){this.begin(e)},`pushState`),stateStackSize:e.n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e.n(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return e.n($,`Parser`),$.prototype=me,me.Parser=$,new $})();i.parser=i;var a=i,o=n.D(),s=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{e.n(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:n.f.quadrantChart?.chartWidth||500,chartWidth:n.f.quadrantChart?.chartHeight||500,titlePadding:n.f.quadrantChart?.titlePadding||10,titleFontSize:n.f.quadrantChart?.titleFontSize||20,quadrantPadding:n.f.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:n.f.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:n.f.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:n.f.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:n.f.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:n.f.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:n.f.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:n.f.quadrantChart?.pointTextPadding||5,pointLabelFontSize:n.f.quadrantChart?.pointLabelFontSize||12,pointRadius:n.f.quadrantChart?.pointRadius||5,xAxisPosition:n.f.quadrantChart?.xAxisPosition||`top`,yAxisPosition:n.f.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:n.f.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:n.f.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:o.quadrant1Fill,quadrant2Fill:o.quadrant2Fill,quadrant3Fill:o.quadrant3Fill,quadrant4Fill:o.quadrant4Fill,quadrant1TextFill:o.quadrant1TextFill,quadrant2TextFill:o.quadrant2TextFill,quadrant3TextFill:o.quadrant3TextFill,quadrant4TextFill:o.quadrant4TextFill,quadrantPointFill:o.quadrantPointFill,quadrantPointTextFill:o.quadrantPointTextFill,quadrantXAxisTextFill:o.quadrantXAxisTextFill,quadrantYAxisTextFill:o.quadrantYAxisTextFill,quadrantTitleFill:o.quadrantTitleFill,quadrantInternalBorderStrokeFill:o.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:o.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,t.m.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){t.m.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){t.m.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=t,s=r.t().domain([0,1]).range([i,o+i]),c=r.t().domain([0,1]).range([n+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},c=class extends Error{static{e.n(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function l(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}e.n(l,`validateHexCode`);function u(e){return!/^\d+$/.test(e)}e.n(u,`validateNumber`);function d(e){return!/^\d+px$/.test(e)}e.n(d,`validateSizeInPixels`);function f(e){return n.z(e.trim(),n.x())}e.n(f,`textSanitizer`);var p=new s;function m(e){p.setData({quadrant1Text:f(e.text)})}e.n(m,`setQuadrant1Text`);function h(e){p.setData({quadrant2Text:f(e.text)})}e.n(h,`setQuadrant2Text`);function g(e){p.setData({quadrant3Text:f(e.text)})}e.n(g,`setQuadrant3Text`);function _(e){p.setData({quadrant4Text:f(e.text)})}e.n(_,`setQuadrant4Text`);function v(e){p.setData({xAxisLeftText:f(e.text)})}e.n(v,`setXAxisLeftText`);function y(e){p.setData({xAxisRightText:f(e.text)})}e.n(y,`setXAxisRightText`);function b(e){p.setData({yAxisTopText:f(e.text)})}e.n(b,`setYAxisTopText`);function x(e){p.setData({yAxisBottomText:f(e.text)})}e.n(x,`setYAxisBottomText`);function S(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(u(r))throw new c(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(l(r))throw new c(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(l(r))throw new c(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(d(r))throw new c(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}e.n(S,`parseStyles`);function C(e,t,n,r,i){let a=S(i);p.addPoints([{x:n,y:r,text:f(e.text),className:t,...a}])}e.n(C,`addPoint`);function w(e,t){p.addClass(e,S(t))}e.n(w,`addClass`);function T(e){p.setConfig({chartWidth:e})}e.n(T,`setWidth`);function E(e){p.setConfig({chartHeight:e})}e.n(E,`setHeight`);function D(){let{themeVariables:e,quadrantChart:t}=n.x();return t&&p.setConfig(t),p.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),p.setData({titleText:n.w()}),p.build()}e.n(D,`getQuadrantData`);var O={parser:a,db:{setWidth:T,setHeight:E,setQuadrant1Text:m,setQuadrant2Text:h,setQuadrant3Text:g,setQuadrant4Text:_,setXAxisLeftText:v,setXAxisRightText:y,setYAxisTopText:b,setYAxisBottomText:x,parseStyles:S,addPoint:C,addClass:w,getQuadrantData:D,clear:e.n(function(){p.clear(),n.a()},`clear`),setAccTitle:n.U,getAccTitle:n.y,setDiagramTitle:n.K,getDiagramTitle:n.w,getAccDescription:n.v,setAccDescription:n.H},renderer:{draw:e.n((r,i,a,o)=>{function s(e){return e===`top`?`hanging`:`middle`}e.n(s,`getDominantBaseLine`);function c(e){return e===`left`?`start`:`middle`}e.n(c,`getTextAnchor`);function l(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e.n(l,`getTransformation`);let u=n.x();t.m.debug(`Rendering quadrant chart
|
|
6
|
+
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e.n(function(){return this.next()||this.lex()},`lex`),begin:e.n(function(e){this.conditionStack.push(e)},`begin`),popState:e.n(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e.n(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e.n(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e.n(function(e){this.begin(e)},`pushState`),stateStackSize:e.n(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e.n(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin(`title`),35;case 5:return this.popState(),`title_value`;case 6:return this.begin(`acc_title`),37;case 7:return this.popState(),`acc_title_value`;case 8:return this.begin(`acc_descr`),39;case 9:return this.popState(),`acc_descr_value`;case 10:this.begin(`acc_descr_multiline`);break;case 11:this.popState();break;case 12:return`acc_descr_multiline_value`;case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin(`md_string`);break;case 22:return`MD_STR`;case 23:this.popState();break;case 24:this.begin(`string`);break;case 25:this.popState();break;case 26:return`STR`;case 27:this.begin(`class_name`);break;case 28:return this.popState(),47;case 29:return this.begin(`point_start`),44;case 30:return this.begin(`point_x`),45;case 31:this.popState();break;case 32:this.popState(),this.begin(`point_y`);break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function $(){this.yy={}}return e.n($,`Parser`),$.prototype=me,me.Parser=$,new $})();i.parser=i;var a=i,o=n.E(),s=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{e.n(this,`QuadrantBuilder`)}getDefaultData(){return{titleText:``,quadrant1Text:``,quadrant2Text:``,quadrant3Text:``,quadrant4Text:``,xAxisLeftText:``,xAxisRightText:``,yAxisBottomText:``,yAxisTopText:``,points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:n.f.quadrantChart?.chartWidth||500,chartWidth:n.f.quadrantChart?.chartHeight||500,titlePadding:n.f.quadrantChart?.titlePadding||10,titleFontSize:n.f.quadrantChart?.titleFontSize||20,quadrantPadding:n.f.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:n.f.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:n.f.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:n.f.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:n.f.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:n.f.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:n.f.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:n.f.quadrantChart?.pointTextPadding||5,pointLabelFontSize:n.f.quadrantChart?.pointLabelFontSize||12,pointRadius:n.f.quadrantChart?.pointRadius||5,xAxisPosition:n.f.quadrantChart?.xAxisPosition||`top`,yAxisPosition:n.f.quadrantChart?.yAxisPosition||`left`,quadrantInternalBorderStrokeWidth:n.f.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:n.f.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:o.quadrant1Fill,quadrant2Fill:o.quadrant2Fill,quadrant3Fill:o.quadrant3Fill,quadrant4Fill:o.quadrant4Fill,quadrant1TextFill:o.quadrant1TextFill,quadrant2TextFill:o.quadrant2TextFill,quadrant3TextFill:o.quadrant3TextFill,quadrant4TextFill:o.quadrant4TextFill,quadrantPointFill:o.quadrantPointFill,quadrantPointTextFill:o.quadrantPointTextFill,quadrantXAxisTextFill:o.quadrantXAxisTextFill,quadrantYAxisTextFill:o.quadrantYAxisTextFill,quadrantTitleFill:o.quadrantTitleFill,quadrantInternalBorderStrokeFill:o.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:o.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,t.m.info(`clear called`)}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,t){this.classes.set(e,t)}setConfig(e){t.m.trace(`setConfig called with: `,e),this.config={...this.config,...e}}setThemeConfig(e){t.m.trace(`setThemeConfig called with: `,e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,t,n,r){let i=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,a={top:e===`top`&&t?i:0,bottom:e===`bottom`&&t?i:0},o=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,s={left:this.config.yAxisPosition===`left`&&n?o:0,right:this.config.yAxisPosition===`right`&&n?o:0},c=this.config.titleFontSize+this.config.titlePadding*2,l={top:r?c:0},u=this.config.quadrantPadding+s.left,d=this.config.quadrantPadding+a.top+l.top,f=this.config.chartWidth-this.config.quadrantPadding*2-s.left-s.right,p=this.config.chartHeight-this.config.quadrantPadding*2-a.top-a.bottom-l.top;return{xAxisSpace:a,yAxisSpace:s,titleSpace:l,quadrantSpace:{quadrantLeft:u,quadrantTop:d,quadrantWidth:f,quadrantHalfWidth:f/2,quadrantHeight:p,quadrantHalfHeight:p/2}}}getAxisLabels(e,t,n,r){let{quadrantSpace:i,titleSpace:a}=r,{quadrantHalfHeight:o,quadrantHeight:s,quadrantLeft:c,quadrantHalfWidth:l,quadrantTop:u,quadrantWidth:d}=i,f=!!this.data.xAxisRightText,p=!!this.data.yAxisTopText,m=[];return this.data.xAxisLeftText&&t&&m.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.xAxisRightText&&t&&m.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:c+l+(f?l/2:0),y:e===`top`?this.config.xAxisLabelPadding+a.top:this.config.xAxisLabelPadding+u+s+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:f?`center`:`left`,horizontalPos:`top`,rotation:0}),this.data.yAxisBottomText&&n&&m.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+s-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),this.data.yAxisTopText&&n&&m.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition===`left`?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+c+d+this.config.quadrantPadding,y:u+o-(p?o/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:p?`center`:`left`,horizontalPos:`top`,rotation:-90}),m}getQuadrants(e){let{quadrantSpace:t}=e,{quadrantHalfHeight:n,quadrantLeft:r,quadrantHalfWidth:i,quadrantTop:a}=t,o=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a,width:i,height:n,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a,width:i,height:n,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:`center`,horizontalPos:`middle`,rotation:0},x:r+i,y:a+n,width:i,height:n,fill:this.themeConfig.quadrant4Fill}];for(let e of o)e.text.x=e.x+e.width/2,this.data.points.length===0?(e.text.y=e.y+e.height/2,e.text.horizontalPos=`middle`):(e.text.y=e.y+this.config.quadrantTextTopPadding,e.text.horizontalPos=`top`);return o}getQuadrantPoints(e){let{quadrantSpace:t}=e,{quadrantHeight:n,quadrantLeft:i,quadrantTop:a,quadrantWidth:o}=t,s=r.t().domain([0,1]).range([i,o+i]),c=r.t().domain([0,1]).range([n+a,a]);return this.data.points.map(e=>{let t=this.classes.get(e.className);return t&&(e={...t,...e}),{x:s(e.x),y:c(e.y),fill:e.color??this.themeConfig.quadrantPointFill,radius:e.radius??this.config.pointRadius,text:{text:e.text,fill:this.themeConfig.quadrantPointTextFill,x:s(e.x),y:c(e.y)+this.config.pointTextPadding,verticalPos:`center`,horizontalPos:`top`,fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:e.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:e.strokeWidth??`0px`}})}getBorders(e){let t=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:n}=e,{quadrantHalfHeight:r,quadrantHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:s,quadrantWidth:c}=n;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s,x2:a+c+t,y2:s},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a+c,y1:s+t,x2:a+c,y2:s+i-t},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a-t,y1:s+i,x2:a+c+t,y2:s+i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:a,y1:s+t,x2:a,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+o,y1:s+t,x2:a+o,y2:s+i-t},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:a+t,y1:s+r,x2:a+c-t,y2:s+r}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:`top`,verticalPos:`center`,rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),t=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),n=this.config.showTitle&&!!this.data.titleText,r=this.data.points.length>0?`bottom`:this.config.xAxisPosition,i=this.calculateSpace(r,e,t,n);return{points:this.getQuadrantPoints(i),quadrants:this.getQuadrants(i),axisLabels:this.getAxisLabels(r,e,t,i),borderLines:this.getBorders(i),title:this.getTitle(n)}}},c=class extends Error{static{e.n(this,`InvalidStyleError`)}constructor(e,t,n){super(`value for ${e} ${t} is invalid, please use a valid ${n}`),this.name=`InvalidStyleError`}};function l(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}e.n(l,`validateHexCode`);function u(e){return!/^\d+$/.test(e)}e.n(u,`validateNumber`);function d(e){return!/^\d+px$/.test(e)}e.n(d,`validateSizeInPixels`);function f(e){return n.z(e.trim(),n.b())}e.n(f,`textSanitizer`);var p=new s;function m(e){p.setData({quadrant1Text:f(e.text)})}e.n(m,`setQuadrant1Text`);function h(e){p.setData({quadrant2Text:f(e.text)})}e.n(h,`setQuadrant2Text`);function g(e){p.setData({quadrant3Text:f(e.text)})}e.n(g,`setQuadrant3Text`);function _(e){p.setData({quadrant4Text:f(e.text)})}e.n(_,`setQuadrant4Text`);function v(e){p.setData({xAxisLeftText:f(e.text)})}e.n(v,`setXAxisLeftText`);function y(e){p.setData({xAxisRightText:f(e.text)})}e.n(y,`setXAxisRightText`);function b(e){p.setData({yAxisTopText:f(e.text)})}e.n(b,`setYAxisTopText`);function x(e){p.setData({yAxisBottomText:f(e.text)})}e.n(x,`setYAxisBottomText`);function S(e){let t={};for(let n of e){let[e,r]=n.trim().split(/\s*:\s*/);if(e===`radius`){if(u(r))throw new c(e,r,`number`);t.radius=parseInt(r)}else if(e===`color`){if(l(r))throw new c(e,r,`hex code`);t.color=r}else if(e===`stroke-color`){if(l(r))throw new c(e,r,`hex code`);t.strokeColor=r}else if(e===`stroke-width`){if(d(r))throw new c(e,r,`number of pixels (eg. 10px)`);t.strokeWidth=r}else throw Error(`style named ${e} is not supported.`)}return t}e.n(S,`parseStyles`);function C(e,t,n,r,i){let a=S(i);p.addPoints([{x:n,y:r,text:f(e.text),className:t,...a}])}e.n(C,`addPoint`);function w(e,t){p.addClass(e,S(t))}e.n(w,`addClass`);function T(e){p.setConfig({chartWidth:e})}e.n(T,`setWidth`);function E(e){p.setConfig({chartHeight:e})}e.n(E,`setHeight`);function D(){let{themeVariables:e,quadrantChart:t}=n.b();return t&&p.setConfig(t),p.setThemeConfig({quadrant1Fill:e.quadrant1Fill,quadrant2Fill:e.quadrant2Fill,quadrant3Fill:e.quadrant3Fill,quadrant4Fill:e.quadrant4Fill,quadrant1TextFill:e.quadrant1TextFill,quadrant2TextFill:e.quadrant2TextFill,quadrant3TextFill:e.quadrant3TextFill,quadrant4TextFill:e.quadrant4TextFill,quadrantPointFill:e.quadrantPointFill,quadrantPointTextFill:e.quadrantPointTextFill,quadrantXAxisTextFill:e.quadrantXAxisTextFill,quadrantYAxisTextFill:e.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:e.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:e.quadrantInternalBorderStrokeFill,quadrantTitleFill:e.quadrantTitleFill}),p.setData({titleText:n.C()}),p.build()}e.n(D,`getQuadrantData`);var O={parser:a,db:{setWidth:T,setHeight:E,setQuadrant1Text:m,setQuadrant2Text:h,setQuadrant3Text:g,setQuadrant4Text:_,setXAxisLeftText:v,setXAxisRightText:y,setYAxisTopText:b,setYAxisBottomText:x,parseStyles:S,addPoint:C,addClass:w,getQuadrantData:D,clear:e.n(function(){p.clear(),n.a()},`clear`),setAccTitle:n.U,getAccTitle:n.v,setDiagramTitle:n.q,getDiagramTitle:n.C,getAccDescription:n._,setAccDescription:n.H},renderer:{draw:e.n((r,i,a,o)=>{function s(e){return e===`top`?`hanging`:`middle`}e.n(s,`getDominantBaseLine`);function c(e){return e===`left`?`start`:`middle`}e.n(c,`getTextAnchor`);function l(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e.n(l,`getTransformation`);let u=n.b();t.m.debug(`Rendering quadrant chart
|
|
7
7
|
`+r);let d=u.securityLevel,f;d===`sandbox`&&(f=t.p(`#i`+i));let p=(d===`sandbox`?t.p(f.nodes()[0].contentDocument.body):t.p(`body`)).select(`[id="${i}"]`),m=p.append(`g`).attr(`class`,`main`),h=u.quadrantChart?.chartWidth??500,g=u.quadrantChart?.chartHeight??500;n.c(p,g,h,u.quadrantChart?.useMaxWidth??!0),p.attr(`viewBox`,`0 0 `+h+` `+g),o.db.setHeight(g),o.db.setWidth(h);let _=o.db.getQuadrantData(),v=m.append(`g`).attr(`class`,`quadrants`),y=m.append(`g`).attr(`class`,`border`),b=m.append(`g`).attr(`class`,`data-points`),x=m.append(`g`).attr(`class`,`labels`),S=m.append(`g`).attr(`class`,`title`);_.title&&S.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,_.title.fill).attr(`font-size`,_.title.fontSize).attr(`dominant-baseline`,s(_.title.horizontalPos)).attr(`text-anchor`,c(_.title.verticalPos)).attr(`transform`,l(_.title)).text(_.title.text),_.borderLines&&y.selectAll(`line`).data(_.borderLines).enter().append(`line`).attr(`x1`,e=>e.x1).attr(`y1`,e=>e.y1).attr(`x2`,e=>e.x2).attr(`y2`,e=>e.y2).style(`stroke`,e=>e.strokeFill).style(`stroke-width`,e=>e.strokeWidth);let C=v.selectAll(`g.quadrant`).data(_.quadrants).enter().append(`g`).attr(`class`,`quadrant`);C.append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill),C.append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>c(e.text.verticalPos)).attr(`transform`,e=>l(e.text)).text(e=>e.text.text),x.selectAll(`g.label`).data(_.axisLabels).enter().append(`g`).attr(`class`,`label`).append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>s(e.horizontalPos)).attr(`text-anchor`,e=>c(e.verticalPos)).attr(`transform`,e=>l(e));let w=b.selectAll(`g.data-point`).data(_.points).enter().append(`g`).attr(`class`,`data-point`);w.append(`circle`).attr(`cx`,e=>e.x).attr(`cy`,e=>e.y).attr(`r`,e=>e.radius).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeColor).attr(`stroke-width`,e=>e.strokeWidth),w.append(`text`).attr(`x`,0).attr(`y`,0).text(e=>e.text.text).attr(`fill`,e=>e.text.fill).attr(`font-size`,e=>e.text.fontSize).attr(`dominant-baseline`,e=>s(e.text.horizontalPos)).attr(`text-anchor`,e=>c(e.text.verticalPos)).attr(`transform`,e=>l(e.text))},`draw`)},styles:e.n(()=>``,`styles`)};exports.diagram=O;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-NGNAAXSQ-kHtfTQLE.cjs");const e=require("./mermaid-parser.core-BHBS1DqP.cjs");exports.createRadarServices=e.v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-NGNAAXSQ-kHtfTQLE.cjs");const e=require("./mermaid-parser.core-BHBS1DqP.cjs");exports.createRailroadServices=e.g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-NGNAAXSQ-kHtfTQLE.cjs");const e=require("./mermaid-parser.core-BHBS1DqP.cjs");exports.createRailroadAbnfServices=e.m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-NGNAAXSQ-kHtfTQLE.cjs");const e=require("./mermaid-parser.core-BHBS1DqP.cjs");exports.createRailroadEbnfServices=e.f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./chunk-NGNAAXSQ-kHtfTQLE.cjs");const e=require("./mermaid-parser.core-BHBS1DqP.cjs");exports.createRailroadPegServices=e.u;
|
package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("./mermaid-parser.core-
|
|
1
|
+
const e=require("./mermaid-parser.core-BHBS1DqP.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs");require("./chunk-VPRB5NB3-CT204jN6.cjs");const r=require("./chunk-AW2ZBBNX-C4uNh90t.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");require("./mermaid.core-4MZ-Iwu7.cjs");var a=e.g().Railroad.parser.LangiumParser,o=t.n(e=>{switch(e.$type){case`RailroadTerminalExpr`:return{type:`terminal`,value:e.value};case`RailroadNonTerminalExpr`:return{type:`nonterminal`,name:e.name};case`RailroadSpecialExpr`:return{type:`special`,text:e.text};case`RailroadSequenceExpr`:{let t=e.elements.map(o);return t.length===1?t[0]:{type:`sequence`,elements:t}}case`RailroadChoiceExpr`:{let t=e.alternatives.map(o);return t.length===1?t[0]:{type:`choice`,alternatives:t}}case`RailroadOptionalExpr`:return{type:`optional`,element:o(e.element)};case`RailroadOneOrMoreExpr`:return{type:`repetition`,element:o(e.element),min:1,max:1/0};case`RailroadZeroOrMoreExpr`:return{type:`repetition`,element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},`transformExpression`),s=t.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),c=t.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(s(e)))},`populateDb`),l={parser:{parse:t.n(t=>{r.t.clear(),n.m.debug(`[Railroad Parser] Starting Langium parse`);let i=a.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new e.t(i);let o=i.value;n.m.debug(`[Railroad Parser] Parsed rules:`,o.rules.length),c(o),n.m.debug(`[Railroad Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=l;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { g as e, t } from "./mermaid-parser.core-
|
|
1
|
+
import { g as e, t } from "./mermaid-parser.core-CI12FMcX.js";
|
|
2
2
|
import { n } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
3
3
|
import { m as r } from "./src-Dkp7vqs8.js";
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import { n as i, r as a, t as o } from "./chunk-
|
|
4
|
+
import "./chunk-VPRB5NB3-DJh7spRO.js";
|
|
5
|
+
import { n as i, r as a, t as o } from "./chunk-AW2ZBBNX-CVsDDdv5.js";
|
|
6
6
|
import { t as s } from "./chunk-JWPE2WC7-B_J6qwQL.js";
|
|
7
|
-
import "./mermaid.core-
|
|
8
|
-
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/railroadDiagram-
|
|
7
|
+
import "./mermaid.core-BJkDCzqA.js";
|
|
8
|
+
//#region ../node_modules/mermaid/dist/chunks/mermaid.core/railroadDiagram-SM67HX2B.mjs
|
|
9
9
|
var c = e().Railroad.parser.LangiumParser, l = /* @__PURE__ */ n((e) => {
|
|
10
10
|
switch (e.$type) {
|
|
11
11
|
case "RailroadTerminalExpr": return {
|