@visactor/vchart 1.13.9-alpha.10 → 1.13.9-alpha.11
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 +276 -286
- package/build/index.js +276 -285
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart.d.ts +8 -1
- package/cjs/chart/base/base-chart.js +33 -20
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/index.d.ts +1 -1
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +8 -1
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/pictogram/interface.d.ts +1 -1
- package/cjs/chart/pictogram/interface.js.map +1 -1
- package/cjs/chart/sankey/sankey.js +21 -21
- package/cjs/chart/sankey/sankey.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.d.ts +1 -0
- package/cjs/compile/mark/compilable-mark.js +3 -0
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/component/axis/base-axis.js +7 -2
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/interface/spec.d.ts +7 -2
- package/cjs/component/axis/interface/spec.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/interface.d.ts +2 -3
- package/cjs/component/data-zoom/data-zoom/interface.js.map +1 -1
- package/cjs/component/marker/mark-line/cartesian-mark-line.js +3 -3
- package/cjs/component/marker/mark-line/cartesian-mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/cartesian-mark-point.js +3 -1
- package/cjs/component/marker/mark-point/cartesian-mark-point.js.map +1 -1
- package/cjs/component/marker/utils.d.ts +12 -0
- package/cjs/component/marker/utils.js +22 -7
- package/cjs/component/marker/utils.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/data/transforms/pictogram.d.ts +1 -9
- package/cjs/data/transforms/pictogram.js +3 -3
- package/cjs/data/transforms/pictogram.js.map +1 -1
- package/cjs/data/transforms/pie.js +1 -1
- package/cjs/data/transforms/pie.js.map +1 -1
- package/cjs/index-harmony-simple.js.map +1 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +8 -7
- package/cjs/index.js.map +1 -1
- package/cjs/model/base-model.d.ts +1 -0
- package/cjs/model/base-model.js +6 -0
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/pictogram/tooltip-helper.d.ts +2 -2
- package/cjs/series/pictogram/tooltip-helper.js.map +1 -1
- package/cjs/series/pie/pie.js +3 -3
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/typings/visual.d.ts +1 -1
- package/cjs/typings/visual.js.map +1 -1
- package/esm/chart/base/base-chart.d.ts +8 -1
- package/esm/chart/base/base-chart.js +33 -20
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/index.d.ts +1 -1
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +8 -1
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/pictogram/interface.d.ts +1 -1
- package/esm/chart/pictogram/interface.js.map +1 -1
- package/esm/chart/sankey/sankey.js +22 -22
- package/esm/chart/sankey/sankey.js.map +1 -1
- package/esm/compile/mark/compilable-mark.d.ts +1 -0
- package/esm/compile/mark/compilable-mark.js +3 -0
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/component/axis/base-axis.js +7 -2
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/interface/spec.d.ts +7 -2
- package/esm/component/axis/interface/spec.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/interface.d.ts +2 -3
- package/esm/component/data-zoom/data-zoom/interface.js.map +1 -1
- package/esm/component/marker/mark-line/cartesian-mark-line.js +3 -3
- package/esm/component/marker/mark-line/cartesian-mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/cartesian-mark-point.js +1 -1
- package/esm/component/marker/mark-point/cartesian-mark-point.js.map +1 -1
- package/esm/component/marker/utils.d.ts +12 -0
- package/esm/component/marker/utils.js +19 -4
- package/esm/component/marker/utils.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/data/transforms/pictogram.d.ts +1 -9
- package/esm/data/transforms/pictogram.js +3 -3
- package/esm/data/transforms/pictogram.js.map +1 -1
- package/esm/data/transforms/pie.js +1 -1
- package/esm/data/transforms/pie.js.map +1 -1
- package/esm/index-harmony-simple.js.map +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/model/base-model.d.ts +1 -0
- package/esm/model/base-model.js +6 -0
- package/esm/model/base-model.js.map +1 -1
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/pictogram/tooltip-helper.d.ts +2 -2
- package/esm/series/pictogram/tooltip-helper.js.map +1 -1
- package/esm/series/pie/pie.js +4 -4
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/typings/visual.d.ts +1 -1
- package/esm/typings/visual.js.map +1 -1
- package/package.json +13 -13
package/build/index.js
CHANGED
|
@@ -31431,10 +31431,6 @@
|
|
|
31431
31431
|
const SCROLLBAR_EVENT$1 = "scrollDrag";
|
|
31432
31432
|
const SCROLLBAR_END_EVENT$1 = "scrollUp";
|
|
31433
31433
|
|
|
31434
|
-
function getEndTriggersOfDrag() {
|
|
31435
|
-
return "browser" === vglobal.env ? ["pointerup", "pointerleave", "pointercancel"] : ["pointerup", "pointerleave", "pointerupoutside"];
|
|
31436
|
-
}
|
|
31437
|
-
|
|
31438
31434
|
const delayMap$3 = {
|
|
31439
31435
|
debounce: debounce,
|
|
31440
31436
|
throttle: throttle
|
|
@@ -31467,7 +31463,6 @@
|
|
|
31467
31463
|
}
|
|
31468
31464
|
this.setScrollRange([currentScrollValue - (range[1] - range[0]) / 2, currentScrollValue + (range[1] - range[0]) / 2], !1), this.stage && !this.stage.autoRender && this.stage.renderNextFrame();
|
|
31469
31465
|
}, this._onSliderPointerDown = e => {
|
|
31470
|
-
this._clearDragEvents();
|
|
31471
31466
|
const {
|
|
31472
31467
|
stopSliderDownPropagation = !0
|
|
31473
31468
|
} = this.attribute;
|
|
@@ -31482,15 +31477,11 @@
|
|
|
31482
31477
|
this._prePos = "horizontal" === direction ? x : y, this._dispatchEvent(SCROLLBAR_START_EVENT, {
|
|
31483
31478
|
pos: this._prePos,
|
|
31484
31479
|
event: e
|
|
31485
|
-
})
|
|
31486
|
-
|
|
31487
|
-
|
|
31488
|
-
|
|
31489
|
-
|
|
31490
|
-
passive: !0
|
|
31491
|
-
}), triggers.forEach(trigger => {
|
|
31492
|
-
obj.addEventListener(trigger, this._onSliderPointerUp);
|
|
31493
|
-
});
|
|
31480
|
+
}), "browser" === vglobal.env ? (vglobal.addEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
31481
|
+
capture: !0
|
|
31482
|
+
}), vglobal.addEventListener("pointerup", this._onSliderPointerUp)) : (this.stage.addEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
31483
|
+
capture: !0
|
|
31484
|
+
}), this.stage.addEventListener("pointerup", this._onSliderPointerUp), this.stage.addEventListener("pointerupoutside", this._onSliderPointerUp));
|
|
31494
31485
|
}, this._computeScrollValue = e => {
|
|
31495
31486
|
const {
|
|
31496
31487
|
direction: direction
|
|
@@ -31508,7 +31499,6 @@
|
|
|
31508
31499
|
} = this.getSliderRenderBounds();
|
|
31509
31500
|
return "vertical" === direction ? (currentPos = y, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = x, delta = currentPos - this._prePos, currentScrollValue = delta / width), [currentPos, currentScrollValue];
|
|
31510
31501
|
}, this._onSliderPointerMove = e => {
|
|
31511
|
-
e.preventDefault();
|
|
31512
31502
|
const {
|
|
31513
31503
|
stopSliderMovePropagation = !0
|
|
31514
31504
|
} = this.attribute;
|
|
@@ -31517,6 +31507,7 @@
|
|
|
31517
31507
|
[currentPos, currentScrollValue] = this._computeScrollValue(e);
|
|
31518
31508
|
this.setScrollRange([preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue], !0), this._prePos = currentPos;
|
|
31519
31509
|
}, this._onSliderPointerMoveWithDelay = 0 === this.attribute.delayTime ? this._onSliderPointerMove : delayMap$3[this.attribute.delayType](this._onSliderPointerMove, this.attribute.delayTime), this._onSliderPointerUp = e => {
|
|
31510
|
+
e.preventDefault();
|
|
31520
31511
|
const {
|
|
31521
31512
|
range: preRange,
|
|
31522
31513
|
limitRange = [0, 1]
|
|
@@ -31527,7 +31518,11 @@
|
|
|
31527
31518
|
this._dispatchEvent(SCROLLBAR_END_EVENT$1, {
|
|
31528
31519
|
pre: preRange,
|
|
31529
31520
|
value: clampRange$1(range, limitRange[0], limitRange[1])
|
|
31530
|
-
}), this.
|
|
31521
|
+
}), "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
31522
|
+
capture: !0
|
|
31523
|
+
}), vglobal.removeEventListener("pointerup", this._onSliderPointerUp)) : (this.stage.removeEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
31524
|
+
capture: !0
|
|
31525
|
+
}), this.stage.removeEventListener("pointerup", this._onSliderPointerUp), this.stage.removeEventListener("pointerupoutside", this._onSliderPointerUp));
|
|
31531
31526
|
};
|
|
31532
31527
|
}
|
|
31533
31528
|
setScrollRange(range) {
|
|
@@ -31676,16 +31671,6 @@
|
|
|
31676
31671
|
sliderSize = this._sliderSize;
|
|
31677
31672
|
return "horizontal" === direction ? clampRange$1([x1 + min * width, x1 + max * width], x1, width - sliderSize) : clampRange$1([y1 + min * height, y1 + max * height], y1, height - sliderSize);
|
|
31678
31673
|
}
|
|
31679
|
-
_clearDragEvents() {
|
|
31680
|
-
const triggers = getEndTriggersOfDrag(),
|
|
31681
|
-
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
31682
|
-
obj.removeEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
|
|
31683
|
-
capture: !0,
|
|
31684
|
-
passive: !1
|
|
31685
|
-
}), triggers.forEach(trigger => {
|
|
31686
|
-
obj.removeEventListener(trigger, this._onSliderPointerUp);
|
|
31687
|
-
});
|
|
31688
|
-
}
|
|
31689
31674
|
_reset() {
|
|
31690
31675
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
31691
31676
|
}
|
|
@@ -39034,20 +39019,14 @@
|
|
|
39034
39019
|
}, this.state = {
|
|
39035
39020
|
start: 0,
|
|
39036
39021
|
end: 1
|
|
39037
|
-
}, this._statePointToData = state => state, this.
|
|
39038
|
-
this.
|
|
39039
|
-
|
|
39040
|
-
|
|
39041
|
-
|
|
39042
|
-
triggers = getEndTriggersOfDrag();
|
|
39043
|
-
evtTarget.addEventListener("pointermove", this._onHandlerPointerMove, {
|
|
39044
|
-
capture: !0,
|
|
39045
|
-
passive: !1
|
|
39046
|
-
}), triggers.forEach(trigger => {
|
|
39047
|
-
evtTarget.addEventListener(trigger, this._onHandlerPointerUp);
|
|
39022
|
+
}, this._statePointToData = state => state, this._onHandlerPointerDown = (e, tag) => {
|
|
39023
|
+
e.stopPropagation(), "start" === tag ? (this._activeTag = DataZoomActiveTag.startHandler, this._activeItem = this._startHandlerMask) : "end" === tag ? (this._activeTag = DataZoomActiveTag.endHandler, this._activeItem = this._endHandlerMask) : "middleRect" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerRect) : "middleSymbol" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerSymbol) : "background" === tag && (this._activeTag = DataZoomActiveTag.background, this._activeItem = this._background), this._activeState = !0, this._activeCache.startPos = this.eventPosToStagePos(e), this._activeCache.lastPos = this.eventPosToStagePos(e), "browser" === vglobal.env && (vglobal.addEventListener("pointermove", this._onHandlerPointerMove, {
|
|
39024
|
+
capture: !0
|
|
39025
|
+
}), vglobal.addEventListener("pointerup", this._onHandlerPointerUp)), this.addEventListener("pointermove", this._onHandlerPointerMove, {
|
|
39026
|
+
capture: !0
|
|
39048
39027
|
});
|
|
39049
39028
|
}, this._pointerMove = e => {
|
|
39050
|
-
e.
|
|
39029
|
+
e.stopPropagation();
|
|
39051
39030
|
const {
|
|
39052
39031
|
start: startAttr,
|
|
39053
39032
|
end: endAttr,
|
|
@@ -39064,12 +39043,13 @@
|
|
|
39064
39043
|
start: start,
|
|
39065
39044
|
end: end
|
|
39066
39045
|
} = this.state;
|
|
39067
|
-
this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this.
|
|
39046
|
+
this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), this._activeCache.lastPos = pos, brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this.setStateAttr(start, end, !0), realTime && this._dispatchEvent("change", {
|
|
39068
39047
|
start: start,
|
|
39069
39048
|
end: end,
|
|
39070
39049
|
tag: this._activeTag
|
|
39071
39050
|
}));
|
|
39072
39051
|
}, this._onHandlerPointerMove = 0 === this.attribute.delayTime ? this._pointerMove : delayMap$2[this.attribute.delayType](this._pointerMove, this.attribute.delayTime), this._onHandlerPointerUp = e => {
|
|
39052
|
+
e.preventDefault();
|
|
39073
39053
|
const {
|
|
39074
39054
|
start: start,
|
|
39075
39055
|
end: end,
|
|
@@ -39084,7 +39064,11 @@
|
|
|
39084
39064
|
start: this.state.start,
|
|
39085
39065
|
end: this.state.end,
|
|
39086
39066
|
tag: this._activeTag
|
|
39087
|
-
}), this.
|
|
39067
|
+
}), "browser" === vglobal.env && (vglobal.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
39068
|
+
capture: !0
|
|
39069
|
+
}), vglobal.removeEventListener("pointerup", this._onHandlerPointerUp)), this.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
39070
|
+
capture: !0
|
|
39071
|
+
}), this.removeEventListener("pointerup", this._onHandlerPointerUp);
|
|
39088
39072
|
};
|
|
39089
39073
|
const {
|
|
39090
39074
|
position: position,
|
|
@@ -39103,9 +39087,7 @@
|
|
|
39103
39087
|
} = this.attribute;
|
|
39104
39088
|
this._startHandlerMask && this._startHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "start")), this._endHandlerMask && this._endHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "end")), this._middleHandlerSymbol && this._middleHandlerSymbol.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleSymbol")), this._middleHandlerRect && this._middleHandlerRect.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleRect"));
|
|
39105
39089
|
const selectedTag = brushSelect ? "background" : "middleRect";
|
|
39106
|
-
this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)),
|
|
39107
|
-
passive: !1
|
|
39108
|
-
});
|
|
39090
|
+
this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), this.addEventListener("pointerup", this._onHandlerPointerUp), this.addEventListener("pointerupoutside", this._onHandlerPointerUp), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave));
|
|
39109
39091
|
}
|
|
39110
39092
|
dragMaskSize() {
|
|
39111
39093
|
const {
|
|
@@ -39136,21 +39118,11 @@
|
|
|
39136
39118
|
y: 0
|
|
39137
39119
|
};
|
|
39138
39120
|
}
|
|
39139
|
-
_clearDragEvents() {
|
|
39140
|
-
const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
|
|
39141
|
-
triggers = getEndTriggersOfDrag();
|
|
39142
|
-
evtTarget.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
39143
|
-
capture: !0,
|
|
39144
|
-
passive: !1
|
|
39145
|
-
}), triggers.forEach(trigger => {
|
|
39146
|
-
evtTarget.removeEventListener(trigger, this._onHandlerPointerUp);
|
|
39147
|
-
});
|
|
39148
|
-
}
|
|
39149
39121
|
_onHandlerPointerEnter(e) {
|
|
39150
|
-
this._showText = !0, this.renderText();
|
|
39122
|
+
e.stopPropagation(), this._showText = !0, this.renderText();
|
|
39151
39123
|
}
|
|
39152
39124
|
_onHandlerPointerLeave(e) {
|
|
39153
|
-
this._showText = !1, this.renderText();
|
|
39125
|
+
e.stopPropagation(), this._showText = !1, this.renderText();
|
|
39154
39126
|
}
|
|
39155
39127
|
backgroundDragZoom(startPos, endPos) {
|
|
39156
39128
|
const {
|
|
@@ -39689,11 +39661,6 @@
|
|
|
39689
39661
|
setStatePointToData(callback) {
|
|
39690
39662
|
isFunction$1(callback) && (this._statePointToData = callback);
|
|
39691
39663
|
}
|
|
39692
|
-
release(all) {
|
|
39693
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
|
|
39694
|
-
passive: !1
|
|
39695
|
-
}), this._clearDragEvents();
|
|
39696
|
-
}
|
|
39697
39664
|
};
|
|
39698
39665
|
DataZoom$1.defaultAttributes = DEFAULT_DATA_ZOOM_ATTRIBUTES;
|
|
39699
39666
|
|
|
@@ -42635,23 +42602,19 @@
|
|
|
42635
42602
|
} = this.attribute;
|
|
42636
42603
|
tooltip && tooltip.alwaysShow || (this._tooltipState = null, this._tooltipShape && this._tooltipShape.setAttribute("visible", !1), this._tooltipText && this._tooltipText.setAttribute("visible", !1), this._dispatchTooltipEvent("sliderTooltipHide"));
|
|
42637
42604
|
}, this._onHandlerPointerdown = e => {
|
|
42638
|
-
|
|
42605
|
+
e.stopPropagation(), this._isChanging = !0;
|
|
42639
42606
|
const {
|
|
42640
42607
|
x: x,
|
|
42641
42608
|
y: y
|
|
42642
42609
|
} = this.stage.eventPointTransform(e);
|
|
42643
|
-
this._currentHandler = e.target, this._prePos = this._isHorizontal ? x : y
|
|
42644
|
-
|
|
42645
|
-
|
|
42646
|
-
|
|
42647
|
-
|
|
42648
|
-
passive: !1
|
|
42649
|
-
}), triggers.forEach(trigger => {
|
|
42650
|
-
obj.addEventListener(trigger, this._onHandlerPointerUp);
|
|
42651
|
-
});
|
|
42610
|
+
this._currentHandler = e.target, this._prePos = this._isHorizontal ? x : y, "browser" === vglobal.env ? (vglobal.addEventListener("pointermove", this._onHandlerPointerMove, {
|
|
42611
|
+
capture: !0
|
|
42612
|
+
}), vglobal.addEventListener("pointerup", this._onHandlerPointerUp)) : (this.stage.addEventListener("pointermove", this._onHandlerPointerMove, {
|
|
42613
|
+
capture: !0
|
|
42614
|
+
}), this.stage.addEventListener("pointerup", this._onHandlerPointerUp), this.stage.addEventListener("pointerupoutside", this._onHandlerPointerUp));
|
|
42652
42615
|
}, this._onHandlerPointerMove = e => {
|
|
42653
42616
|
var _a, _b;
|
|
42654
|
-
e.
|
|
42617
|
+
e.stopPropagation(), this._isChanging = !0;
|
|
42655
42618
|
const {
|
|
42656
42619
|
railWidth: railWidth,
|
|
42657
42620
|
railHeight: railHeight,
|
|
@@ -42672,26 +42635,24 @@
|
|
|
42672
42635
|
currentValue = this.calculateValueByPos(newPos);
|
|
42673
42636
|
"text" === this._currentHandler.type ? this._updateHandlerText(this._currentHandler, newPos, currentValue) : this._updateHandler(this._currentHandler, newPos, currentValue), this._updateTrack(), this._prePos = currentPos, this._dispatchChangeEvent();
|
|
42674
42637
|
}, this._onHandlerPointerUp = e => {
|
|
42675
|
-
this._isChanging = !1, this._currentHandler = null, this.
|
|
42676
|
-
|
|
42677
|
-
this.
|
|
42638
|
+
e.preventDefault(), this._isChanging = !1, this._currentHandler = null, "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
42639
|
+
capture: !0
|
|
42640
|
+
}), vglobal.removeEventListener("pointerup", this._onHandlerPointerUp)) : (this.stage.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
42641
|
+
capture: !0
|
|
42642
|
+
}), this.stage.removeEventListener("pointerup", this._onHandlerPointerUp), this.stage.removeEventListener("pointerupoutside", this._onHandlerPointerUp));
|
|
42678
42643
|
}, this._onTrackPointerdown = e => {
|
|
42679
|
-
|
|
42644
|
+
e.stopPropagation(), this._isChanging = !0;
|
|
42680
42645
|
const {
|
|
42681
42646
|
x: x,
|
|
42682
42647
|
y: y
|
|
42683
42648
|
} = this.stage.eventPointTransform(e);
|
|
42684
|
-
this._prePos = this._isHorizontal ? x : y
|
|
42685
|
-
|
|
42686
|
-
|
|
42687
|
-
|
|
42688
|
-
|
|
42689
|
-
passive: !1
|
|
42690
|
-
}), triggers.forEach(trigger => {
|
|
42691
|
-
obj.addEventListener(trigger, this._onTrackPointerUp);
|
|
42692
|
-
});
|
|
42649
|
+
this._prePos = this._isHorizontal ? x : y, "browser" === vglobal.env ? (vglobal.addEventListener("pointermove", this._onTrackPointerMove, {
|
|
42650
|
+
capture: !0
|
|
42651
|
+
}), vglobal.addEventListener("pointerup", this._onTrackPointerUp)) : (this.stage.addEventListener("pointermove", this._onTrackPointerMove, {
|
|
42652
|
+
capture: !0
|
|
42653
|
+
}), this.stage.addEventListener("pointerup", this._onTrackPointerUp), this.stage.addEventListener("pointerupoutside", this._onTrackPointerUp));
|
|
42693
42654
|
}, this._onTrackPointerMove = e => {
|
|
42694
|
-
e.
|
|
42655
|
+
e.stopPropagation(), this._isChanging = !0;
|
|
42695
42656
|
const {
|
|
42696
42657
|
railWidth: railWidth,
|
|
42697
42658
|
railHeight: railHeight,
|
|
@@ -42732,9 +42693,13 @@
|
|
|
42732
42693
|
}
|
|
42733
42694
|
this._prePos = currentPos, this._dispatchChangeEvent();
|
|
42734
42695
|
}, this._onTrackPointerUp = e => {
|
|
42735
|
-
this._isChanging = !1, this.
|
|
42696
|
+
e.preventDefault(), this._isChanging = !1, "browser" === vglobal.env ? (vglobal.removeEventListener("pointermove", this._onTrackPointerMove, {
|
|
42697
|
+
capture: !0
|
|
42698
|
+
}), vglobal.removeEventListener("pointerup", this._onTrackPointerUp)) : (this.stage.removeEventListener("pointermove", this._onTrackPointerMove, {
|
|
42699
|
+
capture: !0
|
|
42700
|
+
}), this.stage.removeEventListener("pointerup", this._onTrackPointerUp), this.stage.removeEventListener("pointerupoutside", this._onTrackPointerUp));
|
|
42736
42701
|
}, this._onRailPointerDown = e => {
|
|
42737
|
-
|
|
42702
|
+
e.stopPropagation(), this._isChanging = !0;
|
|
42738
42703
|
const {
|
|
42739
42704
|
railWidth: railWidth,
|
|
42740
42705
|
railHeight: railHeight,
|
|
@@ -43055,28 +43020,11 @@
|
|
|
43055
43020
|
slidable: slidable,
|
|
43056
43021
|
range: range
|
|
43057
43022
|
} = this.attribute;
|
|
43058
|
-
slidable && (this._startHandler && this._startHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._startHandlerText && this._startHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandler && this._endHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandlerText && this._endHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), isObject$2(range) && range.draggableTrack && this._track.addEventListener("pointerdown", this._onTrackPointerdown), this._railContainer.addEventListener("pointerdown", this._onRailPointerDown)
|
|
43059
|
-
passive: !1
|
|
43060
|
-
}));
|
|
43023
|
+
slidable && (this._startHandler && this._startHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._startHandlerText && this._startHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandler && this._endHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandlerText && this._endHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), isObject$2(range) && range.draggableTrack && this._track.addEventListener("pointerdown", this._onTrackPointerdown), this._railContainer.addEventListener("pointerdown", this._onRailPointerDown));
|
|
43061
43024
|
}
|
|
43062
43025
|
_bindTooltipEvents() {
|
|
43063
43026
|
this.attribute.disableTriggerEvent || (this._mainContainer.addEventListener("pointerenter", this._onTooltipShow), this._mainContainer.addEventListener("pointermove", this._onTooltipUpdate), this._mainContainer.addEventListener("pointerleave", this._onTooltipHide));
|
|
43064
43027
|
}
|
|
43065
|
-
_clearAllDragEvents() {
|
|
43066
|
-
const triggers = getEndTriggersOfDrag(),
|
|
43067
|
-
obj = "browser" === vglobal.env ? vglobal : this.stage;
|
|
43068
|
-
obj.removeEventListener("pointermove", this._onHandlerPointerMove, {
|
|
43069
|
-
capture: !0,
|
|
43070
|
-
passive: !1
|
|
43071
|
-
}), triggers.forEach(trigger => {
|
|
43072
|
-
obj.removeEventListener(trigger, this._onHandlerPointerUp);
|
|
43073
|
-
}), obj.removeEventListener("pointermove", this._onTrackPointerMove, {
|
|
43074
|
-
capture: !0,
|
|
43075
|
-
passive: !1
|
|
43076
|
-
}), triggers.forEach(trigger => {
|
|
43077
|
-
obj.removeEventListener(trigger, this._onTrackPointerUp);
|
|
43078
|
-
});
|
|
43079
|
-
}
|
|
43080
43028
|
_updateTrack() {
|
|
43081
43029
|
const {
|
|
43082
43030
|
inverse: inverse,
|
|
@@ -43175,11 +43123,6 @@
|
|
|
43175
43123
|
endHandler: endHandler
|
|
43176
43124
|
};
|
|
43177
43125
|
}
|
|
43178
|
-
release(all) {
|
|
43179
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
|
|
43180
|
-
passive: !1
|
|
43181
|
-
}), this._clearAllDragEvents();
|
|
43182
|
-
}
|
|
43183
43126
|
}
|
|
43184
43127
|
Slider.defaultAttributes = {
|
|
43185
43128
|
slidable: !0,
|
|
@@ -44461,7 +44404,7 @@
|
|
|
44461
44404
|
const DEFAULT_BRUSH_ATTRIBUTES = {
|
|
44462
44405
|
trigger: "pointerdown",
|
|
44463
44406
|
updateTrigger: "pointermove",
|
|
44464
|
-
endTrigger:
|
|
44407
|
+
endTrigger: "pointerup",
|
|
44465
44408
|
resetTrigger: "pointerupoutside",
|
|
44466
44409
|
hasMask: !0,
|
|
44467
44410
|
brushMode: "single",
|
|
@@ -44499,22 +44442,41 @@
|
|
|
44499
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 => {
|
|
44500
44443
|
var _a;
|
|
44501
44444
|
if (this._outOfInteractiveRange(e)) return void (this._isDownBeforeUpOutside = !0);
|
|
44502
|
-
|
|
44445
|
+
e.stopPropagation();
|
|
44503
44446
|
const brushMoved = null === (_a = this.attribute.brushMoved) || void 0 === _a || _a;
|
|
44504
44447
|
this._activeMoveState = brushMoved && this._isPosInBrushMask(e), this._activeDrawState = !this._activeMoveState, this._activeDrawState && this._initDraw(e), this._activeMoveState && this._initMove(e);
|
|
44505
44448
|
}, this._onBrushing = e => {
|
|
44506
44449
|
this._outOfInteractiveRange(e) || ((this._activeDrawState || this._activeMoveState) && e.stopPropagation(), this._activeDrawState && this._drawing(e), this._activeMoveState && this._moving(e));
|
|
44507
44450
|
}, this._onBrushingWithDelay = 0 === this.attribute.delayTime ? this._onBrushing : delayMap$1[this.attribute.delayType](this._onBrushing, this.attribute.delayTime), this._onBrushEnd = e => {
|
|
44508
44451
|
var _a;
|
|
44509
|
-
if (this._isDownBeforeUpOutside) return this._isEmptyMask() || (this._clearMask(), this._dispatchBrushEvent(IOperateType.brushClear, e)), void (this._isDownBeforeUpOutside = !1);
|
|
44510
44452
|
if (!this._activeDrawState && !this._activeMoveState) return;
|
|
44511
44453
|
e.preventDefault();
|
|
44512
44454
|
const {
|
|
44513
44455
|
removeOnClick = !0
|
|
44514
44456
|
} = this.attribute;
|
|
44515
|
-
this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick ? (null === (_a = this._operatingMask) || void 0 === _a ? void 0 : _a._AABBBounds.empty())
|
|
44457
|
+
this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick ? ((null === (_a = this._operatingMask) || void 0 === _a ? void 0 : _a._AABBBounds.empty()) && this._dispatchEvent(IOperateType.brushClear, {
|
|
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);
|
|
44516
44470
|
}, this._onBrushClear = e => {
|
|
44517
|
-
e.preventDefault()
|
|
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);
|
|
44518
44480
|
};
|
|
44519
44481
|
}
|
|
44520
44482
|
_bindBrushEvents() {
|
|
@@ -44525,14 +44487,35 @@
|
|
|
44525
44487
|
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
44526
44488
|
resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
|
|
44527
44489
|
} = this.attribute;
|
|
44528
|
-
array(trigger).forEach(t =>
|
|
44490
|
+
array(trigger).forEach(t => vglobal.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));
|
|
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;
|
|
44529
44508
|
}
|
|
44530
44509
|
_initDraw(e) {
|
|
44531
44510
|
const {
|
|
44532
44511
|
brushMode: brushMode
|
|
44533
44512
|
} = this.attribute,
|
|
44534
44513
|
pos = this.eventPosToStagePos(e);
|
|
44535
|
-
this._cacheDrawPoints = [pos], this._isDrawedBeforeEnd = !1, "single" === brushMode && this.
|
|
44514
|
+
this._cacheDrawPoints = [pos], this._isDrawedBeforeEnd = !1, "single" === brushMode && (this._brushMaskAABBBoundsDict = {}, this._container.incrementalClearChild()), this._addBrushMask(), this._dispatchEvent(IOperateType.drawStart, {
|
|
44515
|
+
operateMask: this._operatingMask,
|
|
44516
|
+
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44517
|
+
event: e
|
|
44518
|
+
});
|
|
44536
44519
|
}
|
|
44537
44520
|
_initMove(e) {
|
|
44538
44521
|
var _a, _b;
|
|
@@ -44556,7 +44539,11 @@
|
|
|
44556
44539
|
maxMoveStepX = maxX - x2,
|
|
44557
44540
|
minMoveStepY = minY - y1,
|
|
44558
44541
|
maxMoveStepY = maxY - y2;
|
|
44559
|
-
this._operatingMaskMoveRangeX = [minMoveStepX, maxMoveStepX], this._operatingMaskMoveRangeY = [minMoveStepY, maxMoveStepY], this._operatingMask.setAttribute("pickable", !0), this.
|
|
44542
|
+
this._operatingMaskMoveRangeX = [minMoveStepX, maxMoveStepX], this._operatingMaskMoveRangeY = [minMoveStepY, maxMoveStepY], this._operatingMask.setAttribute("pickable", !0), this._dispatchEvent(IOperateType.moveStart, {
|
|
44543
|
+
operateMask: this._operatingMask,
|
|
44544
|
+
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44545
|
+
event: e
|
|
44546
|
+
});
|
|
44560
44547
|
}
|
|
44561
44548
|
_drawing(e) {
|
|
44562
44549
|
var _a, _b;
|
|
@@ -44579,7 +44566,11 @@
|
|
|
44579
44566
|
y1 = 0,
|
|
44580
44567
|
y2 = 0
|
|
44581
44568
|
} = null === (_b = this._operatingMask) || void 0 === _b ? void 0 : _b._AABBBounds;
|
|
44582
|
-
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
|
|
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._dispatchEvent(IOperateType.drawing, {
|
|
44570
|
+
operateMask: this._operatingMask,
|
|
44571
|
+
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44572
|
+
event: e
|
|
44573
|
+
}));
|
|
44583
44574
|
}
|
|
44584
44575
|
_moving(e) {
|
|
44585
44576
|
const startPos = this._cacheMovePoint,
|
|
@@ -44592,21 +44583,11 @@
|
|
|
44592
44583
|
this._operatingMask.setAttributes({
|
|
44593
44584
|
dx: moveX,
|
|
44594
44585
|
dy: moveY
|
|
44595
|
-
}), this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this.
|
|
44596
|
-
|
|
44597
|
-
|
|
44598
|
-
|
|
44599
|
-
|
|
44600
|
-
this._container = group;
|
|
44601
|
-
}
|
|
44602
|
-
releaseBrushEvents() {
|
|
44603
|
-
const {
|
|
44604
|
-
trigger = DEFAULT_BRUSH_ATTRIBUTES.trigger,
|
|
44605
|
-
updateTrigger = DEFAULT_BRUSH_ATTRIBUTES.updateTrigger,
|
|
44606
|
-
endTrigger = DEFAULT_BRUSH_ATTRIBUTES.endTrigger,
|
|
44607
|
-
resetTrigger = DEFAULT_BRUSH_ATTRIBUTES.resetTrigger
|
|
44608
|
-
} = this.attribute;
|
|
44609
|
-
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));
|
|
44586
|
+
}), this._brushMaskAABBBoundsDict[this._operatingMask.name] = this._operatingMask.AABBBounds, this._dispatchEvent(IOperateType.moving, {
|
|
44587
|
+
operateMask: this._operatingMask,
|
|
44588
|
+
operatedMaskAABBBounds: this._brushMaskAABBBoundsDict,
|
|
44589
|
+
event: e
|
|
44590
|
+
});
|
|
44610
44591
|
}
|
|
44611
44592
|
_computeMaskPoints() {
|
|
44612
44593
|
const {
|
|
@@ -44664,23 +44645,6 @@
|
|
|
44664
44645
|
}));
|
|
44665
44646
|
brushMask.name = `brush-${Date.now()}`, this._operatingMask = brushMask, this._container.add(brushMask), this._brushMaskAABBBoundsDict[brushMask.name] = brushMask.AABBBounds;
|
|
44666
44647
|
}
|
|
44667
|
-
_isPosInBrushMask(e) {
|
|
44668
|
-
const pos = this.eventPosToStagePos(e),
|
|
44669
|
-
brushMasks = this._container.getChildren();
|
|
44670
|
-
for (let i = 0; i < brushMasks.length; i++) {
|
|
44671
|
-
const {
|
|
44672
|
-
points = [],
|
|
44673
|
-
dx = 0,
|
|
44674
|
-
dy = 0
|
|
44675
|
-
} = brushMasks[i].attribute,
|
|
44676
|
-
pointsConsiderOffset = points.map(point => ({
|
|
44677
|
-
x: point.x + dx,
|
|
44678
|
-
y: point.y + dy
|
|
44679
|
-
}));
|
|
44680
|
-
if (polygonContainPoint(pointsConsiderOffset, pos.x, pos.y)) return this._operatingMask = brushMasks[i], !0;
|
|
44681
|
-
}
|
|
44682
|
-
return !1;
|
|
44683
|
-
}
|
|
44684
44648
|
_outOfInteractiveRange(e) {
|
|
44685
44649
|
const {
|
|
44686
44650
|
interactiveRange: interactiveRange
|
|
@@ -44697,18 +44661,21 @@
|
|
|
44697
44661
|
eventPosToStagePos(e) {
|
|
44698
44662
|
return this.stage.eventPointTransform(e);
|
|
44699
44663
|
}
|
|
44700
|
-
|
|
44701
|
-
this.
|
|
44702
|
-
|
|
44703
|
-
|
|
44704
|
-
event: e
|
|
44705
|
-
});
|
|
44706
|
-
}
|
|
44707
|
-
_clearMask() {
|
|
44708
|
-
this._brushMaskAABBBoundsDict = {}, this._container.incrementalClearChild(), this._operatingMask = null;
|
|
44664
|
+
render() {
|
|
44665
|
+
this._bindBrushEvents();
|
|
44666
|
+
const group = this.createOrUpdateChild("brush-container", {}, "group");
|
|
44667
|
+
this._container = group;
|
|
44709
44668
|
}
|
|
44710
|
-
|
|
44711
|
-
|
|
44669
|
+
releaseBrushEvents() {
|
|
44670
|
+
const {
|
|
44671
|
+
delayType = "throttle",
|
|
44672
|
+
delayTime = 0,
|
|
44673
|
+
trigger = DEFAULT_BRUSH_ATTRIBUTES.trigger,
|
|
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));
|
|
44712
44679
|
}
|
|
44713
44680
|
};
|
|
44714
44681
|
Brush$1.defaultAttributes = DEFAULT_BRUSH_ATTRIBUTES;
|
|
@@ -59594,6 +59561,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59594
59561
|
}
|
|
59595
59562
|
beforeRelease() {
|
|
59596
59563
|
}
|
|
59564
|
+
clear() {
|
|
59565
|
+
this.getMarks().forEach(m => { var _a; return (_a = m.clear) === null || _a === void 0 ? void 0 : _a.call(m); });
|
|
59566
|
+
}
|
|
59597
59567
|
release() {
|
|
59598
59568
|
var _a;
|
|
59599
59569
|
this._releaseEvent();
|
|
@@ -61746,6 +61716,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61746
61716
|
}
|
|
61747
61717
|
return undefined;
|
|
61748
61718
|
}
|
|
61719
|
+
clear() {
|
|
61720
|
+
this._event.off(HOOK_EVENT.AFTER_DO_RENDER);
|
|
61721
|
+
}
|
|
61749
61722
|
release() {
|
|
61750
61723
|
super.release();
|
|
61751
61724
|
this.state.release();
|
|
@@ -63695,7 +63668,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63695
63668
|
};
|
|
63696
63669
|
registerVChartCore();
|
|
63697
63670
|
|
|
63698
|
-
const version = "1.13.9-alpha.
|
|
63671
|
+
const version = "1.13.9-alpha.11";
|
|
63699
63672
|
|
|
63700
63673
|
const addVChartProperty = (data, op) => {
|
|
63701
63674
|
const context = op.beforeCall();
|
|
@@ -67842,6 +67815,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67842
67815
|
if (spec.label.state) {
|
|
67843
67816
|
axisAttrs.label.state = transformAxisLabelStateStyle(spec.label.state);
|
|
67844
67817
|
}
|
|
67818
|
+
if (isFunction$1(spec.label.dataFilter)) {
|
|
67819
|
+
axisAttrs.label.dataFilter = (data, layer) => spec.label.dataFilter(data, layer, { vchart: this._option.globalInstance });
|
|
67820
|
+
}
|
|
67845
67821
|
}
|
|
67846
67822
|
else {
|
|
67847
67823
|
axisAttrs.label = {
|
|
@@ -67854,7 +67830,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67854
67830
|
length: spec.tick.tickSize,
|
|
67855
67831
|
inside: spec.tick.inside,
|
|
67856
67832
|
alignWithLabel: spec.tick.alignWithLabel,
|
|
67857
|
-
dataFilter: spec.tick.dataFilter
|
|
67833
|
+
dataFilter: isFunction$1(spec.tick.dataFilter)
|
|
67834
|
+
? (data) => spec.tick.dataFilter(data, { vchart: this._option.globalInstance })
|
|
67835
|
+
: undefined
|
|
67858
67836
|
};
|
|
67859
67837
|
if (spec.tick.style) {
|
|
67860
67838
|
axisAttrs.tick.style = isFunction$1(spec.tick.style)
|
|
@@ -71107,58 +71085,83 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
71107
71085
|
}
|
|
71108
71086
|
});
|
|
71109
71087
|
}
|
|
71110
|
-
|
|
71088
|
+
filterGraphicsByDatum(datum, opt = {}) {
|
|
71089
|
+
var _a;
|
|
71111
71090
|
datum = datum ? array(datum) : null;
|
|
71112
71091
|
const keys = !datum ? null : Object.keys(datum[0]);
|
|
71113
|
-
|
|
71114
|
-
|
|
71115
|
-
|
|
71116
|
-
|
|
71117
|
-
|
|
71118
|
-
|
|
71119
|
-
|
|
71120
|
-
|
|
71121
|
-
|
|
71122
|
-
}
|
|
71123
|
-
if (!filter || (isFunction$1(filter) && filter(s, m))) {
|
|
71124
|
-
const isCollect = m.getProduct().isCollectionMark();
|
|
71125
|
-
const elements = m.getProduct().elements;
|
|
71126
|
-
let pickElements = [];
|
|
71127
|
-
if (isCollect) {
|
|
71128
|
-
pickElements = elements.filter(e => {
|
|
71129
|
-
const elDatum = e.getDatum();
|
|
71130
|
-
datum.every((d, index) => keys.every(k => d[k] == elDatum[index][k]));
|
|
71131
|
-
});
|
|
71092
|
+
const allElements = [];
|
|
71093
|
+
const getDatumOfElement = (_a = opt.getDatum) !== null && _a !== void 0 ? _a : ((el) => el.getDatum());
|
|
71094
|
+
this.getRegionsInQuerier(opt.region).forEach(r => {
|
|
71095
|
+
const pickElements = [];
|
|
71096
|
+
datum &&
|
|
71097
|
+
r.getSeries().forEach(s => {
|
|
71098
|
+
s.getMarks().forEach(m => {
|
|
71099
|
+
if (!m.getProduct()) {
|
|
71100
|
+
return;
|
|
71132
71101
|
}
|
|
71133
|
-
|
|
71134
|
-
|
|
71135
|
-
|
|
71136
|
-
|
|
71137
|
-
|
|
71138
|
-
|
|
71139
|
-
|
|
71140
|
-
|
|
71141
|
-
|
|
71142
|
-
|
|
71143
|
-
|
|
71144
|
-
return true;
|
|
71102
|
+
if (!opt.filter || (isFunction$1(opt.filter) && opt.filter(s, m))) {
|
|
71103
|
+
const isCollect = m.getProduct().isCollectionMark();
|
|
71104
|
+
const elements = m.getProduct().elements;
|
|
71105
|
+
if (isCollect) {
|
|
71106
|
+
elements.filter(e => {
|
|
71107
|
+
const elDatum = getDatumOfElement(e, m, s, r);
|
|
71108
|
+
const isPick = elDatum && datum.every((d, index) => keys.every(k => d[k] == elDatum[index][k]));
|
|
71109
|
+
if (isPick) {
|
|
71110
|
+
pickElements.push(e);
|
|
71111
|
+
allElements.push(e);
|
|
71112
|
+
opt.callback && opt.callback(e, m, s, r);
|
|
71145
71113
|
}
|
|
71146
|
-
return false;
|
|
71147
71114
|
});
|
|
71148
71115
|
}
|
|
71149
71116
|
else {
|
|
71150
|
-
|
|
71151
|
-
|
|
71117
|
+
if (datum.length > 1) {
|
|
71118
|
+
const datumTemp = datum.slice();
|
|
71119
|
+
elements.forEach(e => {
|
|
71120
|
+
const elDatum = getDatumOfElement(e, m, s, r);
|
|
71121
|
+
const index = elDatum && datumTemp.findIndex(d => keys.every(k => d[k] == elDatum[k]));
|
|
71122
|
+
if (index >= 0) {
|
|
71123
|
+
datumTemp.splice(index, 1);
|
|
71124
|
+
pickElements.push(e);
|
|
71125
|
+
allElements.push(e);
|
|
71126
|
+
opt.callback && opt.callback(e, m, s, r);
|
|
71127
|
+
}
|
|
71128
|
+
});
|
|
71129
|
+
}
|
|
71130
|
+
else {
|
|
71131
|
+
const el = elements.find(e => {
|
|
71132
|
+
const elDatum = getDatumOfElement(e, m, s, r);
|
|
71133
|
+
return elDatum && keys.every(k => datum[0][k] == elDatum[k]);
|
|
71134
|
+
});
|
|
71135
|
+
if (el) {
|
|
71136
|
+
pickElements.push(el);
|
|
71137
|
+
allElements.push(el);
|
|
71138
|
+
opt.callback && opt.callback(el, m, s, r);
|
|
71139
|
+
}
|
|
71140
|
+
}
|
|
71152
71141
|
}
|
|
71153
71142
|
}
|
|
71154
|
-
|
|
71155
|
-
r.interaction.startInteraction(stateKey, element);
|
|
71156
|
-
});
|
|
71157
|
-
}
|
|
71143
|
+
});
|
|
71158
71144
|
});
|
|
71159
|
-
|
|
71160
|
-
|
|
71161
|
-
|
|
71145
|
+
opt.regionCallback && opt.regionCallback(pickElements, r);
|
|
71146
|
+
});
|
|
71147
|
+
return allElements;
|
|
71148
|
+
}
|
|
71149
|
+
_setStateInDatum(stateKey, checkReverse, datum, filter, region) {
|
|
71150
|
+
this.filterGraphicsByDatum(datum, {
|
|
71151
|
+
filter,
|
|
71152
|
+
region,
|
|
71153
|
+
regionCallback: (elements, r) => {
|
|
71154
|
+
if (!datum) {
|
|
71155
|
+
r.interaction.clearEventElement(stateKey, true);
|
|
71156
|
+
}
|
|
71157
|
+
else if (elements.length) {
|
|
71158
|
+
elements.forEach(e => {
|
|
71159
|
+
r.interaction.startInteraction(stateKey, e);
|
|
71160
|
+
});
|
|
71161
|
+
if (checkReverse) {
|
|
71162
|
+
r.interaction.reverseEventElement(stateKey);
|
|
71163
|
+
}
|
|
71164
|
+
}
|
|
71162
71165
|
}
|
|
71163
71166
|
});
|
|
71164
71167
|
}
|
|
@@ -72758,9 +72761,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72758
72761
|
else if (domainMin > 0) {
|
|
72759
72762
|
return scale.scale(domainMin);
|
|
72760
72763
|
}
|
|
72761
|
-
|
|
72762
|
-
return scale.scale(0);
|
|
72763
|
-
}
|
|
72764
|
+
return scale.scale(0);
|
|
72764
72765
|
}
|
|
72765
72766
|
}
|
|
72766
72767
|
};
|
|
@@ -76968,7 +76969,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76968
76969
|
return data;
|
|
76969
76970
|
}
|
|
76970
76971
|
if (!showAllZero && showEmptyCircle && isDataEmpty(data, angleField, supportNegative)) {
|
|
76971
|
-
return
|
|
76972
|
+
return [];
|
|
76972
76973
|
}
|
|
76973
76974
|
const appendArcInfo = (data, startAngle, angle) => {
|
|
76974
76975
|
data[asStartAngle] = startAngle;
|
|
@@ -77457,6 +77458,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77457
77458
|
}, {
|
|
77458
77459
|
dataView: false
|
|
77459
77460
|
});
|
|
77461
|
+
this._emptyArcMark.setDepend(this._pieMark);
|
|
77460
77462
|
}
|
|
77461
77463
|
}
|
|
77462
77464
|
startAngleScale(datum) {
|
|
@@ -77492,8 +77494,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77492
77494
|
const emptyPieMark = this._emptyArcMark;
|
|
77493
77495
|
if (emptyPieMark) {
|
|
77494
77496
|
this.setMarkStyle(emptyPieMark, Object.assign(Object.assign({}, initialStyle), { visible: () => {
|
|
77495
|
-
const
|
|
77496
|
-
return
|
|
77497
|
+
const data = this.getViewData().latestData;
|
|
77498
|
+
return !data || !data.length;
|
|
77497
77499
|
} }), 'normal', AttributeLevel.Series);
|
|
77498
77500
|
}
|
|
77499
77501
|
}
|
|
@@ -89932,21 +89934,21 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89932
89934
|
return isValid$1(attr) && attr !== 'none' && !((_a = attr.includes) === null || _a === void 0 ? void 0 : _a.call(attr, 'url'));
|
|
89933
89935
|
}
|
|
89934
89936
|
const getLineWidth = (attributes) => {
|
|
89935
|
-
const strokeWidth = parseFloat(attributes
|
|
89937
|
+
const strokeWidth = parseFloat(attributes.strokeWidth);
|
|
89936
89938
|
if (!isNaN(strokeWidth)) {
|
|
89937
89939
|
return strokeWidth;
|
|
89938
89940
|
}
|
|
89939
|
-
const stroke = attributes
|
|
89941
|
+
const stroke = attributes.stroke;
|
|
89940
89942
|
return stroke && isValidStrokeOrFill(stroke) ? 1 : 0;
|
|
89941
89943
|
};
|
|
89942
89944
|
const getFill = (attributes, defaultFill) => {
|
|
89943
89945
|
var _a;
|
|
89944
|
-
const fill = (_a = attributes
|
|
89946
|
+
const fill = (_a = attributes.fill) !== null && _a !== void 0 ? _a : defaultFill;
|
|
89945
89947
|
return fill && isValidStrokeOrFill(fill) ? fill : undefined;
|
|
89946
89948
|
};
|
|
89947
89949
|
const getStroke = (attributes, defaultStroke) => {
|
|
89948
89950
|
var _a;
|
|
89949
|
-
const stroke = (_a = attributes
|
|
89951
|
+
const stroke = (_a = attributes.stroke) !== null && _a !== void 0 ? _a : defaultStroke;
|
|
89950
89952
|
return stroke && isValidStrokeOrFill(stroke) ? stroke : false;
|
|
89951
89953
|
};
|
|
89952
89954
|
const commonAttributes = (attributes) => {
|
|
@@ -89955,7 +89957,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89955
89957
|
const graphicAttributeTransform = {
|
|
89956
89958
|
group: (attributes) => {
|
|
89957
89959
|
const common = commonAttributes(attributes);
|
|
89958
|
-
return Object.assign(Object.assign({}, common), { visibleAll: common
|
|
89960
|
+
return Object.assign(Object.assign({}, common), { visibleAll: common.visible !== false });
|
|
89959
89961
|
},
|
|
89960
89962
|
rule: (attributes) => {
|
|
89961
89963
|
return Object.assign(Object.assign({}, commonAttributes(attributes)), { x: parseFloat(attributes.x1), y: parseFloat(attributes.y1), x1: parseFloat(attributes.x2), y1: parseFloat(attributes.y2) });
|
|
@@ -90006,7 +90008,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90006
90008
|
el._uniqueId = `${el.id}-${index}`;
|
|
90007
90009
|
el.data = undefined;
|
|
90008
90010
|
const { graphicType: type, transform } = el;
|
|
90009
|
-
|
|
90011
|
+
const finalAttributes = {
|
|
90010
90012
|
visible: el.attributes.visibility !== 'hidden' && el.attributes.visibility !== 'collapse'
|
|
90011
90013
|
};
|
|
90012
90014
|
if (el.graphicType === 'text') {
|
|
@@ -90041,7 +90043,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90041
90043
|
return result;
|
|
90042
90044
|
});
|
|
90043
90045
|
if (children && children.length) {
|
|
90044
|
-
|
|
90046
|
+
const startX = (_b = (_a = texts[i]._textGroupStyle) === null || _a === void 0 ? void 0 : _a.x) !== null && _b !== void 0 ? _b : 0;
|
|
90045
90047
|
let curX = startX;
|
|
90046
90048
|
for (let j = 0; j < children.length; j++) {
|
|
90047
90049
|
const currentChild = children[j];
|
|
@@ -92017,49 +92019,40 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
92017
92019
|
}
|
|
92018
92020
|
_setStateInDatum(stateKey, checkReverse, datum, filter, region) {
|
|
92019
92021
|
const activeDatum = isArray$1(datum) ? datum[0] : datum;
|
|
92020
|
-
const
|
|
92021
|
-
|
|
92022
|
-
|
|
92023
|
-
|
|
92024
|
-
|
|
92025
|
-
|
|
92026
|
-
|
|
92027
|
-
|
|
92028
|
-
|
|
92029
|
-
|
|
92030
|
-
|
|
92031
|
-
|
|
92032
|
-
|
|
92033
|
-
|
|
92034
|
-
|
|
92035
|
-
|
|
92036
|
-
|
|
92037
|
-
|
|
92038
|
-
}
|
|
92039
|
-
|
|
92040
|
-
|
|
92041
|
-
|
|
92042
|
-
|
|
92043
|
-
|
|
92044
|
-
|
|
92045
|
-
|
|
92046
|
-
|
|
92047
|
-
|
|
92048
|
-
|
|
92049
|
-
|
|
92050
|
-
|
|
92051
|
-
r.interaction.
|
|
92052
|
-
if (mark.id().includes('node') || mark.id().includes('link')) {
|
|
92053
|
-
activeNodeOrLink = pickElement;
|
|
92054
|
-
}
|
|
92022
|
+
const markFilter = (series, mark) => {
|
|
92023
|
+
return mark.type !== 'text' && mark.getProduct() && (!filter || filter(series, mark));
|
|
92024
|
+
};
|
|
92025
|
+
this.filterGraphicsByDatum(activeDatum, {
|
|
92026
|
+
filter: markFilter,
|
|
92027
|
+
region,
|
|
92028
|
+
getDatum: e => {
|
|
92029
|
+
var _a;
|
|
92030
|
+
let d = (_a = e.getDatum()) === null || _a === void 0 ? void 0 : _a.datum;
|
|
92031
|
+
if (isArray$1(d)) {
|
|
92032
|
+
d = d[0];
|
|
92033
|
+
}
|
|
92034
|
+
return d;
|
|
92035
|
+
},
|
|
92036
|
+
callback: (element, mark, s, r) => {
|
|
92037
|
+
var _a, _b, _c;
|
|
92038
|
+
const id = (_a = mark.getProduct()) === null || _a === void 0 ? void 0 : _a.id();
|
|
92039
|
+
if (id && (id.includes('node') || id.includes('link'))) {
|
|
92040
|
+
(_c = (_b = s)._handleEmphasisElement) === null || _c === void 0 ? void 0 : _c.call(_b, { item: element });
|
|
92041
|
+
}
|
|
92042
|
+
},
|
|
92043
|
+
regionCallback: (elements, r) => {
|
|
92044
|
+
if (!activeDatum) {
|
|
92045
|
+
r.interaction.clearEventElement(stateKey, true);
|
|
92046
|
+
return;
|
|
92047
|
+
}
|
|
92048
|
+
else if (elements.length) {
|
|
92049
|
+
elements.forEach(e => {
|
|
92050
|
+
r.interaction.startInteraction(stateKey, e);
|
|
92051
|
+
});
|
|
92052
|
+
if (checkReverse) {
|
|
92053
|
+
r.interaction.reverseEventElement(stateKey);
|
|
92055
92054
|
}
|
|
92056
|
-
});
|
|
92057
|
-
if (activeNodeOrLink) {
|
|
92058
|
-
(_b = (_a = s)._handleEmphasisElement) === null || _b === void 0 ? void 0 : _b.call(_a, { item: activeNodeOrLink });
|
|
92059
92055
|
}
|
|
92060
|
-
});
|
|
92061
|
-
if (checkReverse && hasPick) {
|
|
92062
|
-
r.interaction.reverseEventElement(stateKey);
|
|
92063
92056
|
}
|
|
92064
92057
|
});
|
|
92065
92058
|
}
|
|
@@ -97514,17 +97507,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97514
97507
|
}
|
|
97515
97508
|
return offset;
|
|
97516
97509
|
}
|
|
97510
|
+
function getProcessInfo(spec) {
|
|
97511
|
+
return {
|
|
97512
|
+
isXProcess: isValid$1(spec.x),
|
|
97513
|
+
isYProcess: isValid$1(spec.y),
|
|
97514
|
+
isX1Process: isValid$1(spec.x1),
|
|
97515
|
+
isY1Process: isValid$1(spec.y1),
|
|
97516
|
+
isAngleProcess: isValid$1(spec.angle),
|
|
97517
|
+
isRadiusProcess: isValid$1(spec.radius),
|
|
97518
|
+
isAngle1Process: isValid$1(spec.angle1),
|
|
97519
|
+
isRadius1Process: isValid$1(spec.radius1),
|
|
97520
|
+
isCoordinatesProcess: isValid$1(spec.coordinates),
|
|
97521
|
+
isValidProcess: isValid$1(spec.process)
|
|
97522
|
+
};
|
|
97523
|
+
}
|
|
97517
97524
|
function getMarkLineProcessInfo(spec) {
|
|
97518
|
-
const isXProcess
|
|
97519
|
-
const isYProcess = 'y' in spec;
|
|
97520
|
-
const isX1Process = 'x1' in spec;
|
|
97521
|
-
const isY1Process = 'y1' in spec;
|
|
97522
|
-
const isAngleProcess = 'angle' in spec;
|
|
97523
|
-
const isRadiusProcess = 'radius' in spec;
|
|
97524
|
-
const isAngle1Process = 'angle1' in spec;
|
|
97525
|
-
const isRadius1Process = 'radius1' in spec;
|
|
97526
|
-
const isCoordinatesProcess = 'coordinates' in spec;
|
|
97527
|
-
const isValidProcess = 'process' in spec;
|
|
97525
|
+
const { isXProcess, isYProcess, isX1Process, isY1Process, isAngleProcess, isRadiusProcess, isAngle1Process, isRadius1Process, isCoordinatesProcess, isValidProcess } = getProcessInfo(spec);
|
|
97528
97526
|
return {
|
|
97529
97527
|
doXProcess: isXProcess && !isYProcess && !isY1Process,
|
|
97530
97528
|
doXYY1Process: isXProcess && isYProcess && isY1Process,
|
|
@@ -97540,15 +97538,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97540
97538
|
};
|
|
97541
97539
|
}
|
|
97542
97540
|
function getMarkAreaProcessInfo(spec) {
|
|
97543
|
-
const isXProcess
|
|
97544
|
-
const isX1Process = 'x1' in spec;
|
|
97545
|
-
const isYProcess = 'y' in spec;
|
|
97546
|
-
const isY1Process = 'y1' in spec;
|
|
97547
|
-
const isAngleProcess = 'angle' in spec;
|
|
97548
|
-
const isRadiusProcess = 'radius' in spec;
|
|
97549
|
-
const isAngle1Process = 'angle1' in spec;
|
|
97550
|
-
const isRadius1Process = 'radius1' in spec;
|
|
97551
|
-
const isCoordinatesProcess = 'coordinates' in spec;
|
|
97541
|
+
const { isXProcess, isYProcess, isX1Process, isY1Process, isAngleProcess, isRadiusProcess, isAngle1Process, isRadius1Process, isCoordinatesProcess } = getProcessInfo(spec);
|
|
97552
97542
|
return {
|
|
97553
97543
|
doXProcess: isXProcess && isX1Process && !isYProcess && !isY1Process,
|
|
97554
97544
|
doYProcess: isYProcess && isY1Process && !isXProcess && !isX1Process,
|
|
@@ -98382,15 +98372,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
98382
98372
|
type: 'markerAggregation',
|
|
98383
98373
|
options
|
|
98384
98374
|
});
|
|
98385
|
-
if (spec.process &&
|
|
98375
|
+
if (spec.process && isValid$1(spec.process.x)) {
|
|
98386
98376
|
options = [this._processSpecByDims([{ dim: 'x', specValue: spec.process.x }])];
|
|
98387
98377
|
needAggr = true;
|
|
98388
98378
|
}
|
|
98389
|
-
if (spec.process &&
|
|
98379
|
+
if (spec.process && isValid$1(spec.process.y)) {
|
|
98390
98380
|
options = options = [this._processSpecByDims([{ dim: 'y', specValue: spec.process.y }])];
|
|
98391
98381
|
needAggr = true;
|
|
98392
98382
|
}
|
|
98393
|
-
if (spec.process &&
|
|
98383
|
+
if (spec.process && isValid$1(spec.process.xy)) {
|
|
98394
98384
|
const { xField, yField } = relativeSeries.getSpec();
|
|
98395
98385
|
options = {
|
|
98396
98386
|
fieldX: xField,
|
|
@@ -99970,9 +99960,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
99970
99960
|
const spec = this._spec;
|
|
99971
99961
|
const data = this._markerData;
|
|
99972
99962
|
const relativeSeries = this._relativeSeries;
|
|
99973
|
-
const isXYLayout =
|
|
99974
|
-
const isCoordinateLayout =
|
|
99975
|
-
const isPositionLayout =
|
|
99963
|
+
const isXYLayout = isValid$1(spec.x) && isValid$1(spec.y);
|
|
99964
|
+
const isCoordinateLayout = isValid$1(spec.coordinate);
|
|
99965
|
+
const isPositionLayout = isValid$1(spec.position);
|
|
99976
99966
|
const autoRange = (_a = spec === null || spec === void 0 ? void 0 : spec.autoRange) !== null && _a !== void 0 ? _a : false;
|
|
99977
99967
|
let point;
|
|
99978
99968
|
if (isXYLayout) {
|
|
@@ -103833,6 +103823,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103833
103823
|
exports.CanvasTooltipHandler = CanvasTooltipHandler;
|
|
103834
103824
|
exports.CartesianAxis = CartesianAxis;
|
|
103835
103825
|
exports.CartesianBandAxis = CartesianBandAxis;
|
|
103826
|
+
exports.CartesianChartSpecTransformer = CartesianChartSpecTransformer;
|
|
103836
103827
|
exports.CartesianCrossHair = CartesianCrossHair;
|
|
103837
103828
|
exports.CartesianLinearAxis = CartesianLinearAxis;
|
|
103838
103829
|
exports.CartesianLogAxis = CartesianLogAxis;
|