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,99 @@
|
|
|
1
|
+
import { isObject as e } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import t from "../../../../zrender/lib/graphic/Group.js";
|
|
3
|
+
import { updateProps as n } from "../../animation/basicTransition.js";
|
|
4
|
+
import { traverseElements as r } from "../../util/graphic.js";
|
|
5
|
+
import { getLabelStatesModels as i } from "../../label/labelStyle.js";
|
|
6
|
+
import a from "./Symbol.js";
|
|
7
|
+
//#region node_modules/echarts/lib/chart/helper/SymbolDraw.js
|
|
8
|
+
function o(e, t, n, r) {
|
|
9
|
+
return t && !isNaN(t[0]) && !isNaN(t[1]) && !(r && r.isIgnore && r.isIgnore(n)) && !(r && r.clipShape && !r.clipShape.contain(t[0], t[1])) && e.getItemVisual(n, "symbol") !== "none";
|
|
10
|
+
}
|
|
11
|
+
function s(t) {
|
|
12
|
+
return t != null && !e(t) && (t = { isIgnore: t }), t || {};
|
|
13
|
+
}
|
|
14
|
+
function c(e) {
|
|
15
|
+
var t = e.hostModel, n = t.getModel("emphasis");
|
|
16
|
+
return {
|
|
17
|
+
emphasisItemStyle: n.getModel("itemStyle").getItemStyle(),
|
|
18
|
+
blurItemStyle: t.getModel(["blur", "itemStyle"]).getItemStyle(),
|
|
19
|
+
selectItemStyle: t.getModel(["select", "itemStyle"]).getItemStyle(),
|
|
20
|
+
focus: n.get("focus"),
|
|
21
|
+
blurScope: n.get("blurScope"),
|
|
22
|
+
emphasisDisabled: n.get("disabled"),
|
|
23
|
+
hoverScale: n.get("scale"),
|
|
24
|
+
labelStatesModels: i(t),
|
|
25
|
+
cursorStyle: t.get("cursor")
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function l(e, t, n, r, i, a, o) {
|
|
29
|
+
var s = new e(t, n, r, i);
|
|
30
|
+
return s.setPosition(a), t.setItemGraphicEl(n, s), o.add(s), s;
|
|
31
|
+
}
|
|
32
|
+
var u = function() {
|
|
33
|
+
function e(e) {
|
|
34
|
+
this.group = new t(), this._SymbolCtor = e || a;
|
|
35
|
+
}
|
|
36
|
+
return e.prototype.updateData = function(e, t) {
|
|
37
|
+
this._progressiveEls = null, t = s(t);
|
|
38
|
+
var r = this.group, i = e.hostModel, a = this._data, u = this._SymbolCtor, d = t.disableAnimation, f = this._seriesScope = c(e), p = { disableAnimation: d }, m = t.getSymbolPoint || function(t) {
|
|
39
|
+
return e.getItemLayout(t);
|
|
40
|
+
};
|
|
41
|
+
a || r.removeAll(), e.diff(a).add(function(n) {
|
|
42
|
+
var i = m(n);
|
|
43
|
+
o(e, i, n, t) && l(u, e, n, f, p, i, r);
|
|
44
|
+
}).update(function(s, c) {
|
|
45
|
+
var l = a.getItemGraphicEl(c), h = m(s);
|
|
46
|
+
if (!o(e, h, s, t)) {
|
|
47
|
+
r.remove(l);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
var g = e.getItemVisual(s, "symbol") || "circle", _ = l && l.getSymbolType && l.getSymbolType();
|
|
51
|
+
if (!l || _ && _ !== g) r.remove(l), l = new u(e, s, f, p), l.setPosition(h);
|
|
52
|
+
else {
|
|
53
|
+
l.updateData(e, s, f, p);
|
|
54
|
+
var v = {
|
|
55
|
+
x: h[0],
|
|
56
|
+
y: h[1]
|
|
57
|
+
};
|
|
58
|
+
d ? l.attr(v) : n(l, v, i);
|
|
59
|
+
}
|
|
60
|
+
r.add(l), e.setItemGraphicEl(s, l);
|
|
61
|
+
}).remove(function(e) {
|
|
62
|
+
var t = a.getItemGraphicEl(e);
|
|
63
|
+
t && t.fadeOut(function() {
|
|
64
|
+
r.remove(t);
|
|
65
|
+
}, i);
|
|
66
|
+
}).execute(), this._getSymbolPoint = m, this._data = e;
|
|
67
|
+
}, e.prototype.updateLayout = function(e) {
|
|
68
|
+
var t = this._data;
|
|
69
|
+
if (t) for (var n = this, r = t.getStore(), i = 0, a = r.count(); i < a; i++) {
|
|
70
|
+
var s = t.getItemGraphicEl(i), c = n._getSymbolPoint(i);
|
|
71
|
+
o(t, c, i, e) ? (s ||= l(n._SymbolCtor, t, i, n._seriesScope, { disableAnimation: !0 }, c, n.group), s.stopAnimation(), s.setPosition(c), s.markRedraw()) : s && (n.group.remove(s), t.setItemGraphicEl(i, null));
|
|
72
|
+
}
|
|
73
|
+
}, e.prototype.incrementalPrepareUpdate = function(e) {
|
|
74
|
+
this._seriesScope = c(e), this._data = null, this.group.removeAll();
|
|
75
|
+
}, e.prototype.incrementalUpdate = function(e, t, n, r) {
|
|
76
|
+
this._progressiveEls = [], r = s(r);
|
|
77
|
+
function i(e) {
|
|
78
|
+
e.isGroup || (e.incremental = n, e.ensureState("emphasis").hoverLayer = 2);
|
|
79
|
+
}
|
|
80
|
+
for (var a = e.start; a < e.end; a++) {
|
|
81
|
+
var c = t.getItemLayout(a);
|
|
82
|
+
if (o(t, c, a, r)) {
|
|
83
|
+
var l = new this._SymbolCtor(t, a, this._seriesScope);
|
|
84
|
+
l.traverse(i), l.setPosition(c), this.group.add(l), t.setItemGraphicEl(a, l), this._progressiveEls.push(l);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}, e.prototype.eachRendered = function(e) {
|
|
88
|
+
r(this._progressiveEls || this.group, e);
|
|
89
|
+
}, e.prototype.remove = function(e) {
|
|
90
|
+
var t = this.group, n = this._data;
|
|
91
|
+
n && e ? n.eachItemGraphicEl(function(e) {
|
|
92
|
+
e.fadeOut(function() {
|
|
93
|
+
t.remove(e);
|
|
94
|
+
}, n.hostModel);
|
|
95
|
+
}) : t.removeAll();
|
|
96
|
+
}, e;
|
|
97
|
+
}();
|
|
98
|
+
//#endregion
|
|
99
|
+
export { u as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isNullableNumberFinite as e } from "../../util/number.js";
|
|
2
|
+
import { isOrdinalScale as t } from "../../scale/helper.js";
|
|
3
|
+
import { calcBandWidth as n } from "../../coord/axisBand.js";
|
|
4
|
+
import { registerMetricImplLiPosMinGap as r } from "../../coord/axisStatisticsMetricsImpl.js";
|
|
5
|
+
//#region node_modules/echarts/lib/chart/helper/axisSnippets.js
|
|
6
|
+
function i(t) {
|
|
7
|
+
return function(r, i) {
|
|
8
|
+
var a = n(r, { fromStat: { key: t } });
|
|
9
|
+
if (e(a.w2)) return [-a.w2 / 2, a.w2 / 2];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function a(e, t) {
|
|
13
|
+
return e + "|&" + t;
|
|
14
|
+
}
|
|
15
|
+
function o(e) {
|
|
16
|
+
return r(), { liPosMinGap: !t(e.scale) };
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { i as createBandWidthBasedAxisContainShapeHandler, o as createMetricsNonOrdinalLinearPositiveMinGap, a as makeAxisStatKey2 };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isFunction as e } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import t from "../../../../zrender/lib/graphic/shape/Rect.js";
|
|
3
|
+
import { round as n } from "../../util/number.js";
|
|
4
|
+
import r from "../../../../zrender/lib/graphic/shape/Sector.js";
|
|
5
|
+
import { initProps as i } from "../../animation/basicTransition.js";
|
|
6
|
+
//#region node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js
|
|
7
|
+
function a(n, r, a, o, s) {
|
|
8
|
+
var c = n.getArea(), l = c.x, u = c.y, d = c.width, f = c.height, p = a.get(["lineStyle", "width"]) || 0;
|
|
9
|
+
l -= p / 2, u -= p / 2, d += p, f += p, d = Math.ceil(d), l !== Math.floor(l) && (l = Math.floor(l), d++);
|
|
10
|
+
var m = new t({ shape: {
|
|
11
|
+
x: l,
|
|
12
|
+
y: u,
|
|
13
|
+
width: d,
|
|
14
|
+
height: f
|
|
15
|
+
} });
|
|
16
|
+
if (r) {
|
|
17
|
+
var h = n.getBaseAxis(), g = h.isHorizontal(), _ = h.inverse;
|
|
18
|
+
g ? (_ && (m.shape.x += d), m.shape.width = 0) : (_ || (m.shape.y += f), m.shape.height = 0);
|
|
19
|
+
var v = e(s) ? function(e) {
|
|
20
|
+
s(e, m);
|
|
21
|
+
} : null;
|
|
22
|
+
i(m, { shape: {
|
|
23
|
+
width: d,
|
|
24
|
+
height: f,
|
|
25
|
+
x: l,
|
|
26
|
+
y: u
|
|
27
|
+
} }, a, null, o, v);
|
|
28
|
+
}
|
|
29
|
+
return m;
|
|
30
|
+
}
|
|
31
|
+
function o(e, t, a) {
|
|
32
|
+
var o = e.getArea(), s = n(o.r0, 1), c = n(o.r, 1), l = new r({ shape: {
|
|
33
|
+
cx: n(e.cx, 1),
|
|
34
|
+
cy: n(e.cy, 1),
|
|
35
|
+
r0: s,
|
|
36
|
+
r: c,
|
|
37
|
+
startAngle: o.startAngle,
|
|
38
|
+
endAngle: o.endAngle,
|
|
39
|
+
clockwise: o.clockwise
|
|
40
|
+
} });
|
|
41
|
+
return t && (e.getBaseAxis().dim === "angle" ? l.shape.endAngle = o.startAngle : l.shape.r = s, i(l, { shape: {
|
|
42
|
+
endAngle: o.endAngle,
|
|
43
|
+
r: c
|
|
44
|
+
} }, a)), l;
|
|
45
|
+
}
|
|
46
|
+
function s(e, t, n, r, i) {
|
|
47
|
+
return e ? e.type === "polar" ? o(e, t, n) : e.type === "cartesian2d" ? a(e, t, n, r, i) : null : null;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
export { s as createClipPath, a as createGridClipPath, o as createPolarClipPath };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { curry as e, each as t, isArray as n, isFunction as r, map as i } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { getDataItemValue as a } from "../../util/model.js";
|
|
3
|
+
import { SOURCE_FORMAT_ORIGINAL as o } from "../../util/types.js";
|
|
4
|
+
import { makeSeriesEncodeForAxisCoordSys as s } from "../../data/helper/sourceHelper.js";
|
|
5
|
+
import { createSourceFromSeriesDataOption as c } from "../../data/Source.js";
|
|
6
|
+
import { getDimensionTypeByAxis as l } from "../../data/helper/dimensionHelper.js";
|
|
7
|
+
import u from "../../data/SeriesData.js";
|
|
8
|
+
import d from "../../data/helper/createDimensions.js";
|
|
9
|
+
import f from "../../core/CoordinateSystem.js";
|
|
10
|
+
import { getCoordSysInfoBySeries as p } from "../../model/referHelper.js";
|
|
11
|
+
import { enableDataStack as m } from "../../data/helper/dataStackHelper.js";
|
|
12
|
+
//#region node_modules/echarts/lib/chart/helper/createSeriesData.js
|
|
13
|
+
function h(e, t) {
|
|
14
|
+
var n = e.get("coordinateSystem"), r = f.get(n), a;
|
|
15
|
+
return t && t.coordSysDims && (a = i(t.coordSysDims, function(e) {
|
|
16
|
+
var n = { name: e }, r = t.axisMap.get(e);
|
|
17
|
+
return r && (n.type = l(r.get("type"))), n;
|
|
18
|
+
})), a ||= r && (r.getDimensionsInfo ? r.getDimensionsInfo() : r.dimensions.slice()) || ["x", "y"], a;
|
|
19
|
+
}
|
|
20
|
+
function g(e, n, r) {
|
|
21
|
+
var i, a;
|
|
22
|
+
return r && t(e, function(e, t) {
|
|
23
|
+
var o = e.coordDim, s = r.categoryAxisMap.get(o);
|
|
24
|
+
s && (i ??= t, e.ordinalMeta = s.getOrdinalMeta(), n && (e.createInvertedIndices = !0)), e.otherDims.itemName != null && (a = !0);
|
|
25
|
+
}), !a && i != null && (e[i].otherDims.itemName = 0), i;
|
|
26
|
+
}
|
|
27
|
+
function _(t, n, i) {
|
|
28
|
+
i ||= {};
|
|
29
|
+
var a = n.getSourceManager(), l, f = !1;
|
|
30
|
+
t ? (f = !0, l = c(t)) : (l = a.getSource(), f = l.sourceFormat === o);
|
|
31
|
+
var _ = p(n), y = h(n, _), b = i.useEncodeDefaulter, x = r(b) ? b : b ? e(s, y, n) : null, S = {
|
|
32
|
+
coordDimensions: y,
|
|
33
|
+
generateCoord: i.generateCoord,
|
|
34
|
+
encodeDefine: n.getEncode(),
|
|
35
|
+
encodeDefaulter: x,
|
|
36
|
+
canOmitUnusedDimensions: !f
|
|
37
|
+
}, C = d(l, S), w = g(C.dimensions, i.createInvertedIndices, _), T = f ? null : a.getSharedDataStore(C), E = m(n, {
|
|
38
|
+
schema: C,
|
|
39
|
+
store: T
|
|
40
|
+
}), D = new u(C, n);
|
|
41
|
+
D.setCalculationInfo(E);
|
|
42
|
+
var O = w != null && v(l) ? function(e, t, n, r) {
|
|
43
|
+
return r === w ? n : this.defaultDimValueGetter(e, t, n, r);
|
|
44
|
+
} : null;
|
|
45
|
+
return D.hasItemOption = !1, D.initData(f ? l : T, null, O), D;
|
|
46
|
+
}
|
|
47
|
+
function v(e) {
|
|
48
|
+
if (e.sourceFormat === "original") return !n(a(y(e.data || [])));
|
|
49
|
+
}
|
|
50
|
+
function y(e) {
|
|
51
|
+
for (var t = 0; t < e.length && e[t] == null;) t++;
|
|
52
|
+
return e[t];
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { _ as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { extend as e, isArray as t } from "../../../../zrender/lib/core/util.js";
|
|
2
|
-
import n from "../../data/
|
|
3
|
-
import r from "../../data/
|
|
2
|
+
import n from "../../data/SeriesData.js";
|
|
3
|
+
import r from "../../data/helper/createDimensions.js";
|
|
4
4
|
//#region node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js
|
|
5
5
|
function i(i, a, o) {
|
|
6
6
|
a = t(a) && { coordDimensions: a } || e({ encodeDefine: i.getEncode() }, a);
|
|
7
|
-
var s = i.getSource(), c =
|
|
7
|
+
var s = i.getSource(), c = r(s, a).dimensions, l = new n(c, i);
|
|
8
8
|
return l.initData(s, o), l;
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isArray as e } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { retrieveRawValue as t } from "../../data/helper/dataProvider.js";
|
|
3
|
+
//#region node_modules/echarts/lib/chart/helper/labelHelper.js
|
|
4
|
+
function n(e, n) {
|
|
5
|
+
var r = e.mapDimensionsAll("defaultedLabel"), i = r.length;
|
|
6
|
+
if (i === 1) {
|
|
7
|
+
var a = t(e, n, r[0]);
|
|
8
|
+
return a == null ? null : a + "";
|
|
9
|
+
} else if (i) {
|
|
10
|
+
for (var o = [], s = 0; s < r.length; s++) o.push(t(e, n, r[s]));
|
|
11
|
+
return o.join(" ");
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function r(t, n) {
|
|
15
|
+
var r = t.mapDimensionsAll("defaultedLabel");
|
|
16
|
+
if (!e(n)) return n + "";
|
|
17
|
+
for (var i = [], a = 0; a < r.length; a++) {
|
|
18
|
+
var o = t.getDimensionIndex(r[a]);
|
|
19
|
+
o >= 0 && i.push(n[o]);
|
|
20
|
+
}
|
|
21
|
+
return i.join(" ");
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { r as getDefaultInterpolatedLabel, n as getDefaultLabel };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import t from "../../../../zrender/lib/graphic/Group.js";
|
|
3
|
+
import n from "../helper/createSeriesData.js";
|
|
4
|
+
import r from "../../visual/tokens.js";
|
|
5
|
+
import i from "../../model/Series.js";
|
|
6
|
+
import { createSymbol as a } from "../../util/symbol.js";
|
|
7
|
+
//#region node_modules/echarts/lib/chart/line/LineSeries.js
|
|
8
|
+
var o = function(i) {
|
|
9
|
+
e(o, i);
|
|
10
|
+
function o() {
|
|
11
|
+
var e = i !== null && i.apply(this, arguments) || this;
|
|
12
|
+
return e.type = o.type, e.hasSymbolVisual = !0, e;
|
|
13
|
+
}
|
|
14
|
+
return o.prototype.getInitialData = function(e) {
|
|
15
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16
|
+
var t = e.coordinateSystem;
|
|
17
|
+
if (t !== "polar" && t !== "cartesian2d") throw Error("Line not support coordinateSystem besides cartesian and polar");
|
|
18
|
+
}
|
|
19
|
+
return n(null, this, { useEncodeDefaulter: !0 });
|
|
20
|
+
}, o.prototype.getLegendIcon = function(e) {
|
|
21
|
+
var n = new t(), i = a("line", 0, e.itemHeight / 2, e.itemWidth, 0, e.lineStyle.stroke, !1);
|
|
22
|
+
n.add(i), i.setStyle(e.lineStyle);
|
|
23
|
+
var o = this.getData().getVisual("symbol"), s = this.getData().getVisual("symbolRotate"), c = o === "none" ? "circle" : o, l = e.itemHeight * .8, u = a(c, (e.itemWidth - l) / 2, (e.itemHeight - l) / 2, l, l, e.itemStyle.fill);
|
|
24
|
+
return n.add(u), u.setStyle(e.itemStyle), u.rotation = (e.iconRotate === "inherit" ? s : e.iconRotate || 0) * Math.PI / 180, u.setOrigin([e.itemWidth / 2, e.itemHeight / 2]), c.indexOf("empty") > -1 && (u.style.stroke = u.style.fill, u.style.fill = r.color.neutral00, u.style.lineWidth = 2), n;
|
|
25
|
+
}, o.type = "series.line", o.dependencies = ["grid", "polar"], o.defaultOption = {
|
|
26
|
+
z: 3,
|
|
27
|
+
coordinateSystem: "cartesian2d",
|
|
28
|
+
legendHoverLink: !0,
|
|
29
|
+
clip: !0,
|
|
30
|
+
label: { position: "top" },
|
|
31
|
+
endLabel: {
|
|
32
|
+
show: !1,
|
|
33
|
+
valueAnimation: !0,
|
|
34
|
+
distance: 8
|
|
35
|
+
},
|
|
36
|
+
lineStyle: {
|
|
37
|
+
width: 2,
|
|
38
|
+
type: "solid"
|
|
39
|
+
},
|
|
40
|
+
emphasis: { scale: !0 },
|
|
41
|
+
step: !1,
|
|
42
|
+
smooth: !1,
|
|
43
|
+
smoothMonotone: null,
|
|
44
|
+
symbol: "emptyCircle",
|
|
45
|
+
symbolSize: 6,
|
|
46
|
+
symbolRotate: null,
|
|
47
|
+
showSymbol: !0,
|
|
48
|
+
showAllSymbol: "auto",
|
|
49
|
+
connectNulls: !1,
|
|
50
|
+
sampling: "none",
|
|
51
|
+
animationEasing: "linear",
|
|
52
|
+
progressive: 0,
|
|
53
|
+
hoverLayerThreshold: Infinity,
|
|
54
|
+
universalTransition: { divideShape: "clone" },
|
|
55
|
+
triggerLineEvent: !1,
|
|
56
|
+
triggerEvent: !1
|
|
57
|
+
}, o;
|
|
58
|
+
}(i);
|
|
59
|
+
//#endregion
|
|
60
|
+
export { o as default };
|