@nxgt/material 1.13.0 → 1.16.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/README.md +4 -0
- package/dist/abnfDiagram-O67JEVCF-mm89LXw2.js +89 -0
- package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
- package/dist/architectureDiagram-NJMV4G6O-CGoA5SIv.js +4146 -0
- package/dist/array-CApNbSU9.js +6 -0
- package/dist/blockDiagram-BEXU5L5S-Dq8gitB4.js +1946 -0
- package/dist/c4Diagram-YGBWAQC7-DO_alqIu.js +2990 -0
- package/dist/channel-1fT-W0NS.js +5 -0
- package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
- package/dist/chunk-3FUC2YCW-C3yD2fMw.js +364 -0
- package/dist/chunk-5DYCD2WN-Dn2jrYde.js +37 -0
- package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
- package/dist/chunk-6AEJRKK7-JyfUnUEu.js +10 -0
- package/dist/chunk-742MDFTN-BbWkrtj2.js +275 -0
- package/dist/chunk-7INBJB4K-C3x7JNTG.js +4487 -0
- package/dist/chunk-7M6MHVWA-Cc7UTu4b.js +4256 -0
- package/dist/chunk-7PRAP22T-C8rsGRvH.js +67 -0
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
- package/dist/chunk-GNY47TPC-d-Bi8r0p.js +75 -0
- package/dist/chunk-GTNCS2PH-CTS015lZ.js +490 -0
- package/dist/chunk-GWA4HPMP-B4pgM-E1.js +61 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
- package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
- package/dist/chunk-MBY4JIJT-Dg6AeftH.js +1847 -0
- package/dist/chunk-NETBCI7D-TXZM0vKz.js +236 -0
- package/dist/chunk-O7XYJQB3-md6vjVm4.js +3922 -0
- package/dist/chunk-UA2S7LBM-DQTYPe9y.js +363 -0
- package/dist/chunk-WEXAMYUT-DmKWJz6y.js +26 -0
- package/dist/chunk-XXDRQBXY-C9XIYQdM.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/chunk-Z7XXMR3K-BoDf6lxl.js +677 -0
- package/dist/chunk-ZIGJFQKS-CP5430fN.js +663 -0
- package/dist/classDiagram-v2-NBCMYWYE-6KoTmufe.js +3397 -0
- package/dist/components.js +3 -3
- package/dist/cose-bilkent-JH36ORCC-CejnZl_t.js +2251 -0
- package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
- package/dist/cynefinDiagram-VND7K2PF-DZnc0dlm.js +349 -0
- package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
- package/dist/dagre-6A5THRUB-cuS57NO5.js +2192 -0
- package/dist/diagram-22UHCM2B-zQSFmH0t.js +5084 -0
- package/dist/diagram-3UASUU5V-D45Fgu1j.js +724 -0
- package/dist/diagram-ATOU4E4O-YMtQnlqd.js +432 -0
- package/dist/diagram-CDSNMT55-DP7UmEW1.js +301 -0
- package/dist/diagram-MLGK6HIB-WvSqrTRC.js +134 -0
- package/dist/diagram-MPIPVDR6-C2F3__mt.js +214 -0
- package/dist/dist-1DdJvBEt.js +50 -0
- package/dist/{dist-BGGDEbJ3.js → dist-DppLdkXt.js} +2 -2
- package/dist/dnd.js +2 -2
- package/dist/ebnfDiagram-ZINNZB2B-BZC6cSiy.js +100 -0
- package/dist/elk-276RUBZZ-7DJf1MEV.js +47598 -0
- package/dist/erDiagram-OPXOYQCR-YKlEVEF0.js +1970 -0
- package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
- package/dist/flowDiagram-KWPJA3E3-DyLvzIlg.js +17 -0
- package/dist/ganttDiagram-FUAMR5RP-KIaOrYOF.js +2928 -0
- package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
- package/dist/gitGraphDiagram-X574FWY7-DpFW-7JE.js +729 -0
- package/dist/graphlib-DFaO_iIU.js +372 -0
- package/dist/{hooks-DReKyuyc.js → hooks-C5xy0u03.js} +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{i18n-DtDrodl8.js → i18n-Cech9IAc.js} +314 -841
- package/dist/i18n.js +1 -1
- package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
- package/dist/infoDiagram-VRGFBTTK-H3F-BCnu.js +20 -0
- package/dist/init-Buj1GKRa.js +27 -0
- package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DgQDmcF3.js +719 -0
- package/dist/journeyDiagram-ZHPQQLJL-CanDOlfn.js +884 -0
- package/dist/kanban-definition-PNTS6WVX-DmnUgxgb.js +976 -0
- package/dist/katex-BMQ6LGsM.js +21962 -0
- package/dist/lib/components/index.d.ts +4 -0
- package/dist/lib/components/ui/chat/chat-composer-mentions.d.ts +8 -0
- package/dist/lib/components/ui/chat/chat-composer.d.ts +5 -1
- package/dist/lib/components/ui/chat/chat-markdown.d.ts +2 -2
- package/dist/lib/components/ui/emoji/emoji-list.d.ts +5 -0
- package/dist/lib/components/ui/emoji/emoji-picker.d.ts +7 -0
- package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
- package/dist/lib/components/ui/emoji/emoji.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/emoji/index.d.ts +4 -0
- package/dist/lib/components/ui/emoji/types.d.ts +6 -0
- package/dist/lib/components/ui/entity-header.stories.d.ts +1 -0
- package/dist/lib/components/ui/kanban/kanban.stories.d.ts +1 -0
- package/dist/lib/components/ui/markdown/index.d.ts +3 -0
- package/dist/lib/components/ui/markdown/markdown.d.ts +7 -0
- package/dist/lib/components/ui/markdown/markdown.stories.d.ts +14 -0
- package/dist/lib/components/ui/markdown/markdown.test.d.ts +1 -0
- package/dist/lib/components/ui/markdown/markdown.utils.d.ts +1 -0
- package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
- package/dist/lib/components/ui/markdown/partials/markdown-code.d.ts +2 -0
- package/dist/lib/components/ui/markdown/partials/mermaid-diagram.d.ts +4 -0
- package/dist/lib/components/ui/mentions/index.d.ts +3 -0
- package/dist/lib/components/ui/mentions/mention-list.d.ts +8 -0
- package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
- package/dist/lib/components/ui/mentions/mentions.utils.test.d.ts +1 -0
- package/dist/lib/components/ui/mentions/types.d.ts +7 -0
- package/dist/lib/components/ui/rich-text-editor/extensions/mention/mention-list.d.ts +12 -1
- package/dist/lib/components/ui/terminal/index.d.ts +2 -0
- package/dist/lib/components/ui/terminal/terminal.d.ts +11 -0
- package/dist/lib/components/ui/terminal/terminal.stories.d.ts +14 -0
- package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
- package/dist/lib/components/ui/terminal/terminal.utils.test.d.ts +1 -0
- package/dist/lib/i18n/resources/en/index.d.ts +7 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
- package/dist/lib/i18n/resources/index.d.ts +14 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/{lib-CD3tyuc8.js → lib-Bbw5QPoj.js} +472 -471
- package/dist/lib.js +2 -2
- package/dist/{main-r84Yresa.js → main-BjDU9FDM.js} +59393 -30376
- package/dist/main.js +6 -6
- package/dist/material.css +1 -1
- package/dist/math-C5EhTgJw.js +10 -0
- package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
- package/dist/mermaid.core-BI1sunfX.js +1096 -0
- package/dist/mindmap-definition-NLK3R4M7-DW0BIU_q.js +1008 -0
- package/dist/ordinal-DuP05kVQ.js +65 -0
- package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
- package/dist/path-Cjou0lUh.js +85 -0
- package/dist/pegDiagram-GJSIUBJH-CJIx0u4M.js +94 -0
- package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
- package/dist/pieDiagram-5QR66LMP-zAhv5fKz.js +157 -0
- package/dist/quadrantDiagram-O4NWA36T-CO4n_yQo.js +2001 -0
- package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
- package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
- package/dist/railroadDiagram-XR7U4H2S-B8iV7mfe.js +76 -0
- package/dist/requirementDiagram-PLB6GJNP-CGoX1NrW.js +2228 -0
- package/dist/rough.esm-rcMoXTJj.js +1352 -0
- package/dist/sankeyDiagram-IPEJSGJF-DdSM2wiI.js +962 -0
- package/dist/sequenceDiagram-PO4LG4MO-CCRqF5XO.js +4200 -0
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/src-B4npqWNl.js +1775 -0
- package/dist/stateDiagram-v2-GCMORJYK-CQTX5ks8.js +2143 -0
- package/dist/step-B6KjpKgN.js +706 -0
- package/dist/string-B-ZWXCs2.js +392 -0
- package/dist/swimlanes-2SLR337P-C2NNOb5n.js +4763 -0
- package/dist/swimlanesDiagram-TC7HE7FX-CPsqPrbP.js +28 -0
- package/dist/timeline-definition-EJHVYXUP-DuxGHv-N.js +1073 -0
- package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
- package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
- package/dist/usecaseDiagram-POWQR4AR-cuAeIBW3.js +9932 -0
- package/dist/vennDiagram-UO4OBE2U-DLwBSAnC.js +1880 -0
- package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
- package/dist/wardleyDiagram-VNRHLVJA-D7IZU6vu.js +645 -0
- package/dist/xychartDiagram-PMCCYNJV-BDOFv_xK.js +2167 -0
- package/package.json +7 -1
|
@@ -0,0 +1,706 @@
|
|
|
1
|
+
import "./math-C5EhTgJw.js";
|
|
2
|
+
//#region node_modules/d3-shape/src/curve/linear.js
|
|
3
|
+
function e(e) {
|
|
4
|
+
this._context = e;
|
|
5
|
+
}
|
|
6
|
+
e.prototype = {
|
|
7
|
+
areaStart: function() {
|
|
8
|
+
this._line = 0;
|
|
9
|
+
},
|
|
10
|
+
areaEnd: function() {
|
|
11
|
+
this._line = NaN;
|
|
12
|
+
},
|
|
13
|
+
lineStart: function() {
|
|
14
|
+
this._point = 0;
|
|
15
|
+
},
|
|
16
|
+
lineEnd: function() {
|
|
17
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
18
|
+
},
|
|
19
|
+
point: function(e, t) {
|
|
20
|
+
switch (e = +e, t = +t, this._point) {
|
|
21
|
+
case 0:
|
|
22
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
23
|
+
break;
|
|
24
|
+
case 1: this._point = 2;
|
|
25
|
+
default:
|
|
26
|
+
this._context.lineTo(e, t);
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function t(t) {
|
|
32
|
+
return new e(t);
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region node_modules/d3-shape/src/noop.js
|
|
36
|
+
function n() {}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region node_modules/d3-shape/src/curve/basis.js
|
|
39
|
+
function r(e, t, n) {
|
|
40
|
+
e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
|
|
41
|
+
}
|
|
42
|
+
function i(e) {
|
|
43
|
+
this._context = e;
|
|
44
|
+
}
|
|
45
|
+
i.prototype = {
|
|
46
|
+
areaStart: function() {
|
|
47
|
+
this._line = 0;
|
|
48
|
+
},
|
|
49
|
+
areaEnd: function() {
|
|
50
|
+
this._line = NaN;
|
|
51
|
+
},
|
|
52
|
+
lineStart: function() {
|
|
53
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
54
|
+
},
|
|
55
|
+
lineEnd: function() {
|
|
56
|
+
switch (this._point) {
|
|
57
|
+
case 3: r(this, this._x1, this._y1);
|
|
58
|
+
case 2:
|
|
59
|
+
this._context.lineTo(this._x1, this._y1);
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
63
|
+
},
|
|
64
|
+
point: function(e, t) {
|
|
65
|
+
switch (e = +e, t = +t, this._point) {
|
|
66
|
+
case 0:
|
|
67
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
68
|
+
break;
|
|
69
|
+
case 1:
|
|
70
|
+
this._point = 2;
|
|
71
|
+
break;
|
|
72
|
+
case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
73
|
+
default:
|
|
74
|
+
r(this, e, t);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
function a(e) {
|
|
81
|
+
return new i(e);
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region node_modules/d3-shape/src/curve/basisClosed.js
|
|
85
|
+
function o(e) {
|
|
86
|
+
this._context = e;
|
|
87
|
+
}
|
|
88
|
+
o.prototype = {
|
|
89
|
+
areaStart: n,
|
|
90
|
+
areaEnd: n,
|
|
91
|
+
lineStart: function() {
|
|
92
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
93
|
+
},
|
|
94
|
+
lineEnd: function() {
|
|
95
|
+
switch (this._point) {
|
|
96
|
+
case 1:
|
|
97
|
+
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
98
|
+
break;
|
|
99
|
+
case 2:
|
|
100
|
+
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
|
|
101
|
+
break;
|
|
102
|
+
case 3:
|
|
103
|
+
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
point: function(e, t) {
|
|
108
|
+
switch (e = +e, t = +t, this._point) {
|
|
109
|
+
case 0:
|
|
110
|
+
this._point = 1, this._x2 = e, this._y2 = t;
|
|
111
|
+
break;
|
|
112
|
+
case 1:
|
|
113
|
+
this._point = 2, this._x3 = e, this._y3 = t;
|
|
114
|
+
break;
|
|
115
|
+
case 2:
|
|
116
|
+
this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
|
|
117
|
+
break;
|
|
118
|
+
default:
|
|
119
|
+
r(this, e, t);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
function s(e) {
|
|
126
|
+
return new o(e);
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region node_modules/d3-shape/src/curve/basisOpen.js
|
|
130
|
+
function c(e) {
|
|
131
|
+
this._context = e;
|
|
132
|
+
}
|
|
133
|
+
c.prototype = {
|
|
134
|
+
areaStart: function() {
|
|
135
|
+
this._line = 0;
|
|
136
|
+
},
|
|
137
|
+
areaEnd: function() {
|
|
138
|
+
this._line = NaN;
|
|
139
|
+
},
|
|
140
|
+
lineStart: function() {
|
|
141
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
142
|
+
},
|
|
143
|
+
lineEnd: function() {
|
|
144
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
145
|
+
},
|
|
146
|
+
point: function(e, t) {
|
|
147
|
+
switch (e = +e, t = +t, this._point) {
|
|
148
|
+
case 0:
|
|
149
|
+
this._point = 1;
|
|
150
|
+
break;
|
|
151
|
+
case 1:
|
|
152
|
+
this._point = 2;
|
|
153
|
+
break;
|
|
154
|
+
case 2:
|
|
155
|
+
this._point = 3;
|
|
156
|
+
var n = (this._x0 + 4 * this._x1 + e) / 6, i = (this._y0 + 4 * this._y1 + t) / 6;
|
|
157
|
+
this._line ? this._context.lineTo(n, i) : this._context.moveTo(n, i);
|
|
158
|
+
break;
|
|
159
|
+
case 3: this._point = 4;
|
|
160
|
+
default:
|
|
161
|
+
r(this, e, t);
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
function l(e) {
|
|
168
|
+
return new c(e);
|
|
169
|
+
}
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region node_modules/d3-shape/src/curve/bundle.js
|
|
172
|
+
function u(e, t) {
|
|
173
|
+
this._basis = new i(e), this._beta = t;
|
|
174
|
+
}
|
|
175
|
+
u.prototype = {
|
|
176
|
+
lineStart: function() {
|
|
177
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
178
|
+
},
|
|
179
|
+
lineEnd: function() {
|
|
180
|
+
var e = this._x, t = this._y, n = e.length - 1;
|
|
181
|
+
if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
|
|
182
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
183
|
+
},
|
|
184
|
+
point: function(e, t) {
|
|
185
|
+
this._x.push(+e), this._y.push(+t);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
var d = (function e(t) {
|
|
189
|
+
function n(e) {
|
|
190
|
+
return t === 1 ? new i(e) : new u(e, t);
|
|
191
|
+
}
|
|
192
|
+
return n.beta = function(t) {
|
|
193
|
+
return e(+t);
|
|
194
|
+
}, n;
|
|
195
|
+
})(.85);
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region node_modules/d3-shape/src/curve/cardinal.js
|
|
198
|
+
function f(e, t, n) {
|
|
199
|
+
e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
|
|
200
|
+
}
|
|
201
|
+
function p(e, t) {
|
|
202
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
203
|
+
}
|
|
204
|
+
p.prototype = {
|
|
205
|
+
areaStart: function() {
|
|
206
|
+
this._line = 0;
|
|
207
|
+
},
|
|
208
|
+
areaEnd: function() {
|
|
209
|
+
this._line = NaN;
|
|
210
|
+
},
|
|
211
|
+
lineStart: function() {
|
|
212
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
213
|
+
},
|
|
214
|
+
lineEnd: function() {
|
|
215
|
+
switch (this._point) {
|
|
216
|
+
case 2:
|
|
217
|
+
this._context.lineTo(this._x2, this._y2);
|
|
218
|
+
break;
|
|
219
|
+
case 3:
|
|
220
|
+
f(this, this._x1, this._y1);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
224
|
+
},
|
|
225
|
+
point: function(e, t) {
|
|
226
|
+
switch (e = +e, t = +t, this._point) {
|
|
227
|
+
case 0:
|
|
228
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
229
|
+
break;
|
|
230
|
+
case 1:
|
|
231
|
+
this._point = 2, this._x1 = e, this._y1 = t;
|
|
232
|
+
break;
|
|
233
|
+
case 2: this._point = 3;
|
|
234
|
+
default:
|
|
235
|
+
f(this, e, t);
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
var m = (function e(t) {
|
|
242
|
+
function n(e) {
|
|
243
|
+
return new p(e, t);
|
|
244
|
+
}
|
|
245
|
+
return n.tension = function(t) {
|
|
246
|
+
return e(+t);
|
|
247
|
+
}, n;
|
|
248
|
+
})(0);
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region node_modules/d3-shape/src/curve/cardinalClosed.js
|
|
251
|
+
function h(e, t) {
|
|
252
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
253
|
+
}
|
|
254
|
+
h.prototype = {
|
|
255
|
+
areaStart: n,
|
|
256
|
+
areaEnd: n,
|
|
257
|
+
lineStart: function() {
|
|
258
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
259
|
+
},
|
|
260
|
+
lineEnd: function() {
|
|
261
|
+
switch (this._point) {
|
|
262
|
+
case 1:
|
|
263
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
264
|
+
break;
|
|
265
|
+
case 2:
|
|
266
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
267
|
+
break;
|
|
268
|
+
case 3:
|
|
269
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
270
|
+
break;
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
point: function(e, t) {
|
|
274
|
+
switch (e = +e, t = +t, this._point) {
|
|
275
|
+
case 0:
|
|
276
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
277
|
+
break;
|
|
278
|
+
case 1:
|
|
279
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
280
|
+
break;
|
|
281
|
+
case 2:
|
|
282
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
283
|
+
break;
|
|
284
|
+
default:
|
|
285
|
+
f(this, e, t);
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
var g = (function e(t) {
|
|
292
|
+
function n(e) {
|
|
293
|
+
return new h(e, t);
|
|
294
|
+
}
|
|
295
|
+
return n.tension = function(t) {
|
|
296
|
+
return e(+t);
|
|
297
|
+
}, n;
|
|
298
|
+
})(0);
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region node_modules/d3-shape/src/curve/cardinalOpen.js
|
|
301
|
+
function _(e, t) {
|
|
302
|
+
this._context = e, this._k = (1 - t) / 6;
|
|
303
|
+
}
|
|
304
|
+
_.prototype = {
|
|
305
|
+
areaStart: function() {
|
|
306
|
+
this._line = 0;
|
|
307
|
+
},
|
|
308
|
+
areaEnd: function() {
|
|
309
|
+
this._line = NaN;
|
|
310
|
+
},
|
|
311
|
+
lineStart: function() {
|
|
312
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
313
|
+
},
|
|
314
|
+
lineEnd: function() {
|
|
315
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
316
|
+
},
|
|
317
|
+
point: function(e, t) {
|
|
318
|
+
switch (e = +e, t = +t, this._point) {
|
|
319
|
+
case 0:
|
|
320
|
+
this._point = 1;
|
|
321
|
+
break;
|
|
322
|
+
case 1:
|
|
323
|
+
this._point = 2;
|
|
324
|
+
break;
|
|
325
|
+
case 2:
|
|
326
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
327
|
+
break;
|
|
328
|
+
case 3: this._point = 4;
|
|
329
|
+
default:
|
|
330
|
+
f(this, e, t);
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
var v = (function e(t) {
|
|
337
|
+
function n(e) {
|
|
338
|
+
return new _(e, t);
|
|
339
|
+
}
|
|
340
|
+
return n.tension = function(t) {
|
|
341
|
+
return e(+t);
|
|
342
|
+
}, n;
|
|
343
|
+
})(0);
|
|
344
|
+
//#endregion
|
|
345
|
+
//#region node_modules/d3-shape/src/curve/catmullRom.js
|
|
346
|
+
function y(e, t, n) {
|
|
347
|
+
var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
|
|
348
|
+
if (e._l01_a > 1e-12) {
|
|
349
|
+
var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
|
|
350
|
+
r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
|
|
351
|
+
}
|
|
352
|
+
if (e._l23_a > 1e-12) {
|
|
353
|
+
var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
|
|
354
|
+
a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
|
|
355
|
+
}
|
|
356
|
+
e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
|
|
357
|
+
}
|
|
358
|
+
function b(e, t) {
|
|
359
|
+
this._context = e, this._alpha = t;
|
|
360
|
+
}
|
|
361
|
+
b.prototype = {
|
|
362
|
+
areaStart: function() {
|
|
363
|
+
this._line = 0;
|
|
364
|
+
},
|
|
365
|
+
areaEnd: function() {
|
|
366
|
+
this._line = NaN;
|
|
367
|
+
},
|
|
368
|
+
lineStart: function() {
|
|
369
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
370
|
+
},
|
|
371
|
+
lineEnd: function() {
|
|
372
|
+
switch (this._point) {
|
|
373
|
+
case 2:
|
|
374
|
+
this._context.lineTo(this._x2, this._y2);
|
|
375
|
+
break;
|
|
376
|
+
case 3:
|
|
377
|
+
this.point(this._x2, this._y2);
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
381
|
+
},
|
|
382
|
+
point: function(e, t) {
|
|
383
|
+
if (e = +e, t = +t, this._point) {
|
|
384
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
385
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
386
|
+
}
|
|
387
|
+
switch (this._point) {
|
|
388
|
+
case 0:
|
|
389
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
390
|
+
break;
|
|
391
|
+
case 1:
|
|
392
|
+
this._point = 2;
|
|
393
|
+
break;
|
|
394
|
+
case 2: this._point = 3;
|
|
395
|
+
default:
|
|
396
|
+
y(this, e, t);
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
var x = (function e(t) {
|
|
403
|
+
function n(e) {
|
|
404
|
+
return t ? new b(e, t) : new p(e, 0);
|
|
405
|
+
}
|
|
406
|
+
return n.alpha = function(t) {
|
|
407
|
+
return e(+t);
|
|
408
|
+
}, n;
|
|
409
|
+
})(.5);
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region node_modules/d3-shape/src/curve/catmullRomClosed.js
|
|
412
|
+
function S(e, t) {
|
|
413
|
+
this._context = e, this._alpha = t;
|
|
414
|
+
}
|
|
415
|
+
S.prototype = {
|
|
416
|
+
areaStart: n,
|
|
417
|
+
areaEnd: n,
|
|
418
|
+
lineStart: function() {
|
|
419
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
420
|
+
},
|
|
421
|
+
lineEnd: function() {
|
|
422
|
+
switch (this._point) {
|
|
423
|
+
case 1:
|
|
424
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
425
|
+
break;
|
|
426
|
+
case 2:
|
|
427
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
428
|
+
break;
|
|
429
|
+
case 3:
|
|
430
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
point: function(e, t) {
|
|
435
|
+
if (e = +e, t = +t, this._point) {
|
|
436
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
437
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
438
|
+
}
|
|
439
|
+
switch (this._point) {
|
|
440
|
+
case 0:
|
|
441
|
+
this._point = 1, this._x3 = e, this._y3 = t;
|
|
442
|
+
break;
|
|
443
|
+
case 1:
|
|
444
|
+
this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
|
|
445
|
+
break;
|
|
446
|
+
case 2:
|
|
447
|
+
this._point = 3, this._x5 = e, this._y5 = t;
|
|
448
|
+
break;
|
|
449
|
+
default:
|
|
450
|
+
y(this, e, t);
|
|
451
|
+
break;
|
|
452
|
+
}
|
|
453
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
var C = (function e(t) {
|
|
457
|
+
function n(e) {
|
|
458
|
+
return t ? new S(e, t) : new h(e, 0);
|
|
459
|
+
}
|
|
460
|
+
return n.alpha = function(t) {
|
|
461
|
+
return e(+t);
|
|
462
|
+
}, n;
|
|
463
|
+
})(.5);
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region node_modules/d3-shape/src/curve/catmullRomOpen.js
|
|
466
|
+
function w(e, t) {
|
|
467
|
+
this._context = e, this._alpha = t;
|
|
468
|
+
}
|
|
469
|
+
w.prototype = {
|
|
470
|
+
areaStart: function() {
|
|
471
|
+
this._line = 0;
|
|
472
|
+
},
|
|
473
|
+
areaEnd: function() {
|
|
474
|
+
this._line = NaN;
|
|
475
|
+
},
|
|
476
|
+
lineStart: function() {
|
|
477
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
478
|
+
},
|
|
479
|
+
lineEnd: function() {
|
|
480
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
481
|
+
},
|
|
482
|
+
point: function(e, t) {
|
|
483
|
+
if (e = +e, t = +t, this._point) {
|
|
484
|
+
var n = this._x2 - e, r = this._y2 - t;
|
|
485
|
+
this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
|
|
486
|
+
}
|
|
487
|
+
switch (this._point) {
|
|
488
|
+
case 0:
|
|
489
|
+
this._point = 1;
|
|
490
|
+
break;
|
|
491
|
+
case 1:
|
|
492
|
+
this._point = 2;
|
|
493
|
+
break;
|
|
494
|
+
case 2:
|
|
495
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
496
|
+
break;
|
|
497
|
+
case 3: this._point = 4;
|
|
498
|
+
default:
|
|
499
|
+
y(this, e, t);
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
var T = (function e(t) {
|
|
506
|
+
function n(e) {
|
|
507
|
+
return t ? new w(e, t) : new _(e, 0);
|
|
508
|
+
}
|
|
509
|
+
return n.alpha = function(t) {
|
|
510
|
+
return e(+t);
|
|
511
|
+
}, n;
|
|
512
|
+
})(.5);
|
|
513
|
+
//#endregion
|
|
514
|
+
//#region node_modules/d3-shape/src/curve/linearClosed.js
|
|
515
|
+
function E(e) {
|
|
516
|
+
this._context = e;
|
|
517
|
+
}
|
|
518
|
+
E.prototype = {
|
|
519
|
+
areaStart: n,
|
|
520
|
+
areaEnd: n,
|
|
521
|
+
lineStart: function() {
|
|
522
|
+
this._point = 0;
|
|
523
|
+
},
|
|
524
|
+
lineEnd: function() {
|
|
525
|
+
this._point && this._context.closePath();
|
|
526
|
+
},
|
|
527
|
+
point: function(e, t) {
|
|
528
|
+
e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
function D(e) {
|
|
532
|
+
return new E(e);
|
|
533
|
+
}
|
|
534
|
+
//#endregion
|
|
535
|
+
//#region node_modules/d3-shape/src/curve/monotone.js
|
|
536
|
+
function O(e) {
|
|
537
|
+
return e < 0 ? -1 : 1;
|
|
538
|
+
}
|
|
539
|
+
function k(e, t, n) {
|
|
540
|
+
var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
|
|
541
|
+
return (O(a) + O(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
|
|
542
|
+
}
|
|
543
|
+
function A(e, t) {
|
|
544
|
+
var n = e._x1 - e._x0;
|
|
545
|
+
return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
|
|
546
|
+
}
|
|
547
|
+
function j(e, t, n) {
|
|
548
|
+
var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
|
|
549
|
+
e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
|
|
550
|
+
}
|
|
551
|
+
function M(e) {
|
|
552
|
+
this._context = e;
|
|
553
|
+
}
|
|
554
|
+
M.prototype = {
|
|
555
|
+
areaStart: function() {
|
|
556
|
+
this._line = 0;
|
|
557
|
+
},
|
|
558
|
+
areaEnd: function() {
|
|
559
|
+
this._line = NaN;
|
|
560
|
+
},
|
|
561
|
+
lineStart: function() {
|
|
562
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
563
|
+
},
|
|
564
|
+
lineEnd: function() {
|
|
565
|
+
switch (this._point) {
|
|
566
|
+
case 2:
|
|
567
|
+
this._context.lineTo(this._x1, this._y1);
|
|
568
|
+
break;
|
|
569
|
+
case 3:
|
|
570
|
+
j(this, this._t0, A(this, this._t0));
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
574
|
+
},
|
|
575
|
+
point: function(e, t) {
|
|
576
|
+
var n = NaN;
|
|
577
|
+
if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) {
|
|
578
|
+
switch (this._point) {
|
|
579
|
+
case 0:
|
|
580
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
581
|
+
break;
|
|
582
|
+
case 1:
|
|
583
|
+
this._point = 2;
|
|
584
|
+
break;
|
|
585
|
+
case 2:
|
|
586
|
+
this._point = 3, j(this, A(this, n = k(this, e, t)), n);
|
|
587
|
+
break;
|
|
588
|
+
default:
|
|
589
|
+
j(this, this._t0, n = k(this, e, t));
|
|
590
|
+
break;
|
|
591
|
+
}
|
|
592
|
+
this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
function N(e) {
|
|
597
|
+
this._context = new P(e);
|
|
598
|
+
}
|
|
599
|
+
(N.prototype = Object.create(M.prototype)).point = function(e, t) {
|
|
600
|
+
M.prototype.point.call(this, t, e);
|
|
601
|
+
};
|
|
602
|
+
function P(e) {
|
|
603
|
+
this._context = e;
|
|
604
|
+
}
|
|
605
|
+
P.prototype = {
|
|
606
|
+
moveTo: function(e, t) {
|
|
607
|
+
this._context.moveTo(t, e);
|
|
608
|
+
},
|
|
609
|
+
closePath: function() {
|
|
610
|
+
this._context.closePath();
|
|
611
|
+
},
|
|
612
|
+
lineTo: function(e, t) {
|
|
613
|
+
this._context.lineTo(t, e);
|
|
614
|
+
},
|
|
615
|
+
bezierCurveTo: function(e, t, n, r, i, a) {
|
|
616
|
+
this._context.bezierCurveTo(t, e, r, n, a, i);
|
|
617
|
+
}
|
|
618
|
+
};
|
|
619
|
+
function F(e) {
|
|
620
|
+
return new M(e);
|
|
621
|
+
}
|
|
622
|
+
function I(e) {
|
|
623
|
+
return new N(e);
|
|
624
|
+
}
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region node_modules/d3-shape/src/curve/natural.js
|
|
627
|
+
function L(e) {
|
|
628
|
+
this._context = e;
|
|
629
|
+
}
|
|
630
|
+
L.prototype = {
|
|
631
|
+
areaStart: function() {
|
|
632
|
+
this._line = 0;
|
|
633
|
+
},
|
|
634
|
+
areaEnd: function() {
|
|
635
|
+
this._line = NaN;
|
|
636
|
+
},
|
|
637
|
+
lineStart: function() {
|
|
638
|
+
this._x = [], this._y = [];
|
|
639
|
+
},
|
|
640
|
+
lineEnd: function() {
|
|
641
|
+
var e = this._x, t = this._y, n = e.length;
|
|
642
|
+
if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
|
|
643
|
+
else for (var r = R(e), i = R(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
|
|
644
|
+
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
645
|
+
},
|
|
646
|
+
point: function(e, t) {
|
|
647
|
+
this._x.push(+e), this._y.push(+t);
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
function R(e) {
|
|
651
|
+
var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
|
|
652
|
+
for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
|
|
653
|
+
for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
|
|
654
|
+
for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
|
|
655
|
+
for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
|
|
656
|
+
return [i, a];
|
|
657
|
+
}
|
|
658
|
+
function z(e) {
|
|
659
|
+
return new L(e);
|
|
660
|
+
}
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region node_modules/d3-shape/src/curve/step.js
|
|
663
|
+
function B(e, t) {
|
|
664
|
+
this._context = e, this._t = t;
|
|
665
|
+
}
|
|
666
|
+
B.prototype = {
|
|
667
|
+
areaStart: function() {
|
|
668
|
+
this._line = 0;
|
|
669
|
+
},
|
|
670
|
+
areaEnd: function() {
|
|
671
|
+
this._line = NaN;
|
|
672
|
+
},
|
|
673
|
+
lineStart: function() {
|
|
674
|
+
this._x = this._y = NaN, this._point = 0;
|
|
675
|
+
},
|
|
676
|
+
lineEnd: function() {
|
|
677
|
+
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
678
|
+
},
|
|
679
|
+
point: function(e, t) {
|
|
680
|
+
switch (e = +e, t = +t, this._point) {
|
|
681
|
+
case 0:
|
|
682
|
+
this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
|
|
683
|
+
break;
|
|
684
|
+
case 1: this._point = 2;
|
|
685
|
+
default:
|
|
686
|
+
if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
|
|
687
|
+
else {
|
|
688
|
+
var n = this._x * (1 - this._t) + e * this._t;
|
|
689
|
+
this._context.lineTo(n, this._y), this._context.lineTo(n, t);
|
|
690
|
+
}
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
this._x = e, this._y = t;
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
function V(e) {
|
|
697
|
+
return new B(e, .5);
|
|
698
|
+
}
|
|
699
|
+
function H(e) {
|
|
700
|
+
return new B(e, 0);
|
|
701
|
+
}
|
|
702
|
+
function U(e) {
|
|
703
|
+
return new B(e, 1);
|
|
704
|
+
}
|
|
705
|
+
//#endregion
|
|
706
|
+
export { a as _, F as a, T as c, v as d, g as f, s as g, l as h, z as i, C as l, d as m, H as n, I as o, m as p, V as r, D as s, U as t, x as u, t as v };
|