@hybridcore/ui 1.6.8 → 1.6.9
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/dist/AnimatedTheme-BOKdw2Oy.js +7708 -0
- package/dist/{AxisRenderer-DTyLLA6c.js → AxisRenderer-lUbezuh7.js} +51 -49
- package/dist/{AxisRendererY-C_ItLPNV.js → AxisRendererY-DbSiyb45.js} +3 -3
- package/dist/{Bullet-DVczI2TD.js → Bullet-PgoNb3Jv.js} +1 -1
- package/dist/{Button-CcsPEIDh.js → Button-XBf4Mwz-.js} +3 -3
- package/dist/{CategoryAxis-CwnfaGc8.js → CategoryAxis-B8KQp1pE.js} +3 -3
- package/dist/{Circle-Cy5s-pVc.js → Circle-BWRdiMpG.js} +1 -1
- package/dist/ColorSet-DDmFoKtZ.js +77 -0
- package/dist/{ColumnSeries-CjgdJ2QL.js → ColumnSeries-rgnGm-Bg.js} +4 -4
- package/dist/{DataProcessor-CHDO51q4.js → DataProcessor-CvIe9BVn.js} +1 -1
- package/dist/{DateAxis-YX3QNIB-.js → DateAxis-zNtbSVjW.js} +8 -7
- package/dist/{ColorSet-C7vpNXhM.js → Entity-CCUIdRAr.js} +638 -712
- package/dist/{Hierarchy-Bihj0S61.js → Hierarchy-CCvGsF1A.js} +25 -23
- package/dist/{Legend-Dp_MKfS4.js → Legend-kbCFjJAW.js} +11 -10
- package/dist/{LineSeries-Uiv5o56b.js → LineSeries-BLFvwrLT.js} +13 -12
- package/dist/{LinearGradient-DiRq5YcI.js → LinearGradient-C7rnipF7.js} +11 -11
- package/dist/{PieSeries-B2fW3z0s.js → PieSeries-3iLRbqFv.js} +34 -32
- package/dist/{RoundedRectangle-CWLi2PXn.js → RoundedRectangle-CqMMmPM0.js} +4 -4
- package/dist/{Scrollbar-D86MJyr2.js → Scrollbar-BzSBcIUt.js} +4 -4
- package/dist/{Slice-B19rbYDZ.js → Slice-CS23iLiS.js} +2 -2
- package/dist/{Tick-2bcLyHpF.js → Tick-BADQ8QeT.js} +15 -15
- package/dist/Tooltip-A_HlttXp.js +3606 -0
- package/dist/{XYCursor-C8WktvKM.js → XYCursor-gHAo40xC.js} +3 -3
- package/dist/{ZoomableContainer-DYyqwaMb.js → ZoomableContainer-Brs1wHM1.js} +9 -9
- package/dist/components/charts/_common/tooltip.js +73 -0
- package/dist/components/charts/_common/utils.js +10 -9
- package/dist/components/charts/candlestick/logic.js +181 -156
- package/dist/components/charts/column-line-mix/logic.js +80 -77
- package/dist/components/charts/donut-chart/logic.js +36 -34
- package/dist/components/charts/drill-down-treemap/logic.js +49 -48
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +102 -101
- package/dist/components/charts/heatmap/logic.js +33 -32
- package/dist/components/charts/highlighting-line-data/logic.js +26 -24
- package/dist/components/charts/line/logic.js +123 -174
- package/dist/components/charts/logaritmic-scale/logic.js +69 -60
- package/dist/components/charts/multiple-value-axes/logic.js +93 -88
- package/dist/components/charts/nested-pie/logic.js +3 -3
- package/dist/components/charts/packed-circles/logic.js +28 -27
- package/dist/components/charts/pie-chart/logic.js +43 -41
- package/dist/components/charts/stacked-area-radar/logic.js +124 -121
- package/dist/components/charts/stacked-column-chart/logic.js +107 -95
- package/dist/components/charts/xy-chart/logic.js +103 -91
- package/dist/components/metric-card/MetricChart.js +29 -28
- package/package.json +1 -1
- package/dist/AnimatedTheme-jnasw6rT.js +0 -11305
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { T as ye, s as T, f as we, S as ge, D as Z, C as pe } from "./AnimatedTheme-BOKdw2Oy.js";
|
|
2
|
+
import { C as Pe, b as k, a as G, f as v, y as ae, l as z, p as V, z as U, v as Ae, k as re, r as j, e as M, A as ne, B as oe, P as le, D as he, F as ue, w as ce, _ as B, m as F, h as Q, M as De, G as Me } from "./Entity-CCUIdRAr.js";
|
|
3
|
+
import { C as de } from "./ColorSet-DDmFoKtZ.js";
|
|
4
|
+
import { r as C, d as fe, C as Y, G as I, R as me, j as be, f as J, k as ke, L as _e, a as W, b as N } from "./Tooltip-A_HlttXp.js";
|
|
5
|
+
import { S as xe, T as ve } from "./Tick-BADQ8QeT.js";
|
|
6
|
+
import { B as Se } from "./Button-XBf4Mwz-.js";
|
|
5
7
|
class Te extends ye {
|
|
6
8
|
setupDefaultRules() {
|
|
7
9
|
super.setupDefaultRules();
|
|
8
10
|
const e = this._root.interfaceColors, i = this._root.language, t = this.rule.bind(this);
|
|
9
11
|
t("XYChart").setAll({
|
|
10
|
-
colors:
|
|
12
|
+
colors: de.new(this._root, {}),
|
|
11
13
|
paddingLeft: 20,
|
|
12
14
|
paddingRight: 20,
|
|
13
15
|
paddingTop: 16,
|
|
@@ -21,14 +23,14 @@ class Te extends ye {
|
|
|
21
23
|
}), t("XYSeries").setAll({
|
|
22
24
|
legendLabelText: "{name}"
|
|
23
25
|
}), t("Rectangle", ["plotbackground", "xy", "background"]).setAll({
|
|
24
|
-
fill:
|
|
26
|
+
fill: Pe.fromHex(0),
|
|
25
27
|
fillOpacity: 0
|
|
26
28
|
}), t("XYChart", ["scrollbar", "chart"]).setAll({
|
|
27
29
|
paddingBottom: 0,
|
|
28
30
|
paddingLeft: 0,
|
|
29
31
|
paddingTop: 0,
|
|
30
32
|
paddingRight: 0,
|
|
31
|
-
colors:
|
|
33
|
+
colors: de.new(this._root, {
|
|
32
34
|
saturation: 0
|
|
33
35
|
})
|
|
34
36
|
});
|
|
@@ -146,8 +148,8 @@ class Te extends ye {
|
|
|
146
148
|
}), t("AxisLabel").setAll({
|
|
147
149
|
location: 0.5,
|
|
148
150
|
multiLocation: 0,
|
|
149
|
-
centerX:
|
|
150
|
-
centerY:
|
|
151
|
+
centerX: G,
|
|
152
|
+
centerY: G,
|
|
151
153
|
paddingTop: 3,
|
|
152
154
|
paddingBottom: 3,
|
|
153
155
|
paddingLeft: 5,
|
|
@@ -322,9 +324,9 @@ class Te extends ye {
|
|
|
322
324
|
};
|
|
323
325
|
t("CategoryDateAxis").setAll({
|
|
324
326
|
markUnitChange: !0,
|
|
325
|
-
gridIntervals:
|
|
326
|
-
dateFormats:
|
|
327
|
-
periodChangeDateFormats:
|
|
327
|
+
gridIntervals: ae(s),
|
|
328
|
+
dateFormats: z(r),
|
|
329
|
+
periodChangeDateFormats: z(h)
|
|
328
330
|
}), t("DateAxis").setAll({
|
|
329
331
|
maxZoomFactor: null,
|
|
330
332
|
strictMinMax: !0,
|
|
@@ -335,9 +337,9 @@ class Te extends ye {
|
|
|
335
337
|
groupCount: 500,
|
|
336
338
|
skipFirstMinor: !0,
|
|
337
339
|
weekLabelLocation: 0,
|
|
338
|
-
gridIntervals:
|
|
339
|
-
dateFormats:
|
|
340
|
-
periodChangeDateFormats:
|
|
340
|
+
gridIntervals: ae(s),
|
|
341
|
+
dateFormats: z(r),
|
|
342
|
+
periodChangeDateFormats: z(h),
|
|
341
343
|
tooltipDateFormats: o,
|
|
342
344
|
groupIntervals: [
|
|
343
345
|
{ timeUnit: "millisecond", count: 1 },
|
|
@@ -531,10 +533,10 @@ class Te extends ye {
|
|
|
531
533
|
}), t("Button", ["rangegrip", "vertical"]).setAll({
|
|
532
534
|
rotation: 90,
|
|
533
535
|
cursorOverStyle: "ns-resize",
|
|
534
|
-
centerX:
|
|
536
|
+
centerX: G
|
|
535
537
|
}), t("Button", ["rangegrip", "horizontal"]).setAll({
|
|
536
538
|
cursorOverStyle: "ew-resize",
|
|
537
|
-
centerX:
|
|
539
|
+
centerX: G
|
|
538
540
|
}), t("Button", ["rangegrip", "vertical", "left"]).setAll({
|
|
539
541
|
centerY: k
|
|
540
542
|
}), t("Button", ["rangegrip", "vertical", "right"]).setAll({
|
|
@@ -552,12 +554,12 @@ class ee extends xe {
|
|
|
552
554
|
enumerable: !0,
|
|
553
555
|
configurable: !0,
|
|
554
556
|
writable: !0,
|
|
555
|
-
value: new
|
|
557
|
+
value: new fe()
|
|
556
558
|
}), Object.defineProperty(this, "yAxes", {
|
|
557
559
|
enumerable: !0,
|
|
558
560
|
configurable: !0,
|
|
559
561
|
writable: !0,
|
|
560
|
-
value: new
|
|
562
|
+
value: new fe()
|
|
561
563
|
}), Object.defineProperty(this, "topAxesContainer", {
|
|
562
564
|
enumerable: !0,
|
|
563
565
|
configurable: !0,
|
|
@@ -674,7 +676,7 @@ class ee extends xe {
|
|
|
674
676
|
this.zoomOut();
|
|
675
677
|
}), t.hide(0), t.states.lookup("default").set("opacity", 1), this.chartContainer.set("layout", i);
|
|
676
678
|
const s = this.plotContainer;
|
|
677
|
-
s.children.push(this.seriesContainer), this._disposers.push(this._processAxis(this.xAxes, this.bottomAxesContainer)), this._disposers.push(this._processAxis(this.yAxes, this.leftAxesContainer)), s.children.push(this.topGridContainer), s.children.push(this.bulletsContainer), s.set("interactive", !0), s.set("interactiveChildren", !1), s.set("background",
|
|
679
|
+
s.children.push(this.seriesContainer), this._disposers.push(this._processAxis(this.xAxes, this.bottomAxesContainer)), this._disposers.push(this._processAxis(this.yAxes, this.leftAxesContainer)), s.children.push(this.topGridContainer), s.children.push(this.bulletsContainer), s.set("interactive", !0), s.set("interactiveChildren", !1), s.set("background", me.new(e, {
|
|
678
680
|
themeTags: ["plotbackground", "xy", "background"]
|
|
679
681
|
})), this._disposers.push(s.events.on("pointerdown", (r) => {
|
|
680
682
|
this._handlePlotDown(r);
|
|
@@ -716,7 +718,7 @@ class ee extends xe {
|
|
|
716
718
|
handleWheel(e) {
|
|
717
719
|
const i = this.get("wheelX"), t = this.get("wheelY"), s = this.plotContainer, r = e.originalEvent;
|
|
718
720
|
let h = !1;
|
|
719
|
-
if (
|
|
721
|
+
if (Ae(r, this))
|
|
720
722
|
h = !0;
|
|
721
723
|
else
|
|
722
724
|
return;
|
|
@@ -792,7 +794,7 @@ class ee extends xe {
|
|
|
792
794
|
return;
|
|
793
795
|
const t = this.plotContainer;
|
|
794
796
|
let s = t.toLocal(e.point);
|
|
795
|
-
if ((this.get("pinchZoomX") || this.get("pinchZoomY")) && i.pointerId &&
|
|
797
|
+
if ((this.get("pinchZoomX") || this.get("pinchZoomY")) && i.pointerId && re(t._downPoints).length > 0) {
|
|
796
798
|
const h = this.xAxes.getIndex(0), o = this.yAxes.getIndex(0);
|
|
797
799
|
h && (this._downStartX = h.get("start", 0), this._downEndX = h.get("end", 1)), o && (this._downStartY = o.get("start", 0), this._downEndY = o.get("end", 1));
|
|
798
800
|
}
|
|
@@ -837,7 +839,7 @@ class ee extends xe {
|
|
|
837
839
|
const i = this.plotContainer;
|
|
838
840
|
if (this.get("pinchZoomX") || this.get("pinchZoomY")) {
|
|
839
841
|
const r = e.originalEvent.pointerId;
|
|
840
|
-
if (r && (this._movePoints[r] = e.point,
|
|
842
|
+
if (r && (this._movePoints[r] = e.point, re(i._downPoints).length > 1)) {
|
|
841
843
|
this._handlePinch();
|
|
842
844
|
return;
|
|
843
845
|
}
|
|
@@ -995,7 +997,7 @@ class ee extends xe {
|
|
|
995
997
|
_processSeries(e) {
|
|
996
998
|
super._processSeries(e);
|
|
997
999
|
const i = e.get("xAxis"), t = e.get("yAxis");
|
|
998
|
-
|
|
1000
|
+
ne(i.series, e), ne(t.series, e), e._posXDp = e.addDisposer(i.events.on("positionchanged", () => {
|
|
999
1001
|
e._fixPosition();
|
|
1000
1002
|
})), e._posXDp = e.addDisposer(t.events.on("positionchanged", () => {
|
|
1001
1003
|
e._fixPosition();
|
|
@@ -1175,13 +1177,13 @@ class ee extends xe {
|
|
|
1175
1177
|
let f = 0, _ = 0;
|
|
1176
1178
|
const x = this._root.tooltipContainer, b = a.length;
|
|
1177
1179
|
if (l / b > t / 2 + h.y) {
|
|
1178
|
-
a.sort((A, w) =>
|
|
1180
|
+
a.sort((A, w) => oe(w.get("pointTo").y, A.get("pointTo").y));
|
|
1179
1181
|
let y = o.y;
|
|
1180
1182
|
if (M(a, (A) => {
|
|
1181
1183
|
let w = A.height();
|
|
1182
1184
|
_++, f += w;
|
|
1183
1185
|
let D = A.get("centerY");
|
|
1184
|
-
D instanceof
|
|
1186
|
+
D instanceof le && (w *= D.value), w += A.get("marginBottom", 0), A.set("bounds", { left: h.x, top: h.y, right: o.x, bottom: y }), A.setPrivate("customData", { left: h.x, top: h.y, right: o.x, bottom: y }), y = Math.min(y - w, A._fy - w), A.parent == x && x.children.moveValue(A, 0);
|
|
1185
1187
|
}), y < 0) {
|
|
1186
1188
|
a.reverse();
|
|
1187
1189
|
let A = y;
|
|
@@ -1195,14 +1197,14 @@ class ee extends xe {
|
|
|
1195
1197
|
});
|
|
1196
1198
|
}
|
|
1197
1199
|
} else {
|
|
1198
|
-
a.reverse(), a.sort((A, w) =>
|
|
1200
|
+
a.reverse(), a.sort((A, w) => oe(A.get("pointTo").y, w.get("pointTo").y));
|
|
1199
1201
|
let y = 0;
|
|
1200
1202
|
if (M(a, (A) => {
|
|
1201
1203
|
_++;
|
|
1202
1204
|
let w = A.height();
|
|
1203
1205
|
f += w;
|
|
1204
1206
|
let D = A.get("centerY");
|
|
1205
|
-
D instanceof
|
|
1207
|
+
D instanceof le && (w *= D.value), w += A.get("marginBottom", 0), A.set("bounds", { left: h.x, top: y, right: o.x, bottom: Math.max(h.y + s, y + w) }), A.parent == x && x.children.moveValue(A, 0), y = Math.max(y + w, A._fy + w);
|
|
1206
1208
|
}), y > s) {
|
|
1207
1209
|
a.reverse();
|
|
1208
1210
|
let A = s;
|
|
@@ -1275,7 +1277,7 @@ function Ce(O, e) {
|
|
|
1275
1277
|
function Oe(O, e) {
|
|
1276
1278
|
return O == null ? e : e == null || O > e ? O : e;
|
|
1277
1279
|
}
|
|
1278
|
-
class te extends
|
|
1280
|
+
class te extends ge {
|
|
1279
1281
|
constructor() {
|
|
1280
1282
|
super(...arguments), Object.defineProperty(this, "_xField", {
|
|
1281
1283
|
enumerable: !0,
|
|
@@ -1366,7 +1368,7 @@ class te extends pe {
|
|
|
1366
1368
|
enumerable: !0,
|
|
1367
1369
|
configurable: !0,
|
|
1368
1370
|
writable: !0,
|
|
1369
|
-
value: new
|
|
1371
|
+
value: new be()
|
|
1370
1372
|
}), Object.defineProperty(this, "_skipped", {
|
|
1371
1373
|
enumerable: !0,
|
|
1372
1374
|
configurable: !0,
|
|
@@ -1570,7 +1572,7 @@ class te extends pe {
|
|
|
1570
1572
|
_dispose() {
|
|
1571
1573
|
super._dispose(), this._bullets = {};
|
|
1572
1574
|
const e = this.chart;
|
|
1573
|
-
e && e.series.removeValue(this),
|
|
1575
|
+
e && e.series.removeValue(this), he(this.get("xAxis").series, this), he(this.get("yAxis").series, this);
|
|
1574
1576
|
}
|
|
1575
1577
|
// TODO use SelectKeys<this["_privateSettings"], number | undefined>
|
|
1576
1578
|
_min(e, i) {
|
|
@@ -1598,7 +1600,7 @@ class te extends pe {
|
|
|
1598
1600
|
return e.get(this._xField) != null && e.get(this._yField) != null;
|
|
1599
1601
|
}
|
|
1600
1602
|
_makeFieldNames() {
|
|
1601
|
-
const e = this.get("xAxis"), i = this.get("yAxis"), t = e.getPrivate("name"), s =
|
|
1603
|
+
const e = this.get("xAxis"), i = this.get("yAxis"), t = e.getPrivate("name"), s = ue(t), r = i.getPrivate("name"), h = ue(r), o = e.get("renderer").getPrivate("letter"), a = i.get("renderer").getPrivate("letter"), l = "open", u = "low", n = "high", d = "Show";
|
|
1602
1604
|
e.className === "ValueAxis" ? (this._xField = this.get(t + o + d), this._xOpenField = this.get(l + s + o + d), this._xLowField = this.get(u + s + o + d), this._xHighField = this.get(n + s + o + d)) : (this._xField = t + o, this._xOpenField = l + s + o, this._xLowField = u + s + o, this._xHighField = n + s + o), i.className === "ValueAxis" ? (this._yField = this.get(r + a + d), this._yOpenField = this.get(l + h + a + d), this._yLowField = this.get(u + h + a + d), this._yHighField = this.get(n + h + a + d)) : (this._yField = r + a, this._yOpenField = l + h + a, this._yLowField = u + h + a, this._yHighField = n + h + a);
|
|
1603
1605
|
}
|
|
1604
1606
|
_fixVC() {
|
|
@@ -1613,7 +1615,7 @@ class te extends pe {
|
|
|
1613
1615
|
}
|
|
1614
1616
|
_fixPosition() {
|
|
1615
1617
|
const e = this.get("xAxis"), i = this.get("yAxis");
|
|
1616
|
-
this.set("x", e.x() -
|
|
1618
|
+
this.set("x", e.x() - ce(e.get("centerX", 0), e.width()) - e.parent.get("paddingLeft", 0)), this.set("y", i.y() - ce(i.get("centerY", 0), i.height()) - i.parent.get("paddingTop", 0)), this.bulletsContainer.set("y", this.y()), this.bulletsContainer.set("x", this.x());
|
|
1617
1619
|
}
|
|
1618
1620
|
_prepareChildren() {
|
|
1619
1621
|
super._prepareChildren(), this._bullets = {}, (this.isDirty("valueYShow") || this.isDirty("valueXShow") || this.isDirty("openValueYShow") || this.isDirty("openValueXShow") || this.isDirty("lowValueYShow") || this.isDirty("lowValueXShow") || this.isDirty("highValueYShow") || this.isDirty("highValueXShow")) && (this._updateFields(), this._makeFieldNames(), this._valuesDirty = !0), (this.isDirty("xAxis") || this.isDirty("yAxis")) && (this._valuesDirty = !0), this.set("width", this.get("xAxis").width()), this.set("height", this.get("yAxis").height()), this._handleMaskBullets();
|
|
@@ -1917,7 +1919,7 @@ class te extends pe {
|
|
|
1917
1919
|
const i = Object.create(null, {
|
|
1918
1920
|
show: { get: () => super.show }
|
|
1919
1921
|
});
|
|
1920
|
-
return
|
|
1922
|
+
return B(this, void 0, void 0, function* () {
|
|
1921
1923
|
this._fixVC();
|
|
1922
1924
|
let t = [];
|
|
1923
1925
|
t.push(i.show.call(this, e).then(() => {
|
|
@@ -1937,7 +1939,7 @@ class te extends pe {
|
|
|
1937
1939
|
const i = Object.create(null, {
|
|
1938
1940
|
hide: { get: () => super.hide }
|
|
1939
1941
|
});
|
|
1940
|
-
return
|
|
1942
|
+
return B(this, void 0, void 0, function* () {
|
|
1941
1943
|
this._fixVC();
|
|
1942
1944
|
let t = [];
|
|
1943
1945
|
t.push(i.hide.call(this, e).then(() => {
|
|
@@ -1956,7 +1958,7 @@ class te extends pe {
|
|
|
1956
1958
|
const t = Object.create(null, {
|
|
1957
1959
|
showDataItem: { get: () => super.showDataItem }
|
|
1958
1960
|
});
|
|
1959
|
-
return
|
|
1961
|
+
return B(this, void 0, void 0, function* () {
|
|
1960
1962
|
const s = [t.showDataItem.call(this, e, i)];
|
|
1961
1963
|
v(i) || (i = this.get("stateAnimationDuration", 0));
|
|
1962
1964
|
const r = this.get("stateAnimationEasing");
|
|
@@ -1976,7 +1978,7 @@ class te extends pe {
|
|
|
1976
1978
|
const t = Object.create(null, {
|
|
1977
1979
|
hideDataItem: { get: () => super.hideDataItem }
|
|
1978
1980
|
});
|
|
1979
|
-
return
|
|
1981
|
+
return B(this, void 0, void 0, function* () {
|
|
1980
1982
|
const s = [t.hideDataItem.call(this, e, i)];
|
|
1981
1983
|
let r = this.states.lookup("hidden");
|
|
1982
1984
|
r || (r = this.states.create("hidden", {})), v(i) || (i = r.get("stateAnimationDuration", this.get("stateAnimationDuration", 0)));
|
|
@@ -2145,9 +2147,9 @@ Object.defineProperty(te, "classNames", {
|
|
|
2145
2147
|
enumerable: !0,
|
|
2146
2148
|
configurable: !0,
|
|
2147
2149
|
writable: !0,
|
|
2148
|
-
value:
|
|
2150
|
+
value: ge.classNames.concat([te.className])
|
|
2149
2151
|
});
|
|
2150
|
-
class E extends
|
|
2152
|
+
class E extends pe {
|
|
2151
2153
|
constructor() {
|
|
2152
2154
|
super(...arguments), Object.defineProperty(this, "_series", {
|
|
2153
2155
|
enumerable: !0,
|
|
@@ -2223,7 +2225,7 @@ class E extends be {
|
|
|
2223
2225
|
enumerable: !0,
|
|
2224
2226
|
configurable: !0,
|
|
2225
2227
|
writable: !0,
|
|
2226
|
-
value: new
|
|
2228
|
+
value: new be()
|
|
2227
2229
|
}), Object.defineProperty(this, "_seriesAxisRanges", {
|
|
2228
2230
|
enumerable: !0,
|
|
2229
2231
|
configurable: !0,
|
|
@@ -2261,7 +2263,7 @@ class E extends be {
|
|
|
2261
2263
|
value: this.children.push(Y.new(this._root, {
|
|
2262
2264
|
themeTags: ["axis", "header"],
|
|
2263
2265
|
position: "absolute",
|
|
2264
|
-
background:
|
|
2266
|
+
background: me.new(this._root, {
|
|
2265
2267
|
themeTags: ["header", "background"],
|
|
2266
2268
|
fill: this._root.interfaceColors.get("background")
|
|
2267
2269
|
})
|
|
@@ -2679,7 +2681,7 @@ Object.defineProperty(E, "classNames", {
|
|
|
2679
2681
|
enumerable: !0,
|
|
2680
2682
|
configurable: !0,
|
|
2681
2683
|
writable: !0,
|
|
2682
|
-
value:
|
|
2684
|
+
value: pe.classNames.concat([E.className])
|
|
2683
2685
|
});
|
|
2684
2686
|
class ie extends E {
|
|
2685
2687
|
constructor() {
|
|
@@ -2755,7 +2757,7 @@ class ie extends E {
|
|
|
2755
2757
|
if (super._prepareChildren(), this.isDirty("syncWithAxis")) {
|
|
2756
2758
|
this._prevSettings.syncWithAxis && this._syncDp && this._syncDp.dispose();
|
|
2757
2759
|
let s = this.get("syncWithAxis");
|
|
2758
|
-
s && (this._syncDp = new
|
|
2760
|
+
s && (this._syncDp = new De([
|
|
2759
2761
|
s.onPrivate("selectionMinFinal", () => {
|
|
2760
2762
|
this._dirtySelectionExtremes = !0;
|
|
2761
2763
|
}),
|
|
@@ -2861,7 +2863,7 @@ class ie extends E {
|
|
|
2861
2863
|
_handleRangeChange() {
|
|
2862
2864
|
let e = this.positionToValue(this.get("start", 0)), i = this.positionToValue(this.get("end", 1));
|
|
2863
2865
|
const t = this.get("renderer").gridCount();
|
|
2864
|
-
let s = this._adjustMinMax(e, i, t, !0), r =
|
|
2866
|
+
let s = this._adjustMinMax(e, i, t, !0), r = Me(s.step);
|
|
2865
2867
|
this.setPrivateRaw("stepDecimalPlaces", r), e = C(e, r), i = C(i, r), s = this._adjustMinMax(e, i, t, !0);
|
|
2866
2868
|
let h = s.step;
|
|
2867
2869
|
e = s.min, i = s.max, (this.getPrivate("selectionMin") !== e || this.getPrivate("selectionMax") !== i || this.getPrivate("step") !== h) && (this.setPrivateRaw("selectionMin", e), this.setPrivateRaw("selectionMax", i), this.setPrivateRaw("step", h));
|
|
@@ -3167,7 +3169,7 @@ class ie extends E {
|
|
|
3167
3169
|
c > 5 ? c = 10 : c <= 5 && c > 2 && (c = 5), n = Math.ceil(n / (d * c)) * d * c;
|
|
3168
3170
|
let m = this.get("maxPrecision");
|
|
3169
3171
|
if (v(m)) {
|
|
3170
|
-
let _ =
|
|
3172
|
+
let _ = ke(n, m);
|
|
3171
3173
|
m < Number.MAX_VALUE && n !== _ && (n = _, n == 0 && (n = 1));
|
|
3172
3174
|
}
|
|
3173
3175
|
let g = 0;
|
|
@@ -3384,28 +3386,28 @@ class se extends I {
|
|
|
3384
3386
|
enumerable: !0,
|
|
3385
3387
|
configurable: !0,
|
|
3386
3388
|
writable: !0,
|
|
3387
|
-
value: this.addDisposer(new
|
|
3389
|
+
value: this.addDisposer(new W(N.new({}), () => q._new(this._root, {
|
|
3388
3390
|
themeTags: F(this.ticks.template.get("themeTags", []), this.get("themeTags", []))
|
|
3389
3391
|
}, [this.ticks.template])))
|
|
3390
3392
|
}), Object.defineProperty(this, "grid", {
|
|
3391
3393
|
enumerable: !0,
|
|
3392
3394
|
configurable: !0,
|
|
3393
3395
|
writable: !0,
|
|
3394
|
-
value: this.addDisposer(new
|
|
3396
|
+
value: this.addDisposer(new W(N.new({}), () => H._new(this._root, {
|
|
3395
3397
|
themeTags: F(this.grid.template.get("themeTags", []), this.get("themeTags", []))
|
|
3396
3398
|
}, [this.grid.template])))
|
|
3397
3399
|
}), Object.defineProperty(this, "axisFills", {
|
|
3398
3400
|
enumerable: !0,
|
|
3399
3401
|
configurable: !0,
|
|
3400
3402
|
writable: !0,
|
|
3401
|
-
value: this.addDisposer(new
|
|
3403
|
+
value: this.addDisposer(new W(N.new({}), () => I._new(this._root, {
|
|
3402
3404
|
themeTags: F(this.axisFills.template.get("themeTags", ["axis", "fill"]), this.get("themeTags", []))
|
|
3403
3405
|
}, [this.axisFills.template])))
|
|
3404
3406
|
}), Object.defineProperty(this, "labels", {
|
|
3405
3407
|
enumerable: !0,
|
|
3406
3408
|
configurable: !0,
|
|
3407
3409
|
writable: !0,
|
|
3408
|
-
value: this.addDisposer(new
|
|
3410
|
+
value: this.addDisposer(new W(N.new({}), () => K._new(this._root, {
|
|
3409
3411
|
themeTags: F(this.labels.template.get("themeTags", []), this.get("themeTags", []))
|
|
3410
3412
|
}, [this.labels.template])))
|
|
3411
3413
|
}), Object.defineProperty(this, "axis", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as u } from "./AxisRenderer-
|
|
2
|
-
import { b as d, m,
|
|
3
|
-
import {
|
|
1
|
+
import { a as u } from "./AxisRenderer-lUbezuh7.js";
|
|
2
|
+
import { b as d, m, w as T, f as o, x as _ } from "./Entity-CCUIdRAr.js";
|
|
3
|
+
import { R as w } from "./Tooltip-A_HlttXp.js";
|
|
4
4
|
class c extends u {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments), Object.defineProperty(this, "thumb", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as a } from "./RoundedRectangle-
|
|
2
|
-
import { C as r } from "./
|
|
3
|
-
import { m as i } from "./
|
|
1
|
+
import { R as a } from "./RoundedRectangle-CqMMmPM0.js";
|
|
2
|
+
import { C as r } from "./Tooltip-A_HlttXp.js";
|
|
3
|
+
import { m as i } from "./Entity-CCUIdRAr.js";
|
|
4
4
|
class s extends r {
|
|
5
5
|
_afterNew() {
|
|
6
6
|
this._settings.themeTags = i(this._settings.themeTags, ["button"]), super._afterNew(), this._settings.background || this.set("background", a.new(this._root, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as S, V as L } from "./AxisRenderer-
|
|
2
|
-
import {
|
|
3
|
-
import { m as R, e as P, f as T } from "./
|
|
1
|
+
import { A as S, V as L } from "./AxisRenderer-lUbezuh7.js";
|
|
2
|
+
import { f as N, p as w } from "./Tooltip-A_HlttXp.js";
|
|
3
|
+
import { m as R, e as P, f as T } from "./Entity-CCUIdRAr.js";
|
|
4
4
|
class b extends S {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments), Object.defineProperty(this, "_frequency", {
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { E as c, C as h } from "./Entity-CCUIdRAr.js";
|
|
2
|
+
class u extends c {
|
|
3
|
+
//protected _currentPass: number = 0;
|
|
4
|
+
_afterNew() {
|
|
5
|
+
super._afterNewApplyThemes(), this._dirty.colors = !1;
|
|
6
|
+
}
|
|
7
|
+
_beforeChanged() {
|
|
8
|
+
this.isDirty("colors") && this.reset();
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
generateColors() {
|
|
14
|
+
this.setPrivate("currentPass", this.getPrivate("currentPass", 0) + 1);
|
|
15
|
+
const t = this.getPrivate("currentPass"), e = this.get("colors", [this.get("baseColor", h.fromHex(16711680))]);
|
|
16
|
+
this.getPrivate("numColors") || this.setPrivate("numColors", e.length);
|
|
17
|
+
const r = this.getPrivate("numColors"), g = 0, o = this.get("passOptions"), f = this.get("reuse");
|
|
18
|
+
for (let i = g; i < r; i++)
|
|
19
|
+
if (f)
|
|
20
|
+
e.push(e[i]);
|
|
21
|
+
else {
|
|
22
|
+
const a = e[i].toHSL();
|
|
23
|
+
let n = a.h + (o.hue || 0) * t;
|
|
24
|
+
for (; n > 1; )
|
|
25
|
+
n -= 1;
|
|
26
|
+
let s = a.s + (o.saturation || 0) * t;
|
|
27
|
+
s > 1 && (s = 1), s < 0 && (s = 0);
|
|
28
|
+
let l = a.l + (o.lightness || 0) * t;
|
|
29
|
+
for (; l > 1; )
|
|
30
|
+
l -= 1;
|
|
31
|
+
e.push(h.fromHSL(n, s, l));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Returns a [[Color]] at specific index.
|
|
36
|
+
*
|
|
37
|
+
* If there's no color at this index, a new color is generated.
|
|
38
|
+
*
|
|
39
|
+
* @param index Index
|
|
40
|
+
* @return Color
|
|
41
|
+
*/
|
|
42
|
+
getIndex(t) {
|
|
43
|
+
const e = this.get("colors", []), r = this.get("saturation");
|
|
44
|
+
return t >= e.length ? (this.generateColors(), this.getIndex(t)) : r != null ? h.saturate(e[t], r) : e[t];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns next [[Color]] in the list.
|
|
48
|
+
*
|
|
49
|
+
* If the list is out of colors, new ones are generated dynamically.
|
|
50
|
+
*/
|
|
51
|
+
next() {
|
|
52
|
+
let t = this.getPrivate("currentStep", this.get("startIndex", 0));
|
|
53
|
+
return this.setPrivate("currentStep", t + this.get("step", 1)), this.getIndex(t);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Resets counter to the start of the list, so the next call for `next()` will
|
|
57
|
+
* return the first color.
|
|
58
|
+
*/
|
|
59
|
+
reset() {
|
|
60
|
+
this.setPrivate("currentStep", this.get("startIndex", 0)), this.setPrivate("currentPass", 0);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
Object.defineProperty(u, "className", {
|
|
64
|
+
enumerable: !0,
|
|
65
|
+
configurable: !0,
|
|
66
|
+
writable: !0,
|
|
67
|
+
value: "ColorSet"
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(u, "classNames", {
|
|
70
|
+
enumerable: !0,
|
|
71
|
+
configurable: !0,
|
|
72
|
+
writable: !0,
|
|
73
|
+
value: c.classNames.concat([u.className])
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
u as C
|
|
77
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as D, P as M, h as V, f as X, _ as E, m as U } from "./
|
|
2
|
-
import { b as J } from "./AxisRenderer-
|
|
3
|
-
import { v as H, G as K,
|
|
4
|
-
import { R as q } from "./RoundedRectangle-
|
|
1
|
+
import { e as D, P as M, h as V, f as X, _ as E, m as U } from "./Entity-CCUIdRAr.js";
|
|
2
|
+
import { b as J } from "./AxisRenderer-lUbezuh7.js";
|
|
3
|
+
import { v as H, G as K, a as B, b as z } from "./Tooltip-A_HlttXp.js";
|
|
4
|
+
import { R as q } from "./RoundedRectangle-CqMMmPM0.js";
|
|
5
5
|
class Y extends J {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments), Object.defineProperty(this, "_ph", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as c, e as h, q as a, r as l, t as o, u,
|
|
1
|
+
import { E as c, e as h, q as a, r as l, t as o, C as u, u as n } from "./Entity-CCUIdRAr.js";
|
|
2
2
|
class p extends c {
|
|
3
3
|
constructor() {
|
|
4
4
|
super(...arguments), Object.defineProperty(this, "_checkDates", {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { g as U, c as X,
|
|
2
|
-
import { V as H } from "./AxisRenderer-
|
|
3
|
-
import { m as
|
|
1
|
+
import { g as U, c as X, a as Q, r as c, D as E, b as F, d as $, e as B } from "./AnimatedTheme-BOKdw2Oy.js";
|
|
2
|
+
import { V as H } from "./AxisRenderer-lUbezuh7.js";
|
|
3
|
+
import { m as tt, f as P, e as M, h as et, j as K, l as q, n as it, o as Z } from "./Entity-CCUIdRAr.js";
|
|
4
|
+
import { f as at } from "./Tooltip-A_HlttXp.js";
|
|
4
5
|
class W extends H {
|
|
5
6
|
constructor() {
|
|
6
7
|
super(...arguments), Object.defineProperty(this, "_dataGrouped", {
|
|
@@ -41,7 +42,7 @@ class W extends H {
|
|
|
41
42
|
});
|
|
42
43
|
}
|
|
43
44
|
_afterNew() {
|
|
44
|
-
this._settings.themeTags =
|
|
45
|
+
this._settings.themeTags = tt(this._settings.themeTags, ["axis"]), super._afterNew(), this.addTag("date"), this._setBaseInterval(this.get("baseInterval")), this.on("baseInterval", () => {
|
|
45
46
|
this._setBaseInterval(this.get("baseInterval"));
|
|
46
47
|
});
|
|
47
48
|
}
|
|
@@ -207,7 +208,7 @@ class W extends H {
|
|
|
207
208
|
}
|
|
208
209
|
M(this.series, (e) => {
|
|
209
210
|
if (e.get("baseAxis") === this) {
|
|
210
|
-
let i = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), s =
|
|
211
|
+
let i = this.getPrivate("name") + this.get("renderer").getPrivate("letter"), s = it(e.dataItems, (g) => Z(g.get(i), t)).index;
|
|
211
212
|
s > 0 && (s -= 1), a += this.baseDuration() * (1 - this.get("endLocation", 1));
|
|
212
213
|
let n = K(e.dataItems, (g) => Z(g.get(i), a)).index, l = n;
|
|
213
214
|
l > 1 && l--;
|
|
@@ -407,7 +408,7 @@ class W extends H {
|
|
|
407
408
|
let e = this.positionToValue(t);
|
|
408
409
|
e = e - (a - 0.5) * this.baseDuration();
|
|
409
410
|
let i = this.getPrivate("baseInterval");
|
|
410
|
-
if (!
|
|
411
|
+
if (!et(e)) {
|
|
411
412
|
const r = this._root.locale.firstDayOfWeek, s = i.timeUnit, o = this._root.utc, n = this._root.timezone, l = i.count;
|
|
412
413
|
e = c(e, s, l, this._root, this.getPrivate("min", 0));
|
|
413
414
|
let v = B(i, new Date(e), r, o, n);
|
|
@@ -546,7 +547,7 @@ class W extends H {
|
|
|
546
547
|
let e = this.positionToValue(this.getPrivate("tooltipPosition", 0));
|
|
547
548
|
const i = this.getPrivate("baseInterval");
|
|
548
549
|
let r = this._nextTime(e, t, i), s = this.getPrivate("selectionMin", 0), o = this.getPrivate("selectionMax", 0), n = c(s, i.timeUnit, i.count, this._root), l = c(o, i.timeUnit, i.count, this._root);
|
|
549
|
-
return r += a, r =
|
|
550
|
+
return r += a, r = at(r, n + a, l - a), this.toGlobalPosition(this.valueToPosition(r));
|
|
550
551
|
}
|
|
551
552
|
_nextTime(t, a, e) {
|
|
552
553
|
return c(t + a * this.baseDuration(), e.timeUnit, e.count, this._root);
|