@visactor/vchart 1.13.7-alpha.1 → 1.13.7-alpha.2
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 +7 -4
- package/build/index.js +7 -4
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +3 -2
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +1 -2
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +3 -2
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +1 -2
- package/package.json +13 -13
package/build/index.es.js
CHANGED
|
@@ -44401,15 +44401,15 @@ let Brush$1 = class Brush extends AbstractComponent {
|
|
|
44401
44401
|
this._outOfInteractiveRange(e) || ((this._activeDrawState || this._activeMoveState) && e.stopPropagation(), this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e));
|
|
44402
44402
|
}, this._onBrushingWithDelay = 0 === this.attribute.delayTime ? this._onBrushing : delayMap$1[this.attribute.delayType](this._onBrushing, this.attribute.delayTime), this._onBrushEnd = e => {
|
|
44403
44403
|
var _a;
|
|
44404
|
-
if (this._isDownBeforeUpOutside) return
|
|
44404
|
+
if (this._isDownBeforeUpOutside) return this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), void (this._isDownBeforeUpOutside = !1);
|
|
44405
44405
|
if (!this._activeDrawState && !this._activeMoveState) return;
|
|
44406
44406
|
e.preventDefault();
|
|
44407
44407
|
const {
|
|
44408
44408
|
removeOnClick = !0
|
|
44409
44409
|
} = this.attribute;
|
|
44410
|
-
this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick ? (null === (_a = this._operatingMask) || void 0 === _a ? void 0 : _a._AABBBounds.empty()) ?
|
|
44410
|
+
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);
|
|
44411
44411
|
}, this._onBrushClear = e => {
|
|
44412
|
-
e.preventDefault(),
|
|
44412
|
+
e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1, this._isDrawedBeforeEnd = !1, this._isDownBeforeUpOutside = !1;
|
|
44413
44413
|
};
|
|
44414
44414
|
}
|
|
44415
44415
|
_bindBrushEvents() {
|
|
@@ -44602,6 +44602,9 @@ let Brush$1 = class Brush extends AbstractComponent {
|
|
|
44602
44602
|
_clearMask() {
|
|
44603
44603
|
this._brushMaskAABBBoundsDict = {}, this._container.incrementalClearChild(), this._operatingMask = null;
|
|
44604
44604
|
}
|
|
44605
|
+
_isEmptyMask() {
|
|
44606
|
+
return isEmpty(this._brushMaskAABBBoundsDict) || Object.keys(this._brushMaskAABBBoundsDict).every(key => this._brushMaskAABBBoundsDict[key].empty());
|
|
44607
|
+
}
|
|
44605
44608
|
};
|
|
44606
44609
|
Brush$1.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
|
|
44607
44610
|
|
|
@@ -63575,7 +63578,7 @@ const registerVChartCore = () => {
|
|
|
63575
63578
|
};
|
|
63576
63579
|
registerVChartCore();
|
|
63577
63580
|
|
|
63578
|
-
const version = "1.13.7-alpha.
|
|
63581
|
+
const version = "1.13.7-alpha.2";
|
|
63579
63582
|
|
|
63580
63583
|
const addVChartProperty = (data, op) => {
|
|
63581
63584
|
const context = op.beforeCall();
|
package/build/index.js
CHANGED
|
@@ -44407,15 +44407,15 @@
|
|
|
44407
44407
|
this._outOfInteractiveRange(e) || ((this._activeDrawState || this._activeMoveState) && e.stopPropagation(), this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e));
|
|
44408
44408
|
}, this._onBrushingWithDelay = 0 === this.attribute.delayTime ? this._onBrushing : delayMap$1[this.attribute.delayType](this._onBrushing, this.attribute.delayTime), this._onBrushEnd = e => {
|
|
44409
44409
|
var _a;
|
|
44410
|
-
if (this._isDownBeforeUpOutside) return
|
|
44410
|
+
if (this._isDownBeforeUpOutside) return this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), void (this._isDownBeforeUpOutside = !1);
|
|
44411
44411
|
if (!this._activeDrawState && !this._activeMoveState) return;
|
|
44412
44412
|
e.preventDefault();
|
|
44413
44413
|
const {
|
|
44414
44414
|
removeOnClick = !0
|
|
44415
44415
|
} = this.attribute;
|
|
44416
|
-
this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick ? (null === (_a = this._operatingMask) || void 0 === _a ? void 0 : _a._AABBBounds.empty()) ?
|
|
44416
|
+
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);
|
|
44417
44417
|
}, this._onBrushClear = e => {
|
|
44418
|
-
e.preventDefault(),
|
|
44418
|
+
e.preventDefault(), this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), this._activeDrawState = !1, this._activeMoveState = !1, this._isDrawedBeforeEnd = !1, this._isDownBeforeUpOutside = !1;
|
|
44419
44419
|
};
|
|
44420
44420
|
}
|
|
44421
44421
|
_bindBrushEvents() {
|
|
@@ -44608,6 +44608,9 @@
|
|
|
44608
44608
|
_clearMask() {
|
|
44609
44609
|
this._brushMaskAABBBoundsDict = {}, this._container.incrementalClearChild(), this._operatingMask = null;
|
|
44610
44610
|
}
|
|
44611
|
+
_isEmptyMask() {
|
|
44612
|
+
return isEmpty(this._brushMaskAABBBoundsDict) || Object.keys(this._brushMaskAABBBoundsDict).every(key => this._brushMaskAABBBoundsDict[key].empty());
|
|
44613
|
+
}
|
|
44611
44614
|
};
|
|
44612
44615
|
Brush$1.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
|
|
44613
44616
|
|
|
@@ -63581,7 +63584,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63581
63584
|
};
|
|
63582
63585
|
registerVChartCore();
|
|
63583
63586
|
|
|
63584
|
-
const version = "1.13.7-alpha.
|
|
63587
|
+
const version = "1.13.7-alpha.2";
|
|
63585
63588
|
|
|
63586
63589
|
const addVChartProperty = (data, op) => {
|
|
63587
63590
|
const context = op.beforeCall();
|