reke-ui 0.5.3 → 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 +465 -0
- 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/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 +5 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +83 -77
- package/package.json +5 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defaults as e, merge as t } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import n from "../visual/tokens.js";
|
|
3
|
+
//#region node_modules/echarts/lib/coord/axisDefault.js
|
|
4
|
+
var r = {
|
|
5
|
+
show: !0,
|
|
6
|
+
z: 0,
|
|
7
|
+
inverse: !1,
|
|
8
|
+
name: "",
|
|
9
|
+
nameLocation: "end",
|
|
10
|
+
nameRotate: null,
|
|
11
|
+
nameTruncate: {
|
|
12
|
+
maxWidth: null,
|
|
13
|
+
ellipsis: "...",
|
|
14
|
+
placeholder: "."
|
|
15
|
+
},
|
|
16
|
+
nameTextStyle: {},
|
|
17
|
+
nameGap: 15,
|
|
18
|
+
silent: !1,
|
|
19
|
+
triggerEvent: !1,
|
|
20
|
+
tooltip: { show: !1 },
|
|
21
|
+
axisPointer: {},
|
|
22
|
+
axisLine: {
|
|
23
|
+
show: !0,
|
|
24
|
+
onZero: "auto",
|
|
25
|
+
onZeroAxisIndex: null,
|
|
26
|
+
lineStyle: {
|
|
27
|
+
color: n.color.axisLine,
|
|
28
|
+
width: 1,
|
|
29
|
+
type: "solid"
|
|
30
|
+
},
|
|
31
|
+
symbol: ["none", "none"],
|
|
32
|
+
symbolSize: [10, 15],
|
|
33
|
+
breakLine: !0
|
|
34
|
+
},
|
|
35
|
+
axisTick: {
|
|
36
|
+
show: !0,
|
|
37
|
+
inside: !1,
|
|
38
|
+
length: 5,
|
|
39
|
+
lineStyle: { width: 1 }
|
|
40
|
+
},
|
|
41
|
+
axisLabel: {
|
|
42
|
+
show: !0,
|
|
43
|
+
inside: !1,
|
|
44
|
+
rotate: 0,
|
|
45
|
+
showMinLabel: null,
|
|
46
|
+
showMaxLabel: null,
|
|
47
|
+
margin: 8,
|
|
48
|
+
fontSize: 12,
|
|
49
|
+
color: n.color.axisLabel,
|
|
50
|
+
textMargin: [0, 3]
|
|
51
|
+
},
|
|
52
|
+
splitLine: {
|
|
53
|
+
show: !0,
|
|
54
|
+
showMinLine: !0,
|
|
55
|
+
showMaxLine: !0,
|
|
56
|
+
lineStyle: {
|
|
57
|
+
color: n.color.axisSplitLine,
|
|
58
|
+
width: 1,
|
|
59
|
+
type: "solid"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
splitArea: {
|
|
63
|
+
show: !1,
|
|
64
|
+
areaStyle: { color: [n.color.backgroundTint, n.color.backgroundTransparent] }
|
|
65
|
+
},
|
|
66
|
+
breakArea: {
|
|
67
|
+
show: !0,
|
|
68
|
+
itemStyle: {
|
|
69
|
+
color: n.color.neutral00,
|
|
70
|
+
borderColor: n.color.border,
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
borderType: [3, 3],
|
|
73
|
+
opacity: .6
|
|
74
|
+
},
|
|
75
|
+
zigzagAmplitude: 4,
|
|
76
|
+
zigzagMinSpan: 4,
|
|
77
|
+
zigzagMaxSpan: 20,
|
|
78
|
+
zigzagZ: 100,
|
|
79
|
+
expandOnClick: !0
|
|
80
|
+
},
|
|
81
|
+
breakLabelLayout: { moveOverlap: "auto" }
|
|
82
|
+
}, i = t({
|
|
83
|
+
boundaryGap: !0,
|
|
84
|
+
deduplication: null,
|
|
85
|
+
jitter: 0,
|
|
86
|
+
jitterOverlap: !0,
|
|
87
|
+
jitterMargin: 2,
|
|
88
|
+
splitLine: { show: !1 },
|
|
89
|
+
axisTick: {
|
|
90
|
+
alignWithLabel: !1,
|
|
91
|
+
interval: "auto",
|
|
92
|
+
show: "auto"
|
|
93
|
+
},
|
|
94
|
+
axisLabel: { interval: "auto" }
|
|
95
|
+
}, r), a = t({
|
|
96
|
+
boundaryGap: [0, 0],
|
|
97
|
+
axisLine: { show: "auto" },
|
|
98
|
+
axisTick: { show: "auto" },
|
|
99
|
+
splitNumber: 5,
|
|
100
|
+
minorTick: {
|
|
101
|
+
show: !1,
|
|
102
|
+
splitNumber: 5,
|
|
103
|
+
length: 3,
|
|
104
|
+
lineStyle: {}
|
|
105
|
+
},
|
|
106
|
+
minorSplitLine: {
|
|
107
|
+
show: !1,
|
|
108
|
+
lineStyle: {
|
|
109
|
+
color: n.color.axisMinorSplitLine,
|
|
110
|
+
width: 1
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}, r), o = {
|
|
114
|
+
category: i,
|
|
115
|
+
value: a,
|
|
116
|
+
time: t({
|
|
117
|
+
splitNumber: 6,
|
|
118
|
+
axisLabel: { rich: { primary: { fontWeight: "bold" } } },
|
|
119
|
+
splitLine: { show: !1 }
|
|
120
|
+
}, a),
|
|
121
|
+
log: e({ logBase: 10 }, a)
|
|
122
|
+
};
|
|
123
|
+
//#endregion
|
|
124
|
+
export { o as default };
|
|
@@ -1,21 +1,130 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { each as e, hasOwn as t, isFunction as n, isString as r, keys as i } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as a } from "../util/log.js";
|
|
3
|
+
import { initExtentForUnion as o, isValidBoundsForExtent as s, makeInner as c } from "../util/model.js";
|
|
4
|
+
import { getStackedDimension as l } from "../data/helper/dataStackHelper.js";
|
|
5
|
+
import { getScaleBreakHelper as u } from "../scale/break.js";
|
|
6
|
+
import { parseTimeAxisLabelFormatter as d } from "../util/time.js";
|
|
7
|
+
import f from "../model/Component.js";
|
|
8
|
+
import p from "../scale/Scale.js";
|
|
9
|
+
import { getScaleExtentForMappingUnsafe as m } from "../scale/scaleMapper.js";
|
|
10
|
+
import { extentDiffers as h, isLogScale as g, isOrdinalScale as _ } from "../scale/helper.js";
|
|
11
|
+
import v from "../scale/Ordinal.js";
|
|
12
|
+
import y from "../scale/Interval.js";
|
|
13
|
+
import b from "../scale/Time.js";
|
|
14
|
+
import x from "../scale/Log.js";
|
|
15
|
+
import { AXIS_TYPES as S } from "./axisCommonTypes.js";
|
|
16
|
+
//#region node_modules/echarts/lib/coord/axisHelper.js
|
|
17
|
+
var C = c();
|
|
18
|
+
function w(e) {
|
|
19
|
+
var n = e.get("type");
|
|
20
|
+
return (n == null || !t(S, n) && !p.getClass(n)) && (n = "value"), n;
|
|
21
|
+
}
|
|
22
|
+
function T(e, t, n) {
|
|
23
|
+
var r = u(), i;
|
|
24
|
+
switch (r && (i = I(e, t, n)), t) {
|
|
25
|
+
case "category": return new v({
|
|
26
|
+
ordinalMeta: e.getOrdinalMeta ? e.getOrdinalMeta() : e.getCategories(),
|
|
27
|
+
extent: o()
|
|
28
|
+
});
|
|
29
|
+
case "time": return new b({
|
|
30
|
+
locale: e.ecModel.getLocaleModel(),
|
|
31
|
+
useUTC: e.ecModel.get("useUTC"),
|
|
32
|
+
breakOption: i
|
|
33
|
+
});
|
|
34
|
+
case "log": return new x({
|
|
35
|
+
logBase: e.get("logBase"),
|
|
36
|
+
breakOption: i
|
|
37
|
+
});
|
|
38
|
+
case "value": return new y({ breakOption: i });
|
|
39
|
+
default: return new ((p.getClass(t)) || y)({});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function E(e, t, n) {
|
|
43
|
+
var r = n ? m(e, null) : e.getExtentUnsafe(0, null), i = r[0], a = r[1];
|
|
44
|
+
return s(i, a) ? i === t || a === t ? 2 : i < t && a > t ? 1 : 3 : 3;
|
|
45
|
+
}
|
|
46
|
+
function D(e) {
|
|
47
|
+
C(e).noOnMyZero = !0;
|
|
48
|
+
}
|
|
49
|
+
function O(e) {
|
|
50
|
+
return C(e).noOnMyZero;
|
|
51
|
+
}
|
|
52
|
+
function k(e) {
|
|
53
|
+
var t = e.getLabelModel().get("formatter");
|
|
54
|
+
if (e.type === "time") {
|
|
55
|
+
var i = d(t);
|
|
56
|
+
return function(t, n) {
|
|
57
|
+
return e.scale.getFormattedLabel(t, n, i);
|
|
58
|
+
};
|
|
59
|
+
} else if (r(t)) return function(n) {
|
|
60
|
+
var r = e.scale.getLabel(n);
|
|
61
|
+
return t.replace("{value}", r ?? "");
|
|
62
|
+
};
|
|
63
|
+
else if (n(t)) {
|
|
64
|
+
if (e.type === "category") return function(n, r) {
|
|
65
|
+
return t(A(e, n), n.value - e.scale.getExtent()[0], null);
|
|
66
|
+
};
|
|
67
|
+
var a = u();
|
|
68
|
+
return function(n, r) {
|
|
69
|
+
var i = null;
|
|
70
|
+
return a && (i = a.makeAxisLabelFormatterParamBreak(i, n.break)), t(A(e, n), r, i);
|
|
71
|
+
};
|
|
72
|
+
} else return function(t) {
|
|
73
|
+
return e.scale.getLabel(t);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function A(e, t) {
|
|
77
|
+
var n = e.scale;
|
|
78
|
+
return _(n) ? n.getLabel(t) : t.value;
|
|
79
|
+
}
|
|
80
|
+
function j(e) {
|
|
9
81
|
return e.get("interval") ?? "auto";
|
|
10
82
|
}
|
|
11
|
-
function
|
|
12
|
-
return e.type === "category" &&
|
|
83
|
+
function M(e) {
|
|
84
|
+
return e.type === "category" && j(e.getLabelModel()) === 0;
|
|
13
85
|
}
|
|
14
|
-
function
|
|
86
|
+
function N(t, n) {
|
|
87
|
+
var r = {};
|
|
88
|
+
return e(t.mapDimensionsAll(n), function(e) {
|
|
89
|
+
r[l(t, e)] = !0;
|
|
90
|
+
}), i(r);
|
|
91
|
+
}
|
|
92
|
+
function P(e) {
|
|
15
93
|
return e === "middle" || e === "center";
|
|
16
94
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
95
|
+
function F(e) {
|
|
96
|
+
return e.getShallow("show");
|
|
97
|
+
}
|
|
98
|
+
function I(e, t, n) {
|
|
99
|
+
var r = e.get("breaks", !0);
|
|
100
|
+
if (r != null) {
|
|
101
|
+
if (!u()) {
|
|
102
|
+
process.env.NODE_ENV !== "production" && a("Must `import {AxisBreak} from \"echarts/features.js\"; use(AxisBreak);` first if using breaks option.");
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (!n || !L(t)) {
|
|
106
|
+
process.env.NODE_ENV !== "production" && a("Axis" + (e instanceof f ? " " + e.type + "[" + e.componentIndex + "]" : "") + " does not support break.");
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
return r;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function L(e) {
|
|
113
|
+
return e !== "category";
|
|
114
|
+
}
|
|
115
|
+
function R(e, t, n, r, i, a) {
|
|
116
|
+
var o = g(e), s = o ? e.intervalStub : e;
|
|
117
|
+
if (s.setExtent(r[0], r[1]), o) {
|
|
118
|
+
var c = e.powStub, l = { depth: 2 }, u = e.transformOut(r[0], l), d = e.transformOut(r[1], l), f = h(n, r);
|
|
119
|
+
t[0] && !f[0] && (u = i[0]), t[1] && !f[1] && (d = i[1]), c.setExtent(u, d);
|
|
120
|
+
}
|
|
121
|
+
s.setConfig(a);
|
|
122
|
+
}
|
|
123
|
+
function z(e, t) {
|
|
124
|
+
return _(e) ? e.getRawOrdinalNumber(t.value) : t.value;
|
|
125
|
+
}
|
|
126
|
+
function B(e, t) {
|
|
127
|
+
return _(e) && !!t.get("boundaryGap");
|
|
19
128
|
}
|
|
20
129
|
//#endregion
|
|
21
|
-
export {
|
|
130
|
+
export { T as createScaleByModel, w as determineAxisType, D as discourageOnAxisZero, A as getAxisRawValue, N as getDataDimensionsOnAxis, j as getOptionCategoryInterval, E as getScaleValuePositionKind, z as getTickValueOutermost, B as isAxisOnBand, P as isNameLocationCenter, O as isOnAxisZeroDiscouraged, k as makeLabelFormatter, I as retrieveAxisBreaksOption, F as shouldAxisShow, M as shouldShowAllLabels, R as updateIntervalOrLogScaleForNiceOrAligned };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/echarts/lib/coord/axisModelCommonMixin.js
|
|
2
|
+
var e = function() {
|
|
3
|
+
function e() {}
|
|
4
|
+
return e.prototype.needIncludeZero = function() {
|
|
5
|
+
return !this.option.scale;
|
|
6
|
+
}, e.prototype.getCoordSysModel = function() {}, e;
|
|
7
|
+
}();
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as AxisModelCommonMixin };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { each as t, merge as n } from "../../../zrender/lib/core/util.js";
|
|
3
|
+
import { fetchLayoutMode as r, getLayoutParams as i, mergeLayoutParam as a } from "../util/layout.js";
|
|
4
|
+
import o from "../data/OrdinalMeta.js";
|
|
5
|
+
import { AXIS_TYPES as s } from "./axisCommonTypes.js";
|
|
6
|
+
import { getAxisBreakHelper as c } from "../component/axis/axisBreakHelper.js";
|
|
7
|
+
import l from "./axisDefault.js";
|
|
8
|
+
//#region node_modules/echarts/lib/coord/axisModelCreator.js
|
|
9
|
+
function u(u, f, p, m) {
|
|
10
|
+
t(s, function(t, s) {
|
|
11
|
+
var h = n(n({}, l[s], !0), m, !0), g = function(t) {
|
|
12
|
+
e(l, t);
|
|
13
|
+
function l() {
|
|
14
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
15
|
+
return e.type = f + "Axis." + s, e;
|
|
16
|
+
}
|
|
17
|
+
return l.prototype.mergeDefaultAndTheme = function(e, t) {
|
|
18
|
+
var o = r(this), c = o ? i(e) : {};
|
|
19
|
+
n(e, t.getTheme().get(s + "Axis")), n(e, this.getDefaultOption()), e.type = d(e), o && a(e, c, o);
|
|
20
|
+
}, l.prototype.optionUpdated = function() {
|
|
21
|
+
this.option.type === "category" && (this.__ordinalMeta = o.createByAxisModel(this));
|
|
22
|
+
}, l.prototype.getCategories = function(e) {
|
|
23
|
+
var t = this.option;
|
|
24
|
+
if (t.type === "category") return e ? t.data : this.__ordinalMeta.categories;
|
|
25
|
+
}, l.prototype.getOrdinalMeta = function() {
|
|
26
|
+
return this.__ordinalMeta;
|
|
27
|
+
}, l.prototype.updateAxisBreaks = function(e) {
|
|
28
|
+
var t = c();
|
|
29
|
+
return t ? t.updateModelAxisBreak(this, e) : { breaks: [] };
|
|
30
|
+
}, l.type = f + "Axis." + s, l.defaultOption = h, l;
|
|
31
|
+
}(p);
|
|
32
|
+
u.registerComponentModel(g);
|
|
33
|
+
}), u.registerSubTypeDefaulter(f + "Axis", d);
|
|
34
|
+
}
|
|
35
|
+
function d(e) {
|
|
36
|
+
return e.type || (e.data ? "category" : "value");
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { u as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { assert as e, noop as t } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { mathCeil as n, mathFloor as r, mathMax as i, nice as a, quantity as o, round as s } from "../util/number.js";
|
|
3
|
+
import { getScaleLinearSpanEffective as c } from "../scale/scaleMapper.js";
|
|
4
|
+
import { ensureValidSplitNumber as l, getIntervalPrecision as u, intervalScaleEnsureValidExtent as d, isIntervalScale as f, isLogScale as p, isTimeScale as m } from "../scale/helper.js";
|
|
5
|
+
import { calcNiceForTimeScale as h } from "../scale/Time.js";
|
|
6
|
+
import { updateIntervalOrLogScaleForNiceOrAligned as g } from "./axisHelper.js";
|
|
7
|
+
import { adoptScaleExtentKindMapping as _, adoptScaleRawExtentInfoAndPrepare as v } from "./scaleRawExtentInfo.js";
|
|
8
|
+
//#region node_modules/echarts/lib/coord/axisNiceTicks.js
|
|
9
|
+
function y(e, t) {
|
|
10
|
+
var i = p(e), a = i ? e.intervalStub : e, o = t.fixMinMax || [], c = i ? e.getExtent() : null, l = a.getExtent(), f = d(l, o, t.rawExtentResult);
|
|
11
|
+
a.setExtent(f[0], f[1]), f = a.getExtent();
|
|
12
|
+
var m = i ? x(a, t) : b(a, t), h = m.intervalPrecision, _ = m.interval, v = t.userInterval;
|
|
13
|
+
v != null && (m.interval = v, m.intervalPrecision = u(v)), o[0] || (f[0] = s(r(f[0] / _) * _, h)), o[1] || (f[1] = s(n(f[1] / _) * _, h)), v != null && (m.niceExtent = f.slice()), g(e, o, l, f, c, m);
|
|
14
|
+
}
|
|
15
|
+
function b(t, i) {
|
|
16
|
+
var o = l(i.splitNumber, 5), d = c(t);
|
|
17
|
+
process.env.NODE_ENV !== "production" && e(isFinite(d) && d > 0);
|
|
18
|
+
var f = i.minInterval, p = i.maxInterval, m = a(d / o, !0);
|
|
19
|
+
f != null && m < f && (m = f), p != null && m > p && (m = p);
|
|
20
|
+
var h = u(m), g = t.getExtent(), _ = [s(n(g[0] / m) * m, h), s(r(g[1] / m) * m, h)];
|
|
21
|
+
return {
|
|
22
|
+
interval: m,
|
|
23
|
+
intervalPrecision: h,
|
|
24
|
+
niceExtent: _
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function x(t, a) {
|
|
28
|
+
var d = l(a.splitNumber, 10), f = t.getExtent(), p = c(t);
|
|
29
|
+
process.env.NODE_ENV !== "production" && e(isFinite(p) && p > 0);
|
|
30
|
+
var m = i(o(p), 1);
|
|
31
|
+
d / p * m <= .5 && (m *= 10);
|
|
32
|
+
var h = u(m), g = [s(n(f[0] / m) * m, h), s(r(f[1] / m) * m, h)];
|
|
33
|
+
return {
|
|
34
|
+
intervalPrecision: h,
|
|
35
|
+
interval: m,
|
|
36
|
+
niceExtent: g
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function S(t) {
|
|
40
|
+
var n = t.scale, r = t.model, i = r.axis, a = r.ecModel;
|
|
41
|
+
process.env.NODE_ENV !== "production" && e(i && a), C(n, r, i, a, null);
|
|
42
|
+
}
|
|
43
|
+
function C(e, t, n, r, i) {
|
|
44
|
+
var a = v(e, t, r, n, i), o = f(e) || m(e);
|
|
45
|
+
w(e, {
|
|
46
|
+
splitNumber: t.get("splitNumber"),
|
|
47
|
+
fixMinMax: a.fixMM,
|
|
48
|
+
userInterval: t.get("interval"),
|
|
49
|
+
minInterval: o ? t.get("minInterval") : null,
|
|
50
|
+
maxInterval: o ? t.get("maxInterval") : null,
|
|
51
|
+
rawExtentResult: a
|
|
52
|
+
}), n && r && _(n, e, a, r), process.env.NODE_ENV !== "production" && e.freeze();
|
|
53
|
+
}
|
|
54
|
+
function w(e, t) {
|
|
55
|
+
T[e.type](e, t);
|
|
56
|
+
}
|
|
57
|
+
var T = {
|
|
58
|
+
interval: y,
|
|
59
|
+
log: y,
|
|
60
|
+
time: h,
|
|
61
|
+
ordinal: t
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { S as scaleCalcNice };
|
|
@@ -1,38 +1,117 @@
|
|
|
1
|
-
import { assert as e, createHashMap as t } from "../../../zrender/lib/core/util.js";
|
|
2
|
-
import { makeCallOnlyOnce as
|
|
3
|
-
import { getCachePerECFullUpdate as
|
|
4
|
-
|
|
5
|
-
var a =
|
|
6
|
-
|
|
7
|
-
var o;
|
|
8
|
-
process.env.NODE_ENV !== "production" && (o = function(t) {
|
|
1
|
+
import { assert as e, createHashMap as t, each as n, retrieve2 as r } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { makeCallOnlyOnce as i, makeInner as a } from "../util/model.js";
|
|
3
|
+
import { getCachePerECFullUpdate as o, getCachePerECPrepare as s } from "../util/cycleCache.js";
|
|
4
|
+
//#region node_modules/echarts/lib/coord/axisStatistics.js
|
|
5
|
+
var c = i(), l = a(), u = a(), d;
|
|
6
|
+
process.env.NODE_ENV !== "production" && (d = function(t) {
|
|
9
7
|
e(t && t.model && t.model.uid && t.model.ecModel);
|
|
10
8
|
});
|
|
11
|
-
function
|
|
12
|
-
var n = e.model, r =
|
|
13
|
-
return
|
|
9
|
+
function f(e, t) {
|
|
10
|
+
var n = e.model, r = l(o(n.ecModel)).keyed, i = r && r.get(t);
|
|
11
|
+
return i && i.get(n.uid);
|
|
14
12
|
}
|
|
15
|
-
function
|
|
16
|
-
return process.env.NODE_ENV !== "production" && (e(n != null),
|
|
13
|
+
function p(t, n) {
|
|
14
|
+
return process.env.NODE_ENV !== "production" && (e(n != null), d(t)), g(f(t, n));
|
|
17
15
|
}
|
|
18
|
-
function
|
|
19
|
-
process.env.NODE_ENV !== "production" &&
|
|
16
|
+
function m(e, t) {
|
|
17
|
+
process.env.NODE_ENV !== "production" && d(e);
|
|
20
18
|
var n = [];
|
|
21
|
-
return
|
|
22
|
-
for (var r = 0; r < t.length; r++) t[r] && e.serByIdx[t[r].seriesIndex] && n.push(
|
|
19
|
+
return h(e.model.ecModel, function(e) {
|
|
20
|
+
for (var r = 0; r < t.length; r++) t[r] && e.serByIdx[t[r].seriesIndex] && n.push(g(e));
|
|
23
21
|
}), n;
|
|
24
22
|
}
|
|
25
|
-
function
|
|
26
|
-
var n =
|
|
23
|
+
function h(e, t) {
|
|
24
|
+
var n = l(o(e)).keyed;
|
|
27
25
|
n && n.each(function(e, n) {
|
|
28
26
|
e.each(function(e, r) {
|
|
29
27
|
t(e, n, r);
|
|
30
28
|
});
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
|
-
function
|
|
31
|
+
function g(e) {
|
|
34
32
|
return { liPosMinGap: e ? e.liPosMinGap : void 0 };
|
|
35
33
|
}
|
|
36
|
-
|
|
34
|
+
function _(e, t) {
|
|
35
|
+
process.env.NODE_ENV !== "production" && d(e);
|
|
36
|
+
var n = e.model.ecModel, r = l(o(n)).axSer;
|
|
37
|
+
r && y(n, r.get(e.model.uid), t);
|
|
38
|
+
}
|
|
39
|
+
function v(t, n, r) {
|
|
40
|
+
process.env.NODE_ENV !== "production" && (e(n != null), d(t));
|
|
41
|
+
var i = f(t, n);
|
|
42
|
+
i && y(t.model.ecModel, i.sers, r);
|
|
43
|
+
}
|
|
44
|
+
function y(e, t, n) {
|
|
45
|
+
if (t) for (var r = 0; r < t.length; r++) {
|
|
46
|
+
var i = t[r];
|
|
47
|
+
e.isSeriesFiltered(i) || n(i);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function b(t, n, r) {
|
|
51
|
+
process.env.NODE_ENV !== "production" && e(n != null);
|
|
52
|
+
var i = l(o(t)).keyed, a = i && i.get(n);
|
|
53
|
+
a && a.each(function(t) {
|
|
54
|
+
process.env.NODE_ENV !== "production" && e(t.sers.length > 0), r(t.axis);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function x(t, r) {
|
|
58
|
+
process.env.NODE_ENV !== "production" && d(t);
|
|
59
|
+
var i = t.model, a = l(o(i.ecModel)).keys;
|
|
60
|
+
a && n(a.get(i.uid), function(n) {
|
|
61
|
+
if (process.env.NODE_ENV !== "production") {
|
|
62
|
+
var i = f(t, n);
|
|
63
|
+
e(i && i.sers.length > 0);
|
|
64
|
+
}
|
|
65
|
+
r(n);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function S(e) {
|
|
69
|
+
var n = u(s(e)), r = n.keyed ||= t();
|
|
70
|
+
h(e, function(n, i, a) {
|
|
71
|
+
var o = r.get(i) || r.set(i, t()), s = o.get(a) || o.set(a, {});
|
|
72
|
+
n.metrics.liPosMinGap && w.liPosMinGap(e, n, s);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function C(e, t) {
|
|
76
|
+
w[e] = t;
|
|
77
|
+
}
|
|
78
|
+
var w = {};
|
|
79
|
+
function T(n, r, i) {
|
|
80
|
+
if (n) {
|
|
81
|
+
var a = r.ecModel, s = l(o(a)), c = n.model.uid;
|
|
82
|
+
if (process.env.NODE_ENV !== "production") {
|
|
83
|
+
d(n);
|
|
84
|
+
var u = s.axSerPairCheck ||= t(), f = "" + c + "|&" + r.uid;
|
|
85
|
+
e(!u.get(f)), u.set(f, 1);
|
|
86
|
+
}
|
|
87
|
+
var p = s.axSer ||= t(), m = p.get(c) || p.set(c, []);
|
|
88
|
+
if (process.env.NODE_ENV !== "production") {
|
|
89
|
+
var h = m[m.length - 1];
|
|
90
|
+
h && e(h.seriesIndex < r.seriesIndex);
|
|
91
|
+
}
|
|
92
|
+
m.push(r);
|
|
93
|
+
var g = r.subType, _ = r.getBaseAxis() === n, v = k.get(E(g, _, i)) || k.get(E(g, _, null));
|
|
94
|
+
if (v) {
|
|
95
|
+
var y = s.keyed ||= t(), b = s.keys ||= t(), x = v.key, S = y.get(x) || y.set(x, t()), C = S.get(c);
|
|
96
|
+
C || (C = S.set(c, {
|
|
97
|
+
axis: n,
|
|
98
|
+
sers: [],
|
|
99
|
+
serByIdx: []
|
|
100
|
+
}), C.metrics = v.getMetrics(n), (b.get(c) || b.set(c, [])).push(x)), C.sers.push(r), C.serByIdx[r.seriesIndex] = r;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function E(e, t, n) {
|
|
105
|
+
return e + "|&" + r(t, !0) + "|&" + (n || "");
|
|
106
|
+
}
|
|
107
|
+
function D(t, n) {
|
|
108
|
+
var r = E(n.seriesType, n.baseAxis, n.coordSysType);
|
|
109
|
+
process.env.NODE_ENV !== "production" && (e(n.seriesType && n.key && !O.get(n.key) && !k.get(r)), O.set(n.key, 1)), k.set(r, n), c(t, function() {
|
|
110
|
+
t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS, { overallReset: S });
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
var O;
|
|
114
|
+
process.env.NODE_ENV !== "production" && (O = t());
|
|
115
|
+
var k = t();
|
|
37
116
|
//#endregion
|
|
38
|
-
export {
|
|
117
|
+
export { T as associateSeriesWithAxis, b as eachAxisOnKey, x as eachKeyOnAxis, y as eachSeriesDealForAxisStat, _ as eachSeriesOnAxis, v as eachSeriesOnAxisOnKey, p as getAxisStat, m as getAxisStatBySeries, C as registerMetricImpl, D as requireAxisStatistics };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { createHashMap as e } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { asc as t, isNullableNumberFinite as n } from "../util/number.js";
|
|
3
|
+
import { parseSanitizationFilter as r, passesSanitizationFilter as i } from "../data/helper/dataValueHelper.js";
|
|
4
|
+
import { Float64ArrayCtor as a, tryEnsureTypedArray as o } from "../util/vendor.js";
|
|
5
|
+
import { eachSeriesDealForAxisStat as s, registerMetricImpl as c } from "./axisStatistics.js";
|
|
6
|
+
//#region node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js
|
|
7
|
+
function l() {
|
|
8
|
+
c("liPosMinGap", u);
|
|
9
|
+
}
|
|
10
|
+
function u(a, c, l) {
|
|
11
|
+
var u = e(), f = l.serUids, p = l.liPosMinGap, m, h = c.axis, g = h.scale, _ = g.needTransform(), v = g.getFilter ? g.getFilter() : null, y = r(v);
|
|
12
|
+
function b(e) {
|
|
13
|
+
s(a, c.sers, function(t) {
|
|
14
|
+
var n = t.getRawData(), r = n.getDimensionIndex(n.mapDimension(h.dim));
|
|
15
|
+
r >= 0 && e(r, t, n.getStore());
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
var x = 0;
|
|
19
|
+
if (b(function(e, t, n) {
|
|
20
|
+
u.set(t.uid, 1), (!f || !f.hasKey(t.uid)) && (m = !0), x += n.count();
|
|
21
|
+
}), (!f || f.keys().length !== u.keys().length) && (m = !0), !m && p != null) {
|
|
22
|
+
c.liPosMinGap = p;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
o(d, x);
|
|
26
|
+
var S = 0;
|
|
27
|
+
b(function(e, t, n) {
|
|
28
|
+
for (var r = 0, a = n.count(); r < a; ++r) {
|
|
29
|
+
var o = n.get(e, r);
|
|
30
|
+
isFinite(o) && (!v || i(y, o)) && (_ && (o = g.transformIn(o, null)), d.arr[S++] = o);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
var C = d.typed ? d.arr.subarray(0, S) : (d.arr.length = S, d.arr);
|
|
34
|
+
d.typed ? C.sort() : t(C);
|
|
35
|
+
for (var w = Infinity, T = 1; T < S; ++T) {
|
|
36
|
+
var E = C[T] - C[T - 1];
|
|
37
|
+
E > 0 && E < w && (w = E);
|
|
38
|
+
}
|
|
39
|
+
l.liPosMinGap = c.liPosMinGap = n(w) ? w : S > 0 ? -2 : -1, l.serUids = u;
|
|
40
|
+
}
|
|
41
|
+
var d = o({ ctor: a }, 50);
|
|
42
|
+
//#endregion
|
|
43
|
+
export { l as registerMetricImplLiPosMinGap };
|