reke-ui 0.5.2 → 0.5.4
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/custom-elements.json +764 -3
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts +19 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.js +40 -15
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -20
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
- package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
- package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
- package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
- package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
- package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
- package/dist/node_modules/echarts/lib/extension.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
- package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
- package/dist/node_modules/echarts/lib/layout/points.js +37 -0
- package/dist/node_modules/echarts/lib/loading/default.js +6 -6
- package/dist/node_modules/echarts/lib/model/Component.js +39 -39
- package/dist/node_modules/echarts/lib/model/Global.js +122 -122
- package/dist/node_modules/echarts/lib/model/Series.js +78 -78
- package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
- package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
- package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
- package/dist/node_modules/echarts/lib/scale/break.js +10 -2
- package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
- package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
- package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
- package/dist/node_modules/echarts/lib/util/component.js +16 -16
- package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
- package/dist/node_modules/echarts/lib/util/decal.js +11 -11
- package/dist/node_modules/echarts/lib/util/format.js +1 -1
- package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
- package/dist/node_modules/echarts/lib/util/layout.js +23 -23
- package/dist/node_modules/echarts/lib/util/model.js +128 -68
- package/dist/node_modules/echarts/lib/util/number.js +55 -37
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
- package/dist/node_modules/echarts/lib/util/states.js +96 -82
- package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
- package/dist/node_modules/echarts/lib/util/time.js +154 -18
- package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
- package/dist/node_modules/echarts/lib/view/Component.js +7 -7
- package/dist/node_modules/echarts/lib/visual/style.js +5 -5
- package/dist/node_modules/zrender/lib/Element.js +35 -35
- package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
- package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
- package/dist/node_modules/zrender/lib/core/event.js +4 -1
- package/dist/node_modules/zrender/lib/core/util.js +69 -64
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
- package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
- package/dist/node_modules/zrender/lib/tool/color.js +60 -41
- package/dist/react.d.ts +10 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +85 -73
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +1 -0
- package/package.json +5 -1
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { each as e, isArray as t, isFunction as n, isObject as r, isString as i } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { parseDate as a } from "./number.js";
|
|
3
|
+
import o from "../model/Model.js";
|
|
4
|
+
import { SYSTEM_LANG as s, getDefaultLocaleModel as c, getLocaleModel as l } from "../core/locale.js";
|
|
5
|
+
import { getScaleBreakHelper as u } from "../scale/break.js";
|
|
6
|
+
//#region node_modules/echarts/lib/util/time.js
|
|
7
|
+
var d = 1e3, f = d * 60, p = f * 60, m = p * 24, h = m * 365, g = {
|
|
8
|
+
year: /({yyyy}|{yy})/,
|
|
9
|
+
month: /({MMMM}|{MMM}|{MM}|{M})/,
|
|
10
|
+
day: /({dd}|{d})/,
|
|
11
|
+
hour: /({HH}|{H}|{hh}|{h})/,
|
|
12
|
+
minute: /({mm}|{m})/,
|
|
13
|
+
second: /({ss}|{s})/,
|
|
14
|
+
millisecond: /({SSS}|{S})/
|
|
15
|
+
}, _ = {
|
|
5
16
|
year: "{yyyy}",
|
|
6
17
|
month: "{MMM}",
|
|
7
18
|
day: "{d}",
|
|
@@ -9,35 +20,160 @@ var a = {
|
|
|
9
20
|
minute: "{HH}:{mm}",
|
|
10
21
|
second: "{HH}:{mm}:{ss}",
|
|
11
22
|
millisecond: "{HH}:{mm}:{ss} {SSS}"
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
23
|
+
}, v = "{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}", y = "{yyyy}-{MM}-{dd}", b = {
|
|
24
|
+
year: "{yyyy}",
|
|
25
|
+
month: "{yyyy}-{MM}",
|
|
26
|
+
day: y,
|
|
27
|
+
hour: y + " " + _.hour,
|
|
28
|
+
minute: y + " " + _.minute,
|
|
29
|
+
second: y + " " + _.second,
|
|
30
|
+
millisecond: v
|
|
31
|
+
}, x = [
|
|
32
|
+
"year",
|
|
33
|
+
"month",
|
|
34
|
+
"day",
|
|
35
|
+
"hour",
|
|
36
|
+
"minute",
|
|
37
|
+
"second",
|
|
38
|
+
"millisecond"
|
|
39
|
+
], S = [
|
|
40
|
+
"year",
|
|
41
|
+
"half-year",
|
|
42
|
+
"quarter",
|
|
43
|
+
"month",
|
|
44
|
+
"week",
|
|
45
|
+
"half-week",
|
|
46
|
+
"day",
|
|
47
|
+
"half-day",
|
|
48
|
+
"quarter-day",
|
|
49
|
+
"hour",
|
|
50
|
+
"minute",
|
|
51
|
+
"second",
|
|
52
|
+
"millisecond"
|
|
53
|
+
];
|
|
54
|
+
function C(e) {
|
|
55
|
+
return !i(e) && !n(e) ? w(e) : e;
|
|
56
|
+
}
|
|
57
|
+
function w(n) {
|
|
58
|
+
n ||= {};
|
|
59
|
+
var a = {}, o = !0;
|
|
60
|
+
return e(x, function(e) {
|
|
61
|
+
o &&= n[e] == null;
|
|
62
|
+
}), e(x, function(e, s) {
|
|
63
|
+
var c = n[e];
|
|
64
|
+
a[e] = {};
|
|
65
|
+
for (var l = null, u = s; u >= 0; u--) {
|
|
66
|
+
var d = x[u], f = r(c) && !t(c) ? c[d] : c, p = void 0;
|
|
67
|
+
t(f) ? (p = f.slice(), l = p[0] || "") : i(f) ? (l = f, p = [l]) : (l == null ? l = _[e] : g[d].test(l) || (l = a[d][d][0] + " " + l), p = [l], o && (p[1] = "{primary|" + l + "}")), a[e][d] = p;
|
|
68
|
+
}
|
|
69
|
+
}), a;
|
|
70
|
+
}
|
|
71
|
+
function T(e, t) {
|
|
15
72
|
return e += "", "0000".substr(0, t - e.length) + e;
|
|
16
73
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
74
|
+
function E(e) {
|
|
75
|
+
switch (e) {
|
|
76
|
+
case "half-year":
|
|
77
|
+
case "quarter": return "month";
|
|
78
|
+
case "week":
|
|
79
|
+
case "half-week": return "day";
|
|
80
|
+
case "half-day":
|
|
81
|
+
case "quarter-day": return "hour";
|
|
82
|
+
default: return e;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
function D(e) {
|
|
86
|
+
return e === E(e);
|
|
87
|
+
}
|
|
88
|
+
function O(e) {
|
|
89
|
+
switch (e) {
|
|
90
|
+
case "year":
|
|
91
|
+
case "month": return "day";
|
|
92
|
+
case "millisecond": return "millisecond";
|
|
93
|
+
default: return "second";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function k(e, t, n, r) {
|
|
97
|
+
var i = a(e), u = i[N(n)](), d = i[P(n)]() + 1, f = Math.floor((d - 1) / 3) + 1, p = i[F(n)](), m = i["get" + (n ? "UTC" : "") + "Day"](), h = i[I(n)](), g = (h - 1) % 12 + 1, _ = i[L(n)](), v = i[R(n)](), y = i[z(n)](), b = h >= 12 ? "pm" : "am", x = b.toUpperCase(), S = (r instanceof o ? r : l(r || s) || c()).getModel("time"), C = S.get("month"), w = S.get("monthAbbr"), E = S.get("dayOfWeek"), D = S.get("dayOfWeekAbbr");
|
|
98
|
+
return (t || "").replace(/{a}/g, b + "").replace(/{A}/g, x + "").replace(/{yyyy}/g, u + "").replace(/{yy}/g, T(u % 100 + "", 2)).replace(/{Q}/g, f + "").replace(/{MMMM}/g, C[d - 1]).replace(/{MMM}/g, w[d - 1]).replace(/{MM}/g, T(d, 2)).replace(/{M}/g, d + "").replace(/{dd}/g, T(p, 2)).replace(/{d}/g, p + "").replace(/{eeee}/g, E[m]).replace(/{ee}/g, D[m]).replace(/{e}/g, m + "").replace(/{HH}/g, T(h, 2)).replace(/{H}/g, h + "").replace(/{hh}/g, T(g + "", 2)).replace(/{h}/g, g + "").replace(/{mm}/g, T(_, 2)).replace(/{m}/g, _ + "").replace(/{ss}/g, T(v, 2)).replace(/{s}/g, v + "").replace(/{SSS}/g, T(y, 3)).replace(/{S}/g, y + "");
|
|
99
|
+
}
|
|
100
|
+
function A(e, t, r, a, o) {
|
|
101
|
+
var s = null;
|
|
102
|
+
if (i(r)) s = r;
|
|
103
|
+
else if (n(r)) {
|
|
104
|
+
var c = {
|
|
105
|
+
time: e.time,
|
|
106
|
+
level: e.time ? e.time.level : 0
|
|
107
|
+
}, l = u();
|
|
108
|
+
l && l.makeAxisLabelFormatterParamBreak(c, e.break), s = r(e.value, t, c);
|
|
109
|
+
} else {
|
|
110
|
+
var d = e.time;
|
|
111
|
+
if (d) {
|
|
112
|
+
var f = r[d.lowerTimeUnit][d.upperTimeUnit];
|
|
113
|
+
s = f[Math.min(d.level, f.length - 1)] || "";
|
|
114
|
+
} else {
|
|
115
|
+
var p = j(e.value, o);
|
|
116
|
+
s = r[p][p][0];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return k(new Date(e.value), s, o, a);
|
|
120
|
+
}
|
|
121
|
+
function j(e, t) {
|
|
122
|
+
var n = a(e), r = n[P(t)]() + 1, i = n[F(t)](), o = n[I(t)](), s = n[L(t)](), c = n[R(t)](), l = n[z(t)]() === 0, u = l && c === 0, d = u && s === 0, f = d && o === 0, p = f && i === 1;
|
|
123
|
+
return p && r === 1 ? "year" : p ? "month" : f ? "day" : d ? "hour" : u ? "minute" : l ? "second" : "millisecond";
|
|
20
124
|
}
|
|
21
|
-
function
|
|
125
|
+
function M(e, t, n) {
|
|
126
|
+
switch (t) {
|
|
127
|
+
case "year": e[V(n)](0);
|
|
128
|
+
case "month": e[H(n)](1);
|
|
129
|
+
case "day": e[U(n)](0);
|
|
130
|
+
case "hour": e[W(n)](0);
|
|
131
|
+
case "minute": e[G(n)](0);
|
|
132
|
+
case "second": e[K(n)](0);
|
|
133
|
+
}
|
|
134
|
+
return e;
|
|
135
|
+
}
|
|
136
|
+
function N(e) {
|
|
22
137
|
return e ? "getUTCFullYear" : "getFullYear";
|
|
23
138
|
}
|
|
24
|
-
function
|
|
139
|
+
function P(e) {
|
|
25
140
|
return e ? "getUTCMonth" : "getMonth";
|
|
26
141
|
}
|
|
27
|
-
function
|
|
142
|
+
function F(e) {
|
|
28
143
|
return e ? "getUTCDate" : "getDate";
|
|
29
144
|
}
|
|
30
|
-
function
|
|
145
|
+
function I(e) {
|
|
31
146
|
return e ? "getUTCHours" : "getHours";
|
|
32
147
|
}
|
|
33
|
-
function
|
|
148
|
+
function L(e) {
|
|
34
149
|
return e ? "getUTCMinutes" : "getMinutes";
|
|
35
150
|
}
|
|
36
|
-
function
|
|
151
|
+
function R(e) {
|
|
37
152
|
return e ? "getUTCSeconds" : "getSeconds";
|
|
38
153
|
}
|
|
39
|
-
function
|
|
154
|
+
function z(e) {
|
|
40
155
|
return e ? "getUTCMilliseconds" : "getMilliseconds";
|
|
41
156
|
}
|
|
157
|
+
function B(e) {
|
|
158
|
+
return e ? "setUTCFullYear" : "setFullYear";
|
|
159
|
+
}
|
|
160
|
+
function V(e) {
|
|
161
|
+
return e ? "setUTCMonth" : "setMonth";
|
|
162
|
+
}
|
|
163
|
+
function H(e) {
|
|
164
|
+
return e ? "setUTCDate" : "setDate";
|
|
165
|
+
}
|
|
166
|
+
function U(e) {
|
|
167
|
+
return e ? "setUTCHours" : "setHours";
|
|
168
|
+
}
|
|
169
|
+
function W(e) {
|
|
170
|
+
return e ? "setUTCMinutes" : "setMinutes";
|
|
171
|
+
}
|
|
172
|
+
function G(e) {
|
|
173
|
+
return e ? "setUTCSeconds" : "setSeconds";
|
|
174
|
+
}
|
|
175
|
+
function K(e) {
|
|
176
|
+
return e ? "setUTCMilliseconds" : "setMilliseconds";
|
|
177
|
+
}
|
|
42
178
|
//#endregion
|
|
43
|
-
export {
|
|
179
|
+
export { m as ONE_DAY, p as ONE_HOUR, f as ONE_MINUTE, d as ONE_SECOND, h as ONE_YEAR, F as dateGetterName, H as dateSetterName, k as format, b as fullLeveledFormatter, N as fullYearGetterName, B as fullYearSetterName, O as getDefaultFormatPrecisionOfInterval, E as getPrimaryTimeUnit, j as getUnitFromValue, I as hoursGetterName, U as hoursSetterName, D as isPrimaryTimeUnit, A as leveledFormat, z as millisecondsGetterName, K as millisecondsSetterName, L as minutesGetterName, W as minutesSetterName, P as monthGetterName, V as monthSetterName, C as parseTimeAxisLabelFormatter, x as primaryTimeUnits, M as roundTime, R as secondsGetterName, G as secondsSetterName, S as timeUnits };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { assert as e } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { MAX_SAFE_INTEGER as t } from "./number.js";
|
|
3
|
+
import { error as n } from "./log.js";
|
|
4
|
+
import "./types.js";
|
|
5
|
+
//#region node_modules/echarts/lib/util/vendor.js
|
|
6
|
+
var r = typeof Float32Array < "u" ? Float32Array : void 0, i = typeof Float64Array < "u" ? Float64Array : void 0;
|
|
7
|
+
function a(e) {
|
|
8
|
+
return o({ ctor: r }, e).arr;
|
|
9
|
+
}
|
|
10
|
+
function o(r, i) {
|
|
11
|
+
process.env.NODE_ENV !== "production" && e(i != null && isFinite(i) && i >= 0 && r.hasOwnProperty("ctor"));
|
|
12
|
+
var a = r.arr, o = r.ctor;
|
|
13
|
+
if (i > t && (i = t), !a || r.typed && a.length < i) {
|
|
14
|
+
var s = void 0;
|
|
15
|
+
if (o) try {
|
|
16
|
+
s = new o(i), r.typed = !0, a && s.set(a);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
process.env.NODE_ENV !== "production" && n(e);
|
|
19
|
+
}
|
|
20
|
+
if (!s && (s = [], r.typed = !1, a)) for (var c = 0, l = a.length; c < l; c++) s[c] = a[c];
|
|
21
|
+
r.arr = s;
|
|
22
|
+
}
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as Float64ArrayCtor, a as createFloat32Array, o as tryEnsureTypedArray };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { each as e } from "../../../zrender/lib/core/util.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import a from "
|
|
5
|
-
import { traverseElements as o } from "../util/graphic.js";
|
|
2
|
+
import { enableClassExtend as t, enableClassManagement as n } from "../util/clazz.js";
|
|
3
|
+
import { error as r } from "../util/log.js";
|
|
4
|
+
import { makeInner as i, normalizeToArray as a, queryDataIndex as o } from "../util/model.js";
|
|
6
5
|
import { enterEmphasis as s, getHighlightDigit as c, isHighDownDispatcher as l, leaveEmphasis as u } from "../util/states.js";
|
|
7
|
-
import
|
|
6
|
+
import d from "../../../zrender/lib/graphic/Group.js";
|
|
7
|
+
import { traverseElements as f } from "../util/graphic.js";
|
|
8
8
|
import { getUID as p } from "../util/component.js";
|
|
9
9
|
import { createTask as m } from "../core/task.js";
|
|
10
10
|
import h from "../chart/helper/createRenderPlanner.js";
|
|
11
11
|
//#region node_modules/echarts/lib/view/Chart.js
|
|
12
|
-
var g =
|
|
12
|
+
var g = i(), _ = h(), v = function() {
|
|
13
13
|
function e() {
|
|
14
|
-
this.group = new
|
|
14
|
+
this.group = new d(), this.uid = p("viewChart"), this.renderTask = m({
|
|
15
15
|
plan: x,
|
|
16
16
|
reset: S
|
|
17
17
|
}), this.renderTask.context = { view: this };
|
|
18
18
|
}
|
|
19
19
|
return e.prototype.init = function(e, t) {}, e.prototype.render = function(e, t, n, r) {
|
|
20
20
|
if (process.env.NODE_ENV !== "production") throw Error("render method must been implemented");
|
|
21
|
-
}, e.prototype.highlight = function(e,
|
|
21
|
+
}, e.prototype.highlight = function(e, t, n, i) {
|
|
22
22
|
var a = e.getData(i && i.dataType);
|
|
23
23
|
if (!a) {
|
|
24
|
-
process.env.NODE_ENV !== "production" &&
|
|
24
|
+
process.env.NODE_ENV !== "production" && r("Unknown dataType " + i.dataType);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
b(a, i, "emphasis");
|
|
28
|
-
}, e.prototype.downplay = function(e,
|
|
28
|
+
}, e.prototype.downplay = function(e, t, n, i) {
|
|
29
29
|
var a = e.getData(i && i.dataType);
|
|
30
30
|
if (!a) {
|
|
31
|
-
process.env.NODE_ENV !== "production" &&
|
|
31
|
+
process.env.NODE_ENV !== "production" && r("Unknown dataType " + i.dataType);
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
b(a, i, "normal");
|
|
@@ -39,7 +39,7 @@ var g = n(), _ = h(), v = function() {
|
|
|
39
39
|
}, e.prototype.updateVisual = function(e, t, n, r) {
|
|
40
40
|
this.render(e, t, n, r);
|
|
41
41
|
}, e.prototype.eachRendered = function(e) {
|
|
42
|
-
|
|
42
|
+
f(this.group, e);
|
|
43
43
|
}, e.markUpdateMethod = function(e, t) {
|
|
44
44
|
g(e).updateMethod = t;
|
|
45
45
|
}, e.protoInitialize = function() {
|
|
@@ -50,15 +50,15 @@ var g = n(), _ = h(), v = function() {
|
|
|
50
50
|
function y(e, t, n) {
|
|
51
51
|
e && l(e) && (t === "emphasis" ? s : u)(e, n);
|
|
52
52
|
}
|
|
53
|
-
function b(t, n,
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
y(e,
|
|
57
|
-
}) : e(
|
|
58
|
-
y(t.getItemGraphicEl(e),
|
|
53
|
+
function b(t, n, r) {
|
|
54
|
+
var i = o(t, n), s = n && n.highlightKey != null ? c(n.highlightKey) : null;
|
|
55
|
+
i == null ? t.eachItemGraphicEl(function(e) {
|
|
56
|
+
y(e, r, s);
|
|
57
|
+
}) : e(a(i), function(e) {
|
|
58
|
+
y(t.getItemGraphicEl(e), r, s);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
t(v, ["dispose"]), n(v);
|
|
62
62
|
function x(e) {
|
|
63
63
|
return _(e.model);
|
|
64
64
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
1
|
+
import { enableClassExtend as e, enableClassManagement as t } from "../util/clazz.js";
|
|
2
|
+
import n from "../../../zrender/lib/graphic/Group.js";
|
|
3
3
|
import { getUID as r } from "../util/component.js";
|
|
4
4
|
//#region node_modules/echarts/lib/view/Component.js
|
|
5
5
|
var i = function() {
|
|
6
|
-
function
|
|
7
|
-
this.group = new
|
|
6
|
+
function e() {
|
|
7
|
+
this.group = new n(), this.uid = r("viewComponent");
|
|
8
8
|
}
|
|
9
|
-
return
|
|
9
|
+
return e.prototype.init = function(e, t) {}, e.prototype.render = function(e, t, n, r) {}, e.prototype.dispose = function(e, t) {}, e.prototype.updateView = function(e, t, n, r) {}, e.prototype.updateLayout = function(e, t, n, r) {}, e.prototype.updateVisual = function(e, t, n, r) {}, e.prototype.toggleBlurSeries = function(e, t, n) {}, e.prototype.eachRendered = function(e) {
|
|
10
10
|
var t = this.group;
|
|
11
11
|
t && t.traverse(e);
|
|
12
|
-
},
|
|
12
|
+
}, e;
|
|
13
13
|
}();
|
|
14
|
-
|
|
14
|
+
e(i), t(i);
|
|
15
15
|
//#endregion
|
|
16
16
|
export { i as default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createHashMap as e, extend as t, isFunction as n } from "../../../zrender/lib/core/util.js";
|
|
2
|
-
import
|
|
3
|
-
import i from "../model
|
|
2
|
+
import r from "../model/mixin/makeStyleMapper.js";
|
|
3
|
+
import { makeInner as i } from "../util/model.js";
|
|
4
4
|
import { LINE_STYLE_KEY_MAP as a } from "../model/mixin/lineStyle.js";
|
|
5
5
|
import { ITEM_STYLE_KEY_MAP as o } from "../model/mixin/itemStyle.js";
|
|
6
6
|
import s from "../model/Model.js";
|
|
7
7
|
//#region node_modules/echarts/lib/visual/style.js
|
|
8
|
-
var c =
|
|
9
|
-
itemStyle:
|
|
10
|
-
lineStyle:
|
|
8
|
+
var c = i(), l = {
|
|
9
|
+
itemStyle: r(o, !0),
|
|
10
|
+
lineStyle: r(a, !0)
|
|
11
11
|
}, u = {
|
|
12
12
|
lineStyle: "stroke",
|
|
13
13
|
itemStyle: "fill"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { extend as e, filter as t, guid as n, indexOf as r, isArrayLike as i, isGradientObject as a, isObject as o, isTypedArray as s, keys as c, logError as l, mixin as u, reduce as d } from "./core/util.js";
|
|
2
2
|
import { invert as f } from "./core/matrix.js";
|
|
3
|
-
import p
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import y from "./
|
|
7
|
-
import b from "./
|
|
8
|
-
import
|
|
3
|
+
import p from "./core/BoundingRect.js";
|
|
4
|
+
import { calculateTextPosition as m, parsePercent as h } from "./contain/text.js";
|
|
5
|
+
import g, { TRANSFORMABLE_PROPS as _ } from "./core/Transformable.js";
|
|
6
|
+
import { parse as v, stringify as y } from "./tool/color.js";
|
|
7
|
+
import b, { cloneValue as x } from "./animation/Animator.js";
|
|
8
|
+
import S from "./core/Eventful.js";
|
|
9
9
|
import { DARK_LABEL_COLOR as C, LIGHT_LABEL_COLOR as w } from "./config.js";
|
|
10
10
|
//#region node_modules/zrender/lib/Element.js
|
|
11
|
-
var T = "__zr_normal__", E =
|
|
11
|
+
var T = "__zr_normal__", E = _.concat(["ignore"]), D = d(_, function(e, t) {
|
|
12
12
|
return e[t] = !0, e;
|
|
13
|
-
}, { ignore: !1 }), O = {}, k = new
|
|
13
|
+
}, { ignore: !1 }), O = {}, k = new p(0, 0, 0, 0), A = [], j = function() {
|
|
14
14
|
function t(e) {
|
|
15
15
|
this.id = n(), this.animators = [], this.currentStates = [], this.states = {}, this._init(e);
|
|
16
16
|
}
|
|
@@ -46,23 +46,23 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
|
|
|
46
46
|
i.copyTransform(t);
|
|
47
47
|
var l = n.position != null, u = n.autoOverflowArea, d = void 0;
|
|
48
48
|
if ((u || l) && (d = k, n.layoutRect ? d.copy(n.layoutRect) : d.copy(this.getBoundingRect()), r || d.applyTransform(this.transform)), l) {
|
|
49
|
-
this.calculateTextPosition ? this.calculateTextPosition(O, n, d) :
|
|
50
|
-
var
|
|
51
|
-
if (
|
|
52
|
-
var
|
|
53
|
-
|
|
49
|
+
this.calculateTextPosition ? this.calculateTextPosition(O, n, d) : m(O, n, d), i.x = O.x, i.y = O.y, a = O.align, o = O.verticalAlign;
|
|
50
|
+
var g = n.origin;
|
|
51
|
+
if (g && n.rotation != null) {
|
|
52
|
+
var _ = void 0, v = void 0;
|
|
53
|
+
g === "center" ? (_ = d.width * .5, v = d.height * .5) : (_ = h(g[0], d.width), v = h(g[1], d.height)), c = !0, i.originX = -i.x + _ + (r ? 0 : d.x), i.originY = -i.y + v + (r ? 0 : d.y);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
n.rotation != null && (i.rotation = n.rotation);
|
|
57
|
-
var
|
|
58
|
-
|
|
59
|
-
var
|
|
57
|
+
var y = n.offset;
|
|
58
|
+
y && (i.x += y[0], i.y += y[1], c || (i.originX = -y[0], i.originY = -y[1]));
|
|
59
|
+
var b = this._innerTextDefaultStyle ||= {};
|
|
60
60
|
if (u) {
|
|
61
|
-
var
|
|
62
|
-
i.getLocalTransform(A), f(A, A),
|
|
63
|
-
} else
|
|
64
|
-
var
|
|
65
|
-
|
|
61
|
+
var x = b.overflowRect = b.overflowRect || new p(0, 0, 0, 0);
|
|
62
|
+
i.getLocalTransform(A), f(A, A), p.copy(x, d), x.applyTransform(A);
|
|
63
|
+
} else b.overflowRect = null;
|
|
64
|
+
var S = n.inside == null ? typeof n.position == "string" && n.position.indexOf("inside") >= 0 : n.inside, C = void 0, w = void 0, T = void 0;
|
|
65
|
+
S && this.canBeInsideText() ? (C = n.insideFill, w = n.insideStroke, (C == null || C === "auto") && (C = this.getInsideTextFill()), (w == null || w === "auto") && (w = this.getInsideTextStroke(C), T = !0)) : (C = n.outsideFill, w = n.outsideStroke, (C == null || C === "auto") && (C = this.getOutsideFill()), (w == null || w === "auto") && (w = this.getOutsideStroke(C), T = !0)), C ||= "#000", (C !== b.fill || w !== b.stroke || T !== b.autoStroke || a !== b.align || o !== b.verticalAlign) && (s = !0, b.fill = C, b.stroke = w, b.autoStroke = T, b.align = a, b.verticalAlign = o, t.setDefaultTextStyle(b)), t.__dirty |= 1, s && t.dirtyStyle(!0);
|
|
66
66
|
}
|
|
67
67
|
}, t.prototype.canBeInsideText = function() {
|
|
68
68
|
return !0;
|
|
@@ -73,7 +73,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
|
|
|
73
73
|
}, t.prototype.getOutsideFill = function() {
|
|
74
74
|
return this.__zr && this.__zr.isDarkMode() ? w : C;
|
|
75
75
|
}, t.prototype.getOutsideStroke = function(e) {
|
|
76
|
-
var t = this.__zr && this.__zr.getBackgroundColor(), n = typeof t == "string" &&
|
|
76
|
+
var t = this.__zr && this.__zr.getBackgroundColor(), n = typeof t == "string" && v(t);
|
|
77
77
|
n ||= [
|
|
78
78
|
255,
|
|
79
79
|
255,
|
|
@@ -81,7 +81,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
|
|
|
81
81
|
1
|
|
82
82
|
];
|
|
83
83
|
for (var r = n[3], i = this.__zr.isDarkMode(), a = 0; a < 3; a++) n[a] = n[a] * r + (i ? 0 : 255) * (1 - r);
|
|
84
|
-
return n[3] = 1,
|
|
84
|
+
return n[3] = 1, y(n, "rgba");
|
|
85
85
|
}, t.prototype.traverse = function(e, t) {}, t.prototype.attrKV = function(t, n) {
|
|
86
86
|
t === "textConfig" ? this.setTextConfig(n) : t === "textContent" ? this.setTextContent(n) : t === "clipPath" ? this.setClipPath(n) : t === "extra" ? (this.extra = this.extra || {}, e(this.extra, n)) : this[t] = n;
|
|
87
87
|
}, t.prototype.hide = function() {
|
|
@@ -229,7 +229,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
|
|
|
229
229
|
var t = this._textContent;
|
|
230
230
|
if (t !== e) {
|
|
231
231
|
if (t && t !== e && this.removeTextContent(), process.env.NODE_ENV !== "production" && e.__zr && !e.__hostTarget) throw Error("Text element has been added to zrender.");
|
|
232
|
-
e.innerTransformable = new
|
|
232
|
+
e.innerTransformable = new g(), this._attachComponent(e), this._textContent = e, this.markRedraw();
|
|
233
233
|
}
|
|
234
234
|
}, t.prototype.setTextConfig = function(t) {
|
|
235
235
|
this.textConfig ||= {}, e(this.textConfig, t), this.markRedraw();
|
|
@@ -271,7 +271,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
|
|
|
271
271
|
l("Property \"" + e + "\" is not existed in element " + this.id);
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
|
-
var i = new
|
|
274
|
+
var i = new b(r, t, n);
|
|
275
275
|
return e && (i.targetName = e), this.addAnimator(i, e), i;
|
|
276
276
|
}, t.prototype.addAnimator = function(e, t) {
|
|
277
277
|
var n = this.__zr, i = this;
|
|
@@ -340,7 +340,7 @@ var T = "__zr_normal__", E = m.concat(["ignore"]), D = d(m, function(e, t) {
|
|
|
340
340
|
Object.defineProperty && (i("position", "_legacyPos", "x", "y"), i("scale", "_legacyScale", "scaleX", "scaleY"), i("origin", "_legacyOrigin", "originX", "originY"));
|
|
341
341
|
})(), t;
|
|
342
342
|
}();
|
|
343
|
-
u(j,
|
|
343
|
+
u(j, S), u(j, g);
|
|
344
344
|
function M(e, t, n, r, i) {
|
|
345
345
|
n ||= {};
|
|
346
346
|
var a = [];
|
|
@@ -387,9 +387,9 @@ function L(e, t) {
|
|
|
387
387
|
return !0;
|
|
388
388
|
}
|
|
389
389
|
function R(e, n, s, l, u, d, f, p) {
|
|
390
|
-
for (var m = c(l), h = u.duration, g = u.delay,
|
|
390
|
+
for (var m = c(l), h = u.duration, g = u.delay, _ = u.additive, v = u.setToFinal, y = !o(d), S = e.animators, C = [], w = 0; w < m.length; w++) {
|
|
391
391
|
var T = m[w], E = l[T];
|
|
392
|
-
if (E != null && s[T] != null && (
|
|
392
|
+
if (E != null && s[T] != null && (y || d[T])) if (o(E) && !i(E) && !a(E)) {
|
|
393
393
|
if (n) {
|
|
394
394
|
p || (s[T] = E, e.updateDuringAnimation(n));
|
|
395
395
|
continue;
|
|
@@ -399,7 +399,7 @@ function R(e, n, s, l, u, d, f, p) {
|
|
|
399
399
|
else p || (s[T] = E, e.updateDuringAnimation(n), C.push(T));
|
|
400
400
|
}
|
|
401
401
|
var D = C.length;
|
|
402
|
-
if (!
|
|
402
|
+
if (!_ && D) for (var O = 0; O < S.length; O++) {
|
|
403
403
|
var k = S[O];
|
|
404
404
|
if (k.targetName === n && k.stopTracks(C)) {
|
|
405
405
|
var A = r(S, k);
|
|
@@ -411,22 +411,22 @@ function R(e, n, s, l, u, d, f, p) {
|
|
|
411
411
|
}), D = C.length), D > 0 || u.force && !f.length) {
|
|
412
412
|
var j = void 0, M = void 0, N = void 0;
|
|
413
413
|
if (p) {
|
|
414
|
-
M = {},
|
|
414
|
+
M = {}, v && (j = {});
|
|
415
415
|
for (var O = 0; O < D; O++) {
|
|
416
416
|
var T = C[O];
|
|
417
|
-
M[T] = s[T],
|
|
417
|
+
M[T] = s[T], v ? j[T] = l[T] : s[T] = l[T];
|
|
418
418
|
}
|
|
419
|
-
} else if (
|
|
419
|
+
} else if (v) {
|
|
420
420
|
N = {};
|
|
421
421
|
for (var O = 0; O < D; O++) {
|
|
422
422
|
var T = C[O];
|
|
423
|
-
N[T] =
|
|
423
|
+
N[T] = x(s[T]), F(s, l, T);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var k = new
|
|
426
|
+
var k = new b(s, !1, !1, _ ? t(S, function(e) {
|
|
427
427
|
return e.targetName === n;
|
|
428
428
|
}) : null);
|
|
429
|
-
k.targetName = n, u.scope && (k.scope = u.scope),
|
|
429
|
+
k.targetName = n, u.scope && (k.scope = u.scope), v && j && k.whenWithKeys(0, j, C), N && k.whenWithKeys(0, N, C), k.whenWithKeys(h ?? 500, p ? M : l, C).delay(g || 0), e.addAnimator(k, n), f.push(k);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
function z(e, t, n, r) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "../core/platform.js";
|
|
2
2
|
import { RADIAN_TO_DEGREE as e } from "../core/util.js";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import s from "../graphic/
|
|
3
|
+
import { createOrUpdateImage as t, isImageReady as n } from "../graphic/helper/image.js";
|
|
4
|
+
import { DEFAULT_COMMON_STYLE as r } from "../graphic/Displayable.js";
|
|
5
|
+
import i from "../core/PathProxy.js";
|
|
6
|
+
import a from "../graphic/Path.js";
|
|
7
|
+
import o from "../graphic/TSpan.js";
|
|
8
|
+
import s from "../graphic/Image.js";
|
|
9
9
|
import { getCanvasGradient as c, isClipPathChanged as l } from "./helper.js";
|
|
10
10
|
import { getLineDash as u } from "./dashStyle.js";
|
|
11
11
|
//#region node_modules/zrender/lib/canvas/graphic.js
|
|
12
|
-
var d = new
|
|
12
|
+
var d = new i(!0);
|
|
13
13
|
function f(e) {
|
|
14
14
|
var t = e.stroke;
|
|
15
15
|
return !(t == null || t === "none" || !(e.lineWidth > 0));
|
|
@@ -33,13 +33,13 @@ function g(e, t) {
|
|
|
33
33
|
e.globalAlpha = t.strokeOpacity * t.opacity, e.stroke(), e.globalAlpha = n;
|
|
34
34
|
} else e.stroke();
|
|
35
35
|
}
|
|
36
|
-
function _(
|
|
37
|
-
var
|
|
38
|
-
if (o
|
|
39
|
-
var s =
|
|
36
|
+
function _(r, i, a) {
|
|
37
|
+
var o = t(i.image, i.__image, a);
|
|
38
|
+
if (n(o)) {
|
|
39
|
+
var s = r.createPattern(o, i.repeat || "repeat");
|
|
40
40
|
if (typeof DOMMatrix == "function" && s && s.setTransform) {
|
|
41
41
|
var c = new DOMMatrix();
|
|
42
|
-
c.translateSelf(
|
|
42
|
+
c.translateSelf(i.x || 0, i.y || 0), c.rotateSelf(0, 0, (i.rotation || 0) * e), c.scaleSelf(i.scaleX || 1, i.scaleY || 1), s.setTransform(c);
|
|
43
43
|
}
|
|
44
44
|
return s;
|
|
45
45
|
}
|
|
@@ -59,17 +59,17 @@ function v(e, t, n, r, i) {
|
|
|
59
59
|
var F = !0;
|
|
60
60
|
(v || b & 4) && (y.setDPR(e.dpr), p ? y.setContext(null) : (y.setContext(e), F = !1), y.reset(), t.buildPath(y, t.shape, r), y.toStatic(), t.pathUpdated()), F && y.rebuildPath(e, p ? l : 1), N && (e.setLineDash(N), e.lineDashOffset = P), r ? (i.batchFill = s, i.batchStroke = o) : n.strokeFirst ? (o && g(e, n), s && h(e, n)) : (s && h(e, n), o && g(e, n)), N && e.setLineDash([]);
|
|
61
61
|
}
|
|
62
|
-
function y(e,
|
|
63
|
-
var
|
|
64
|
-
if (!(!
|
|
65
|
-
var
|
|
66
|
-
if (c == null && l != null ? c = l * u : l == null && c != null ? l = c / u : c == null && l == null && (c =
|
|
67
|
-
var d =
|
|
68
|
-
e.drawImage(
|
|
69
|
-
} else if (
|
|
70
|
-
var d =
|
|
71
|
-
e.drawImage(
|
|
72
|
-
} else e.drawImage(
|
|
62
|
+
function y(e, r, i) {
|
|
63
|
+
var a = r.__image = t(i.image, r.__image, r, r.onload);
|
|
64
|
+
if (!(!a || !n(a))) {
|
|
65
|
+
var o = i.x || 0, s = i.y || 0, c = r.getWidth(), l = r.getHeight(), u = a.width / a.height;
|
|
66
|
+
if (c == null && l != null ? c = l * u : l == null && c != null ? l = c / u : c == null && l == null && (c = a.width, l = a.height), i.sWidth && i.sHeight) {
|
|
67
|
+
var d = i.sx || 0, f = i.sy || 0;
|
|
68
|
+
e.drawImage(a, d, f, i.sWidth, i.sHeight, o, s, c, l);
|
|
69
|
+
} else if (i.sx && i.sy) {
|
|
70
|
+
var d = i.sx, f = i.sy, p = c - d, m = l - f;
|
|
71
|
+
e.drawImage(a, d, f, p, m, o, s, c, l);
|
|
72
|
+
} else e.drawImage(a, o, s, c, l);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
function b(e, t, n) {
|
|
@@ -89,20 +89,20 @@ var x = [
|
|
|
89
89
|
["lineJoin", "miter"],
|
|
90
90
|
["miterLimit", 10]
|
|
91
91
|
];
|
|
92
|
-
function C(e,
|
|
92
|
+
function C(e, t, n, i, a) {
|
|
93
93
|
var o = !1;
|
|
94
|
-
if (!i && (
|
|
95
|
-
if (i ||
|
|
94
|
+
if (!i && (n ||= {}, t === n)) return !1;
|
|
95
|
+
if (i || t.opacity !== n.opacity) {
|
|
96
96
|
P(e, a), o = !0;
|
|
97
|
-
var s = Math.max(Math.min(
|
|
98
|
-
e.globalAlpha = isNaN(s) ?
|
|
97
|
+
var s = Math.max(Math.min(t.opacity, 1), 0);
|
|
98
|
+
e.globalAlpha = isNaN(s) ? r.opacity : s;
|
|
99
99
|
}
|
|
100
|
-
(i ||
|
|
100
|
+
(i || t.blend !== n.blend) && (o ||= (P(e, a), !0), e.globalCompositeOperation = t.blend || r.blend);
|
|
101
101
|
for (var c = 0; c < x.length; c++) {
|
|
102
102
|
var l = x[c];
|
|
103
|
-
(i ||
|
|
103
|
+
(i || t[l] !== n[l]) && (o ||= (P(e, a), !0), e[l] = e.dpr * (t[l] || 0));
|
|
104
104
|
}
|
|
105
|
-
return (i ||
|
|
105
|
+
return (i || t.shadowColor !== n.shadowColor) && (o ||= (P(e, a), !0), e.shadowColor = t.shadowColor || r.shadowColor), o;
|
|
106
106
|
}
|
|
107
107
|
function w(e, t, n, r, i) {
|
|
108
108
|
var a = t.style, o = r ? null : n && n.style || {};
|
|
@@ -153,21 +153,21 @@ function F(e, t) {
|
|
|
153
153
|
I(e, t, n), L(e, n);
|
|
154
154
|
}
|
|
155
155
|
function I(e, t, n) {
|
|
156
|
-
var
|
|
156
|
+
var r = t.transform;
|
|
157
157
|
if (!t.shouldBePainted(n.viewWidth, n.viewHeight, !1, !1)) {
|
|
158
158
|
t.__dirty &= -2, t.__isRendered = !1;
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
|
-
var
|
|
162
|
-
if ((!c || l(
|
|
161
|
+
var i = t.__clipPaths, c = n.prevElClipPaths, u = t.style, d = !1, f = !1;
|
|
162
|
+
if ((!c || l(i, c)) && (c && (P(e, n), e.restore(), f = d = !0, n.prevElClipPaths = null, n.allClipped = !1, n.prevEl = null), i && i.length && (P(e, n), e.save(), D(i, e, n), d = !0, n.prevElClipPaths = i)), n.allClipped) {
|
|
163
163
|
t.__dirty &= -2, t.__isRendered = !1;
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
166
|
t.beforeBrush && t.beforeBrush(n.beforeBrushParam), t.innerBeforeBrush();
|
|
167
167
|
var p = n.prevEl;
|
|
168
168
|
p || (f = d = !0);
|
|
169
|
-
var m = t instanceof
|
|
170
|
-
d || O(
|
|
169
|
+
var m = t instanceof a && t.autoBatch && N(u);
|
|
170
|
+
d || O(r, p.transform) ? (P(e, n), E(e, t)) : m || P(e, n), t instanceof a ? (n.lastDrawType !== k && (f = !0, n.lastDrawType = k), w(e, t, p, f, n), (!m || !n.batchFill && !n.batchStroke) && e.beginPath(), v(e, t, u, m, n)) : t instanceof o ? (n.lastDrawType !== j && (f = !0, n.lastDrawType = j), w(e, t, p, f, n), b(e, t, u)) : t instanceof s ? (n.lastDrawType !== A && (f = !0, n.lastDrawType = A), T(e, t, p, f, n), y(e, t, u)) : t.getTemporalDisplayables && (n.lastDrawType !== M && (f = !0, n.lastDrawType = M), R(e, t, n)), t.innerAfterBrush(), t.afterBrush && (m && P(e, n), t.afterBrush()), n.prevEl = t, t.__dirty = 0, t.__isRendered = !0;
|
|
171
171
|
}
|
|
172
172
|
function L(e, t) {
|
|
173
173
|
P(e, t), t.prevElClipPaths && e.restore();
|