@ashwin_droid/notion-stream 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-CWfjzMhC.js} +1 -1
- package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-Db9ouzA-.mjs} +51 -51
- package/dist/{arc-DmoYXidQ.mjs → arc-CHlsWOEE.mjs} +1 -1
- package/dist/{arc-BBnIBs2j.js → arc-DxDH4CNq.js} +1 -1
- package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-DpmenltQ.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-DqUhwOXk.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-C2hauZCK.mjs} +1846 -1850
- package/dist/architectureDiagram-VXUJARFQ-LwDhoqXa.js +36 -0
- package/dist/blockDiagram-VD42YOAC-Cws7af6P.js +122 -0
- package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-yWS4_TxE.mjs} +913 -922
- package/dist/c4Diagram-YG6GDRKO-DLoBqiir.js +10 -0
- package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-K4ShvkML.mjs} +169 -170
- package/dist/channel-BqjR_aPb.js +1 -0
- package/dist/{channel-DVpqhnow.mjs → channel-_5jzmP-I.mjs} +1 -1
- package/dist/chunk-4BX2VUAB-6hr5PCkV.js +1 -0
- package/dist/chunk-4BX2VUAB-DBTu5W6L.mjs +8 -0
- package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-BLs0Xswy.js} +1 -1
- package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-_brNODlK.mjs} +1 -1
- package/dist/chunk-B4BG7PRW-6HdbiUFA.js +165 -0
- package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-CWohxZt0.mjs} +251 -252
- package/dist/chunk-DI55MBZ5-DehdsbpI.js +220 -0
- package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-db62NlMD.mjs} +444 -456
- package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-B2j81cAo.js} +1 -1
- package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BegOwXuP.mjs} +1 -1
- package/dist/chunk-QN33PNHL-CJ1oa0p-.js +1 -0
- package/dist/chunk-QN33PNHL-CpBQYWWf.mjs +19 -0
- package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-BG9vC9tQ.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-DV3-w0rK.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-D3cmOS_D.mjs} +20 -20
- package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-DtKjE4RE.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-DAL3V7Dx.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-uOMmrtgR.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-DAL3V7Dx.mjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-uOMmrtgR.js} +1 -1
- package/dist/{clone-KtLCwiKH.mjs → clone-BiSDKkgs.mjs} +1 -1
- package/dist/clone-Bl9s3LR9.js +1 -0
- package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-BILtfzQC.js} +1 -1
- package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-MauA-22z.mjs} +1 -1
- package/dist/cose-bilkent-S5V4N54A-CPJoKUiO.js +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-rUEUYQdF.mjs} +592 -589
- package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
- package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
- package/dist/dagre-6UL2VRFP-b0VfOp5y.mjs +443 -0
- package/dist/dagre-6UL2VRFP-r_ADTb0O.js +4 -0
- package/dist/diagram-PSM6KHXK-CuHqLGUt.js +24 -0
- package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-ax3IfFcX.mjs} +45 -48
- package/dist/diagram-QEK2KX5R-B5Lo9E-s.js +43 -0
- package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-Dn47K2He.mjs} +10 -14
- package/dist/diagram-S2PKOQOG-B0W-tWPV.js +24 -0
- package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-C5jPENyu.mjs} +22 -23
- package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-XP6-Fsuy.mjs} +77 -78
- package/dist/erDiagram-Q2GNP2WA-k7niLq9H.js +60 -0
- package/dist/flowDiagram-NV44I4VS-BAdaW0zG.js +162 -0
- package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-DzHvKZ3e.mjs} +442 -449
- package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-BRenKPXr.mjs} +1049 -1041
- package/dist/ganttDiagram-JELNMOA3-CddDOxeO.js +267 -0
- package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-BLshE7A8.js} +1 -1
- package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-Dq8gDI5R.mjs} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-B-rSecLz.mjs +699 -0
- package/dist/gitGraphDiagram-NY62KEGX-C980oVrU.js +65 -0
- package/dist/{graph-BNpx6ebg.js → graph-BlL96kLy.js} +1 -1
- package/dist/{graph-C_T4ZBuC.mjs → graph-DxtCPktv.mjs} +8 -8
- package/dist/index-DIQbvlIr.js +670 -0
- package/dist/{index-oe4HpmeG.mjs → index-yf1-93v5.mjs} +22534 -22642
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/info-NVLQJR56-BQNoY6_p.mjs +5 -0
- package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-Bls_Dqxs.js} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-DwsUlSxN.js} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-FnUO4LNo.mjs} +2 -2
- package/dist/journeyDiagram-XKPGCS4Q-7k1g8rPF.js +139 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-Bvn5lhxn.mjs} +24 -26
- package/dist/kanban-definition-3W4ZIXB7-Cqf7XpzW.js +89 -0
- package/dist/kanban-definition-3W4ZIXB7-D29d9Rl2.mjs +719 -0
- package/dist/{layout-CuWQnP5Y.js → layout-B_kkbzwQ.js} +1 -1
- package/dist/{layout-Cd98WJ7r.mjs → layout-BlUfzTib.mjs} +22 -22
- package/dist/{linear-SU4e8MRt.mjs → linear-CC_oUBkf.mjs} +20 -20
- package/dist/{linear-DFDw13y6.js → linear-DF2d9TVq.js} +1 -1
- package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-2ufyMRt4.js} +1 -1
- package/dist/mermaid-4DMBBIKO-BizANXE3.mjs +4 -0
- package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CkXMNpV7.mjs} +3404 -3369
- package/dist/mermaid-parser.core-DQkQZAvG.js +128 -0
- package/dist/{min-CppMRDFn.js → min-I7eFb2cg.js} +1 -1
- package/dist/{min-C2k771MZ.mjs → min-VPOHWCTf.mjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-CawQ5XYo.mjs} +170 -172
- package/dist/mindmap-definition-VGOIOE7T-d8uGKtHO.js +68 -0
- package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-BbdhMsyD.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-CiqPNXx_.js} +1 -1
- package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-BfYvvrxF.js} +1 -1
- package/dist/pie-7BOR55EZ-CkKpjIfF.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-BlNrJLdh.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-TQppVIgS.mjs} +21 -21
- package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-CysN5Kyu.mjs} +230 -232
- package/dist/quadrantDiagram-AYHSOK5B-fy7-bMNk.js +7 -0
- package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-BjbmLxde.js} +1 -1
- package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-BlbyKqWL.mjs} +1 -1
- package/dist/requirementDiagram-UZGBJVZJ-CGgt75Rl.js +64 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-CfMcIbMc.mjs} +190 -192
- package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-aFz48-W2.mjs} +189 -189
- package/dist/sankeyDiagram-TZEHDZUN-q-r70ybp.js +10 -0
- package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-B9w1iL31.mjs} +222 -229
- package/dist/sequenceDiagram-WL72ISMW-nlFlEmNQ.js +145 -0
- package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-C9DXFs3P.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-e4SGJ8oh.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-FoEBCoPy.js} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-QUPk_c9P.mjs} +2 -2
- package/dist/timeline-definition-IT6M3QCI-BqUt3ka4.js +61 -0
- package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-Br9KrJcU.mjs} +217 -223
- package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-DTii969M.js} +1 -1
- package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-DVxjgEhu.mjs} +1 -1
- package/dist/xychartDiagram-PRI3JC2R-Bi02nVw4.js +7 -0
- package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BygtBGgX.mjs} +7 -7
- package/package.json +4 -4
- package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
- package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
- package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
- package/dist/channel-6dUO0MQi.js +0 -1
- package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
- package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
- package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
- package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
- package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
- package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
- package/dist/clone-B0UaPT2Z.js +0 -1
- package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
- package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
- package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
- package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
- package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
- package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
- package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
- package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
- package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
- package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
- package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
- package/dist/index-CkYZRBYn.js +0 -676
- package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
- package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
- package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
- package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
- package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
- package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
- package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
- package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
- package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
- package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
- package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-CysN5Kyu.mjs}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { _ as o, s as _e, g as Ae, z as ie, y as ke, d as Fe, e as Pe, f as
|
|
2
|
-
import { l as ee } from "./linear-
|
|
3
|
-
var
|
|
4
|
-
var t = /* @__PURE__ */ o(function(
|
|
5
|
-
for (l = l || {},
|
|
1
|
+
import { _ as o, s as _e, g as Ae, z as ie, y as ke, d as Fe, e as Pe, f as zt, l as bt, h as Lt, i as ve, D as Ce, M as D, a6 as Le, m as Ee } from "./index-yf1-93v5.mjs";
|
|
2
|
+
import { l as ee } from "./linear-CC_oUBkf.mjs";
|
|
3
|
+
var Et = (function() {
|
|
4
|
+
var t = /* @__PURE__ */ o(function(M, r, l, x) {
|
|
5
|
+
for (l = l || {}, x = M.length; x--; l[M[x]] = r) ;
|
|
6
6
|
return l;
|
|
7
|
-
}, "o"), n = [1, 3],
|
|
7
|
+
}, "o"), n = [1, 3], f = [1, 4], d = [1, 5], h = [1, 6], p = [1, 7], y = [1, 4, 5, 10, 12, 13, 14, 18, 25, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], _ = [1, 4, 5, 10, 12, 13, 14, 18, 25, 28, 35, 37, 39, 41, 42, 48, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 63, 64, 65, 66, 67], a = [55, 56, 57], A = [2, 36], u = [1, 37], T = [1, 36], q = [1, 38], m = [1, 35], b = [1, 43], g = [1, 41], G = [1, 14], ht = [1, 23], xt = [1, 18], ft = [1, 19], gt = [1, 20], ct = [1, 21], _t = [1, 22], dt = [1, 24], i = [1, 25], Vt = [1, 26], It = [1, 27], wt = [1, 28], Bt = [1, 29], W = [1, 32], U = [1, 33], k = [1, 34], F = [1, 39], P = [1, 40], v = [1, 42], C = [1, 44], O = [1, 62], H = [1, 61], L = [4, 5, 8, 10, 12, 13, 14, 18, 44, 47, 49, 55, 56, 57, 63, 64, 65, 66, 67], Rt = [1, 65], Nt = [1, 66], Wt = [1, 67], Ut = [1, 68], Qt = [1, 69], Ot = [1, 70], Ht = [1, 71], Xt = [1, 72], Mt = [1, 73], Yt = [1, 74], jt = [1, 75], Gt = [1, 76], I = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18], K = [1, 90], Z = [1, 91], J = [1, 92], $ = [1, 99], tt = [1, 93], et = [1, 96], it = [1, 94], at = [1, 95], nt = [1, 97], st = [1, 98], At = [1, 102], Kt = [10, 55, 56, 57], R = [4, 5, 6, 8, 10, 11, 13, 17, 18, 19, 20, 55, 56, 57], kt = {
|
|
8
8
|
trace: /* @__PURE__ */ o(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
11
11
|
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 },
|
|
12
12
|
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" },
|
|
13
13
|
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], [59, 1], [59, 1], [59, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ o(function(r, l,
|
|
14
|
+
performAction: /* @__PURE__ */ o(function(r, l, x, c, S, e, ut) {
|
|
15
15
|
var s = e.length - 1;
|
|
16
|
-
switch (
|
|
16
|
+
switch (S) {
|
|
17
17
|
case 23:
|
|
18
18
|
this.$ = e[s];
|
|
19
19
|
break;
|
|
@@ -30,65 +30,65 @@ var Vt = function() {
|
|
|
30
30
|
e[s - 2].push(e[s].trim()), this.$ = e[s - 2];
|
|
31
31
|
break;
|
|
32
32
|
case 29:
|
|
33
|
-
this.$ = e[s - 4],
|
|
33
|
+
this.$ = e[s - 4], c.addClass(e[s - 2], e[s]);
|
|
34
34
|
break;
|
|
35
35
|
case 37:
|
|
36
36
|
this.$ = [];
|
|
37
37
|
break;
|
|
38
38
|
case 42:
|
|
39
|
-
this.$ = e[s].trim(),
|
|
39
|
+
this.$ = e[s].trim(), c.setDiagramTitle(this.$);
|
|
40
40
|
break;
|
|
41
41
|
case 43:
|
|
42
|
-
this.$ = e[s].trim(),
|
|
42
|
+
this.$ = e[s].trim(), c.setAccTitle(this.$);
|
|
43
43
|
break;
|
|
44
44
|
case 44:
|
|
45
45
|
case 45:
|
|
46
|
-
this.$ = e[s].trim(),
|
|
46
|
+
this.$ = e[s].trim(), c.setAccDescription(this.$);
|
|
47
47
|
break;
|
|
48
48
|
case 46:
|
|
49
|
-
|
|
49
|
+
c.addSection(e[s].substr(8)), this.$ = e[s].substr(8);
|
|
50
50
|
break;
|
|
51
51
|
case 47:
|
|
52
|
-
|
|
52
|
+
c.addPoint(e[s - 3], "", e[s - 1], e[s], []);
|
|
53
53
|
break;
|
|
54
54
|
case 48:
|
|
55
|
-
|
|
55
|
+
c.addPoint(e[s - 4], e[s - 3], e[s - 1], e[s], []);
|
|
56
56
|
break;
|
|
57
57
|
case 49:
|
|
58
|
-
|
|
58
|
+
c.addPoint(e[s - 4], "", e[s - 2], e[s - 1], e[s]);
|
|
59
59
|
break;
|
|
60
60
|
case 50:
|
|
61
|
-
|
|
61
|
+
c.addPoint(e[s - 5], e[s - 4], e[s - 2], e[s - 1], e[s]);
|
|
62
62
|
break;
|
|
63
63
|
case 51:
|
|
64
|
-
|
|
64
|
+
c.setXAxisLeftText(e[s - 2]), c.setXAxisRightText(e[s]);
|
|
65
65
|
break;
|
|
66
66
|
case 52:
|
|
67
|
-
e[s - 1].text += " ⟶ ",
|
|
67
|
+
e[s - 1].text += " ⟶ ", c.setXAxisLeftText(e[s - 1]);
|
|
68
68
|
break;
|
|
69
69
|
case 53:
|
|
70
|
-
|
|
70
|
+
c.setXAxisLeftText(e[s]);
|
|
71
71
|
break;
|
|
72
72
|
case 54:
|
|
73
|
-
|
|
73
|
+
c.setYAxisBottomText(e[s - 2]), c.setYAxisTopText(e[s]);
|
|
74
74
|
break;
|
|
75
75
|
case 55:
|
|
76
|
-
e[s - 1].text += " ⟶ ",
|
|
76
|
+
e[s - 1].text += " ⟶ ", c.setYAxisBottomText(e[s - 1]);
|
|
77
77
|
break;
|
|
78
78
|
case 56:
|
|
79
|
-
|
|
79
|
+
c.setYAxisBottomText(e[s]);
|
|
80
80
|
break;
|
|
81
81
|
case 57:
|
|
82
|
-
|
|
82
|
+
c.setQuadrant1Text(e[s]);
|
|
83
83
|
break;
|
|
84
84
|
case 58:
|
|
85
|
-
|
|
85
|
+
c.setQuadrant2Text(e[s]);
|
|
86
86
|
break;
|
|
87
87
|
case 59:
|
|
88
|
-
|
|
88
|
+
c.setQuadrant3Text(e[s]);
|
|
89
89
|
break;
|
|
90
90
|
case 60:
|
|
91
|
-
|
|
91
|
+
c.setQuadrant4Text(e[s]);
|
|
92
92
|
break;
|
|
93
93
|
case 64:
|
|
94
94
|
this.$ = { text: e[s], type: "text" };
|
|
@@ -110,76 +110,76 @@ var Vt = function() {
|
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
112
|
}, "anonymous"),
|
|
113
|
-
table: [{ 18: n, 26: 1, 27: 2, 28:
|
|
113
|
+
table: [{ 18: n, 26: 1, 27: 2, 28: f, 55: d, 56: h, 57: p }, { 1: [3] }, { 18: n, 26: 8, 27: 2, 28: f, 55: d, 56: h, 57: p }, { 18: n, 26: 9, 27: 2, 28: f, 55: d, 56: h, 57: p }, t(y, [2, 33], { 29: 10 }), t(_, [2, 61]), t(_, [2, 62]), t(_, [2, 63]), { 1: [2, 30] }, { 1: [2, 31] }, t(a, A, { 30: 11, 31: 12, 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 1: [2, 32], 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 18: G, 25: ht, 35: xt, 37: ft, 39: gt, 41: ct, 42: _t, 48: dt, 50: i, 51: Vt, 52: It, 53: wt, 54: Bt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(y, [2, 34]), { 27: 45, 55: d, 56: h, 57: p }, t(a, [2, 37]), t(a, A, { 24: 13, 32: 15, 33: 16, 34: 17, 43: 30, 58: 31, 31: 46, 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 18: G, 25: ht, 35: xt, 37: ft, 39: gt, 41: ct, 42: _t, 48: dt, 50: i, 51: Vt, 52: It, 53: wt, 54: Bt, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 39]), t(a, [2, 40]), t(a, [2, 41]), { 36: [1, 47] }, { 38: [1, 48] }, { 40: [1, 49] }, t(a, [2, 45]), t(a, [2, 46]), { 18: [1, 50] }, { 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 43: 51, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 43: 52, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 43: 53, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 43: 54, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 43: 55, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 43: 56, 58: 31, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }, { 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 44: [1, 57], 47: [1, 58], 58: 60, 59: 59, 63: k, 64: F, 65: P, 66: v, 67: C }, t(L, [2, 64]), t(L, [2, 66]), t(L, [2, 67]), t(L, [2, 70]), t(L, [2, 71]), t(L, [2, 72]), t(L, [2, 73]), t(L, [2, 74]), t(L, [2, 75]), t(L, [2, 76]), t(L, [2, 77]), t(L, [2, 78]), t(L, [2, 79]), t(L, [2, 80]), t(y, [2, 35]), t(a, [2, 38]), t(a, [2, 42]), t(a, [2, 43]), t(a, [2, 44]), { 3: 64, 4: Rt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 21: 63 }, t(a, [2, 53], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 49: [1, 77], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 56], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 49: [1, 78], 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 57], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 58], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 59], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 60], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), { 45: [1, 79] }, { 44: [1, 80] }, t(L, [2, 65]), t(L, [2, 81]), t(L, [2, 82]), t(L, [2, 83]), { 3: 82, 4: Rt, 5: Nt, 6: Wt, 7: Ut, 8: Qt, 9: Ot, 10: Ht, 11: Xt, 12: Mt, 13: Yt, 14: jt, 15: Gt, 18: [1, 81] }, t(I, [2, 23]), t(I, [2, 1]), t(I, [2, 2]), t(I, [2, 3]), t(I, [2, 4]), t(I, [2, 5]), t(I, [2, 6]), t(I, [2, 7]), t(I, [2, 8]), t(I, [2, 9]), t(I, [2, 10]), t(I, [2, 11]), t(I, [2, 12]), t(a, [2, 52], { 58: 31, 43: 83, 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 55], { 58: 31, 43: 84, 4: u, 5: T, 10: q, 12: m, 13: b, 14: g, 60: W, 61: U, 63: k, 64: F, 65: P, 66: v, 67: C }), { 46: [1, 85] }, { 45: [1, 86] }, { 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 16: 89, 17: it, 18: at, 19: nt, 20: st, 22: 88, 23: 87 }, t(I, [2, 24]), t(a, [2, 51], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 54], { 59: 59, 58: 60, 4: u, 5: T, 8: O, 10: q, 12: m, 13: b, 14: g, 18: H, 63: k, 64: F, 65: P, 66: v, 67: C }), t(a, [2, 47], { 22: 88, 16: 89, 23: 100, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), { 46: [1, 101] }, t(a, [2, 29], { 10: At }), t(Kt, [2, 27], { 16: 103, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), t(R, [2, 25]), t(R, [2, 13]), t(R, [2, 14]), t(R, [2, 15]), t(R, [2, 16]), t(R, [2, 17]), t(R, [2, 18]), t(R, [2, 19]), t(R, [2, 20]), t(R, [2, 21]), t(R, [2, 22]), t(a, [2, 49], { 10: At }), t(a, [2, 48], { 22: 88, 16: 89, 23: 104, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st }), { 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 16: 89, 17: it, 18: at, 19: nt, 20: st, 22: 105 }, t(R, [2, 26]), t(a, [2, 50], { 10: At }), t(Kt, [2, 28], { 16: 103, 4: K, 5: Z, 6: J, 8: $, 11: tt, 13: et, 17: it, 18: at, 19: nt, 20: st })],
|
|
114
114
|
defaultActions: { 8: [2, 30], 9: [2, 31] },
|
|
115
115
|
parseError: /* @__PURE__ */ o(function(r, l) {
|
|
116
116
|
if (l.recoverable)
|
|
117
117
|
this.trace(r);
|
|
118
118
|
else {
|
|
119
|
-
var
|
|
120
|
-
throw
|
|
119
|
+
var x = new Error(r);
|
|
120
|
+
throw x.hash = l, x;
|
|
121
121
|
}
|
|
122
122
|
}, "parseError"),
|
|
123
123
|
parse: /* @__PURE__ */ o(function(r) {
|
|
124
|
-
var l = this,
|
|
125
|
-
for (var
|
|
126
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
127
|
-
E.setInput(r,
|
|
128
|
-
var
|
|
129
|
-
e.push(
|
|
124
|
+
var l = this, x = [0], c = [], S = [null], e = [], ut = this.table, s = "", yt = 0, Zt = 0, qe = 2, Jt = 1, me = e.slice.call(arguments, 1), E = Object.create(this.lexer), Y = { yy: {} };
|
|
125
|
+
for (var Ft in this.yy)
|
|
126
|
+
Object.prototype.hasOwnProperty.call(this.yy, Ft) && (Y.yy[Ft] = this.yy[Ft]);
|
|
127
|
+
E.setInput(r, Y.yy), Y.yy.lexer = E, Y.yy.parser = this, typeof E.yylloc > "u" && (E.yylloc = {});
|
|
128
|
+
var Pt = E.yylloc;
|
|
129
|
+
e.push(Pt);
|
|
130
130
|
var be = E.options && E.options.ranges;
|
|
131
|
-
typeof
|
|
131
|
+
typeof Y.yy.parseError == "function" ? this.parseError = Y.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
132
132
|
function Se(B) {
|
|
133
|
-
|
|
133
|
+
x.length = x.length - 2 * B, S.length = S.length - B, e.length = e.length - B;
|
|
134
134
|
}
|
|
135
135
|
o(Se, "popStack");
|
|
136
136
|
function $t() {
|
|
137
137
|
var B;
|
|
138
|
-
return B =
|
|
138
|
+
return B = c.pop() || E.lex() || Jt, typeof B != "number" && (B instanceof Array && (c = B, B = c.pop()), B = l.symbols_[B] || B), B;
|
|
139
139
|
}
|
|
140
140
|
o($t, "lex");
|
|
141
|
-
for (var w,
|
|
142
|
-
if (
|
|
143
|
-
var
|
|
144
|
-
|
|
145
|
-
for (
|
|
146
|
-
this.terminals_[
|
|
147
|
-
E.showPosition ?
|
|
141
|
+
for (var w, j, N, vt, rt = {}, Tt, X, te, qt; ; ) {
|
|
142
|
+
if (j = x[x.length - 1], this.defaultActions[j] ? N = this.defaultActions[j] : ((w === null || typeof w > "u") && (w = $t()), N = ut[j] && ut[j][w]), typeof N > "u" || !N.length || !N[0]) {
|
|
143
|
+
var Ct = "";
|
|
144
|
+
qt = [];
|
|
145
|
+
for (Tt in ut[j])
|
|
146
|
+
this.terminals_[Tt] && Tt > qe && qt.push("'" + this.terminals_[Tt] + "'");
|
|
147
|
+
E.showPosition ? Ct = "Parse error on line " + (yt + 1) + `:
|
|
148
148
|
` + E.showPosition() + `
|
|
149
|
-
Expecting ` +
|
|
149
|
+
Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Ct = "Parse error on line " + (yt + 1) + ": Unexpected " + (w == Jt ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(Ct, {
|
|
150
150
|
text: E.match,
|
|
151
151
|
token: this.terminals_[w] || w,
|
|
152
152
|
line: E.yylineno,
|
|
153
|
-
loc:
|
|
154
|
-
expected:
|
|
153
|
+
loc: Pt,
|
|
154
|
+
expected: qt
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
157
|
if (N[0] instanceof Array && N.length > 1)
|
|
158
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
158
|
+
throw new Error("Parse Error: multiple actions possible at state: " + j + ", token: " + w);
|
|
159
159
|
switch (N[0]) {
|
|
160
160
|
case 1:
|
|
161
|
-
|
|
161
|
+
x.push(w), S.push(E.yytext), e.push(E.yylloc), x.push(N[1]), w = null, Zt = E.yyleng, s = E.yytext, yt = E.yylineno, Pt = E.yylloc;
|
|
162
162
|
break;
|
|
163
163
|
case 2:
|
|
164
|
-
if (
|
|
165
|
-
first_line: e[e.length - (
|
|
164
|
+
if (X = this.productions_[N[1]][1], rt.$ = S[S.length - X], rt._$ = {
|
|
165
|
+
first_line: e[e.length - (X || 1)].first_line,
|
|
166
166
|
last_line: e[e.length - 1].last_line,
|
|
167
|
-
first_column: e[e.length - (
|
|
167
|
+
first_column: e[e.length - (X || 1)].first_column,
|
|
168
168
|
last_column: e[e.length - 1].last_column
|
|
169
|
-
}, be && (
|
|
170
|
-
e[e.length - (
|
|
169
|
+
}, be && (rt._$.range = [
|
|
170
|
+
e[e.length - (X || 1)].range[0],
|
|
171
171
|
e[e.length - 1].range[1]
|
|
172
|
-
]),
|
|
172
|
+
]), vt = this.performAction.apply(rt, [
|
|
173
173
|
s,
|
|
174
174
|
Zt,
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
yt,
|
|
176
|
+
Y.yy,
|
|
177
177
|
N[1],
|
|
178
|
-
|
|
178
|
+
S,
|
|
179
179
|
e
|
|
180
|
-
].concat(me)), typeof
|
|
181
|
-
return
|
|
182
|
-
|
|
180
|
+
].concat(me)), typeof vt < "u")
|
|
181
|
+
return vt;
|
|
182
|
+
X && (x = x.slice(0, -1 * X * 2), S = S.slice(0, -1 * X), e = e.slice(0, -1 * X)), x.push(this.productions_[N[1]][0]), S.push(rt.$), e.push(rt._$), te = ut[x[x.length - 2]][x[x.length - 1]], x.push(te);
|
|
183
183
|
break;
|
|
184
184
|
case 3:
|
|
185
185
|
return !0;
|
|
@@ -187,12 +187,12 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
187
187
|
}
|
|
188
188
|
return !0;
|
|
189
189
|
}, "parse")
|
|
190
|
-
}, Te = /* @__PURE__ */ function() {
|
|
191
|
-
var
|
|
190
|
+
}, Te = /* @__PURE__ */ (function() {
|
|
191
|
+
var M = {
|
|
192
192
|
EOF: 1,
|
|
193
|
-
parseError: /* @__PURE__ */ o(function(l,
|
|
193
|
+
parseError: /* @__PURE__ */ o(function(l, x) {
|
|
194
194
|
if (this.yy.parser)
|
|
195
|
-
this.yy.parser.parseError(l,
|
|
195
|
+
this.yy.parser.parseError(l, x);
|
|
196
196
|
else
|
|
197
197
|
throw new Error(l);
|
|
198
198
|
}, "parseError"),
|
|
@@ -214,17 +214,17 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
214
214
|
}, "input"),
|
|
215
215
|
// unshifts one char (or a string) into the input
|
|
216
216
|
unput: /* @__PURE__ */ o(function(r) {
|
|
217
|
-
var l = r.length,
|
|
217
|
+
var l = r.length, x = r.split(/(?:\r\n?|\n)/g);
|
|
218
218
|
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
219
|
-
var
|
|
220
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
221
|
-
var
|
|
219
|
+
var c = this.match.split(/(?:\r\n?|\n)/g);
|
|
220
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), x.length - 1 && (this.yylineno -= x.length - 1);
|
|
221
|
+
var S = this.yylloc.range;
|
|
222
222
|
return this.yylloc = {
|
|
223
223
|
first_line: this.yylloc.first_line,
|
|
224
224
|
last_line: this.yylineno + 1,
|
|
225
225
|
first_column: this.yylloc.first_column,
|
|
226
|
-
last_column:
|
|
227
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
226
|
+
last_column: x ? (x.length === c.length ? this.yylloc.first_column : 0) + c[c.length - x.length].length - x[0].length : this.yylloc.first_column - l
|
|
227
|
+
}, this.options.ranges && (this.yylloc.range = [S[0], S[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
228
228
|
}, "unput"),
|
|
229
229
|
// When called from action, caches matched text and appends it on next action
|
|
230
230
|
more: /* @__PURE__ */ o(function() {
|
|
@@ -265,8 +265,8 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
265
265
|
}, "showPosition"),
|
|
266
266
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
267
267
|
test_match: /* @__PURE__ */ o(function(r, l) {
|
|
268
|
-
var
|
|
269
|
-
if (this.options.backtrack_lexer && (
|
|
268
|
+
var x, c, S;
|
|
269
|
+
if (this.options.backtrack_lexer && (S = {
|
|
270
270
|
yylineno: this.yylineno,
|
|
271
271
|
yylloc: {
|
|
272
272
|
first_line: this.yylloc.first_line,
|
|
@@ -285,16 +285,16 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
285
285
|
yy: this.yy,
|
|
286
286
|
conditionStack: this.conditionStack.slice(0),
|
|
287
287
|
done: this.done
|
|
288
|
-
}, this.options.ranges && (
|
|
288
|
+
}, this.options.ranges && (S.yylloc.range = this.yylloc.range.slice(0))), c = r[0].match(/(?:\r\n?|\n).*/g), c && (this.yylineno += c.length), this.yylloc = {
|
|
289
289
|
first_line: this.yylloc.last_line,
|
|
290
290
|
last_line: this.yylineno + 1,
|
|
291
291
|
first_column: this.yylloc.last_column,
|
|
292
|
-
last_column:
|
|
293
|
-
}, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0],
|
|
294
|
-
return
|
|
292
|
+
last_column: c ? c[c.length - 1].length - c[c.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
293
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], x = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), x)
|
|
294
|
+
return x;
|
|
295
295
|
if (this._backtrack) {
|
|
296
|
-
for (var e in
|
|
297
|
-
this[e] =
|
|
296
|
+
for (var e in S)
|
|
297
|
+
this[e] = S[e];
|
|
298
298
|
return !1;
|
|
299
299
|
}
|
|
300
300
|
return !1;
|
|
@@ -304,12 +304,12 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
304
304
|
if (this.done)
|
|
305
305
|
return this.EOF;
|
|
306
306
|
this._input || (this.done = !0);
|
|
307
|
-
var r, l,
|
|
307
|
+
var r, l, x, c;
|
|
308
308
|
this._more || (this.yytext = "", this.match = "");
|
|
309
|
-
for (var
|
|
310
|
-
if (
|
|
311
|
-
if (l =
|
|
312
|
-
if (r = this.test_match(
|
|
309
|
+
for (var S = this._currentRules(), e = 0; e < S.length; e++)
|
|
310
|
+
if (x = this._input.match(this.rules[S[e]]), x && (!l || x[0].length > l[0].length)) {
|
|
311
|
+
if (l = x, c = e, this.options.backtrack_lexer) {
|
|
312
|
+
if (r = this.test_match(x, S[e]), r !== !1)
|
|
313
313
|
return r;
|
|
314
314
|
if (this._backtrack) {
|
|
315
315
|
l = !1;
|
|
@@ -319,7 +319,7 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
319
319
|
} else if (!this.options.flex)
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
|
-
return l ? (r = this.test_match(l,
|
|
322
|
+
return l ? (r = this.test_match(l, S[c]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
323
323
|
` + this.showPosition(), {
|
|
324
324
|
text: "",
|
|
325
325
|
token: null,
|
|
@@ -357,8 +357,8 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
357
357
|
return this.conditionStack.length;
|
|
358
358
|
}, "stateStackSize"),
|
|
359
359
|
options: { "case-insensitive": !0 },
|
|
360
|
-
performAction: /* @__PURE__ */ o(function(l,
|
|
361
|
-
switch (
|
|
360
|
+
performAction: /* @__PURE__ */ o(function(l, x, c, S) {
|
|
361
|
+
switch (c) {
|
|
362
362
|
case 0:
|
|
363
363
|
break;
|
|
364
364
|
case 1:
|
|
@@ -477,16 +477,16 @@ Expecting ` + St.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : Dt =
|
|
|
477
477
|
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, /^(?::)/i, /^(?:\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\*)/i, /^(?:#)/i, /^(?:[\_])/i, /^(?:\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\s)/i, /^(?:;)/i, /^(?:[!"#$%&'*+,-.`?\\_/])/i, /^(?:$)/i],
|
|
478
478
|
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], inclusive: !0 } }
|
|
479
479
|
};
|
|
480
|
-
return
|
|
481
|
-
}();
|
|
482
|
-
|
|
483
|
-
function
|
|
480
|
+
return M;
|
|
481
|
+
})();
|
|
482
|
+
kt.lexer = Te;
|
|
483
|
+
function pt() {
|
|
484
484
|
this.yy = {};
|
|
485
485
|
}
|
|
486
|
-
return o(
|
|
487
|
-
}();
|
|
488
|
-
|
|
489
|
-
var De =
|
|
486
|
+
return o(pt, "Parser"), pt.prototype = kt, kt.Parser = pt, new pt();
|
|
487
|
+
})();
|
|
488
|
+
Et.parser = Et;
|
|
489
|
+
var De = Et, V = Le(), ot, ze = (ot = class {
|
|
490
490
|
constructor() {
|
|
491
491
|
this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData();
|
|
492
492
|
}
|
|
@@ -505,29 +505,28 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
getDefaultConfig() {
|
|
508
|
-
var n, u, c, h, p, y, S, a, A, d, T, q, m, b, x, O, Y, G;
|
|
509
508
|
return {
|
|
510
509
|
showXAxis: !0,
|
|
511
510
|
showYAxis: !0,
|
|
512
511
|
showTitle: !0,
|
|
513
|
-
chartHeight:
|
|
514
|
-
chartWidth:
|
|
515
|
-
titlePadding:
|
|
516
|
-
titleFontSize:
|
|
517
|
-
quadrantPadding:
|
|
518
|
-
xAxisLabelPadding:
|
|
519
|
-
yAxisLabelPadding:
|
|
520
|
-
xAxisLabelFontSize:
|
|
521
|
-
yAxisLabelFontSize:
|
|
522
|
-
quadrantLabelFontSize:
|
|
523
|
-
quadrantTextTopPadding:
|
|
524
|
-
pointTextPadding:
|
|
525
|
-
pointLabelFontSize:
|
|
526
|
-
pointRadius:
|
|
527
|
-
xAxisPosition:
|
|
528
|
-
yAxisPosition:
|
|
529
|
-
quadrantInternalBorderStrokeWidth:
|
|
530
|
-
quadrantExternalBorderStrokeWidth:
|
|
512
|
+
chartHeight: D.quadrantChart?.chartWidth || 500,
|
|
513
|
+
chartWidth: D.quadrantChart?.chartHeight || 500,
|
|
514
|
+
titlePadding: D.quadrantChart?.titlePadding || 10,
|
|
515
|
+
titleFontSize: D.quadrantChart?.titleFontSize || 20,
|
|
516
|
+
quadrantPadding: D.quadrantChart?.quadrantPadding || 5,
|
|
517
|
+
xAxisLabelPadding: D.quadrantChart?.xAxisLabelPadding || 5,
|
|
518
|
+
yAxisLabelPadding: D.quadrantChart?.yAxisLabelPadding || 5,
|
|
519
|
+
xAxisLabelFontSize: D.quadrantChart?.xAxisLabelFontSize || 16,
|
|
520
|
+
yAxisLabelFontSize: D.quadrantChart?.yAxisLabelFontSize || 16,
|
|
521
|
+
quadrantLabelFontSize: D.quadrantChart?.quadrantLabelFontSize || 16,
|
|
522
|
+
quadrantTextTopPadding: D.quadrantChart?.quadrantTextTopPadding || 5,
|
|
523
|
+
pointTextPadding: D.quadrantChart?.pointTextPadding || 5,
|
|
524
|
+
pointLabelFontSize: D.quadrantChart?.pointLabelFontSize || 12,
|
|
525
|
+
pointRadius: D.quadrantChart?.pointRadius || 5,
|
|
526
|
+
xAxisPosition: D.quadrantChart?.xAxisPosition || "top",
|
|
527
|
+
yAxisPosition: D.quadrantChart?.yAxisPosition || "left",
|
|
528
|
+
quadrantInternalBorderStrokeWidth: D.quadrantChart?.quadrantInternalBorderStrokeWidth || 1,
|
|
529
|
+
quadrantExternalBorderStrokeWidth: D.quadrantChart?.quadrantExternalBorderStrokeWidth || 2
|
|
531
530
|
};
|
|
532
531
|
}
|
|
533
532
|
getDefaultThemeConfig() {
|
|
@@ -550,7 +549,7 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
550
549
|
};
|
|
551
550
|
}
|
|
552
551
|
clear() {
|
|
553
|
-
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(),
|
|
552
|
+
this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(), this.classes = /* @__PURE__ */ new Map(), bt.info("clear called");
|
|
554
553
|
}
|
|
555
554
|
setData(n) {
|
|
556
555
|
this.data = { ...this.data, ...n };
|
|
@@ -558,88 +557,88 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
558
557
|
addPoints(n) {
|
|
559
558
|
this.data.points = [...n, ...this.data.points];
|
|
560
559
|
}
|
|
561
|
-
addClass(n,
|
|
562
|
-
this.classes.set(n,
|
|
560
|
+
addClass(n, f) {
|
|
561
|
+
this.classes.set(n, f);
|
|
563
562
|
}
|
|
564
563
|
setConfig(n) {
|
|
565
|
-
|
|
564
|
+
bt.trace("setConfig called with: ", n), this.config = { ...this.config, ...n };
|
|
566
565
|
}
|
|
567
566
|
setThemeConfig(n) {
|
|
568
|
-
|
|
567
|
+
bt.trace("setThemeConfig called with: ", n), this.themeConfig = { ...this.themeConfig, ...n };
|
|
569
568
|
}
|
|
570
|
-
calculateSpace(n,
|
|
569
|
+
calculateSpace(n, f, d, h) {
|
|
571
570
|
const p = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize, y = {
|
|
572
|
-
top: n === "top" &&
|
|
573
|
-
bottom: n === "bottom" &&
|
|
574
|
-
},
|
|
575
|
-
left: this.config.yAxisPosition === "left" &&
|
|
576
|
-
right: this.config.yAxisPosition === "right" &&
|
|
577
|
-
}, A = this.config.titleFontSize + this.config.titlePadding * 2,
|
|
571
|
+
top: n === "top" && f ? p : 0,
|
|
572
|
+
bottom: n === "bottom" && f ? p : 0
|
|
573
|
+
}, _ = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize, a = {
|
|
574
|
+
left: this.config.yAxisPosition === "left" && d ? _ : 0,
|
|
575
|
+
right: this.config.yAxisPosition === "right" && d ? _ : 0
|
|
576
|
+
}, A = this.config.titleFontSize + this.config.titlePadding * 2, u = {
|
|
578
577
|
top: h ? A : 0
|
|
579
|
-
}, T = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + y.top +
|
|
578
|
+
}, T = this.config.quadrantPadding + a.left, q = this.config.quadrantPadding + y.top + u.top, m = this.config.chartWidth - this.config.quadrantPadding * 2 - a.left - a.right, b = this.config.chartHeight - this.config.quadrantPadding * 2 - y.top - y.bottom - u.top, g = m / 2, G = b / 2;
|
|
580
579
|
return {
|
|
581
580
|
xAxisSpace: y,
|
|
582
581
|
yAxisSpace: a,
|
|
583
|
-
titleSpace:
|
|
582
|
+
titleSpace: u,
|
|
584
583
|
quadrantSpace: {
|
|
585
584
|
quadrantLeft: T,
|
|
586
585
|
quadrantTop: q,
|
|
587
586
|
quadrantWidth: m,
|
|
588
|
-
quadrantHalfWidth:
|
|
587
|
+
quadrantHalfWidth: g,
|
|
589
588
|
quadrantHeight: b,
|
|
590
|
-
quadrantHalfHeight:
|
|
589
|
+
quadrantHalfHeight: G
|
|
591
590
|
}
|
|
592
591
|
};
|
|
593
592
|
}
|
|
594
|
-
getAxisLabels(n,
|
|
593
|
+
getAxisLabels(n, f, d, h) {
|
|
595
594
|
const { quadrantSpace: p, titleSpace: y } = h, {
|
|
596
|
-
quadrantHalfHeight:
|
|
595
|
+
quadrantHalfHeight: _,
|
|
597
596
|
quadrantHeight: a,
|
|
598
597
|
quadrantLeft: A,
|
|
599
|
-
quadrantHalfWidth:
|
|
598
|
+
quadrantHalfWidth: u,
|
|
600
599
|
quadrantTop: T,
|
|
601
600
|
quadrantWidth: q
|
|
602
|
-
} = p, m = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText,
|
|
603
|
-
return this.data.xAxisLeftText &&
|
|
601
|
+
} = p, m = !!this.data.xAxisRightText, b = !!this.data.yAxisTopText, g = [];
|
|
602
|
+
return this.data.xAxisLeftText && f && g.push({
|
|
604
603
|
text: this.data.xAxisLeftText,
|
|
605
604
|
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
606
|
-
x: A + (m ?
|
|
605
|
+
x: A + (m ? u / 2 : 0),
|
|
607
606
|
y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
|
|
608
607
|
fontSize: this.config.xAxisLabelFontSize,
|
|
609
608
|
verticalPos: m ? "center" : "left",
|
|
610
609
|
horizontalPos: "top",
|
|
611
610
|
rotation: 0
|
|
612
|
-
}), this.data.xAxisRightText &&
|
|
611
|
+
}), this.data.xAxisRightText && f && g.push({
|
|
613
612
|
text: this.data.xAxisRightText,
|
|
614
613
|
fill: this.themeConfig.quadrantXAxisTextFill,
|
|
615
|
-
x: A +
|
|
614
|
+
x: A + u + (m ? u / 2 : 0),
|
|
616
615
|
y: n === "top" ? this.config.xAxisLabelPadding + y.top : this.config.xAxisLabelPadding + T + a + this.config.quadrantPadding,
|
|
617
616
|
fontSize: this.config.xAxisLabelFontSize,
|
|
618
617
|
verticalPos: m ? "center" : "left",
|
|
619
618
|
horizontalPos: "top",
|
|
620
619
|
rotation: 0
|
|
621
|
-
}), this.data.yAxisBottomText &&
|
|
620
|
+
}), this.data.yAxisBottomText && d && g.push({
|
|
622
621
|
text: this.data.yAxisBottomText,
|
|
623
622
|
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
624
623
|
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
|
|
625
|
-
y: T + a - (b ?
|
|
624
|
+
y: T + a - (b ? _ / 2 : 0),
|
|
626
625
|
fontSize: this.config.yAxisLabelFontSize,
|
|
627
626
|
verticalPos: b ? "center" : "left",
|
|
628
627
|
horizontalPos: "top",
|
|
629
628
|
rotation: -90
|
|
630
|
-
}), this.data.yAxisTopText &&
|
|
629
|
+
}), this.data.yAxisTopText && d && g.push({
|
|
631
630
|
text: this.data.yAxisTopText,
|
|
632
631
|
fill: this.themeConfig.quadrantYAxisTextFill,
|
|
633
632
|
x: this.config.yAxisPosition === "left" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + A + q + this.config.quadrantPadding,
|
|
634
|
-
y: T +
|
|
633
|
+
y: T + _ - (b ? _ / 2 : 0),
|
|
635
634
|
fontSize: this.config.yAxisLabelFontSize,
|
|
636
635
|
verticalPos: b ? "center" : "left",
|
|
637
636
|
horizontalPos: "top",
|
|
638
637
|
rotation: -90
|
|
639
|
-
}),
|
|
638
|
+
}), g;
|
|
640
639
|
}
|
|
641
640
|
getQuadrants(n) {
|
|
642
|
-
const { quadrantSpace:
|
|
641
|
+
const { quadrantSpace: f } = n, { quadrantHalfHeight: d, quadrantLeft: h, quadrantHalfWidth: p, quadrantTop: y } = f, _ = [
|
|
643
642
|
{
|
|
644
643
|
text: {
|
|
645
644
|
text: this.data.quadrant1Text,
|
|
@@ -654,7 +653,7 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
654
653
|
x: h + p,
|
|
655
654
|
y,
|
|
656
655
|
width: p,
|
|
657
|
-
height:
|
|
656
|
+
height: d,
|
|
658
657
|
fill: this.themeConfig.quadrant1Fill
|
|
659
658
|
},
|
|
660
659
|
{
|
|
@@ -671,7 +670,7 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
671
670
|
x: h,
|
|
672
671
|
y,
|
|
673
672
|
width: p,
|
|
674
|
-
height:
|
|
673
|
+
height: d,
|
|
675
674
|
fill: this.themeConfig.quadrant2Fill
|
|
676
675
|
},
|
|
677
676
|
{
|
|
@@ -686,9 +685,9 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
686
685
|
rotation: 0
|
|
687
686
|
},
|
|
688
687
|
x: h,
|
|
689
|
-
y: y +
|
|
688
|
+
y: y + d,
|
|
690
689
|
width: p,
|
|
691
|
-
height:
|
|
690
|
+
height: d,
|
|
692
691
|
fill: this.themeConfig.quadrant3Fill
|
|
693
692
|
},
|
|
694
693
|
{
|
|
@@ -703,57 +702,57 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
703
702
|
rotation: 0
|
|
704
703
|
},
|
|
705
704
|
x: h + p,
|
|
706
|
-
y: y +
|
|
705
|
+
y: y + d,
|
|
707
706
|
width: p,
|
|
708
|
-
height:
|
|
707
|
+
height: d,
|
|
709
708
|
fill: this.themeConfig.quadrant4Fill
|
|
710
709
|
}
|
|
711
710
|
];
|
|
712
|
-
for (const a of
|
|
711
|
+
for (const a of _)
|
|
713
712
|
a.text.x = a.x + a.width / 2, this.data.points.length === 0 ? (a.text.y = a.y + a.height / 2, a.text.horizontalPos = "middle") : (a.text.y = a.y + this.config.quadrantTextTopPadding, a.text.horizontalPos = "top");
|
|
714
|
-
return
|
|
713
|
+
return _;
|
|
715
714
|
}
|
|
716
715
|
getQuadrantPoints(n) {
|
|
717
|
-
const { quadrantSpace:
|
|
718
|
-
return this.data.points.map((
|
|
719
|
-
const T = this.classes.get(
|
|
720
|
-
return T && (
|
|
721
|
-
x:
|
|
722
|
-
y: a(
|
|
723
|
-
fill:
|
|
724
|
-
radius:
|
|
716
|
+
const { quadrantSpace: f } = n, { quadrantHeight: d, quadrantLeft: h, quadrantTop: p, quadrantWidth: y } = f, _ = ee().domain([0, 1]).range([h, y + h]), a = ee().domain([0, 1]).range([d + p, p]);
|
|
717
|
+
return this.data.points.map((u) => {
|
|
718
|
+
const T = this.classes.get(u.className);
|
|
719
|
+
return T && (u = { ...T, ...u }), {
|
|
720
|
+
x: _(u.x),
|
|
721
|
+
y: a(u.y),
|
|
722
|
+
fill: u.color ?? this.themeConfig.quadrantPointFill,
|
|
723
|
+
radius: u.radius ?? this.config.pointRadius,
|
|
725
724
|
text: {
|
|
726
|
-
text:
|
|
725
|
+
text: u.text,
|
|
727
726
|
fill: this.themeConfig.quadrantPointTextFill,
|
|
728
|
-
x:
|
|
729
|
-
y: a(
|
|
727
|
+
x: _(u.x),
|
|
728
|
+
y: a(u.y) + this.config.pointTextPadding,
|
|
730
729
|
verticalPos: "center",
|
|
731
730
|
horizontalPos: "top",
|
|
732
731
|
fontSize: this.config.pointLabelFontSize,
|
|
733
732
|
rotation: 0
|
|
734
733
|
},
|
|
735
|
-
strokeColor:
|
|
736
|
-
strokeWidth:
|
|
734
|
+
strokeColor: u.strokeColor ?? this.themeConfig.quadrantPointFill,
|
|
735
|
+
strokeWidth: u.strokeWidth ?? "0px"
|
|
737
736
|
};
|
|
738
737
|
});
|
|
739
738
|
}
|
|
740
739
|
getBorders(n) {
|
|
741
|
-
const
|
|
740
|
+
const f = this.config.quadrantExternalBorderStrokeWidth / 2, { quadrantSpace: d } = n, {
|
|
742
741
|
quadrantHalfHeight: h,
|
|
743
742
|
quadrantHeight: p,
|
|
744
743
|
quadrantLeft: y,
|
|
745
|
-
quadrantHalfWidth:
|
|
744
|
+
quadrantHalfWidth: _,
|
|
746
745
|
quadrantTop: a,
|
|
747
746
|
quadrantWidth: A
|
|
748
|
-
} =
|
|
747
|
+
} = d;
|
|
749
748
|
return [
|
|
750
749
|
// top border
|
|
751
750
|
{
|
|
752
751
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
753
752
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
754
|
-
x1: y -
|
|
753
|
+
x1: y - f,
|
|
755
754
|
y1: a,
|
|
756
|
-
x2: y + A +
|
|
755
|
+
x2: y + A + f,
|
|
757
756
|
y2: a
|
|
758
757
|
},
|
|
759
758
|
// right border
|
|
@@ -761,17 +760,17 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
761
760
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
762
761
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
763
762
|
x1: y + A,
|
|
764
|
-
y1: a +
|
|
763
|
+
y1: a + f,
|
|
765
764
|
x2: y + A,
|
|
766
|
-
y2: a + p -
|
|
765
|
+
y2: a + p - f
|
|
767
766
|
},
|
|
768
767
|
// bottom border
|
|
769
768
|
{
|
|
770
769
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
771
770
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
772
|
-
x1: y -
|
|
771
|
+
x1: y - f,
|
|
773
772
|
y1: a + p,
|
|
774
|
-
x2: y + A +
|
|
773
|
+
x2: y + A + f,
|
|
775
774
|
y2: a + p
|
|
776
775
|
},
|
|
777
776
|
// left border
|
|
@@ -779,26 +778,26 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
779
778
|
strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,
|
|
780
779
|
strokeWidth: this.config.quadrantExternalBorderStrokeWidth,
|
|
781
780
|
x1: y,
|
|
782
|
-
y1: a +
|
|
781
|
+
y1: a + f,
|
|
783
782
|
x2: y,
|
|
784
|
-
y2: a + p -
|
|
783
|
+
y2: a + p - f
|
|
785
784
|
},
|
|
786
785
|
// vertical inner border
|
|
787
786
|
{
|
|
788
787
|
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
789
788
|
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
790
|
-
x1: y +
|
|
791
|
-
y1: a +
|
|
792
|
-
x2: y +
|
|
793
|
-
y2: a + p -
|
|
789
|
+
x1: y + _,
|
|
790
|
+
y1: a + f,
|
|
791
|
+
x2: y + _,
|
|
792
|
+
y2: a + p - f
|
|
794
793
|
},
|
|
795
794
|
// horizontal inner border
|
|
796
795
|
{
|
|
797
796
|
strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,
|
|
798
797
|
strokeWidth: this.config.quadrantInternalBorderStrokeWidth,
|
|
799
|
-
x1: y +
|
|
798
|
+
x1: y + f,
|
|
800
799
|
y1: a + h,
|
|
801
|
-
x2: y + A -
|
|
800
|
+
x2: y + A - f,
|
|
802
801
|
y2: a + h
|
|
803
802
|
}
|
|
804
803
|
];
|
|
@@ -817,24 +816,24 @@ var De = Vt, V = Le(), ht, ze = (ht = class {
|
|
|
817
816
|
};
|
|
818
817
|
}
|
|
819
818
|
build() {
|
|
820
|
-
const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText),
|
|
819
|
+
const n = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText), f = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText), d = this.config.showTitle && !!this.data.titleText, h = this.data.points.length > 0 ? "bottom" : this.config.xAxisPosition, p = this.calculateSpace(h, n, f, d);
|
|
821
820
|
return {
|
|
822
821
|
points: this.getQuadrantPoints(p),
|
|
823
822
|
quadrants: this.getQuadrants(p),
|
|
824
|
-
axisLabels: this.getAxisLabels(h, n,
|
|
823
|
+
axisLabels: this.getAxisLabels(h, n, f, p),
|
|
825
824
|
borderLines: this.getBorders(p),
|
|
826
|
-
title: this.getTitle(
|
|
825
|
+
title: this.getTitle(d)
|
|
827
826
|
};
|
|
828
827
|
}
|
|
829
|
-
}, o(
|
|
830
|
-
constructor(n,
|
|
831
|
-
super(`value for ${n} ${
|
|
828
|
+
}, o(ot, "QuadrantBuilder"), ot), lt, mt = (lt = class extends Error {
|
|
829
|
+
constructor(n, f, d) {
|
|
830
|
+
super(`value for ${n} ${f} is invalid, please use a valid ${d}`), this.name = "InvalidStyleError";
|
|
832
831
|
}
|
|
833
|
-
}, o(
|
|
834
|
-
function
|
|
832
|
+
}, o(lt, "InvalidStyleError"), lt);
|
|
833
|
+
function Dt(t) {
|
|
835
834
|
return !/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t);
|
|
836
835
|
}
|
|
837
|
-
o(
|
|
836
|
+
o(Dt, "validateHexCode");
|
|
838
837
|
function ae(t) {
|
|
839
838
|
return !/^\d+$/.test(t);
|
|
840
839
|
}
|
|
@@ -843,7 +842,7 @@ function ne(t) {
|
|
|
843
842
|
return !/^\d+px$/.test(t);
|
|
844
843
|
}
|
|
845
844
|
o(ne, "validateSizeInPixels");
|
|
846
|
-
var Ve =
|
|
845
|
+
var Ve = zt();
|
|
847
846
|
function Q(t) {
|
|
848
847
|
return Ee(t.trim(), Ve);
|
|
849
848
|
}
|
|
@@ -881,38 +880,38 @@ function ue(t) {
|
|
|
881
880
|
z.setData({ yAxisBottomText: Q(t.text) });
|
|
882
881
|
}
|
|
883
882
|
o(ue, "setYAxisBottomText");
|
|
884
|
-
function
|
|
883
|
+
function St(t) {
|
|
885
884
|
const n = {};
|
|
886
|
-
for (const
|
|
887
|
-
const [
|
|
888
|
-
if (
|
|
885
|
+
for (const f of t) {
|
|
886
|
+
const [d, h] = f.trim().split(/\s*:\s*/);
|
|
887
|
+
if (d === "radius") {
|
|
889
888
|
if (ae(h))
|
|
890
|
-
throw new
|
|
889
|
+
throw new mt(d, h, "number");
|
|
891
890
|
n.radius = parseInt(h);
|
|
892
|
-
} else if (
|
|
893
|
-
if (
|
|
894
|
-
throw new
|
|
891
|
+
} else if (d === "color") {
|
|
892
|
+
if (Dt(h))
|
|
893
|
+
throw new mt(d, h, "hex code");
|
|
895
894
|
n.color = h;
|
|
896
|
-
} else if (
|
|
897
|
-
if (
|
|
898
|
-
throw new
|
|
895
|
+
} else if (d === "stroke-color") {
|
|
896
|
+
if (Dt(h))
|
|
897
|
+
throw new mt(d, h, "hex code");
|
|
899
898
|
n.strokeColor = h;
|
|
900
|
-
} else if (
|
|
899
|
+
} else if (d === "stroke-width") {
|
|
901
900
|
if (ne(h))
|
|
902
|
-
throw new
|
|
901
|
+
throw new mt(d, h, "number of pixels (eg. 10px)");
|
|
903
902
|
n.strokeWidth = h;
|
|
904
903
|
} else
|
|
905
|
-
throw new Error(`style named ${
|
|
904
|
+
throw new Error(`style named ${d} is not supported.`);
|
|
906
905
|
}
|
|
907
906
|
return n;
|
|
908
907
|
}
|
|
909
|
-
o(
|
|
910
|
-
function xe(t, n,
|
|
911
|
-
const p =
|
|
908
|
+
o(St, "parseStyles");
|
|
909
|
+
function xe(t, n, f, d, h) {
|
|
910
|
+
const p = St(h);
|
|
912
911
|
z.addPoints([
|
|
913
912
|
{
|
|
914
|
-
x:
|
|
915
|
-
y:
|
|
913
|
+
x: f,
|
|
914
|
+
y: d,
|
|
916
915
|
text: Q(t.text),
|
|
917
916
|
className: n,
|
|
918
917
|
...p
|
|
@@ -921,7 +920,7 @@ function xe(t, n, u, c, h) {
|
|
|
921
920
|
}
|
|
922
921
|
o(xe, "addPoint");
|
|
923
922
|
function fe(t, n) {
|
|
924
|
-
z.addClass(t,
|
|
923
|
+
z.addClass(t, St(n));
|
|
925
924
|
}
|
|
926
925
|
o(fe, "addClass");
|
|
927
926
|
function ge(t) {
|
|
@@ -933,8 +932,8 @@ function pe(t) {
|
|
|
933
932
|
}
|
|
934
933
|
o(pe, "setHeight");
|
|
935
934
|
function ye() {
|
|
936
|
-
const t =
|
|
937
|
-
return
|
|
935
|
+
const t = zt(), { themeVariables: n, quadrantChart: f } = t;
|
|
936
|
+
return f && z.setConfig(f), z.setThemeConfig({
|
|
938
937
|
quadrant1Fill: n.quadrant1Fill,
|
|
939
938
|
quadrant2Fill: n.quadrant2Fill,
|
|
940
939
|
quadrant3Fill: n.quadrant3Fill,
|
|
@@ -966,7 +965,7 @@ var Ie = /* @__PURE__ */ o(function() {
|
|
|
966
965
|
setXAxisRightText: ce,
|
|
967
966
|
setYAxisTopText: de,
|
|
968
967
|
setYAxisBottomText: ue,
|
|
969
|
-
parseStyles:
|
|
968
|
+
parseStyles: St,
|
|
970
969
|
addPoint: xe,
|
|
971
970
|
addClass: fe,
|
|
972
971
|
getQuadrantData: ye,
|
|
@@ -977,8 +976,7 @@ var Ie = /* @__PURE__ */ o(function() {
|
|
|
977
976
|
getDiagramTitle: ie,
|
|
978
977
|
getAccDescription: Ae,
|
|
979
978
|
setAccDescription: _e
|
|
980
|
-
}, Be = /* @__PURE__ */ o((t, n,
|
|
981
|
-
var xt, ft, gt;
|
|
979
|
+
}, Be = /* @__PURE__ */ o((t, n, f, d) => {
|
|
982
980
|
function h(i) {
|
|
983
981
|
return i === "top" ? "hanging" : "middle";
|
|
984
982
|
}
|
|
@@ -991,23 +989,23 @@ var Ie = /* @__PURE__ */ o(function() {
|
|
|
991
989
|
return `translate(${i.x}, ${i.y}) rotate(${i.rotation || 0})`;
|
|
992
990
|
}
|
|
993
991
|
o(y, "getTransformation");
|
|
994
|
-
const
|
|
995
|
-
|
|
992
|
+
const _ = zt();
|
|
993
|
+
bt.debug(`Rendering quadrant chart
|
|
996
994
|
` + t);
|
|
997
|
-
const a =
|
|
995
|
+
const a = _.securityLevel;
|
|
998
996
|
let A;
|
|
999
|
-
a === "sandbox" && (A =
|
|
1000
|
-
const T = (a === "sandbox" ?
|
|
1001
|
-
ve(T, b, m,
|
|
1002
|
-
const
|
|
1003
|
-
|
|
1004
|
-
const
|
|
1005
|
-
|
|
997
|
+
a === "sandbox" && (A = Lt("#i" + n));
|
|
998
|
+
const T = (a === "sandbox" ? Lt(A.nodes()[0].contentDocument.body) : Lt("body")).select(`[id="${n}"]`), q = T.append("g").attr("class", "main"), m = _.quadrantChart?.chartWidth ?? 500, b = _.quadrantChart?.chartHeight ?? 500;
|
|
999
|
+
ve(T, b, m, _.quadrantChart?.useMaxWidth ?? !0), T.attr("viewBox", "0 0 " + m + " " + b), d.db.setHeight(b), d.db.setWidth(m);
|
|
1000
|
+
const g = d.db.getQuadrantData(), G = q.append("g").attr("class", "quadrants"), ht = q.append("g").attr("class", "border"), xt = q.append("g").attr("class", "data-points"), ft = q.append("g").attr("class", "labels"), gt = q.append("g").attr("class", "title");
|
|
1001
|
+
g.title && gt.append("text").attr("x", 0).attr("y", 0).attr("fill", g.title.fill).attr("font-size", g.title.fontSize).attr("dominant-baseline", h(g.title.horizontalPos)).attr("text-anchor", p(g.title.verticalPos)).attr("transform", y(g.title)).text(g.title.text), g.borderLines && ht.selectAll("line").data(g.borderLines).enter().append("line").attr("x1", (i) => i.x1).attr("y1", (i) => i.y1).attr("x2", (i) => i.x2).attr("y2", (i) => i.y2).style("stroke", (i) => i.strokeFill).style("stroke-width", (i) => i.strokeWidth);
|
|
1002
|
+
const ct = G.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class", "quadrant");
|
|
1003
|
+
ct.append("rect").attr("x", (i) => i.x).attr("y", (i) => i.y).attr("width", (i) => i.width).attr("height", (i) => i.height).attr("fill", (i) => i.fill), ct.append("text").attr("x", 0).attr("y", 0).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
|
|
1006
1004
|
"dominant-baseline",
|
|
1007
1005
|
(i) => h(i.text.horizontalPos)
|
|
1008
|
-
).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text),
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1006
|
+
).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text)).text((i) => i.text.text), ft.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class", "label").append("text").attr("x", 0).attr("y", 0).text((i) => i.text).attr("fill", (i) => i.fill).attr("font-size", (i) => i.fontSize).attr("dominant-baseline", (i) => h(i.horizontalPos)).attr("text-anchor", (i) => p(i.verticalPos)).attr("transform", (i) => y(i));
|
|
1007
|
+
const dt = xt.selectAll("g.data-point").data(g.points).enter().append("g").attr("class", "data-point");
|
|
1008
|
+
dt.append("circle").attr("cx", (i) => i.x).attr("cy", (i) => i.y).attr("r", (i) => i.radius).attr("fill", (i) => i.fill).attr("stroke", (i) => i.strokeColor).attr("stroke-width", (i) => i.strokeWidth), dt.append("text").attr("x", 0).attr("y", 0).text((i) => i.text.text).attr("fill", (i) => i.text.fill).attr("font-size", (i) => i.text.fontSize).attr(
|
|
1011
1009
|
"dominant-baseline",
|
|
1012
1010
|
(i) => h(i.text.horizontalPos)
|
|
1013
1011
|
).attr("text-anchor", (i) => p(i.text.verticalPos)).attr("transform", (i) => y(i.text));
|