reke-ui 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +764 -3
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts +19 -0
- package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.js +40 -15
- package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
- package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -20
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
- package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
- package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
- package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
- package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
- package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
- package/dist/node_modules/echarts/lib/extension.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
- package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
- package/dist/node_modules/echarts/lib/layout/points.js +37 -0
- package/dist/node_modules/echarts/lib/loading/default.js +6 -6
- package/dist/node_modules/echarts/lib/model/Component.js +39 -39
- package/dist/node_modules/echarts/lib/model/Global.js +122 -122
- package/dist/node_modules/echarts/lib/model/Series.js +78 -78
- package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
- package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
- package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
- package/dist/node_modules/echarts/lib/scale/break.js +10 -2
- package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
- package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
- package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
- package/dist/node_modules/echarts/lib/util/component.js +16 -16
- package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
- package/dist/node_modules/echarts/lib/util/decal.js +11 -11
- package/dist/node_modules/echarts/lib/util/format.js +1 -1
- package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
- package/dist/node_modules/echarts/lib/util/layout.js +23 -23
- package/dist/node_modules/echarts/lib/util/model.js +128 -68
- package/dist/node_modules/echarts/lib/util/number.js +55 -37
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
- package/dist/node_modules/echarts/lib/util/states.js +96 -82
- package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
- package/dist/node_modules/echarts/lib/util/time.js +154 -18
- package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
- package/dist/node_modules/echarts/lib/view/Component.js +7 -7
- package/dist/node_modules/echarts/lib/visual/style.js +5 -5
- package/dist/node_modules/zrender/lib/Element.js +35 -35
- package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
- package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
- package/dist/node_modules/zrender/lib/core/event.js +4 -1
- package/dist/node_modules/zrender/lib/core/util.js +69 -64
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
- package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
- package/dist/node_modules/zrender/lib/tool/color.js +60 -41
- package/dist/react.d.ts +10 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +85 -73
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +1 -0
- package/package.json +5 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { assert as e, defaults as t, each as n, extend as r, filter as i, isFunction as a, isNumber as o, isObject as s, isString as c, map as l, retrieve as u, retrieve2 as d, retrieve3 as f } from "../../../../zrender/lib/core/util.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { copyTransform as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import T from "
|
|
10
|
-
import E from "
|
|
11
|
-
import D from "
|
|
12
|
-
import O from "../../../../zrender/lib/graphic/
|
|
13
|
-
import
|
|
14
|
-
import { setTooltipConfig as
|
|
15
|
-
import { createTextStyle as
|
|
2
|
+
import { create as p, identity as m, invert as h, mul as g, rotate as _ } from "../../../../zrender/lib/core/matrix.js";
|
|
3
|
+
import { applyTransform as v } from "../../../../zrender/lib/core/vector.js";
|
|
4
|
+
import y from "../../../../zrender/lib/core/Point.js";
|
|
5
|
+
import b from "../../../../zrender/lib/core/BoundingRect.js";
|
|
6
|
+
import { copyTransform as x } from "../../../../zrender/lib/core/Transformable.js";
|
|
7
|
+
import S from "../../../../zrender/lib/graphic/shape/Rect.js";
|
|
8
|
+
import C from "../../../../zrender/lib/graphic/Text.js";
|
|
9
|
+
import { isRadianAroundZero as w, remRadian as T } from "../../util/number.js";
|
|
10
|
+
import { makeInner as E } from "../../util/model.js";
|
|
11
|
+
import { getECData as D } from "../../util/innerStore.js";
|
|
12
|
+
import O from "../../../../zrender/lib/graphic/Group.js";
|
|
13
|
+
import k from "../../../../zrender/lib/graphic/shape/Line.js";
|
|
14
|
+
import { setTooltipConfig as A, subPixelOptimizeLine as j } from "../../util/graphic.js";
|
|
15
|
+
import { createTextStyle as ee } from "../../label/labelStyle.js";
|
|
16
16
|
import M from "../../model/Model.js";
|
|
17
17
|
import { getScaleBreakHelper as N, hasBreaks as P } from "../../scale/break.js";
|
|
18
|
-
import {
|
|
19
|
-
import { isOrdinalScale as
|
|
20
|
-
import { getTickValueOutermost as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
18
|
+
import { createSymbol as F, normalizeSymbolOffset as I } from "../../util/symbol.js";
|
|
19
|
+
import { isOrdinalScale as L, isTimeScale as R } from "../../scale/helper.js";
|
|
20
|
+
import { getTickValueOutermost as z, isNameLocationCenter as B, shouldShowAllLabels as te } from "../../coord/axisHelper.js";
|
|
21
|
+
import { AxisTickLabelComputingKind as ne, createAxisLabelsComputingContext as re } from "../../coord/axisTickLabelBuilder.js";
|
|
22
|
+
import { computeLabelGeometry2 as ie, ensureLabelLayoutWithGeometry as V, hideOverlap as ae, labelIntersect as oe, labelLayoutApplyTranslation as se, newLabelLayoutWithGeometry as ce, setLabelLayoutDirty as le } from "../../label/labelLayoutHelper.js";
|
|
23
|
+
import { getAxisBreakHelper as H } from "./axisBreakHelper.js";
|
|
24
|
+
import { AXIS_BREAK_EXPAND_ACTION_TYPE as ue } from "./axisAction.js";
|
|
25
25
|
//#region node_modules/echarts/lib/component/axis/AxisBuilder.js
|
|
26
26
|
var U = Math.PI, de = [
|
|
27
27
|
[
|
|
@@ -61,7 +61,7 @@ var U = Math.PI, de = [
|
|
|
61
61
|
0,
|
|
62
62
|
3
|
|
63
63
|
]
|
|
64
|
-
], W =
|
|
64
|
+
], W = E(), G = E(), pe = function() {
|
|
65
65
|
function e(e) {
|
|
66
66
|
this.recordMap = {}, this.resolveAxisNameOverlap = e;
|
|
67
67
|
}
|
|
@@ -70,48 +70,48 @@ var U = Math.PI, de = [
|
|
|
70
70
|
return i[n] || (i[n] = { ready: {} });
|
|
71
71
|
}, e;
|
|
72
72
|
}();
|
|
73
|
-
function
|
|
74
|
-
var a = r.axis, o = t.ensureRecord(r), s = [], c, l = $(e.axisName) &&
|
|
73
|
+
function me(e, t, r, i) {
|
|
74
|
+
var a = r.axis, o = t.ensureRecord(r), s = [], c, l = $(e.axisName) && B(e.nameLocation);
|
|
75
75
|
n(i, function(e) {
|
|
76
|
-
var t =
|
|
76
|
+
var t = V(e);
|
|
77
77
|
if (!(!t || t.label.ignore)) {
|
|
78
78
|
s.push(t);
|
|
79
79
|
var n = o.transGroup;
|
|
80
|
-
l && (n.transform ?
|
|
80
|
+
l && (n.transform ? h(K, n.transform) : m(K), t.transform && g(K, K, t.transform), b.copy(q, t.localRect), q.applyTransform(K), c ? c.union(q) : b.copy(c = new b(0, 0, 0, 0), q));
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
var u = Math.abs(o.dirVec.x) > .1 ? "x" : "y", d = o.transGroup[u];
|
|
84
84
|
if (s.sort(function(e, t) {
|
|
85
85
|
return Math.abs(e.label[u] - d) - Math.abs(t.label[u] - d);
|
|
86
86
|
}), l && c) {
|
|
87
|
-
var f = a.getExtent(), p = Math.min(f[0], f[1]),
|
|
88
|
-
c.union(new
|
|
87
|
+
var f = a.getExtent(), p = Math.min(f[0], f[1]), _ = Math.max(f[0], f[1]) - p;
|
|
88
|
+
c.union(new b(p, 0, _, 1));
|
|
89
89
|
}
|
|
90
90
|
o.stOccupiedRect = c, o.labelInfoList = s;
|
|
91
91
|
}
|
|
92
|
-
var
|
|
93
|
-
if (
|
|
92
|
+
var K = p(), q = new b(0, 0, 0, 0), he = function(e, t, n, r, i, a) {
|
|
93
|
+
if (B(e.nameLocation)) {
|
|
94
94
|
var o = a.stOccupiedRect;
|
|
95
|
-
o &&
|
|
96
|
-
} else
|
|
95
|
+
o && ge(ie({}, o, a.transGroup.transform), r, i);
|
|
96
|
+
} else _e(a.labelInfoList, a.dirVec, r, i);
|
|
97
97
|
};
|
|
98
|
-
function
|
|
99
|
-
var r = new
|
|
100
|
-
|
|
98
|
+
function ge(e, t, n) {
|
|
99
|
+
var r = new y();
|
|
100
|
+
oe(e, t, r, {
|
|
101
101
|
direction: Math.atan2(n.y, n.x),
|
|
102
102
|
bidirectional: !1,
|
|
103
103
|
touchThreshold: .05
|
|
104
|
-
}) &&
|
|
104
|
+
}) && se(t, r);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
for (var i =
|
|
106
|
+
function _e(e, t, n, r) {
|
|
107
|
+
for (var i = y.dot(r, t) >= 0, a = 0, o = e.length; a < o; a++) {
|
|
108
108
|
var s = e[i ? a : o - 1 - a];
|
|
109
|
-
s.label.ignore ||
|
|
109
|
+
s.label.ignore || ge(s, n, r);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
var
|
|
112
|
+
var J = function() {
|
|
113
113
|
function t(e, t, n, r) {
|
|
114
|
-
this.group = new
|
|
114
|
+
this.group = new O(), this._axisModel = e, this._api = t, this._local = {}, this._shared = r || new pe(he), this._resetCfgDetermined(n);
|
|
115
115
|
}
|
|
116
116
|
return t.prototype.updateCfg = function(t) {
|
|
117
117
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -141,14 +141,14 @@ var q = function() {
|
|
|
141
141
|
showMinorTicks: n.get(["minorTick", "show"])
|
|
142
142
|
};
|
|
143
143
|
process.env.NODE_ENV !== "production" && (e(o.position != null), e(o.rotation != null)), this._cfg = o;
|
|
144
|
-
var s = new
|
|
144
|
+
var s = new O({
|
|
145
145
|
x: o.position[0],
|
|
146
146
|
y: o.position[1],
|
|
147
147
|
rotation: o.rotation
|
|
148
148
|
});
|
|
149
149
|
s.updateTransform(), this._transformGroup = s;
|
|
150
150
|
var c = this._shared.ensureRecord(n);
|
|
151
|
-
c.transGroup = this._transformGroup, c.dirVec = new
|
|
151
|
+
c.transGroup = this._transformGroup, c.dirVec = new y(Math.cos(-o.rotation), Math.sin(-o.rotation));
|
|
152
152
|
}, t.prototype.build = function(e, t) {
|
|
153
153
|
var r = this;
|
|
154
154
|
return e ||= {
|
|
@@ -156,12 +156,12 @@ var q = function() {
|
|
|
156
156
|
axisTickLabelEstimate: !1,
|
|
157
157
|
axisTickLabelDetermine: !0,
|
|
158
158
|
axisName: !0
|
|
159
|
-
}, n(
|
|
160
|
-
e[n] &&
|
|
159
|
+
}, n(ve, function(n) {
|
|
160
|
+
e[n] && ye[n](r._cfg, r._local, r._shared, r._axisModel, r.group, r._transformGroup, r._api, t || {});
|
|
161
161
|
}), this;
|
|
162
162
|
}, t.innerTextLayout = function(e, t, n) {
|
|
163
|
-
var r =
|
|
164
|
-
return
|
|
163
|
+
var r = T(t - e), i, a;
|
|
164
|
+
return w(r) ? (a = n > 0 ? "top" : "bottom", i = "center") : w(r - U) ? (a = n > 0 ? "bottom" : "top", i = "center") : (a = "middle", i = r > 0 && r < U ? n > 0 ? "right" : "left" : n > 0 ? "left" : "right"), {
|
|
165
165
|
rotation: r,
|
|
166
166
|
textAlign: i,
|
|
167
167
|
textVerticalAlign: a
|
|
@@ -176,12 +176,12 @@ var q = function() {
|
|
|
176
176
|
var t = e.get("tooltip");
|
|
177
177
|
return e.get("silent") || !(e.get("triggerEvent") || t && t.show);
|
|
178
178
|
}, t;
|
|
179
|
-
}(),
|
|
179
|
+
}(), ve = [
|
|
180
180
|
"axisLine",
|
|
181
181
|
"axisTickLabelEstimate",
|
|
182
182
|
"axisTickLabelDetermine",
|
|
183
183
|
"axisName"
|
|
184
|
-
],
|
|
184
|
+
], ye = {
|
|
185
185
|
axisLine: function(t, i, a, s, l, u, d) {
|
|
186
186
|
if (process.env.NODE_ENV !== "production") {
|
|
187
187
|
var f = a.ensureRecord(s).ready;
|
|
@@ -189,29 +189,29 @@ var q = function() {
|
|
|
189
189
|
}
|
|
190
190
|
var p = s.get(["axisLine", "show"]);
|
|
191
191
|
if (p === "auto" && (p = !0, t.raw.axisLineAutoShow != null && (p = !!t.raw.axisLineAutoShow)), p) {
|
|
192
|
-
var m = s.axis.getExtent(), h = u.transform, g = [m[0], 0], _ = [m[1], 0],
|
|
193
|
-
h && (
|
|
194
|
-
var
|
|
192
|
+
var m = s.axis.getExtent(), h = u.transform, g = [m[0], 0], _ = [m[1], 0], y = g[0] > _[0];
|
|
193
|
+
h && (v(g, g, h), v(_, _, h));
|
|
194
|
+
var b = r({ lineCap: "round" }, s.getModel(["axisLine", "lineStyle"]).getLineStyle()), x = {
|
|
195
195
|
strokeContainThreshold: t.raw.strokeContainThreshold || 5,
|
|
196
196
|
silent: !0,
|
|
197
197
|
z2: 1,
|
|
198
|
-
style:
|
|
198
|
+
style: b
|
|
199
199
|
};
|
|
200
|
-
if (s.get(["axisLine", "breakLine"]) && P(s.axis.scale))
|
|
200
|
+
if (s.get(["axisLine", "breakLine"]) && P(s.axis.scale)) H().buildAxisBreakLine(s, l, u, x);
|
|
201
201
|
else {
|
|
202
|
-
var S = new
|
|
202
|
+
var S = new k(r({ shape: {
|
|
203
203
|
x1: g[0],
|
|
204
204
|
y1: g[1],
|
|
205
205
|
x2: _[0],
|
|
206
206
|
y2: _[1]
|
|
207
|
-
} },
|
|
208
|
-
|
|
207
|
+
} }, x));
|
|
208
|
+
j(S.shape, S.style.lineWidth), S.anid = "line", l.add(S);
|
|
209
209
|
}
|
|
210
210
|
var C = s.get(["axisLine", "symbol"]);
|
|
211
211
|
if (C != null) {
|
|
212
212
|
var w = s.get(["axisLine", "symbolSize"]);
|
|
213
213
|
c(C) && (C = [C, C]), (c(w) || o(w)) && (w = [w, w]);
|
|
214
|
-
var T =
|
|
214
|
+
var T = I(s.get(["axisLine", "symbolOffset"]) || 0, w), E = w[0], D = w[1];
|
|
215
215
|
n([{
|
|
216
216
|
rotate: t.rotation + Math.PI / 2,
|
|
217
217
|
offset: T[0],
|
|
@@ -222,7 +222,7 @@ var q = function() {
|
|
|
222
222
|
r: Math.sqrt((g[0] - _[0]) * (g[0] - _[0]) + (g[1] - _[1]) * (g[1] - _[1]))
|
|
223
223
|
}], function(e, n) {
|
|
224
224
|
if (C[n] !== "none" && C[n] != null) {
|
|
225
|
-
var r =
|
|
225
|
+
var r = F(C[n], -E / 2, -D / 2, E, D, b.stroke, !0), i = e.r + e.offset, a = y ? _ : g;
|
|
226
226
|
r.attr({
|
|
227
227
|
rotation: e.rotate,
|
|
228
228
|
x: a[0] + i * Math.cos(t.rotation),
|
|
@@ -240,16 +240,16 @@ var q = function() {
|
|
|
240
240
|
var l = r.ensureRecord(i).ready;
|
|
241
241
|
e(!l.axisTickLabelDetermine), l.axisTickLabelEstimate = !0;
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
Ee(n, a, c) && be(t, n, r, i, a, o, s, ne.estimate);
|
|
244
244
|
},
|
|
245
245
|
axisTickLabelDetermine: function(e, t, n, r, i, a, o, s) {
|
|
246
246
|
if (process.env.NODE_ENV !== "production") {
|
|
247
247
|
var c = n.ensureRecord(r).ready;
|
|
248
248
|
c.axisTickLabelDetermine = !0;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
var l =
|
|
252
|
-
|
|
250
|
+
Ee(t, i, s) && be(e, t, n, r, i, a, o, ne.determine);
|
|
251
|
+
var l = we(e, i, a, r);
|
|
252
|
+
Ce(e, t.labelLayoutList, l), Te(e, i, a, r, e.tickDirection);
|
|
253
253
|
},
|
|
254
254
|
axisName: function(t, n, r, i, a, o, s, c) {
|
|
255
255
|
var l = r.ensureRecord(i);
|
|
@@ -260,94 +260,94 @@ var q = function() {
|
|
|
260
260
|
n.nameEl &&= (a.remove(n.nameEl), l.nameLayout = l.nameLocation = null);
|
|
261
261
|
var f = t.axisName;
|
|
262
262
|
if ($(f)) {
|
|
263
|
-
var
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
|
|
267
|
-
var
|
|
268
|
-
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
var
|
|
272
|
-
x:
|
|
273
|
-
y:
|
|
274
|
-
rotation:
|
|
275
|
-
silent:
|
|
276
|
-
style:
|
|
263
|
+
var m = t.nameLocation, h = t.nameDirection, g = i.getModel("nameTextStyle"), v = i.get("nameGap") || 0, b = i.axis.getExtent(), x = i.axis.inverse ? -1 : 1, S = new y(0, 0), w = new y(0, 0);
|
|
264
|
+
m === "start" ? (S.x = b[0] - x * v, w.x = -x) : m === "end" ? (S.x = b[1] + x * v, w.x = x) : (S.x = (b[0] + b[1]) / 2, S.y = t.labelOffset + h * v, w.y = h);
|
|
265
|
+
var T = p();
|
|
266
|
+
w.transform(_(T, T, t.rotation));
|
|
267
|
+
var E = i.get("nameRotate");
|
|
268
|
+
E != null && (E = E * U / 180);
|
|
269
|
+
var O, k;
|
|
270
|
+
B(m) ? O = J.innerTextLayout(t.rotation, E ?? t.rotation, h) : (O = xe(t.rotation, m, E || 0, b), k = t.raw.axisNameAvailableWidth, k != null && (k = Math.abs(k / Math.sin(O.rotation)), !isFinite(k) && (k = null)));
|
|
271
|
+
var j = g.getFont(), M = i.get("nameTruncate", !0) || {}, N = M.ellipsis, P = u(t.raw.nameTruncateMaxWidth, M.maxWidth, k), F = c.nameMarginLevel || 0, I = new C({
|
|
272
|
+
x: S.x,
|
|
273
|
+
y: S.y,
|
|
274
|
+
rotation: O.rotation,
|
|
275
|
+
silent: J.isLabelSilent(i),
|
|
276
|
+
style: ee(g, {
|
|
277
277
|
text: f,
|
|
278
|
-
font:
|
|
278
|
+
font: j,
|
|
279
279
|
overflow: "truncate",
|
|
280
280
|
width: P,
|
|
281
281
|
ellipsis: N,
|
|
282
|
-
fill:
|
|
282
|
+
fill: g.getTextColor() || i.get([
|
|
283
283
|
"axisLine",
|
|
284
284
|
"lineStyle",
|
|
285
285
|
"color"
|
|
286
286
|
]),
|
|
287
|
-
align:
|
|
288
|
-
verticalAlign:
|
|
287
|
+
align: g.get("align") || O.textAlign,
|
|
288
|
+
verticalAlign: g.get("verticalAlign") || O.textVerticalAlign
|
|
289
289
|
}),
|
|
290
290
|
z2: 1
|
|
291
291
|
});
|
|
292
|
-
if (
|
|
293
|
-
el:
|
|
292
|
+
if (A({
|
|
293
|
+
el: I,
|
|
294
294
|
componentModel: i,
|
|
295
295
|
itemName: f
|
|
296
|
-
}),
|
|
297
|
-
var
|
|
298
|
-
|
|
296
|
+
}), I.__fullText = f, I.anid = "name", i.get("triggerEvent")) {
|
|
297
|
+
var L = J.makeAxisEventDataBase(i);
|
|
298
|
+
L.targetType = "axisName", L.name = f, D(I).eventData = L;
|
|
299
299
|
}
|
|
300
|
-
o.add(
|
|
301
|
-
var
|
|
302
|
-
label:
|
|
303
|
-
priority:
|
|
304
|
-
defaultAttr: { ignore:
|
|
305
|
-
marginDefault:
|
|
300
|
+
o.add(I), I.updateTransform(), n.nameEl = I;
|
|
301
|
+
var R = l.nameLayout = V({
|
|
302
|
+
label: I,
|
|
303
|
+
priority: I.z2,
|
|
304
|
+
defaultAttr: { ignore: I.ignore },
|
|
305
|
+
marginDefault: B(m) ? de[F] : fe[F]
|
|
306
306
|
});
|
|
307
|
-
if (l.nameLocation =
|
|
308
|
-
var
|
|
309
|
-
process.env.NODE_ENV !== "production" && e(
|
|
307
|
+
if (l.nameLocation = m, a.add(I), I.decomposeTransform(), t.shouldNameMoveOverlap && R) {
|
|
308
|
+
var z = r.ensureRecord(i);
|
|
309
|
+
process.env.NODE_ENV !== "production" && e(z.labelInfoList), r.resolveAxisNameOverlap(t, r, i, R, w, z);
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
|
-
function
|
|
315
|
-
|
|
314
|
+
function be(e, t, n, r, a, o, s, c) {
|
|
315
|
+
Oe(t) || De(e, t, a, c, r, s);
|
|
316
316
|
var l = t.labelLayoutList;
|
|
317
317
|
ke(e, r, l, o), Me(r, e.rotation, l);
|
|
318
318
|
var u = e.optionHideOverlap;
|
|
319
|
-
|
|
319
|
+
Se(r, l, u), u && ae(i(l, function(e) {
|
|
320
320
|
return e && !e.label.ignore;
|
|
321
|
-
})),
|
|
321
|
+
})), me(e, n, r, l);
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
var i =
|
|
325
|
-
return
|
|
323
|
+
function xe(e, t, n, r) {
|
|
324
|
+
var i = T(n - e), a, o, s = r[0] > r[1], c = t === "start" && !s || t !== "start" && s;
|
|
325
|
+
return w(i - U / 2) ? (o = c ? "bottom" : "top", a = "center") : w(i - U * 1.5) ? (o = c ? "top" : "bottom", a = "center") : (o = "middle", a = i < U * 1.5 && i > U / 2 ? c ? "left" : "right" : c ? "right" : "left"), {
|
|
326
326
|
rotation: i,
|
|
327
327
|
textAlign: a,
|
|
328
328
|
textVerticalAlign: o
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Se(e, t, n) {
|
|
332
332
|
var r = e.axis, i = e.get(["axisLabel", "customValues"]);
|
|
333
|
-
if (
|
|
333
|
+
if (te(r)) return;
|
|
334
334
|
function a(e, a, o) {
|
|
335
|
-
var s =
|
|
335
|
+
var s = V(t[a]), c = V(t[o]), l = r.scale;
|
|
336
336
|
if (!(!s || !c)) {
|
|
337
337
|
if (e == null) {
|
|
338
338
|
if (!n && i) return;
|
|
339
339
|
var u = W(s.label).labelInfo.tick;
|
|
340
|
-
if (
|
|
341
|
-
|
|
340
|
+
if (R(l) && u.notNice || L(l) && u.offInterval) {
|
|
341
|
+
Y(s.label);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
if (e === !1 || s.suggestIgnore) {
|
|
346
|
-
|
|
346
|
+
Y(s.label);
|
|
347
347
|
return;
|
|
348
348
|
}
|
|
349
349
|
if (c.suggestIgnore) {
|
|
350
|
-
|
|
350
|
+
Y(c.label);
|
|
351
351
|
return;
|
|
352
352
|
}
|
|
353
353
|
var d = .1;
|
|
@@ -358,33 +358,33 @@ function Ce(e, t, n) {
|
|
|
358
358
|
0,
|
|
359
359
|
0
|
|
360
360
|
];
|
|
361
|
-
s =
|
|
361
|
+
s = ce({ marginForce: f }, s), c = ce({ marginForce: f }, c);
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
oe(s, c, null, { touchThreshold: d }) && Y(e ? c.label : s.label);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
var o = e.get(["axisLabel", "showMinLabel"]), s = e.get(["axisLabel", "showMaxLabel"]), c = t.length;
|
|
367
367
|
a(o, 0, 1), a(s, c - 1, c - 2);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Ce(e, t, r) {
|
|
370
370
|
e.showMinorTicks || n(t, function(e) {
|
|
371
371
|
if (e && e.label.ignore) for (var t = 0; t < r.length; t++) {
|
|
372
|
-
var n = r[t], i =
|
|
372
|
+
var n = r[t], i = G(n), a = W(e.label);
|
|
373
373
|
if (i.tickValue != null && !i.onBand && i.tickValue === a.labelInfo.tick.value) {
|
|
374
|
-
|
|
374
|
+
Y(n);
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Y(e) {
|
|
381
381
|
e && (e.ignore = !0);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function X(e, t, n, r, i) {
|
|
384
384
|
for (var a = [], o = [], s = [], c = 0; c < e.length; c++) {
|
|
385
385
|
var l = e[c].coord;
|
|
386
|
-
o[0] = l, o[1] = 0, s[0] = l, s[1] = n, t && (
|
|
387
|
-
var u = new
|
|
386
|
+
o[0] = l, o[1] = 0, s[0] = l, s[1] = n, t && (v(o, o, t), v(s, s, t));
|
|
387
|
+
var u = new k({
|
|
388
388
|
shape: {
|
|
389
389
|
x1: o[0],
|
|
390
390
|
y1: o[1],
|
|
@@ -396,23 +396,23 @@ function Y(e, t, n, r, i) {
|
|
|
396
396
|
autoBatch: !0,
|
|
397
397
|
silent: !0
|
|
398
398
|
});
|
|
399
|
-
|
|
400
|
-
var d =
|
|
399
|
+
j(u.shape, u.style.lineWidth), u.anid = i + "_" + e[c].tickValue, a.push(u);
|
|
400
|
+
var d = G(u);
|
|
401
401
|
d.onBand = !!e[c].onBand, d.tickValue = e[c].tickValue;
|
|
402
402
|
}
|
|
403
403
|
return a;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function we(e, n, r, i) {
|
|
406
406
|
var a = i.axis, o = i.getModel("axisTick"), s = o.get("show");
|
|
407
407
|
if (s === "auto" && (s = !0, e.raw.axisTickAutoShow != null && (s = !!e.raw.axisTickAutoShow)), !s || a.scale.isBlank()) return [];
|
|
408
|
-
for (var c = o.getModel("lineStyle"), l = e.tickDirection * o.get("length"), u =
|
|
408
|
+
for (var c = o.getModel("lineStyle"), l = e.tickDirection * o.get("length"), u = X(a.getTicksCoords(), r.transform, l, t(c.getLineStyle(), { stroke: i.get([
|
|
409
409
|
"axisLine",
|
|
410
410
|
"lineStyle",
|
|
411
411
|
"color"
|
|
412
412
|
]) }), "ticks"), d = 0; d < u.length; d++) n.add(u[d]);
|
|
413
413
|
return u;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Te(e, n, r, i, a) {
|
|
416
416
|
var o = i.axis, s = i.getModel("minorTick");
|
|
417
417
|
if (!(!e.showMinorTicks || o.scale.isBlank())) {
|
|
418
418
|
var c = o.getMinorTicksCoords();
|
|
@@ -420,11 +420,11 @@ function Ee(e, n, r, i, a) {
|
|
|
420
420
|
"axisLine",
|
|
421
421
|
"lineStyle",
|
|
422
422
|
"color"
|
|
423
|
-
]) })), f = 0; f < c.length; f++) for (var p =
|
|
423
|
+
]) })), f = 0; f < c.length; f++) for (var p = X(c[f], r.transform, u, d, "minorticks_" + f), m = 0; m < p.length; m++) n.add(p[m]);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
if (
|
|
426
|
+
function Ee(t, n, r) {
|
|
427
|
+
if (Oe(t)) {
|
|
428
428
|
var i = t.axisLabelsCreationContext;
|
|
429
429
|
process.env.NODE_ENV !== "production" && e(t.labelGroup && i);
|
|
430
430
|
var a = i.out.noPxChangeTryDetermine;
|
|
@@ -436,17 +436,17 @@ function De(t, n, r) {
|
|
|
436
436
|
}
|
|
437
437
|
return !0;
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
var f = o.axis, p = u(e.raw.axisLabelShow, o.get(["axisLabel", "show"])), m = new
|
|
439
|
+
function De(e, t, r, i, o, c) {
|
|
440
|
+
var f = o.axis, p = u(e.raw.axisLabelShow, o.get(["axisLabel", "show"])), m = new O();
|
|
441
441
|
r.add(m);
|
|
442
|
-
var h =
|
|
442
|
+
var h = re(i);
|
|
443
443
|
if (!p || f.scale.isBlank()) {
|
|
444
444
|
Z(t, [], m, h);
|
|
445
445
|
return;
|
|
446
446
|
}
|
|
447
|
-
var g = o.getModel("axisLabel"), _ = f.getViewLabels(h), v = (u(e.raw.labelRotate, g.get("rotate")) || 0) * U / 180, y =
|
|
447
|
+
var g = o.getModel("axisLabel"), _ = f.getViewLabels(h), v = (u(e.raw.labelRotate, g.get("rotate")) || 0) * U / 180, y = J.innerTextLayout(e.rotation, v, e.labelDirection), b = o.getCategories && o.getCategories(!0), x = [], S = o.get("triggerEvent"), w = Infinity, T = -Infinity;
|
|
448
448
|
n(_, function(e, t) {
|
|
449
|
-
var n = e.tick, r = e.formattedLabel, i = e.rawLabel, l = g, u =
|
|
449
|
+
var n = e.tick, r = e.formattedLabel, i = e.rawLabel, l = g, u = z(f.scale, n);
|
|
450
450
|
if (b && b[u]) {
|
|
451
451
|
var p = b[u];
|
|
452
452
|
s(p) && p.textStyle && (l = new M(p.textStyle, g, o.ecModel));
|
|
@@ -455,24 +455,24 @@ function Oe(e, t, r, i, o, c) {
|
|
|
455
455
|
"axisLine",
|
|
456
456
|
"lineStyle",
|
|
457
457
|
"color"
|
|
458
|
-
]), v = l.getShallow("align", !0) || y.textAlign,
|
|
459
|
-
|
|
460
|
-
var F = new
|
|
458
|
+
]), v = l.getShallow("align", !0) || y.textAlign, E = d(l.getShallow("alignMinLabel", !0), v), O = d(l.getShallow("alignMaxLabel", !0), v), k = l.getShallow("verticalAlign", !0) || l.getShallow("baseline", !0) || y.textVerticalAlign, j = d(l.getShallow("verticalAlignMinLabel", !0), k), N = d(l.getShallow("verticalAlignMaxLabel", !0), k), P = 10 + (n.time?.level || 0);
|
|
459
|
+
w = Math.min(w, P), T = Math.max(T, P);
|
|
460
|
+
var F = new C({
|
|
461
461
|
x: 0,
|
|
462
462
|
y: 0,
|
|
463
463
|
rotation: 0,
|
|
464
|
-
silent:
|
|
464
|
+
silent: J.isLabelSilent(o),
|
|
465
465
|
z2: P,
|
|
466
|
-
style:
|
|
466
|
+
style: ee(l, {
|
|
467
467
|
text: r,
|
|
468
|
-
align: t === 0 ?
|
|
469
|
-
verticalAlign: t === 0 ?
|
|
468
|
+
align: t === 0 ? E : t === _.length - 1 ? O : v,
|
|
469
|
+
verticalAlign: t === 0 ? j : t === _.length - 1 ? N : k,
|
|
470
470
|
fill: a(h) ? h(f.type === "category" ? i : f.type === "value" ? u + "" : u, t) : h
|
|
471
471
|
})
|
|
472
472
|
});
|
|
473
473
|
F.anid = "label_" + u;
|
|
474
474
|
var I = W(F);
|
|
475
|
-
if (I.labelInfo = e, I.layoutRotation = y.rotation,
|
|
475
|
+
if (I.labelInfo = e, I.layoutRotation = y.rotation, A({
|
|
476
476
|
el: F,
|
|
477
477
|
componentModel: o,
|
|
478
478
|
itemName: r,
|
|
@@ -484,28 +484,28 @@ function Oe(e, t, r, i, o, c) {
|
|
|
484
484
|
tickIndex: t
|
|
485
485
|
}
|
|
486
486
|
}), S) {
|
|
487
|
-
var L =
|
|
487
|
+
var L = J.makeAxisEventDataBase(o);
|
|
488
488
|
L.targetType = "axisLabel", L.value = i, L.tickIndex = t;
|
|
489
489
|
var R = e.tick.break;
|
|
490
490
|
if (R) {
|
|
491
|
-
var
|
|
491
|
+
var B = R.parsedBreak;
|
|
492
492
|
L.break = {
|
|
493
|
-
start:
|
|
494
|
-
end:
|
|
493
|
+
start: B.vmin,
|
|
494
|
+
end: B.vmax
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
f.type === "category" && (L.dataIndex = u),
|
|
497
|
+
f.type === "category" && (L.dataIndex = u), D(F).eventData = L, R && je(o, c, F, R);
|
|
498
498
|
}
|
|
499
499
|
x.push(F), m.add(F);
|
|
500
500
|
}), Z(t, l(x, function(e) {
|
|
501
501
|
return {
|
|
502
502
|
label: e,
|
|
503
|
-
priority: W(e).labelInfo.tick.break ? e.z2 + (
|
|
503
|
+
priority: W(e).labelInfo.tick.break ? e.z2 + (T - w + 1) : e.z2,
|
|
504
504
|
defaultAttr: { ignore: e.ignore }
|
|
505
505
|
};
|
|
506
506
|
}), m, h);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Oe(e) {
|
|
509
509
|
return !!e.labelLayoutList;
|
|
510
510
|
}
|
|
511
511
|
function Z(e, t, n, r) {
|
|
@@ -514,23 +514,23 @@ function Z(e, t, n, r) {
|
|
|
514
514
|
function ke(e, t, r, i) {
|
|
515
515
|
var a = t.get(["axisLabel", "margin"]);
|
|
516
516
|
n(r, function(n, r) {
|
|
517
|
-
var o =
|
|
517
|
+
var o = V(n);
|
|
518
518
|
if (o) {
|
|
519
519
|
var s = o.label, c = W(s);
|
|
520
|
-
o.suggestIgnore = s.ignore, s.ignore = !1,
|
|
520
|
+
o.suggestIgnore = s.ignore, s.ignore = !1, x(Q, Ae);
|
|
521
521
|
var l = t.axis;
|
|
522
|
-
Q.x = l.dataToCoord(
|
|
522
|
+
Q.x = l.dataToCoord(z(l.scale, c.labelInfo.tick)), Q.y = e.labelOffset + e.labelDirection * a, Q.rotation = c.layoutRotation, i.add(Q), Q.updateTransform(), i.remove(Q), Q.decomposeTransform(), x(s, Q), s.markRedraw(), le(o, !0), V(o);
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
-
var Q = new
|
|
526
|
+
var Q = new S(), Ae = new S();
|
|
527
527
|
function $(e) {
|
|
528
528
|
return !!e;
|
|
529
529
|
}
|
|
530
530
|
function je(e, t, n, r) {
|
|
531
531
|
n.on("click", function(n) {
|
|
532
532
|
var i = {
|
|
533
|
-
type:
|
|
533
|
+
type: ue,
|
|
534
534
|
breaks: [{
|
|
535
535
|
start: r.parsedBreak.breakOption.start,
|
|
536
536
|
end: r.parsedBreak.breakOption.end
|
|
@@ -546,9 +546,9 @@ function Me(e, t, r) {
|
|
|
546
546
|
return e && W(e.label).labelInfo.tick.break;
|
|
547
547
|
}, !0), o = e.get(["breakLabelLayout", "moveOverlap"], !0);
|
|
548
548
|
(o === !0 || o === "auto") && n(a, function(n) {
|
|
549
|
-
|
|
549
|
+
H().adjustBreakLabelPair(e.axis.inverse, t, [V(r[n[0]]), V(r[n[1]])]);
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
//#endregion
|
|
554
|
-
export {
|
|
554
|
+
export { pe as AxisBuilderSharedContext, J as default, W as getLabelInner, _e as moveIfOverlapByLinearLabels, he as resolveAxisNameOverlapDefault };
|