@visactor/vchart 1.13.10-alpha.1 → 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 +289 -46
- package/build/index.js +290 -45
- 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/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 +13 -4
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +2 -1
- package/cjs/env/env.js +1 -1
- package/cjs/env/index.js +1 -1
- package/cjs/event/event-dispatcher.js +1 -1
- package/cjs/event/event.js +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 -1
- package/cjs/series/mosaic/interface.js.map +1 -1
- package/cjs/series/mosaic/mosaic.d.ts +2 -2
- package/cjs/series/mosaic/mosaic.js +3 -3
- 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 +2 -2
- 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/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 -3
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +2 -1
- package/esm/env/env.js +1 -1
- package/esm/env/index.js +1 -1
- package/esm/event/event-dispatcher.js +1 -1
- package/esm/event/event.js +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 -1
- package/esm/series/mosaic/interface.js.map +1 -1
- package/esm/series/mosaic/mosaic.d.ts +2 -2
- package/esm/series/mosaic/mosaic.js +3 -3
- 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 +1 -1
- 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;
|
|
@@ -48443,9 +48677,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
48443
48677
|
var _a, _b;
|
|
48444
48678
|
const groupValues = stackCache.nodes[group];
|
|
48445
48679
|
let value;
|
|
48446
|
-
if (s.
|
|
48680
|
+
if (s.bandWidthField) {
|
|
48447
48681
|
value =
|
|
48448
|
-
(_b = (_a = groupValues.values.find(v => isValid$1(v[s.
|
|
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;
|
|
48449
48683
|
}
|
|
48450
48684
|
else {
|
|
48451
48685
|
value = groupValues.total;
|
|
@@ -49333,6 +49567,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
49333
49567
|
if (prev === next) return !0;
|
|
49334
49568
|
if (typeof prev != typeof next) return !1;
|
|
49335
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]));
|
|
49336
49571
|
if (prev.gradient !== next.gradient) return !1;
|
|
49337
49572
|
const prevKeys = Object.keys(prev),
|
|
49338
49573
|
nextKeys = Object.keys(next);
|
|
@@ -49930,7 +50165,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
49930
50165
|
if (element) {
|
|
49931
50166
|
const hasActiveElement = this._marks && this._marks.includes(element.mark);
|
|
49932
50167
|
"view" !== this._resetType || hasActiveElement ? "self" === this._resetType && hasActiveElement && this.resetAll() : this.resetAll();
|
|
49933
|
-
}
|
|
50168
|
+
} else "view" === this._resetType && this.resetAll();
|
|
49934
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]);
|
|
49935
50170
|
}
|
|
49936
50171
|
getStartState() {
|
|
@@ -55912,26 +56147,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55912
56147
|
points: getCenterPoints(element, options)
|
|
55913
56148
|
}
|
|
55914
56149
|
});
|
|
55915
|
-
const changePointsX = (element, options, animationParameters) =>
|
|
56150
|
+
const changePointsX = (element, options, animationParameters) => {
|
|
55916
56151
|
var _a;
|
|
55917
|
-
|
|
55918
|
-
|
|
55919
|
-
|
|
55920
|
-
|
|
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,
|
|
55921
56166
|
y: point.y,
|
|
55922
|
-
x1:
|
|
56167
|
+
x1: 0,
|
|
55923
56168
|
y1: point.y1,
|
|
55924
56169
|
defined: !1 !== point.defined
|
|
55925
56170
|
});
|
|
55926
|
-
}
|
|
55927
|
-
return Object.assign(Object.assign({}, point), {
|
|
55928
|
-
x: 0,
|
|
55929
|
-
y: point.y,
|
|
55930
|
-
x1: 0,
|
|
55931
|
-
y1: point.y1,
|
|
55932
|
-
defined: !1 !== point.defined
|
|
55933
56171
|
});
|
|
55934
|
-
}
|
|
56172
|
+
};
|
|
55935
56173
|
const growPointsXIn = (element, options, animationParameters) => ({
|
|
55936
56174
|
from: {
|
|
55937
56175
|
points: changePointsX(element, options, animationParameters)
|
|
@@ -55948,26 +56186,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55948
56186
|
points: changePointsX(element, options, animationParameters)
|
|
55949
56187
|
}
|
|
55950
56188
|
});
|
|
55951
|
-
const changePointsY = (element, options, animationParameters) =>
|
|
56189
|
+
const changePointsY = (element, options, animationParameters) => {
|
|
55952
56190
|
var _a;
|
|
55953
|
-
|
|
55954
|
-
|
|
55955
|
-
|
|
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), {
|
|
55956
56204
|
x: point.x,
|
|
55957
|
-
y:
|
|
56205
|
+
y: 0,
|
|
55958
56206
|
x1: point.x1,
|
|
55959
|
-
y1:
|
|
56207
|
+
y1: 0,
|
|
55960
56208
|
defined: !1 !== point.defined
|
|
55961
56209
|
});
|
|
55962
|
-
}
|
|
55963
|
-
return Object.assign(Object.assign({}, point), {
|
|
55964
|
-
x: point.x,
|
|
55965
|
-
y: 0,
|
|
55966
|
-
x1: point.x1,
|
|
55967
|
-
y1: 0,
|
|
55968
|
-
defined: !1 !== point.defined
|
|
55969
56210
|
});
|
|
55970
|
-
}
|
|
56211
|
+
};
|
|
55971
56212
|
const growPointsYIn = (element, options, animationParameters) => ({
|
|
55972
56213
|
from: {
|
|
55973
56214
|
points: changePointsY(element, options, animationParameters)
|
|
@@ -63882,7 +64123,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63882
64123
|
};
|
|
63883
64124
|
registerVChartCore();
|
|
63884
64125
|
|
|
63885
|
-
const version = "1.13.10
|
|
64126
|
+
const version = "1.13.10";
|
|
63886
64127
|
|
|
63887
64128
|
const addVChartProperty = (data, op) => {
|
|
63888
64129
|
const context = op.beforeCall();
|
|
@@ -90018,8 +90259,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90018
90259
|
this.type = exports.SeriesTypeEnum.mosaic;
|
|
90019
90260
|
this.transformerConstructor = BarSeriesSpecTransformer;
|
|
90020
90261
|
}
|
|
90021
|
-
get
|
|
90022
|
-
return this.
|
|
90262
|
+
get bandWidthField() {
|
|
90263
|
+
return this._bandWidthField;
|
|
90023
90264
|
}
|
|
90024
90265
|
getStack() {
|
|
90025
90266
|
return true;
|
|
@@ -90049,8 +90290,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90049
90290
|
this.setFieldX(MOSAIC_CAT_END_PERCENT);
|
|
90050
90291
|
this.setFieldX2(MOSAIC_CAT_START_PERCENT);
|
|
90051
90292
|
}
|
|
90052
|
-
if (this._spec.
|
|
90053
|
-
this.
|
|
90293
|
+
if (this._spec.bandWidthField) {
|
|
90294
|
+
this._bandWidthField = this._spec.bandWidthField;
|
|
90054
90295
|
}
|
|
90055
90296
|
}
|
|
90056
90297
|
parseLabelStyle(labelStyle, labelSpec) {
|
|
@@ -94277,18 +94518,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94277
94518
|
if (!this._needInitEventOfTooltip) {
|
|
94278
94519
|
return;
|
|
94279
94520
|
}
|
|
94280
|
-
const container = (_b = (_a = this.tooltipHandler).
|
|
94281
|
-
|
|
94282
|
-
|
|
94283
|
-
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', () => {
|
|
94284
94524
|
var _a;
|
|
94285
94525
|
if (!this._enterable) {
|
|
94286
94526
|
return;
|
|
94287
94527
|
}
|
|
94288
94528
|
this._isEnterTooltip = true;
|
|
94289
|
-
const rect = (_a =
|
|
94529
|
+
const rect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
|
|
94290
94530
|
if (rect) {
|
|
94291
|
-
this._cacheEnterableRect = {
|
|
94531
|
+
this._cacheEnterableRect = { width: rect.width, height: rect.height };
|
|
94292
94532
|
}
|
|
94293
94533
|
if (this._outTimer) {
|
|
94294
94534
|
clearTimeout(this._outTimer);
|
|
@@ -94299,14 +94539,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94299
94539
|
this._showTimer = null;
|
|
94300
94540
|
}
|
|
94301
94541
|
});
|
|
94302
|
-
|
|
94542
|
+
container.addEventListener('pointerleave', () => {
|
|
94303
94543
|
var _a, _b, _c;
|
|
94304
94544
|
if (!this._enterable) {
|
|
94305
94545
|
return;
|
|
94306
94546
|
}
|
|
94307
94547
|
this._isEnterTooltip = false;
|
|
94308
94548
|
if (this._cacheEnterableRect) {
|
|
94309
|
-
const newRect = (_a =
|
|
94549
|
+
const newRect = (_a = container.getBoundingClientRect) === null || _a === void 0 ? void 0 : _a.call(container);
|
|
94310
94550
|
if (newRect &&
|
|
94311
94551
|
Object.keys(this._cacheEnterableRect).every(k => this._cacheEnterableRect[k] === newRect[k])) {
|
|
94312
94552
|
this._cacheEnterableRect = null;
|
|
@@ -102720,6 +102960,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
102720
102960
|
this._rootDom.style.visibility = _value ? 'visible' : 'hidden';
|
|
102721
102961
|
}
|
|
102722
102962
|
}
|
|
102963
|
+
getRootDom() {
|
|
102964
|
+
return this._rootDom;
|
|
102965
|
+
}
|
|
102723
102966
|
constructor() {
|
|
102724
102967
|
super(DomTooltipHandler.type);
|
|
102725
102968
|
this.type = TooltipHandlerType.dom;
|
|
@@ -103653,7 +103896,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103653
103896
|
'barMinHeight',
|
|
103654
103897
|
'stackCornerRadius',
|
|
103655
103898
|
'bar',
|
|
103656
|
-
'
|
|
103899
|
+
'bandWidthField'
|
|
103657
103900
|
]);
|
|
103658
103901
|
}
|
|
103659
103902
|
transformSpec(spec) {
|
|
@@ -104216,6 +104459,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104216
104459
|
exports.MOSAIC_CAT_START_PERCENT = MOSAIC_CAT_START_PERCENT;
|
|
104217
104460
|
exports.MOSAIC_VALUE_END_PERCENT = MOSAIC_VALUE_END_PERCENT;
|
|
104218
104461
|
exports.MOSAIC_VALUE_START_PERCENT = MOSAIC_VALUE_START_PERCENT;
|
|
104462
|
+
exports.ManualTicker = ManualTicker;
|
|
104219
104463
|
exports.MapChart = MapChart;
|
|
104220
104464
|
exports.MapLabelComponent = MapLabelComponent;
|
|
104221
104465
|
exports.MapSeries = MapSeries;
|
|
@@ -104276,6 +104520,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
104276
104520
|
exports.ScatterSeries = ScatterSeries;
|
|
104277
104521
|
exports.ScrollBar = ScrollBar;
|
|
104278
104522
|
exports.SequenceChart = SequenceChart;
|
|
104523
|
+
exports.StreamLight = StreamLight;
|
|
104279
104524
|
exports.SunburstChart = SunburstChart;
|
|
104280
104525
|
exports.SunburstSeries = SunburstSeries;
|
|
104281
104526
|
exports.SymbolMark = SymbolMark;
|