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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { platformApi as e } from "../../../zrender/lib/core/platform.js";
|
|
2
2
|
import { defaults as t, isArray as n, isNumber as r, isString as i, map as a } from "../../../zrender/lib/core/util.js";
|
|
3
|
-
import
|
|
4
|
-
import s from "
|
|
3
|
+
import o from "../../../zrender/lib/core/LRU.js";
|
|
4
|
+
import { getLeastCommonMultiple as s } from "./number.js";
|
|
5
5
|
import { createSymbol as c } from "./symbol.js";
|
|
6
6
|
import l from "../../../zrender/lib/core/WeakMap.js";
|
|
7
7
|
import { brushSingle as u } from "../../../zrender/lib/canvas/graphic.js";
|
|
8
8
|
//#region node_modules/echarts/lib/util/decal.js
|
|
9
|
-
var d = new l(), f = new
|
|
9
|
+
var d = new l(), f = new o(100), p = [
|
|
10
10
|
"symbol",
|
|
11
11
|
"symbolSize",
|
|
12
12
|
"symbolKeepAspect",
|
|
@@ -17,9 +17,9 @@ var d = new l(), f = new s(100), p = [
|
|
|
17
17
|
"maxTileWidth",
|
|
18
18
|
"maxTileHeight"
|
|
19
19
|
];
|
|
20
|
-
function m(a,
|
|
20
|
+
function m(a, o) {
|
|
21
21
|
if (a === "none") return null;
|
|
22
|
-
var l =
|
|
22
|
+
var l = o.getDevicePixelRatio(), m = o.getZr(), b = m.painter.type === "svg";
|
|
23
23
|
a.dirty && d.delete(a);
|
|
24
24
|
var x = d.get(a);
|
|
25
25
|
if (x) return x;
|
|
@@ -39,16 +39,16 @@ function m(a, s) {
|
|
|
39
39
|
var C = { repeat: "repeat" };
|
|
40
40
|
return w(C), C.rotation = S.rotation, C.scaleX = C.scaleY = b ? 1 : 1 / l, d.set(a, C), a.dirty = !1, C;
|
|
41
41
|
function w(t) {
|
|
42
|
-
for (var a = [l],
|
|
42
|
+
for (var a = [l], o = !0, d = 0; d < p.length; ++d) {
|
|
43
43
|
var x = S[p[d]];
|
|
44
44
|
if (x != null && !n(x) && !i(x) && !r(x) && typeof x != "boolean") {
|
|
45
|
-
|
|
45
|
+
o = !1;
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
48
48
|
a.push(x);
|
|
49
49
|
}
|
|
50
50
|
var C;
|
|
51
|
-
if (
|
|
51
|
+
if (o) {
|
|
52
52
|
C = a.join(",") + (b ? "-svg" : "");
|
|
53
53
|
var w = f.get(C);
|
|
54
54
|
w && (b ? t.svgElement = w : t.image = w);
|
|
@@ -59,10 +59,10 @@ function m(a, s) {
|
|
|
59
59
|
key: "dcl",
|
|
60
60
|
children: []
|
|
61
61
|
}, M = P(), N;
|
|
62
|
-
A && (A.width = M.width * l, A.height = M.height * l, N = A.getContext("2d")), F(),
|
|
62
|
+
A && (A.width = M.width * l, A.height = M.height * l, N = A.getContext("2d")), F(), o && f.put(C, A || j), t.image = A, t.svgElement = j, t.svgWidth = M.width, t.svgHeight = M.height;
|
|
63
63
|
function P() {
|
|
64
|
-
for (var e = 1, t = 0, n = O.length; t < n; ++t) e =
|
|
65
|
-
for (var r = 1, t = 0, n = D.length; t < n; ++t) r =
|
|
64
|
+
for (var e = 1, t = 0, n = O.length; t < n; ++t) e = s(e, O[t]);
|
|
65
|
+
for (var r = 1, t = 0, n = D.length; t < n; ++t) r = s(r, D[t].length);
|
|
66
66
|
e *= r;
|
|
67
67
|
var i = k * O.length * D.length;
|
|
68
68
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -84,4 +84,4 @@ function x(e, t) {
|
|
|
84
84
|
return t ||= "transparent", r(e) ? e : n(e) && e.colorStops && (e.colorStops[0] || {}).color || t;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
export { x as convertToColorString, y as formatTpl, b as getTooltipMarker, g as makeValueReadable, h as normalizeCssArray, m as toCamelCase };
|
|
87
|
+
export { p as addCommas, x as convertToColorString, y as formatTpl, b as getTooltipMarker, g as makeValueReadable, h as normalizeCssArray, m as toCamelCase };
|
|
@@ -1,118 +1,118 @@
|
|
|
1
1
|
import { __exportAll as e } from "../../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { assert as t, clone as n, defaults as r, each as i, extend as a, hasOwn as o, isArray as s, isArrayLike as c, isNumber as l, isString as u, keys as d, map as f } from "../../../zrender/lib/core/util.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import oe from "../../../zrender/lib/graphic/Path.js";
|
|
10
|
-
import { createFromString as se, extendFromString as ce, mergePath as le } from "../../../zrender/lib/tool/path.js";
|
|
3
|
+
import { copy as p, create as m, identity as h, invert as g, mul as ee } from "../../../zrender/lib/core/matrix.js";
|
|
4
|
+
import { applyTransform as te } from "../../../zrender/lib/core/vector.js";
|
|
5
|
+
import ne from "../../../zrender/lib/core/Point.js";
|
|
6
|
+
import _ from "../../../zrender/lib/core/BoundingRect.js";
|
|
7
|
+
import v, { copyTransform as re } from "../../../zrender/lib/core/Transformable.js";
|
|
8
|
+
import y from "../../../zrender/lib/graphic/Path.js";
|
|
11
9
|
import b from "../../../zrender/lib/graphic/Image.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import T from "../../../zrender/lib/graphic/shape/
|
|
20
|
-
import E from "../../../zrender/lib/graphic/shape/
|
|
21
|
-
import D from "../../../zrender/lib/graphic/shape/
|
|
22
|
-
import O from "../../../zrender/lib/graphic/shape/
|
|
23
|
-
import k from "../../../zrender/lib/graphic/shape/
|
|
24
|
-
import A from "../../../zrender/lib/graphic/shape/
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
10
|
+
import { subPixelOptimize as ie, subPixelOptimizeLine as ae, subPixelOptimizeRect as oe } from "../../../zrender/lib/graphic/helper/subPixelOptimize.js";
|
|
11
|
+
import se from "../../../zrender/lib/graphic/shape/Rect.js";
|
|
12
|
+
import ce from "../../../zrender/lib/graphic/Text.js";
|
|
13
|
+
import { mathAbs as x, mathMax as S, mathMin as C } from "./number.js";
|
|
14
|
+
import { getECData as w } from "./innerStore.js";
|
|
15
|
+
import { createFromString as le, extendFromString as ue, mergePath as de } from "../../../zrender/lib/tool/path.js";
|
|
16
|
+
import fe from "../../../zrender/lib/graphic/Group.js";
|
|
17
|
+
import T from "../../../zrender/lib/graphic/shape/Circle.js";
|
|
18
|
+
import E from "../../../zrender/lib/graphic/shape/Ellipse.js";
|
|
19
|
+
import D from "../../../zrender/lib/graphic/shape/Sector.js";
|
|
20
|
+
import O from "../../../zrender/lib/graphic/shape/Ring.js";
|
|
21
|
+
import k from "../../../zrender/lib/graphic/shape/Polygon.js";
|
|
22
|
+
import A from "../../../zrender/lib/graphic/shape/Polyline.js";
|
|
23
|
+
import j from "../../../zrender/lib/graphic/shape/Line.js";
|
|
24
|
+
import M from "../../../zrender/lib/graphic/shape/BezierCurve.js";
|
|
25
|
+
import N from "../../../zrender/lib/graphic/shape/Arc.js";
|
|
26
|
+
import pe from "../../../zrender/lib/graphic/CompoundPath.js";
|
|
27
|
+
import me from "../../../zrender/lib/graphic/LinearGradient.js";
|
|
28
|
+
import he from "../../../zrender/lib/graphic/RadialGradient.js";
|
|
29
|
+
import ge from "../../../zrender/lib/core/OrientedBoundingRect.js";
|
|
30
|
+
import _e from "../../../zrender/lib/graphic/IncrementalDisplayable.js";
|
|
31
|
+
import { initProps as ve, isElementRemoved as ye, removeElement as be, removeElementWithFadeOut as xe, updateProps as P } from "../animation/basicTransition.js";
|
|
32
32
|
//#region node_modules/echarts/lib/util/graphic.js
|
|
33
|
-
var
|
|
34
|
-
Arc: () =>
|
|
35
|
-
BezierCurve: () =>
|
|
36
|
-
BoundingRect: () =>
|
|
37
|
-
Circle: () =>
|
|
38
|
-
CompoundPath: () =>
|
|
39
|
-
Ellipse: () =>
|
|
40
|
-
Group: () =>
|
|
33
|
+
var Se = /* @__PURE__ */ e({
|
|
34
|
+
Arc: () => N,
|
|
35
|
+
BezierCurve: () => M,
|
|
36
|
+
BoundingRect: () => _,
|
|
37
|
+
Circle: () => T,
|
|
38
|
+
CompoundPath: () => pe,
|
|
39
|
+
Ellipse: () => E,
|
|
40
|
+
Group: () => fe,
|
|
41
41
|
HOVER_LAYER_FOR_INCREMENTAL: () => 2,
|
|
42
42
|
HOVER_LAYER_FROM_THRESHOLD: () => 1,
|
|
43
43
|
HOVER_LAYER_NO: () => 0,
|
|
44
44
|
Image: () => b,
|
|
45
|
-
IncrementalDisplayable: () =>
|
|
46
|
-
Line: () =>
|
|
47
|
-
LinearGradient: () =>
|
|
48
|
-
OrientedBoundingRect: () =>
|
|
49
|
-
Path: () =>
|
|
50
|
-
Point: () =>
|
|
51
|
-
Polygon: () =>
|
|
52
|
-
Polyline: () =>
|
|
53
|
-
RadialGradient: () =>
|
|
54
|
-
Rect: () =>
|
|
55
|
-
Ring: () =>
|
|
56
|
-
Sector: () =>
|
|
57
|
-
Text: () =>
|
|
58
|
-
WH: () =>
|
|
59
|
-
XY: () =>
|
|
60
|
-
applyTransform: () =>
|
|
61
|
-
calcZ2Range: () =>
|
|
62
|
-
clipPointsByRect: () =>
|
|
63
|
-
clipRectByRect: () =>
|
|
64
|
-
createIcon: () =>
|
|
45
|
+
IncrementalDisplayable: () => _e,
|
|
46
|
+
Line: () => j,
|
|
47
|
+
LinearGradient: () => me,
|
|
48
|
+
OrientedBoundingRect: () => ge,
|
|
49
|
+
Path: () => y,
|
|
50
|
+
Point: () => ne,
|
|
51
|
+
Polygon: () => k,
|
|
52
|
+
Polyline: () => A,
|
|
53
|
+
RadialGradient: () => he,
|
|
54
|
+
Rect: () => se,
|
|
55
|
+
Ring: () => O,
|
|
56
|
+
Sector: () => D,
|
|
57
|
+
Text: () => ce,
|
|
58
|
+
WH: () => L,
|
|
59
|
+
XY: () => I,
|
|
60
|
+
applyTransform: () => W,
|
|
61
|
+
calcZ2Range: () => Ge,
|
|
62
|
+
clipPointsByRect: () => Me,
|
|
63
|
+
clipRectByRect: () => Ne,
|
|
64
|
+
createIcon: () => Pe,
|
|
65
65
|
decomposeTransform: () => Ye,
|
|
66
|
-
ensureCopyRect: () =>
|
|
67
|
-
ensureCopyTransform: () =>
|
|
68
|
-
expandOrShrinkRect: () =>
|
|
69
|
-
extendPath: () =>
|
|
70
|
-
extendShape: () =>
|
|
66
|
+
ensureCopyRect: () => Q,
|
|
67
|
+
ensureCopyTransform: () => Ue,
|
|
68
|
+
expandOrShrinkRect: () => Re,
|
|
69
|
+
extendPath: () => Te,
|
|
70
|
+
extendShape: () => Ce,
|
|
71
71
|
getCurrentCanvasPainter: () => Xe,
|
|
72
|
-
getShapeClass: () =>
|
|
73
|
-
getTransform: () =>
|
|
74
|
-
groupTransition: () =>
|
|
75
|
-
initProps: () =>
|
|
76
|
-
isBoundingRectAxisAligned: () =>
|
|
77
|
-
isElementRemoved: () =>
|
|
78
|
-
lineLineIntersect: () =>
|
|
79
|
-
linePolygonIntersect: () =>
|
|
80
|
-
makeImage: () =>
|
|
81
|
-
makePath: () =>
|
|
82
|
-
mergePath: () =>
|
|
72
|
+
getShapeClass: () => Ee,
|
|
73
|
+
getTransform: () => U,
|
|
74
|
+
groupTransition: () => q,
|
|
75
|
+
initProps: () => ve,
|
|
76
|
+
isBoundingRectAxisAligned: () => He,
|
|
77
|
+
isElementRemoved: () => ye,
|
|
78
|
+
lineLineIntersect: () => Ie,
|
|
79
|
+
linePolygonIntersect: () => Fe,
|
|
80
|
+
makeImage: () => De,
|
|
81
|
+
makePath: () => z,
|
|
82
|
+
mergePath: () => Oe,
|
|
83
83
|
payloadDisableAnimation: () => Je,
|
|
84
|
-
registerShape: () =>
|
|
85
|
-
removeElement: () =>
|
|
86
|
-
removeElementWithFadeOut: () =>
|
|
87
|
-
resizePath: () =>
|
|
88
|
-
retrieveZInfo: () =>
|
|
89
|
-
setTooltipConfig: () =>
|
|
90
|
-
subPixelOptimize: () =>
|
|
91
|
-
subPixelOptimizeLine: () =>
|
|
92
|
-
subPixelOptimizeRect: () =>
|
|
93
|
-
transformDirection: () =>
|
|
94
|
-
traverseElements: () =>
|
|
95
|
-
traverseUpdateZ: () =>
|
|
96
|
-
updateProps: () =>
|
|
97
|
-
}),
|
|
98
|
-
function
|
|
99
|
-
return
|
|
100
|
-
}
|
|
101
|
-
var
|
|
102
|
-
function
|
|
103
|
-
return
|
|
84
|
+
registerShape: () => R,
|
|
85
|
+
removeElement: () => be,
|
|
86
|
+
removeElementWithFadeOut: () => xe,
|
|
87
|
+
resizePath: () => V,
|
|
88
|
+
retrieveZInfo: () => We,
|
|
89
|
+
setTooltipConfig: () => Be,
|
|
90
|
+
subPixelOptimize: () => Ae,
|
|
91
|
+
subPixelOptimizeLine: () => H,
|
|
92
|
+
subPixelOptimizeRect: () => ke,
|
|
93
|
+
transformDirection: () => G,
|
|
94
|
+
traverseElements: () => Ve,
|
|
95
|
+
traverseUpdateZ: () => Ke,
|
|
96
|
+
updateProps: () => P
|
|
97
|
+
}), F = {}, I = ["x", "y"], L = ["width", "height"];
|
|
98
|
+
function Ce(e) {
|
|
99
|
+
return y.extend(e);
|
|
100
|
+
}
|
|
101
|
+
var we = ue;
|
|
102
|
+
function Te(e, t) {
|
|
103
|
+
return we(e, t);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
105
|
+
function R(e, t) {
|
|
106
|
+
F[e] = t;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (
|
|
108
|
+
function Ee(e) {
|
|
109
|
+
if (F.hasOwnProperty(e)) return F[e];
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
var i =
|
|
113
|
-
return n && (r === "center" && (n =
|
|
111
|
+
function z(e, t, n, r) {
|
|
112
|
+
var i = le(e, t);
|
|
113
|
+
return n && (r === "center" && (n = B(n, i.getBoundingRect())), V(i, n)), i;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function De(e, t, n) {
|
|
116
116
|
var r = new b({
|
|
117
117
|
style: {
|
|
118
118
|
image: e,
|
|
@@ -127,13 +127,13 @@ function L(e, t, n) {
|
|
|
127
127
|
width: e.width,
|
|
128
128
|
height: e.height
|
|
129
129
|
};
|
|
130
|
-
r.setStyle(
|
|
130
|
+
r.setStyle(B(t, i));
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
134
|
return r;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function B(e, t) {
|
|
137
137
|
var n = t.width / t.height, r = e.height * n, i;
|
|
138
138
|
r <= e.width ? i = e.height : (r = e.width, i = r / n);
|
|
139
139
|
var a = e.x + e.width / 2, o = e.y + e.height / 2;
|
|
@@ -144,43 +144,43 @@ function R(e, t) {
|
|
|
144
144
|
height: i
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
var
|
|
148
|
-
function
|
|
147
|
+
var Oe = de;
|
|
148
|
+
function V(e, t) {
|
|
149
149
|
if (e.applyTransform) {
|
|
150
150
|
var n = e.getBoundingRect().calculateTransform(t);
|
|
151
151
|
e.applyTransform(n);
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function H(e, t) {
|
|
155
|
+
return ae(e, e, { lineWidth: t }), e;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function ke(e, t) {
|
|
158
|
+
return oe(e, e, t), e;
|
|
159
159
|
}
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
for (var n =
|
|
160
|
+
var Ae = ie;
|
|
161
|
+
function U(e, t) {
|
|
162
|
+
for (var n = h([]); e && e !== t;) ee(n, e.getLocalTransform(), n), e = e.parent;
|
|
163
163
|
return n;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
return t && !c(t) && (t =
|
|
165
|
+
function W(e, t, n) {
|
|
166
|
+
return t && !c(t) && (t = v.getLocalTransform(t)), n && (t = g([], t)), te([], e, t);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
var r = t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 :
|
|
170
|
-
return a =
|
|
168
|
+
function G(e, t, n) {
|
|
169
|
+
var r = t[4] === 0 || t[5] === 0 || t[0] === 0 ? 1 : x(2 * t[4] / t[0]), i = t[4] === 0 || t[5] === 0 || t[2] === 0 ? 1 : x(2 * t[4] / t[2]), a = [e === "left" ? -r : e === "right" ? r : 0, e === "top" ? -i : e === "bottom" ? i : 0];
|
|
170
|
+
return a = W(a, t, n), x(a[0]) > x(a[1]) ? a[0] > 0 ? "right" : "left" : a[1] > 0 ? "bottom" : "top";
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function K(e) {
|
|
173
173
|
return !e.isGroup;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function je(e) {
|
|
176
176
|
return e.shape != null;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function q(e, t, r) {
|
|
179
179
|
if (!e || !t) return;
|
|
180
180
|
function i(e) {
|
|
181
181
|
var t = {};
|
|
182
182
|
return e.traverse(function(e) {
|
|
183
|
-
|
|
183
|
+
K(e) && e.anid && (t[e.anid] = e);
|
|
184
184
|
}), t;
|
|
185
185
|
}
|
|
186
186
|
function a(e) {
|
|
@@ -189,29 +189,29 @@ function Ie(e, t, r) {
|
|
|
189
189
|
y: e.y,
|
|
190
190
|
rotation: e.rotation
|
|
191
191
|
};
|
|
192
|
-
return
|
|
192
|
+
return je(e) && (t.shape = n(e.shape)), t;
|
|
193
193
|
}
|
|
194
194
|
var o = i(e);
|
|
195
195
|
t.traverse(function(e) {
|
|
196
|
-
if (
|
|
196
|
+
if (K(e) && e.anid) {
|
|
197
197
|
var t = o[e.anid];
|
|
198
198
|
if (t) {
|
|
199
199
|
var n = a(e);
|
|
200
|
-
e.attr(a(t)),
|
|
200
|
+
e.attr(a(t)), P(e, n, r, w(e).dataIndex);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Me(e, t) {
|
|
206
206
|
return f(e, function(e) {
|
|
207
207
|
var n = e[0];
|
|
208
|
-
n =
|
|
208
|
+
n = S(n, t.x), n = C(n, t.x + t.width);
|
|
209
209
|
var r = e[1];
|
|
210
|
-
return r =
|
|
210
|
+
return r = S(r, t.y), r = C(r, t.y + t.height), [n, r];
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
var n =
|
|
213
|
+
function Ne(e, t) {
|
|
214
|
+
var n = S(e.x, t.x), r = C(e.x + e.width, t.x + t.width), i = S(e.y, t.y), a = C(e.y + e.height, t.y + t.height);
|
|
215
215
|
if (r >= n && a >= i) return {
|
|
216
216
|
x: n,
|
|
217
217
|
y: i,
|
|
@@ -219,50 +219,50 @@ function Re(e, t) {
|
|
|
219
219
|
height: a - i
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Pe(e, t, n) {
|
|
223
223
|
var i = a({ rectHover: !0 }, t), o = i.style = { strokeNoScale: !0 };
|
|
224
224
|
if (n ||= {
|
|
225
225
|
x: -1,
|
|
226
226
|
y: -1,
|
|
227
227
|
width: 2,
|
|
228
228
|
height: 2
|
|
229
|
-
}, e) return e.indexOf("image://") === 0 ? (o.image = e.slice(8), r(o, n), new b(i)) :
|
|
229
|
+
}, e) return e.indexOf("image://") === 0 ? (o.image = e.slice(8), r(o, n), new b(i)) : z(e.replace("path://", ""), i, n, "center");
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Fe(e, t, n, r, i) {
|
|
232
232
|
for (var a = 0, o = i[i.length - 1]; a < i.length; a++) {
|
|
233
233
|
var s = i[a];
|
|
234
|
-
if (
|
|
234
|
+
if (Ie(e, t, n, r, s[0], s[1], o[0], o[1])) return !0;
|
|
235
235
|
o = s;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
var c = n - e, l = r - t, u = o - i, d = s - a, f =
|
|
240
|
-
if (
|
|
241
|
-
var p = e - i, m = t - a, h =
|
|
238
|
+
function Ie(e, t, n, r, i, a, o, s) {
|
|
239
|
+
var c = n - e, l = r - t, u = o - i, d = s - a, f = J(u, d, c, l);
|
|
240
|
+
if (Le(f)) return !1;
|
|
241
|
+
var p = e - i, m = t - a, h = J(p, m, c, l) / f;
|
|
242
242
|
if (h < 0 || h > 1) return !1;
|
|
243
|
-
var g =
|
|
243
|
+
var g = J(p, m, u, d) / f;
|
|
244
244
|
return !(g < 0 || g > 1);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function J(e, t, n, r) {
|
|
247
247
|
return e * r - n * t;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Le(e) {
|
|
250
250
|
return e <= 1e-6 && e >= -1e-6;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return n == null ? e : (l(n) ?
|
|
252
|
+
function Re(e, n, r, i, a) {
|
|
253
|
+
return n == null ? e : (l(n) ? Y[0] = Y[1] = Y[2] = Y[3] = n : (process.env.NODE_ENV !== "production" && t(n.length === 4), Y[0] = n[0], Y[1] = n[1], Y[2] = n[2], Y[3] = n[3]), i && (Y[0] = S(0, Y[0]), Y[1] = S(0, Y[1]), Y[2] = S(0, Y[2]), Y[3] = S(0, Y[3])), r && (Y[0] = -Y[0], Y[1] = -Y[1], Y[2] = -Y[2], Y[3] = -Y[3]), ze(e, Y, "x", "width", 3, 1, a && a[0] || 0), ze(e, Y, "y", "height", 0, 2, a && a[1] || 0), e);
|
|
254
254
|
}
|
|
255
|
-
var
|
|
255
|
+
var Y = [
|
|
256
256
|
0,
|
|
257
257
|
0,
|
|
258
258
|
0,
|
|
259
259
|
0
|
|
260
260
|
];
|
|
261
|
-
function
|
|
261
|
+
function ze(e, t, n, r, i, a, o) {
|
|
262
262
|
var s = t[a] + t[i], c = e[r];
|
|
263
|
-
e[r] += s, o =
|
|
263
|
+
e[r] += s, o = S(0, C(o, c)), e[r] < o ? (e[r] = o, e[n] += t[i] >= 0 ? -t[i] : t[a] >= 0 ? c + t[a] : x(s) > 1e-8 ? (c - o) * t[i] / s : 0) : e[n] -= t[i];
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Be(e) {
|
|
266
266
|
var t = e.itemTooltipOption, n = e.componentModel, a = e.itemName, s = u(t) ? { formatter: t } : t, c = n.mainType, l = n.componentIndex, f = {
|
|
267
267
|
componentType: c,
|
|
268
268
|
name: a,
|
|
@@ -273,7 +273,7 @@ function Ve(e) {
|
|
|
273
273
|
p && i(d(p), function(e) {
|
|
274
274
|
o(f, e) || (f[e] = p[e], f.$vars.push(e));
|
|
275
275
|
});
|
|
276
|
-
var m =
|
|
276
|
+
var m = w(e.el);
|
|
277
277
|
m.componentMainType = c, m.componentIndex = l, m.tooltipConfig = {
|
|
278
278
|
name: a,
|
|
279
279
|
option: r({
|
|
@@ -283,33 +283,33 @@ function Ve(e) {
|
|
|
283
283
|
}, s)
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function X(e, t) {
|
|
287
287
|
var n;
|
|
288
288
|
e.isGroup && (n = t(e)), n || e.traverse(t);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
if (e) if (s(e)) for (var n = 0; n < e.length; n++)
|
|
292
|
-
else
|
|
290
|
+
function Ve(e, t) {
|
|
291
|
+
if (e) if (s(e)) for (var n = 0; n < e.length; n++) X(e[n], t);
|
|
292
|
+
else X(e, t);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return !e ||
|
|
294
|
+
function He(e) {
|
|
295
|
+
return !e || x(e[1]) < Z && x(e[2]) < Z || x(e[0]) < Z && x(e[3]) < Z;
|
|
296
296
|
}
|
|
297
|
-
var
|
|
298
|
-
function
|
|
299
|
-
return e ?
|
|
297
|
+
var Z = 1e-5;
|
|
298
|
+
function Q(e, t) {
|
|
299
|
+
return e ? _.copy(e, t) : t.clone();
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
return t ?
|
|
301
|
+
function Ue(e, t) {
|
|
302
|
+
return t ? p(e || m(), t) : void 0;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function We(e) {
|
|
305
305
|
return {
|
|
306
306
|
z: e.get("z") || 0,
|
|
307
307
|
zlevel: e.get("zlevel") || 0
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Ge(e) {
|
|
311
311
|
var t = -Infinity, n = Infinity;
|
|
312
|
-
|
|
312
|
+
X(e, function(e) {
|
|
313
313
|
r(e), r(e.getTextContent()), r(e.getTextGuideLine());
|
|
314
314
|
});
|
|
315
315
|
function r(e) {
|
|
@@ -330,14 +330,14 @@ function Ke(e) {
|
|
|
330
330
|
max: t
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
|
|
333
|
+
function Ke(e, t, n) {
|
|
334
|
+
qe(e, t, n, -Infinity);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function qe(e, t, n, r) {
|
|
337
337
|
if (e.ignoreModelZ) return r;
|
|
338
338
|
var i = e.getTextContent(), a = e.getTextGuideLine();
|
|
339
|
-
if (e.isGroup) for (var o = e.childrenRef(), s = 0; s < o.length; s++) r =
|
|
340
|
-
else e.z = t, e.zlevel = n, r =
|
|
339
|
+
if (e.isGroup) for (var o = e.childrenRef(), s = 0; s < o.length; s++) r = S(qe(o[s], t, n, r), r);
|
|
340
|
+
else e.z = t, e.zlevel = n, r = S(e.z2 || 0, r);
|
|
341
341
|
if (i && (i.z = t, i.zlevel = n, isFinite(r) && (i.z2 = r + 2)), a) {
|
|
342
342
|
var c = e.textGuideLineConfig;
|
|
343
343
|
a.z = t, a.zlevel = n, isFinite(r) && (a.z2 = r + (c && c.showAbove ? 1 : -1));
|
|
@@ -348,14 +348,14 @@ function Je(e) {
|
|
|
348
348
|
return e.animation = { duration: 0 }, e;
|
|
349
349
|
}
|
|
350
350
|
function Ye(e, t) {
|
|
351
|
-
return t ?
|
|
351
|
+
return t ? p($.transform, t) : h($.transform), $.decomposeTransform(), re(e, $), e;
|
|
352
352
|
}
|
|
353
|
-
var $ = new
|
|
354
|
-
$.transform =
|
|
353
|
+
var $ = new v();
|
|
354
|
+
$.transform = m();
|
|
355
355
|
function Xe(e) {
|
|
356
356
|
var t = e.getZr().painter;
|
|
357
357
|
return t.getType() === "canvas" ? t : null;
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
R("circle", T), R("ellipse", E), R("sector", D), R("ring", O), R("polygon", k), R("polyline", A), R("rect", se), R("line", j), R("bezierCurve", M), R("arc", N);
|
|
360
360
|
//#endregion
|
|
361
|
-
export {
|
|
361
|
+
export { L as WH, I as XY, W as applyTransform, Pe as createIcon, Q as ensureCopyRect, Ue as ensureCopyTransform, Re as expandOrShrinkRect, U as getTransform, Se as graphic_exports, q as groupTransition, He as isBoundingRectAxisAligned, De as makeImage, z as makePath, We as retrieveZInfo, Be as setTooltipConfig, H as subPixelOptimizeLine, G as transformDirection, Ve as traverseElements, Ke as traverseUpdateZ };
|