@visactor/vchart 1.13.8-alpha.6 → 1.13.8-alpha.8
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 +2 -2
- package/build/index.es.js +69 -113
- package/build/index.js +69 -113
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/utils.d.ts +2 -2
- package/cjs/chart/base/base-chart.d.ts +3 -3
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +2 -2
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/stack.js +2 -2
- package/cjs/chart/stack.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.d.ts +2 -2
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/component/label/interface.d.ts +0 -1
- package/cjs/component/label/interface.js.map +1 -1
- package/cjs/component/legend/continuous/util.js +2 -3
- package/cjs/component/legend/continuous/util.js.map +1 -1
- package/cjs/component/legend/discrete/util.js +2 -3
- package/cjs/component/legend/discrete/util.js.map +1 -1
- package/cjs/constant/event.d.ts +0 -1
- package/cjs/constant/event.js +2 -3
- package/cjs/constant/event.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +2 -3
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +2 -1
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/transforms/dimension-statistics.js +1 -1
- package/cjs/data/transforms/dimension-statistics.js.map +1 -1
- package/cjs/event/event-dispatcher.d.ts +1 -4
- package/cjs/event/event-dispatcher.js +3 -2
- package/cjs/event/event-dispatcher.js.map +1 -1
- package/cjs/event/event.d.ts +1 -4
- package/cjs/event/event.js.map +1 -1
- package/cjs/event/interface.d.ts +2 -8
- package/cjs/event/interface.js.map +1 -1
- package/cjs/interaction/zoom/zoomable.js +1 -6
- package/cjs/interaction/zoom/zoomable.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +1 -1
- package/cjs/typings/spec/common.js.map +1 -1
- package/esm/animation/utils.d.ts +2 -2
- package/esm/chart/base/base-chart.d.ts +3 -3
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +2 -2
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/stack.js +2 -2
- package/esm/chart/stack.js.map +1 -1
- package/esm/compile/mark/compilable-mark.d.ts +2 -2
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/component/label/interface.d.ts +0 -1
- package/esm/component/label/interface.js.map +1 -1
- package/esm/component/legend/continuous/util.js +2 -3
- package/esm/component/legend/continuous/util.js.map +1 -1
- package/esm/component/legend/discrete/util.js +3 -5
- package/esm/component/legend/discrete/util.js.map +1 -1
- package/esm/constant/event.d.ts +0 -1
- package/esm/constant/event.js +0 -2
- package/esm/constant/event.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +2 -3
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +2 -1
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/transforms/dimension-statistics.js +1 -1
- package/esm/data/transforms/dimension-statistics.js.map +1 -1
- package/esm/event/event-dispatcher.d.ts +1 -4
- package/esm/event/event-dispatcher.js +3 -2
- package/esm/event/event-dispatcher.js.map +1 -1
- package/esm/event/event.d.ts +1 -4
- package/esm/event/event.js.map +1 -1
- package/esm/event/interface.d.ts +2 -8
- package/esm/event/interface.js.map +1 -1
- package/esm/interaction/zoom/zoomable.js +1 -6
- package/esm/interaction/zoom/zoomable.js.map +1 -1
- package/esm/typings/spec/common.d.ts +1 -1
- package/esm/typings/spec/common.js.map +1 -1
- package/package.json +16 -16
package/build/index.js
CHANGED
|
@@ -44404,7 +44404,7 @@
|
|
|
44404
44404
|
const DEFAULT_BRUSH_ATTRIBUTES = {
|
|
44405
44405
|
trigger: "pointerdown",
|
|
44406
44406
|
updateTrigger: "pointermove",
|
|
44407
|
-
endTrigger: "pointerup",
|
|
44407
|
+
endTrigger: ["pointerup", "pointerleave"],
|
|
44408
44408
|
resetTrigger: "pointerupoutside",
|
|
44409
44409
|
hasMask: !0,
|
|
44410
44410
|
brushMode: "single",
|
|
@@ -44442,41 +44442,22 @@
|
|
|
44442
44442
|
super((null == options ? void 0 : options.skipDefault) ? attributes : merge$1({}, Brush.defaultAttributes, attributes)), this.name = "brush", this._activeDrawState = !1, this._cacheDrawPoints = [], this._isDrawedBeforeEnd = !1, this._isDownBeforeUpOutside = !1, this._activeMoveState = !1, this._operatingMaskMoveDx = 0, this._operatingMaskMoveDy = 0, this._operatingMaskMoveRangeX = [-1 / 0, 1 / 0], this._operatingMaskMoveRangeY = [-1 / 0, 1 / 0], this._brushMaskAABBBoundsDict = {}, this._onBrushStart = e => {
|
|
44443
44443
|
var _a;
|
|
44444
44444
|
if (this._outOfInteractiveRange(e)) return void (this._isDownBeforeUpOutside = !0);
|
|
44445
|
-
e.stopPropagation();
|
|
44445
|
+
this._isDownBeforeUpOutside = !1, e.stopPropagation();
|
|
44446
44446
|
const brushMoved = null === (_a = this.attribute.brushMoved) || void 0 === _a || _a;
|
|
44447
44447
|
this._activeMoveState = brushMoved && this._isPosInBrushMask(e), this._activeDrawState = !this._activeMoveState, this._activeDrawState && this._initDraw(e), this._activeMoveState && this._initMove(e);
|
|
44448
44448
|
}, this._onBrushing = e => {
|
|
44449
44449
|
this._outOfInteractiveRange(e) || ((this._activeDrawState || this._activeMoveState) && e.stopPropagation(), this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e));
|
|
44450
44450
|
}, this._onBrushingWithDelay = 0 === this.attribute.delayTime ? this._onBrushing : delayMap$1[this.attribute.delayType](this._onBrushing, this.attribute.delayTime), this._onBrushEnd = e => {
|
|
44451
44451
|
var _a;
|
|
44452
|
+
if (this._isDownBeforeUpOutside) return this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), void (this._isDownBeforeUpOutside = !1);
|
|
44452
44453
|
if (!this._activeDrawState && !this._activeMoveState) return;
|
|
44453
44454
|
e.preventDefault();
|
|
44454
44455
|
const {
|
|
44455
44456
|
removeOnClick = !0
|
|
44456
44457
|
} = this.attribute;
|
|
44457
|
-
this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick ? (
|
|
44458
|
-
operateMask: this._operatingMask,
|
|
44459
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44460
|
-
event: e
|
|
44461
|
-
}), this._container.incrementalClearChild(), this._brushMaskAABBBoundsDict = {}) : (this._activeDrawState && this._dispatchEvent(IOperateType.drawEnd, {
|
|
44462
|
-
operateMask: this._operatingMask,
|
|
44463
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44464
|
-
event: e
|
|
44465
|
-
}), this._activeMoveState && this._dispatchEvent(IOperateType.moveEnd, {
|
|
44466
|
-
operateMask: this._operatingMask,
|
|
44467
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44468
|
-
event: e
|
|
44469
|
-
})), this._activeDrawState = !1, this._activeMoveState = !1, this._isDrawedBeforeEnd = !1, this._operatingMask && this._operatingMask.setAttribute("pickable", !1);
|
|
44458
|
+
this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick ? (null === (_a = this._operatingMask) || void 0 === _a ? void 0 : _a._AABBBounds.empty()) ? this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)) : (delete this._brushMaskAABBBoundsDict[this._operatingMask.name], this._container.setAttributes({}), this._container.removeChild(this._operatingMask), this._isEmptyMask() ? this._dispatchBrushEvent(IOperateType.drawEnd, e) : this._dispatchBrushEvent(IOperateType.brushClear, e)) : (this._activeDrawState && this._dispatchBrushEvent(IOperateType.drawEnd, e), this._activeMoveState && this._dispatchBrushEvent(IOperateType.moveEnd, e)), this._activeDrawState = !1, this._activeMoveState = !1, this._isDrawedBeforeEnd = !1, this._operatingMask && this._operatingMask.setAttribute("pickable", !1);
|
|
44470
44459
|
}, this._onBrushClear = e => {
|
|
44471
|
-
e.preventDefault();
|
|
44472
|
-
const {
|
|
44473
|
-
removeOnClick = !0
|
|
44474
|
-
} = this.attribute;
|
|
44475
|
-
this._isDownBeforeUpOutside && removeOnClick && (this._dispatchEvent(IOperateType.brushClear, {
|
|
44476
|
-
operateMask: this._operatingMask,
|
|
44477
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44478
|
-
event: e
|
|
44479
|
-
}), this._container.incrementalClearChild(), this._brushMaskAABBBoundsDict = {}), this._activeDrawState = !1, this._activeMoveState = !1, this._isDrawedBeforeEnd = !1, this._isDownBeforeUpOutside = !1, this._operatingMask && this._operatingMask.setAttribute("pickable", !1);
|
|
44460
|
+
e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1, this._isDrawedBeforeEnd = !1, this._isDownBeforeUpOutside = !1;
|
|
44480
44461
|
};
|
|
44481
44462
|
}
|
|
44482
44463
|
_bindBrushEvents() {
|
|
@@ -44487,35 +44468,14 @@
|
|
|
44487
44468
|
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
44488
44469
|
resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
|
|
44489
44470
|
} = this.attribute;
|
|
44490
|
-
array(trigger).forEach(t =>
|
|
44491
|
-
}
|
|
44492
|
-
_isPosInBrushMask(e) {
|
|
44493
|
-
const pos = this.eventPosToStagePos(e),
|
|
44494
|
-
brushMasks = this._container.getChildren();
|
|
44495
|
-
for (let i = 0; i < brushMasks.length; i++) {
|
|
44496
|
-
const {
|
|
44497
|
-
points = [],
|
|
44498
|
-
dx = 0,
|
|
44499
|
-
dy = 0
|
|
44500
|
-
} = brushMasks[i].attribute,
|
|
44501
|
-
pointsConsiderOffset = points.map(point => ({
|
|
44502
|
-
x: point.x + dx,
|
|
44503
|
-
y: point.y + dy
|
|
44504
|
-
}));
|
|
44505
|
-
if (polygonContainPoint(pointsConsiderOffset, pos.x, pos.y)) return this._operatingMask = brushMasks[i], !0;
|
|
44506
|
-
}
|
|
44507
|
-
return !1;
|
|
44471
|
+
array(trigger).forEach(t => this.stage.addEventListener(t, this._onBrushStart)), array(updateTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushingWithDelay)), array(endTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushEnd)), array(resetTrigger).forEach(t => this.stage.addEventListener(t, this._onBrushClear));
|
|
44508
44472
|
}
|
|
44509
44473
|
_initDraw(e) {
|
|
44510
44474
|
const {
|
|
44511
44475
|
brushMode: brushMode
|
|
44512
44476
|
} = this.attribute,
|
|
44513
44477
|
pos = this.eventPosToStagePos(e);
|
|
44514
|
-
this._cacheDrawPoints = [pos], this._isDrawedBeforeEnd = !1, "single" === brushMode &&
|
|
44515
|
-
operateMask: this._operatingMask,
|
|
44516
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44517
|
-
event: e
|
|
44518
|
-
});
|
|
44478
|
+
this._cacheDrawPoints = [pos], this._isDrawedBeforeEnd = !1, "single" === brushMode && this._clearMask(), this._addBrushMask(), this._dispatchBrushEvent(IOperateType.drawStart, e);
|
|
44519
44479
|
}
|
|
44520
44480
|
_initMove(e) {
|
|
44521
44481
|
var _a, _b;
|
|
@@ -44539,11 +44499,7 @@
|
|
|
44539
44499
|
maxMoveStepX = maxX - x2,
|
|
44540
44500
|
minMoveStepY = minY - y1,
|
|
44541
44501
|
maxMoveStepY = maxY - y2;
|
|
44542
|
-
this._operatingMaskMoveRangeX = [minMoveStepX, maxMoveStepX], this._operatingMaskMoveRangeY = [minMoveStepY, maxMoveStepY], this._operatingMask.setAttribute("pickable", !0), this.
|
|
44543
|
-
operateMask: this._operatingMask,
|
|
44544
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44545
|
-
event: e
|
|
44546
|
-
});
|
|
44502
|
+
this._operatingMaskMoveRangeX = [minMoveStepX, maxMoveStepX], this._operatingMaskMoveRangeY = [minMoveStepY, maxMoveStepY], this._operatingMask.setAttribute("pickable", !0), this._dispatchBrushEvent(IOperateType.moveStart, e);
|
|
44547
44503
|
}
|
|
44548
44504
|
_drawing(e) {
|
|
44549
44505
|
var _a, _b;
|
|
@@ -44566,11 +44522,7 @@
|
|
|
44566
44522
|
y1 = 0,
|
|
44567
44523
|
y2 = 0
|
|
44568
44524
|
} = null === (_b = this._operatingMask) || void 0 === _b ? void 0 : _b._AABBBounds;
|
|
44569
|
-
this._isDrawedBeforeEnd = !this._operatingMask._AABBBounds.empty() && !!(Math.abs(x2 - x1) > sizeThreshold || Math.abs(y1 - y2) > sizeThreshold), this._isDrawedBeforeEnd && (this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this.
|
|
44570
|
-
operateMask: this._operatingMask,
|
|
44571
|
-
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44572
|
-
event: e
|
|
44573
|
-
}));
|
|
44525
|
+
this._isDrawedBeforeEnd = !this._operatingMask._AABBBounds.empty() && !!(Math.abs(x2 - x1) > sizeThreshold || Math.abs(y1 - y2) > sizeThreshold), this._isDrawedBeforeEnd && (this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds), this._dispatchBrushEvent(IOperateType.drawing, e);
|
|
44574
44526
|
}
|
|
44575
44527
|
_moving(e) {
|
|
44576
44528
|
const startPos = this._cacheMovePoint,
|
|
@@ -44583,11 +44535,21 @@
|
|
|
44583
44535
|
this._operatingMask.setAttributes({
|
|
44584
44536
|
dx: moveX,
|
|
44585
44537
|
dy: moveY
|
|
44586
|
-
}), this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this.
|
|
44587
|
-
|
|
44588
|
-
|
|
44589
|
-
|
|
44590
|
-
});
|
|
44538
|
+
}), this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this._dispatchBrushEvent(IOperateType.moving, e);
|
|
44539
|
+
}
|
|
44540
|
+
render() {
|
|
44541
|
+
this.releaseBrushEvents(), this._bindBrushEvents();
|
|
44542
|
+
const group = this.createOrUpdateChild("brush-container", {}, "group");
|
|
44543
|
+
this._container = group;
|
|
44544
|
+
}
|
|
44545
|
+
releaseBrushEvents() {
|
|
44546
|
+
const {
|
|
44547
|
+
trigger = DEFAULT_BRUSH_ATTRIBUTES.trigger,
|
|
44548
|
+
updateTrigger = DEFAULT_BRUSH_ATTRIBUTES.updateTrigger,
|
|
44549
|
+
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
44550
|
+
resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
|
|
44551
|
+
} = this.attribute;
|
|
44552
|
+
array(trigger).forEach(t => this.stage.removeEventListener(t, this._onBrushStart)), array(updateTrigger).forEach(t => this.stage.removeEventListener(t, this._onBrushingWithDelay)), array(endTrigger).forEach(t => this.stage.removeEventListener(t, this._onBrushEnd)), array(resetTrigger).forEach(t => this.stage.removeEventListener(t, this._onBrushClear));
|
|
44591
44553
|
}
|
|
44592
44554
|
_computeMaskPoints() {
|
|
44593
44555
|
const {
|
|
@@ -44645,6 +44607,23 @@
|
|
|
44645
44607
|
}));
|
|
44646
44608
|
brushMask.name = `brush-${Date.now()}`, this._operatingMask = brushMask, this._container.add(brushMask), this._brushMaskAABBBoundsDict[brushMask.name] = brushMask.AABBBounds;
|
|
44647
44609
|
}
|
|
44610
|
+
_isPosInBrushMask(e) {
|
|
44611
|
+
const pos = this.eventPosToStagePos(e),
|
|
44612
|
+
brushMasks = this._container.getChildren();
|
|
44613
|
+
for (let i = 0; i < brushMasks.length; i++) {
|
|
44614
|
+
const {
|
|
44615
|
+
points = [],
|
|
44616
|
+
dx = 0,
|
|
44617
|
+
dy = 0
|
|
44618
|
+
} = brushMasks[i].attribute,
|
|
44619
|
+
pointsConsiderOffset = points.map(point => ({
|
|
44620
|
+
x: point.x + dx,
|
|
44621
|
+
y: point.y + dy
|
|
44622
|
+
}));
|
|
44623
|
+
if (polygonContainPoint(pointsConsiderOffset, pos.x, pos.y)) return this._operatingMask = brushMasks[i], !0;
|
|
44624
|
+
}
|
|
44625
|
+
return !1;
|
|
44626
|
+
}
|
|
44648
44627
|
_outOfInteractiveRange(e) {
|
|
44649
44628
|
const {
|
|
44650
44629
|
interactiveRange: interactiveRange
|
|
@@ -44661,21 +44640,18 @@
|
|
|
44661
44640
|
eventPosToStagePos(e) {
|
|
44662
44641
|
return this.stage.eventPointTransform(e);
|
|
44663
44642
|
}
|
|
44664
|
-
|
|
44665
|
-
this.
|
|
44666
|
-
|
|
44667
|
-
|
|
44643
|
+
_dispatchBrushEvent(operateType, e) {
|
|
44644
|
+
this._dispatchEvent(operateType, {
|
|
44645
|
+
operateMask: this._operatingMask,
|
|
44646
|
+
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44647
|
+
event: e
|
|
44648
|
+
});
|
|
44668
44649
|
}
|
|
44669
|
-
|
|
44670
|
-
|
|
44671
|
-
|
|
44672
|
-
|
|
44673
|
-
|
|
44674
|
-
updateTrigger = DEFAULT_BRUSH_ATTRIBUTES.updateTrigger,
|
|
44675
|
-
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
44676
|
-
resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
|
|
44677
|
-
} = this.attribute;
|
|
44678
|
-
array(trigger).forEach(t => vglobal.removeEventListener(t, this._onBrushStart)), array(updateTrigger).forEach(t => this.stage.removeEventListener(t, this._onBrushingWithDelay)), array(endTrigger).forEach(t => this.stage.removeEventListener(t, this._onBrushEnd)), array(resetTrigger).forEach(t => this.stage.removeEventListener(t, this._onBrushClear));
|
|
44650
|
+
_clearMask() {
|
|
44651
|
+
this._brushMaskAABBBoundsDict = {}, this._container.incrementalClearChild(), this._operatingMask = null;
|
|
44652
|
+
}
|
|
44653
|
+
_isEmptyMask() {
|
|
44654
|
+
return isEmpty(this._brushMaskAABBBoundsDict) || Object.keys(this._brushMaskAABBBoundsDict).every(key => this._brushMaskAABBBoundsDict[key].empty());
|
|
44679
44655
|
}
|
|
44680
44656
|
};
|
|
44681
44657
|
Brush$1.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
|
|
@@ -56559,7 +56535,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56559
56535
|
var _a;
|
|
56560
56536
|
element.isReserved && element.diffState !== DiffState.exit && (element.isReserved = !1);
|
|
56561
56537
|
const prevElementState = null === (_a = this.elementRecorder.get(element)) || void 0 === _a ? void 0 : _a.prevState;
|
|
56562
|
-
(this.configs.some(config => prevElementState !== element.diffState && config.state === prevElementState && config.timeline.controlOptions.stopWhenStateChange) || element.diffState === DiffState.exit
|
|
56538
|
+
(this.configs.some(config => prevElementState !== element.diffState && config.state === prevElementState && config.timeline.controlOptions.stopWhenStateChange) || element.diffState === DiffState.exit) && this.clearElementAnimation(element, !1);
|
|
56563
56539
|
}), this.configs.forEach(config => {
|
|
56564
56540
|
this.animateByTimeline(config, elements, parameters);
|
|
56565
56541
|
}), this.mark.cleanExitElements(), this;
|
|
@@ -56935,12 +56911,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56935
56911
|
Event_Bubble_Level["model"] = "model";
|
|
56936
56912
|
Event_Bubble_Level["mark"] = "mark";
|
|
56937
56913
|
})(Event_Bubble_Level || (Event_Bubble_Level = {}));
|
|
56938
|
-
const EventBubbleLevels = [
|
|
56939
|
-
Event_Bubble_Level.mark,
|
|
56940
|
-
Event_Bubble_Level.model,
|
|
56941
|
-
Event_Bubble_Level.chart,
|
|
56942
|
-
Event_Bubble_Level.vchart
|
|
56943
|
-
];
|
|
56944
56914
|
|
|
56945
56915
|
const isInBound = (pos, min, max) => pos.x >= min.x && pos.x <= max.x && pos.y >= min.y && pos.y <= max.y;
|
|
56946
56916
|
const isInRegionBound = (chart, axis, pos) => {
|
|
@@ -57775,29 +57745,29 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57775
57745
|
stopBubble = this._invoke(handlers, eType, params);
|
|
57776
57746
|
}
|
|
57777
57747
|
else {
|
|
57748
|
+
const levels = [
|
|
57749
|
+
Event_Bubble_Level.mark,
|
|
57750
|
+
Event_Bubble_Level.model,
|
|
57751
|
+
Event_Bubble_Level.chart,
|
|
57752
|
+
Event_Bubble_Level.vchart
|
|
57753
|
+
];
|
|
57778
57754
|
let i = 0;
|
|
57779
|
-
while (!stopBubble && i <
|
|
57780
|
-
stopBubble = this._invoke(bubble.getHandlers(
|
|
57755
|
+
while (!stopBubble && i < levels.length) {
|
|
57756
|
+
stopBubble = this._invoke(bubble.getHandlers(levels[i]), eType, params);
|
|
57781
57757
|
i++;
|
|
57782
57758
|
}
|
|
57783
57759
|
}
|
|
57784
57760
|
return this;
|
|
57785
57761
|
}
|
|
57786
57762
|
prevent(eType, except) {
|
|
57787
|
-
const
|
|
57788
|
-
|
|
57763
|
+
const eventTypes = ['canvas', 'chart', 'window'];
|
|
57764
|
+
eventTypes.forEach(type => {
|
|
57789
57765
|
const bubble = this.getEventBubble(type).get(eType);
|
|
57790
57766
|
if (bubble) {
|
|
57791
57767
|
bubble.getAllHandlers().forEach(handler => {
|
|
57792
|
-
if (!except) {
|
|
57768
|
+
if (!except || handler.callback !== except) {
|
|
57793
57769
|
bubble.preventHandler(handler);
|
|
57794
57770
|
}
|
|
57795
|
-
else if (EventBubbleLevels.indexOf(handler.filter.level) <
|
|
57796
|
-
EventBubbleLevels.indexOf(except.level)) {
|
|
57797
|
-
if (handler.callback !== except.handler) {
|
|
57798
|
-
bubble.preventHandler(handler);
|
|
57799
|
-
}
|
|
57800
|
-
}
|
|
57801
57771
|
});
|
|
57802
57772
|
}
|
|
57803
57773
|
});
|
|
@@ -63662,7 +63632,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63662
63632
|
};
|
|
63663
63633
|
registerVChartCore();
|
|
63664
63634
|
|
|
63665
|
-
const version = "1.13.8-alpha.
|
|
63635
|
+
const version = "1.13.8-alpha.8";
|
|
63666
63636
|
|
|
63667
63637
|
const addVChartProperty = (data, op) => {
|
|
63668
63638
|
const context = op.beforeCall();
|
|
@@ -64157,7 +64127,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64157
64127
|
result[key][op] = f.customize;
|
|
64158
64128
|
}
|
|
64159
64129
|
else {
|
|
64160
|
-
if (dataFieldInKey && dataFieldInKey.lockStatisticsByDomain
|
|
64130
|
+
if (dataFieldInKey && dataFieldInKey.lockStatisticsByDomain && !isNil$1(dataFieldInKey.domain)) {
|
|
64161
64131
|
if (op === 'values') {
|
|
64162
64132
|
result[key][op] = dataFieldInKey.domain.slice();
|
|
64163
64133
|
return;
|
|
@@ -71673,11 +71643,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
71673
71643
|
return;
|
|
71674
71644
|
}
|
|
71675
71645
|
const hasTotalLabel = series.some(s => {
|
|
71676
|
-
var _a, _b
|
|
71677
|
-
|
|
71678
|
-
return true;
|
|
71679
|
-
}
|
|
71680
|
-
return (_d = (_c = s.getSpec()) === null || _c === void 0 ? void 0 : _c.totalLabel) === null || _d === void 0 ? void 0 : _d.visible;
|
|
71646
|
+
var _a, _b;
|
|
71647
|
+
return (_b = (_a = s.getSpec()) === null || _a === void 0 ? void 0 : _a.totalLabel) === null || _b === void 0 ? void 0 : _b.visible;
|
|
71681
71648
|
});
|
|
71682
71649
|
const hasPercent = hasTotalLabel || series.some(s => s.getPercent());
|
|
71683
71650
|
const hasOffsetSilhouette = series.some(s => s.getStackOffsetSilhouette());
|
|
@@ -74126,12 +74093,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74126
74093
|
return;
|
|
74127
74094
|
}
|
|
74128
74095
|
this._clickEnable = false;
|
|
74129
|
-
end.forEach(endEventType =>
|
|
74130
|
-
this._eventObj.prevent(endEventType, {
|
|
74131
|
-
handler: this._handleDragMouseUp,
|
|
74132
|
-
level: Event_Bubble_Level.chart
|
|
74133
|
-
});
|
|
74134
|
-
});
|
|
74096
|
+
end.forEach(endEventType => this._eventObj.prevent(endEventType, this._handleDragMouseUp));
|
|
74135
74097
|
const event = params.event;
|
|
74136
74098
|
const dx = event.canvasX - moveX;
|
|
74137
74099
|
const dy = event.canvasY - moveY;
|
|
@@ -92164,9 +92126,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
92164
92126
|
if (title.visible) {
|
|
92165
92127
|
attrs.title = transformLegendTitleAttributes(title);
|
|
92166
92128
|
}
|
|
92167
|
-
else {
|
|
92168
|
-
attrs.title = { visible: false };
|
|
92169
|
-
}
|
|
92170
92129
|
if (!isEmpty(item.focusIconStyle)) {
|
|
92171
92130
|
transformToGraphic(item.focusIconStyle);
|
|
92172
92131
|
}
|
|
@@ -92762,9 +92721,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
92762
92721
|
if (title.visible) {
|
|
92763
92722
|
attrs.title = transformLegendTitleAttributes(title);
|
|
92764
92723
|
}
|
|
92765
|
-
else {
|
|
92766
|
-
attrs.title = { visible: false };
|
|
92767
|
-
}
|
|
92768
92724
|
attrs.showHandler = handler.visible !== false;
|
|
92769
92725
|
if (!isEmpty(handler.style)) {
|
|
92770
92726
|
attrs.handlerStyle = transformToGraphic(handler.style);
|