@visactor/vchart 1.13.10-alpha.0 → 1.13.10
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/build/es5/index.js +1 -1
- package/build/index.es.js +302 -43
- package/build/index.js +303 -42
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/mosaic/mosaic-transformer.js +1 -1
- package/cjs/chart/mosaic/mosaic-transformer.js.map +1 -1
- package/cjs/chart/mosaic/mosaic.js.map +1 -1
- package/cjs/component/tooltip/tooltip.js +5 -7
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/core/index.d.ts +2 -2
- package/cjs/core/index.js +12 -2
- package/cjs/core/index.js.map +1 -1
- package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -0
- package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.js +3 -0
- package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.js.map +1 -1
- package/cjs/series/mosaic/interface.d.ts +1 -0
- package/cjs/series/mosaic/interface.js.map +1 -1
- package/cjs/series/mosaic/mosaic.d.ts +2 -0
- package/cjs/series/mosaic/mosaic.js +5 -2
- package/cjs/series/mosaic/mosaic.js.map +1 -1
- package/cjs/typings/tooltip/handler.d.ts +1 -0
- package/cjs/typings/tooltip/handler.js.map +1 -1
- package/cjs/util/data.js +7 -3
- package/cjs/util/data.js.map +1 -1
- package/esm/chart/mosaic/mosaic-transformer.js +1 -1
- package/esm/chart/mosaic/mosaic-transformer.js.map +1 -1
- package/esm/chart/mosaic/mosaic.js.map +1 -1
- package/esm/component/tooltip/tooltip.js +5 -7
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/core/index.d.ts +2 -2
- package/esm/core/index.js +2 -2
- package/esm/core/index.js.map +1 -1
- package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -0
- package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.js +3 -0
- package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.js.map +1 -1
- package/esm/series/mosaic/interface.d.ts +1 -0
- package/esm/series/mosaic/interface.js.map +1 -1
- package/esm/series/mosaic/mosaic.d.ts +2 -0
- package/esm/series/mosaic/mosaic.js +5 -2
- package/esm/series/mosaic/mosaic.js.map +1 -1
- package/esm/typings/tooltip/handler.d.ts +1 -0
- package/esm/typings/tooltip/handler.js.map +1 -1
- package/esm/util/data.js +6 -3
- package/esm/util/data.js.map +1 -1
- package/package.json +12 -12
package/build/index.js
CHANGED
|
@@ -12662,6 +12662,60 @@
|
|
|
12662
12662
|
}
|
|
12663
12663
|
}
|
|
12664
12664
|
|
|
12665
|
+
class ManualTickHandler {
|
|
12666
|
+
constructor() {
|
|
12667
|
+
this.time = 0;
|
|
12668
|
+
}
|
|
12669
|
+
static Avaliable() {
|
|
12670
|
+
return !0;
|
|
12671
|
+
}
|
|
12672
|
+
avaliable() {
|
|
12673
|
+
return ManualTickHandler.Avaliable();
|
|
12674
|
+
}
|
|
12675
|
+
tick(interval, cb) {
|
|
12676
|
+
this.time = Math.max(0, interval + this.time), cb(this, {
|
|
12677
|
+
once: !0
|
|
12678
|
+
});
|
|
12679
|
+
}
|
|
12680
|
+
tickTo(t, cb) {
|
|
12681
|
+
this.time = Math.max(0, t), cb(this, {
|
|
12682
|
+
once: !0
|
|
12683
|
+
});
|
|
12684
|
+
}
|
|
12685
|
+
release() {
|
|
12686
|
+
this.timerId > 0 && (this.timerId = -1);
|
|
12687
|
+
}
|
|
12688
|
+
getTime() {
|
|
12689
|
+
return this.time;
|
|
12690
|
+
}
|
|
12691
|
+
}
|
|
12692
|
+
|
|
12693
|
+
class ManualTicker extends DefaultTicker {
|
|
12694
|
+
set mode(m) {
|
|
12695
|
+
this.setupTickHandler();
|
|
12696
|
+
}
|
|
12697
|
+
get mode() {
|
|
12698
|
+
return this._mode;
|
|
12699
|
+
}
|
|
12700
|
+
initHandler() {
|
|
12701
|
+
return this.mode = "manual", null;
|
|
12702
|
+
}
|
|
12703
|
+
setupTickHandler() {
|
|
12704
|
+
const handler = new ManualTickHandler();
|
|
12705
|
+
return this._mode = "manual", this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0;
|
|
12706
|
+
}
|
|
12707
|
+
tickAt(time) {
|
|
12708
|
+
this.tickerHandler.tick(time - Math.max(this.lastFrameTime, 0), handler => {
|
|
12709
|
+
this.handleTick(handler, {
|
|
12710
|
+
once: !0
|
|
12711
|
+
});
|
|
12712
|
+
});
|
|
12713
|
+
}
|
|
12714
|
+
ifCanStop() {
|
|
12715
|
+
return !1;
|
|
12716
|
+
}
|
|
12717
|
+
}
|
|
12718
|
+
|
|
12665
12719
|
class Easing {
|
|
12666
12720
|
constructor() {}
|
|
12667
12721
|
static linear(t) {
|
|
@@ -13371,6 +13425,186 @@
|
|
|
13371
13425
|
} else out.text = this.toText.substr(0, count);
|
|
13372
13426
|
}
|
|
13373
13427
|
}
|
|
13428
|
+
class StreamLight extends ACustomAnimate {
|
|
13429
|
+
constructor(from, to, duration, easing, params) {
|
|
13430
|
+
super(from, to, duration, easing, params);
|
|
13431
|
+
}
|
|
13432
|
+
getEndProps() {
|
|
13433
|
+
return {};
|
|
13434
|
+
}
|
|
13435
|
+
onStart() {
|
|
13436
|
+
this.target && ("rect" === this.target.type ? this.onStartRect() : "line" === this.target.type ? this.onStartLineOrArea("line") : "area" === this.target.type && this.onStartLineOrArea("area"));
|
|
13437
|
+
}
|
|
13438
|
+
onStartLineOrArea(type) {
|
|
13439
|
+
var _a;
|
|
13440
|
+
const root = this.target.attachShadow(),
|
|
13441
|
+
line = application.graphicService.creator[type](Object.assign({}, null === (_a = this.params) || void 0 === _a ? void 0 : _a.attribute));
|
|
13442
|
+
this[type] = line, line.pathProxy = new CustomPath2D(), root.add(line);
|
|
13443
|
+
}
|
|
13444
|
+
onStartRect() {
|
|
13445
|
+
var _a, _b, _c;
|
|
13446
|
+
const root = this.target.attachShadow(),
|
|
13447
|
+
isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
|
|
13448
|
+
sizeAttr = isHorizontal ? "height" : "width",
|
|
13449
|
+
otherSizeAttr = isHorizontal ? "width" : "height",
|
|
13450
|
+
size = this.target.AABBBounds[sizeAttr](),
|
|
13451
|
+
y = isHorizontal ? 0 : this.target.AABBBounds.y1,
|
|
13452
|
+
rect = application.graphicService.creator.rect(Object.assign(Object.assign({
|
|
13453
|
+
[sizeAttr]: size,
|
|
13454
|
+
fill: "#bcdeff",
|
|
13455
|
+
shadowBlur: 30,
|
|
13456
|
+
shadowColor: "#bcdeff"
|
|
13457
|
+
}, null === (_c = this.params) || void 0 === _c ? void 0 : _c.attribute), {
|
|
13458
|
+
x: 0,
|
|
13459
|
+
y: y,
|
|
13460
|
+
[otherSizeAttr]: 0
|
|
13461
|
+
}));
|
|
13462
|
+
this.rect = rect, root.add(rect);
|
|
13463
|
+
}
|
|
13464
|
+
onBind() {}
|
|
13465
|
+
onEnd() {
|
|
13466
|
+
this.target.detachShadow();
|
|
13467
|
+
}
|
|
13468
|
+
onUpdate(end, ratio, out) {
|
|
13469
|
+
return this.rect ? this.onUpdateRect(end, ratio, out) : this.line || this.area ? this.onUpdateLineOrArea(end, ratio, out) : void 0;
|
|
13470
|
+
}
|
|
13471
|
+
onUpdateRect(end, ratio, out) {
|
|
13472
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
13473
|
+
const isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
|
|
13474
|
+
parentAttr = this.target.attribute;
|
|
13475
|
+
if (isHorizontal) {
|
|
13476
|
+
const parentWidth = null !== (_d = null !== (_c = parentAttr.width) && void 0 !== _c ? _c : Math.abs(parentAttr.x1 - parentAttr.x)) && void 0 !== _d ? _d : 250,
|
|
13477
|
+
streamLength = null !== (_f = null === (_e = this.params) || void 0 === _e ? void 0 : _e.streamLength) && void 0 !== _f ? _f : parentWidth,
|
|
13478
|
+
maxLength = null !== (_j = null === (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.attribute) || void 0 === _h ? void 0 : _h.width) && void 0 !== _j ? _j : 60,
|
|
13479
|
+
startX = -maxLength,
|
|
13480
|
+
currentX = startX + (streamLength - startX) * ratio,
|
|
13481
|
+
x = Math.max(currentX, 0),
|
|
13482
|
+
w = Math.min(Math.min(currentX + maxLength, maxLength), streamLength - currentX),
|
|
13483
|
+
width = w + x > parentWidth ? Math.max(parentWidth - x, 0) : w;
|
|
13484
|
+
this.rect.setAttributes({
|
|
13485
|
+
x: x,
|
|
13486
|
+
width: width,
|
|
13487
|
+
dx: Math.min(parentAttr.x1 - parentAttr.x, 0)
|
|
13488
|
+
}, !1, {
|
|
13489
|
+
type: AttributeUpdateType.ANIMATE_PLAY,
|
|
13490
|
+
animationState: {
|
|
13491
|
+
ratio: ratio,
|
|
13492
|
+
end: end
|
|
13493
|
+
}
|
|
13494
|
+
});
|
|
13495
|
+
} else {
|
|
13496
|
+
const parentHeight = null !== (_l = null !== (_k = parentAttr.height) && void 0 !== _k ? _k : Math.abs(parentAttr.y1 - parentAttr.y)) && void 0 !== _l ? _l : 250,
|
|
13497
|
+
streamLength = null !== (_o = null === (_m = this.params) || void 0 === _m ? void 0 : _m.streamLength) && void 0 !== _o ? _o : parentHeight,
|
|
13498
|
+
maxLength = null !== (_r = null === (_q = null === (_p = this.params) || void 0 === _p ? void 0 : _p.attribute) || void 0 === _q ? void 0 : _q.height) && void 0 !== _r ? _r : 60,
|
|
13499
|
+
currentY = parentHeight - (streamLength + maxLength) * ratio;
|
|
13500
|
+
let y = Math.min(currentY, parentHeight);
|
|
13501
|
+
const h = Math.min(parentHeight - currentY, maxLength);
|
|
13502
|
+
let height;
|
|
13503
|
+
y <= 0 ? (height = Math.max(y + h, 0), y = 0) : height = h, this.rect.setAttributes({
|
|
13504
|
+
y: y,
|
|
13505
|
+
height: height,
|
|
13506
|
+
dy: Math.min(parentAttr.y1 - parentAttr.y, 0)
|
|
13507
|
+
}, !1, {
|
|
13508
|
+
type: AttributeUpdateType.ANIMATE_PLAY,
|
|
13509
|
+
animationState: {
|
|
13510
|
+
ratio: ratio,
|
|
13511
|
+
end: end
|
|
13512
|
+
}
|
|
13513
|
+
});
|
|
13514
|
+
}
|
|
13515
|
+
}
|
|
13516
|
+
onUpdateLineOrArea(end, ratio, out) {
|
|
13517
|
+
const target = this.line || this.area;
|
|
13518
|
+
if (!target) return;
|
|
13519
|
+
const customPath = target.pathProxy,
|
|
13520
|
+
targetLine = this.target;
|
|
13521
|
+
targetLine.cache || targetLine.cacheArea ? this._onUpdateLineOrAreaWithCache(customPath, targetLine, end, ratio, out) : this._onUpdateLineWithoutCache(customPath, targetLine, end, ratio, out);
|
|
13522
|
+
const targetAttrs = targetLine.attribute;
|
|
13523
|
+
target.setAttributes(Object.assign({
|
|
13524
|
+
stroke: targetAttrs.stroke
|
|
13525
|
+
}, target.attribute)), target.addUpdateBoundTag();
|
|
13526
|
+
}
|
|
13527
|
+
_onUpdateLineOrAreaWithCache(customPath, g, end, ratio, out) {
|
|
13528
|
+
var _a, _b;
|
|
13529
|
+
if (customPath.clear(), "line" === g.type) {
|
|
13530
|
+
let cache = g.cache;
|
|
13531
|
+
Array.isArray(cache) || (cache = [cache]);
|
|
13532
|
+
const totalLen = cache.reduce((l, c) => l + c.getLength(), 0),
|
|
13533
|
+
curves = [];
|
|
13534
|
+
return cache.forEach(c => {
|
|
13535
|
+
c.curves.forEach(ci => curves.push(ci));
|
|
13536
|
+
}), this._updateCurves(customPath, curves, totalLen, ratio);
|
|
13537
|
+
}
|
|
13538
|
+
if ("area" === g.type && (null === (_b = null === (_a = g.cacheArea) || void 0 === _a ? void 0 : _a.top) || void 0 === _b ? void 0 : _b.curves)) {
|
|
13539
|
+
const cache = g.cacheArea,
|
|
13540
|
+
totalLen = cache.top.curves.reduce((a, b) => a + b.getLength(), 0);
|
|
13541
|
+
return this._updateCurves(customPath, cache.top.curves, totalLen, ratio);
|
|
13542
|
+
}
|
|
13543
|
+
}
|
|
13544
|
+
_updateCurves(customPath, curves, totalLen, ratio) {
|
|
13545
|
+
var _a, _b;
|
|
13546
|
+
const startLen = totalLen * ratio,
|
|
13547
|
+
endLen = Math.min(null !== (_b = startLen + (null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength)) && void 0 !== _b ? _b : 10, totalLen);
|
|
13548
|
+
let lastLen = 0,
|
|
13549
|
+
start = !1;
|
|
13550
|
+
for (let i = 0; i < curves.length; i++) if (!1 !== curves[i].defined) {
|
|
13551
|
+
const curveItem = curves[i],
|
|
13552
|
+
len = curveItem.getLength(),
|
|
13553
|
+
startPercent = 1 - (lastLen + len - startLen) / len;
|
|
13554
|
+
let curveForStart,
|
|
13555
|
+
endPercent = 1 - (lastLen + len - endLen) / len;
|
|
13556
|
+
if (lastLen < startLen && lastLen + len > startLen) if (start = !0, curveItem.p2 && curveItem.p3) {
|
|
13557
|
+
const [_, curve2] = divideCubic(curveItem, startPercent);
|
|
13558
|
+
customPath.moveTo(curve2.p0.x, curve2.p0.y), curveForStart = curve2;
|
|
13559
|
+
} else {
|
|
13560
|
+
const p = curveItem.getPointAt(startPercent);
|
|
13561
|
+
customPath.moveTo(p.x, p.y);
|
|
13562
|
+
}
|
|
13563
|
+
if (lastLen < endLen && lastLen + len > endLen) {
|
|
13564
|
+
if (curveItem.p2 && curveItem.p3) {
|
|
13565
|
+
curveForStart && (endPercent = (endLen - startLen) / curveForStart.getLength());
|
|
13566
|
+
const [curve1] = divideCubic(curveForStart || curveItem, endPercent);
|
|
13567
|
+
customPath.bezierCurveTo(curve1.p1.x, curve1.p1.y, curve1.p2.x, curve1.p2.y, curve1.p3.x, curve1.p3.y);
|
|
13568
|
+
} else {
|
|
13569
|
+
const p = curveItem.getPointAt(endPercent);
|
|
13570
|
+
customPath.lineTo(p.x, p.y);
|
|
13571
|
+
}
|
|
13572
|
+
break;
|
|
13573
|
+
}
|
|
13574
|
+
if (start) if (curveItem.p2 && curveItem.p3) {
|
|
13575
|
+
const curve = curveForStart || curveItem;
|
|
13576
|
+
customPath.bezierCurveTo(curve.p1.x, curve.p1.y, curve.p2.x, curve.p2.y, curve.p3.x, curve.p3.y);
|
|
13577
|
+
} else customPath.lineTo(curveItem.p1.x, curveItem.p1.y);
|
|
13578
|
+
lastLen += len;
|
|
13579
|
+
}
|
|
13580
|
+
}
|
|
13581
|
+
_onUpdateLineWithoutCache(customPath, line, end, ratio, out) {
|
|
13582
|
+
var _a, _b;
|
|
13583
|
+
const {
|
|
13584
|
+
points: points,
|
|
13585
|
+
curveType: curveType
|
|
13586
|
+
} = line.attribute;
|
|
13587
|
+
if (!points || points.length < 2 || "linear" !== curveType) return;
|
|
13588
|
+
let totalLen = 0;
|
|
13589
|
+
for (let i = 1; i < points.length; i++) totalLen += PointService.distancePP(points[i], points[i - 1]);
|
|
13590
|
+
const startLen = totalLen * ratio,
|
|
13591
|
+
endLen = Math.min(null !== (_b = startLen + (null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength)) && void 0 !== _b ? _b : 10, totalLen),
|
|
13592
|
+
nextPoints = [];
|
|
13593
|
+
let lastLen = 0;
|
|
13594
|
+
for (let i = 1; i < points.length; i++) {
|
|
13595
|
+
const len = PointService.distancePP(points[i], points[i - 1]);
|
|
13596
|
+
if (lastLen < startLen && lastLen + len > startLen && nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - startLen) / len)), lastLen < endLen && lastLen + len > endLen) {
|
|
13597
|
+
nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - endLen) / len));
|
|
13598
|
+
break;
|
|
13599
|
+
}
|
|
13600
|
+
nextPoints.length && nextPoints.push(points[i]), lastLen += len;
|
|
13601
|
+
}
|
|
13602
|
+
if (nextPoints.length && !(nextPoints.length < 2)) {
|
|
13603
|
+
customPath.clear(), customPath.moveTo(nextPoints[0].x, nextPoints[0].y);
|
|
13604
|
+
for (let i = 1; i < nextPoints.length; i++) customPath.lineTo(nextPoints[i].x, nextPoints[i].y);
|
|
13605
|
+
}
|
|
13606
|
+
}
|
|
13607
|
+
}
|
|
13374
13608
|
class TagPointsUpdate extends ACustomAnimate {
|
|
13375
13609
|
constructor(from, to, duration, easing, params) {
|
|
13376
13610
|
var _a, _b;
|
|
@@ -48440,11 +48674,20 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
48440
48674
|
const mosaicStackData = {
|
|
48441
48675
|
key: `${stackCache.groupField}`,
|
|
48442
48676
|
values: groupValues.map(group => {
|
|
48677
|
+
var _a, _b;
|
|
48443
48678
|
const groupValues = stackCache.nodes[group];
|
|
48679
|
+
let value;
|
|
48680
|
+
if (s.bandWidthField) {
|
|
48681
|
+
value =
|
|
48682
|
+
(_b = (_a = groupValues.values.find(v => isValid$1(v[s.bandWidthField]))) === null || _a === void 0 ? void 0 : _a[s.bandWidthField]) !== null && _b !== void 0 ? _b : groupValues.total;
|
|
48683
|
+
}
|
|
48684
|
+
else {
|
|
48685
|
+
value = groupValues.total;
|
|
48686
|
+
}
|
|
48444
48687
|
return {
|
|
48445
48688
|
groupValue: group,
|
|
48446
|
-
value
|
|
48447
|
-
end:
|
|
48689
|
+
value,
|
|
48690
|
+
end: value
|
|
48448
48691
|
};
|
|
48449
48692
|
})
|
|
48450
48693
|
};
|
|
@@ -49324,6 +49567,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
49324
49567
|
if (prev === next) return !0;
|
|
49325
49568
|
if (typeof prev != typeof next) return !1;
|
|
49326
49569
|
if (isString$1(prev)) return !1;
|
|
49570
|
+
if (isArray$1(prev)) return prev.length === next.length && prev.every((prevEntry, index) => isColorAttrEqual(prevEntry, next[index]));
|
|
49327
49571
|
if (prev.gradient !== next.gradient) return !1;
|
|
49328
49572
|
const prevKeys = Object.keys(prev),
|
|
49329
49573
|
nextKeys = Object.keys(next);
|
|
@@ -49921,7 +50165,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
49921
50165
|
if (element) {
|
|
49922
50166
|
const hasActiveElement = this._marks && this._marks.includes(element.mark);
|
|
49923
50167
|
"view" !== this._resetType || hasActiveElement ? "self" === this._resetType && hasActiveElement && this.resetAll() : this.resetAll();
|
|
49924
|
-
}
|
|
50168
|
+
} else "view" === this._resetType && this.resetAll();
|
|
49925
50169
|
}, this.options = Object.assign({}, ElementHighlight.defaultOptions, options), this._marks = view.getMarksBySelector(this.options.selector), this._stateMarks = groupMarksByState(this._marks, [this.options.highlightState, this.options.blurState]);
|
|
49926
50170
|
}
|
|
49927
50171
|
getStartState() {
|
|
@@ -55903,26 +56147,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55903
56147
|
points: getCenterPoints(element, options)
|
|
55904
56148
|
}
|
|
55905
56149
|
});
|
|
55906
|
-
const changePointsX = (element, options, animationParameters) =>
|
|
56150
|
+
const changePointsX = (element, options, animationParameters) => {
|
|
55907
56151
|
var _a;
|
|
55908
|
-
|
|
55909
|
-
|
|
55910
|
-
|
|
55911
|
-
|
|
56152
|
+
return (null !== (_a = element.getGraphicAttribute("points", !1)) && void 0 !== _a ? _a : []).map(point => {
|
|
56153
|
+
var _a;
|
|
56154
|
+
if (options && "negative" === options.orient) {
|
|
56155
|
+
let groupRight = animationParameters.width;
|
|
56156
|
+
return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = groupRight), Object.assign(Object.assign({}, point), {
|
|
56157
|
+
x: groupRight,
|
|
56158
|
+
y: point.y,
|
|
56159
|
+
x1: groupRight,
|
|
56160
|
+
y1: point.y1,
|
|
56161
|
+
defined: !1 !== point.defined
|
|
56162
|
+
});
|
|
56163
|
+
}
|
|
56164
|
+
return Object.assign(Object.assign({}, point), {
|
|
56165
|
+
x: 0,
|
|
55912
56166
|
y: point.y,
|
|
55913
|
-
x1:
|
|
56167
|
+
x1: 0,
|
|
55914
56168
|
y1: point.y1,
|
|
55915
56169
|
defined: !1 !== point.defined
|
|
55916
56170
|
});
|
|
55917
|
-
}
|
|
55918
|
-
return Object.assign(Object.assign({}, point), {
|
|
55919
|
-
x: 0,
|
|
55920
|
-
y: point.y,
|
|
55921
|
-
x1: 0,
|
|
55922
|
-
y1: point.y1,
|
|
55923
|
-
defined: !1 !== point.defined
|
|
55924
56171
|
});
|
|
55925
|
-
}
|
|
56172
|
+
};
|
|
55926
56173
|
const growPointsXIn = (element, options, animationParameters) => ({
|
|
55927
56174
|
from: {
|
|
55928
56175
|
points: changePointsX(element, options, animationParameters)
|
|
@@ -55939,26 +56186,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55939
56186
|
points: changePointsX(element, options, animationParameters)
|
|
55940
56187
|
}
|
|
55941
56188
|
});
|
|
55942
|
-
const changePointsY = (element, options, animationParameters) =>
|
|
56189
|
+
const changePointsY = (element, options, animationParameters) => {
|
|
55943
56190
|
var _a;
|
|
55944
|
-
|
|
55945
|
-
|
|
55946
|
-
|
|
56191
|
+
return (null !== (_a = element.getGraphicAttribute("points", !1)) && void 0 !== _a ? _a : []).map(point => {
|
|
56192
|
+
var _a;
|
|
56193
|
+
if (options && "negative" === options.orient) {
|
|
56194
|
+
let groupBottom = animationParameters.height;
|
|
56195
|
+
return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(), animationParameters.groupHeight = groupBottom), Object.assign(Object.assign({}, point), {
|
|
56196
|
+
x: point.x,
|
|
56197
|
+
y: groupBottom,
|
|
56198
|
+
x1: point.x1,
|
|
56199
|
+
y1: groupBottom,
|
|
56200
|
+
defined: !1 !== point.defined
|
|
56201
|
+
});
|
|
56202
|
+
}
|
|
56203
|
+
return Object.assign(Object.assign({}, point), {
|
|
55947
56204
|
x: point.x,
|
|
55948
|
-
y:
|
|
56205
|
+
y: 0,
|
|
55949
56206
|
x1: point.x1,
|
|
55950
|
-
y1:
|
|
56207
|
+
y1: 0,
|
|
55951
56208
|
defined: !1 !== point.defined
|
|
55952
56209
|
});
|
|
55953
|
-
}
|
|
55954
|
-
return Object.assign(Object.assign({}, point), {
|
|
55955
|
-
x: point.x,
|
|
55956
|
-
y: 0,
|
|
55957
|
-
x1: point.x1,
|
|
55958
|
-
y1: 0,
|
|
55959
|
-
defined: !1 !== point.defined
|
|
55960
56210
|
});
|
|
55961
|
-
}
|
|
56211
|
+
};
|
|
55962
56212
|
const growPointsYIn = (element, options, animationParameters) => ({
|
|
55963
56213
|
from: {
|
|
55964
56214
|
points: changePointsY(element, options, animationParameters)
|
|
@@ -63873,7 +64123,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63873
64123
|
};
|
|
63874
64124
|
registerVChartCore();
|
|
63875
64125
|
|
|
63876
|
-
const version = "1.13.10
|
|
64126
|
+
const version = "1.13.10";
|
|
63877
64127
|
|
|
63878
64128
|
const addVChartProperty = (data, op) => {
|
|
63879
64129
|
const context = op.beforeCall();
|
|
@@ -90009,11 +90259,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90009
90259
|
this.type = exports.SeriesTypeEnum.mosaic;
|
|
90010
90260
|
this.transformerConstructor = BarSeriesSpecTransformer;
|
|
90011
90261
|
}
|
|
90262
|
+
get bandWidthField() {
|
|
90263
|
+
return this._bandWidthField;
|
|
90264
|
+
}
|
|
90012
90265
|
getStack() {
|
|
90013
90266
|
return true;
|
|
90014
90267
|
}
|
|
90015
90268
|
getPercent() {
|
|
90016
|
-
return
|
|
90269
|
+
return this._spec.percent;
|
|
90017
90270
|
}
|
|
90018
90271
|
getGroupFields() {
|
|
90019
90272
|
return this.direction === 'vertical' ? this._specXField : this._specYField;
|
|
@@ -90037,6 +90290,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90037
90290
|
this.setFieldX(MOSAIC_CAT_END_PERCENT);
|
|
90038
90291
|
this.setFieldX2(MOSAIC_CAT_START_PERCENT);
|
|
90039
90292
|
}
|
|
90293
|
+
if (this._spec.bandWidthField) {
|
|
90294
|
+
this._bandWidthField = this._spec.bandWidthField;
|
|
90295
|
+
}
|
|
90040
90296
|
}
|
|
90041
90297
|
parseLabelStyle(labelStyle, labelSpec) {
|
|
90042
90298
|
if ((labelSpec === null || labelSpec === void 0 ? void 0 : labelSpec.filterByGroup) && isNil$1(labelStyle.dataFilter)) {
|
|
@@ -94262,18 +94518,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94262
94518
|
if (!this._needInitEventOfTooltip) {
|
|
94263
94519
|
return;
|
|
94264
94520
|
}
|
|
94265
|
-
const container = (_b = (_a = this.tooltipHandler).
|
|
94266
|
-
|
|
94267
|
-
|
|
94268
|
-
element.addEventListener('pointerenter', () => {
|
|
94521
|
+
const container = (_b = (_a = this.tooltipHandler).getRootDom) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
94522
|
+
if (container) {
|
|
94523
|
+
container.addEventListener('pointerenter', () => {
|
|
94269
94524
|
var _a;
|
|
94270
94525
|
if (!this._enterable) {
|
|
94271
94526
|
return;
|
|
94272
94527
|
}
|
|
94273
94528
|
this._isEnterTooltip = true;
|
|
94274
|
-
const rect = (_a =
|
|
94529
|
+
const rect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
|
|
94275
94530
|
if (rect) {
|
|
94276
|
-
this._cacheEnterableRect = {
|
|
94531
|
+
this._cacheEnterableRect = { width: rect.width, height: rect.height };
|
|
94277
94532
|
}
|
|
94278
94533
|
if (this._outTimer) {
|
|
94279
94534
|
clearTimeout(this._outTimer);
|
|
@@ -94284,14 +94539,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94284
94539
|
this._showTimer = null;
|
|
94285
94540
|
}
|
|
94286
94541
|
});
|
|
94287
|
-
|
|
94542
|
+
container.addEventListener('pointerleave', () => {
|
|
94288
94543
|
var _a, _b, _c;
|
|
94289
94544
|
if (!this._enterable) {
|
|
94290
94545
|
return;
|
|
94291
94546
|
}
|
|
94292
94547
|
this._isEnterTooltip = false;
|
|
94293
94548
|
if (this._cacheEnterableRect) {
|
|
94294
|
-
const newRect = (_a =
|
|
94549
|
+
const newRect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
|
|
94295
94550
|
if (newRect &&
|
|
94296
94551
|
Object.keys(this._cacheEnterableRect).every(k => this._cacheEnterableRect[k] === newRect[k])) {
|
|
94297
94552
|
this._cacheEnterableRect = null;
|
|
@@ -102705,6 +102960,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
102705
102960
|
this._rootDom.style.visibility = _value ? 'visible' : 'hidden';
|
|
102706
102961
|
}
|
|
102707
102962
|
}
|
|
102963
|
+
getRootDom() {
|
|
102964
|
+
return this._rootDom;
|
|
102965
|
+
}
|
|
102708
102966
|
constructor() {
|
|
102709
102967
|
super(DomTooltipHandler.type);
|
|
102710
102968
|
this.type = TooltipHandlerType.dom;
|
|
@@ -103637,7 +103895,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103637
103895
|
'barBackground',
|
|
103638
103896
|
'barMinHeight',
|
|
103639
103897
|
'stackCornerRadius',
|
|
103640
|
-
'bar'
|
|
103898
|
+
'bar',
|
|
103899
|
+
'bandWidthField'
|
|
103641
103900
|
]);
|
|
103642
103901
|
}
|
|
103643
103902
|
transformSpec(spec) {
|
|
@@ -104200,6 +104459,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104200
104459
|
exports.MOSAIC_CAT_START_PERCENT = MOSAIC_CAT_START_PERCENT;
|
|
104201
104460
|
exports.MOSAIC_VALUE_END_PERCENT = MOSAIC_VALUE_END_PERCENT;
|
|
104202
104461
|
exports.MOSAIC_VALUE_START_PERCENT = MOSAIC_VALUE_START_PERCENT;
|
|
104462
|
+
exports.ManualTicker = ManualTicker;
|
|
104203
104463
|
exports.MapChart = MapChart;
|
|
104204
104464
|
exports.MapLabelComponent = MapLabelComponent;
|
|
104205
104465
|
exports.MapSeries = MapSeries;
|
|
@@ -104260,6 +104520,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104260
104520
|
exports.ScatterSeries = ScatterSeries;
|
|
104261
104521
|
exports.ScrollBar = ScrollBar;
|
|
104262
104522
|
exports.SequenceChart = SequenceChart;
|
|
104523
|
+
exports.StreamLight = StreamLight;
|
|
104263
104524
|
exports.SunburstChart = SunburstChart;
|
|
104264
104525
|
exports.SunburstSeries = SunburstSeries;
|
|
104265
104526
|
exports.SymbolMark = SymbolMark;
|