@visactor/vchart 2.0.1-alpha.1 → 2.0.1-alpha.3
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 +111 -52
- package/build/index.js +111 -52
- package/build/index.min.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/index.js +2 -1
- package/cjs/animation/interface.js +1 -2
- package/cjs/component/player/player.js +2 -1
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/tooltip/tooltip.js +2 -1
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/component/util.js +2 -1
- package/cjs/constant/attribute.js +1 -2
- package/cjs/constant/sunburst.js +2 -1
- package/cjs/constant/waterfall.js +1 -2
- 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/core/instance-manager.js +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/util.js +1 -1
- package/cjs/core/vchart.d.ts +1 -0
- package/cjs/core/vchart.js +21 -5
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/initialize.js +1 -1
- package/cjs/data/register.js +1 -1
- package/cjs/mark/base/base-mark.d.ts +0 -2
- package/cjs/mark/base/base-mark.js +8 -6
- package/cjs/mark/base/base-mark.js.map +1 -1
- package/cjs/mark/group.d.ts +3 -2
- package/cjs/mark/group.js +7 -9
- package/cjs/mark/group.js.map +1 -1
- package/cjs/mark/interface/common.d.ts +0 -1
- package/cjs/mark/interface/common.js.map +1 -1
- package/cjs/model/base-model.d.ts +4 -1
- package/cjs/model/base-model.js +6 -0
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +3 -1
- package/cjs/model/interface.js.map +1 -1
- package/cjs/plugin/components/tooltip-handler/utils/style.js +4 -4
- package/cjs/plugin/components/tooltip-handler/utils/style.js.map +1 -1
- package/cjs/region/region.js.map +1 -1
- package/esm/animation/index.js +2 -1
- package/esm/animation/interface.js +1 -2
- package/esm/component/player/player.js +2 -1
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/tooltip/tooltip.js +2 -1
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/component/util.js +2 -1
- package/esm/constant/attribute.js +1 -2
- package/esm/constant/sunburst.js +2 -1
- package/esm/constant/waterfall.js +1 -2
- 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/core/instance-manager.js +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/util.js +1 -1
- package/esm/core/vchart.d.ts +1 -0
- package/esm/core/vchart.js +21 -5
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/initialize.js +1 -1
- package/esm/data/register.js +1 -1
- package/esm/mark/base/base-mark.d.ts +0 -2
- package/esm/mark/base/base-mark.js +8 -6
- package/esm/mark/base/base-mark.js.map +1 -1
- package/esm/mark/group.d.ts +3 -2
- package/esm/mark/group.js +7 -9
- package/esm/mark/group.js.map +1 -1
- package/esm/mark/interface/common.d.ts +0 -1
- package/esm/mark/interface/common.js.map +1 -1
- package/esm/model/base-model.d.ts +4 -1
- package/esm/model/base-model.js +6 -0
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +3 -1
- package/esm/model/interface.js.map +1 -1
- package/esm/plugin/components/tooltip-handler/utils/style.js +5 -4
- package/esm/plugin/components/tooltip-handler/utils/style.js.map +1 -1
- package/esm/region/region.js.map +1 -1
- package/package.json +8 -8
- package/cjs/animation/animate-manager.d.ts +0 -1
- package/cjs/animation/animate-manager.js +0 -2
- package/cjs/animation/animate-manager.js.map +0 -1
- package/esm/animation/animate-manager.d.ts +0 -1
- package/esm/animation/animate-manager.js +0 -2
- package/esm/animation/animate-manager.js.map +0 -1
package/build/index.es.js
CHANGED
|
@@ -14733,7 +14733,7 @@ let Group$1 = class Group extends Graphic {
|
|
|
14733
14733
|
}
|
|
14734
14734
|
removeChild(child) {
|
|
14735
14735
|
const data = super.removeChild(child);
|
|
14736
|
-
return
|
|
14736
|
+
return this.getGraphicService().onRemove(child), child.stage = null, this.addUpdateBoundTag(), data;
|
|
14737
14737
|
}
|
|
14738
14738
|
removeAllChild(deep = !1) {
|
|
14739
14739
|
this.forEachChildren(child => {
|
|
@@ -22115,7 +22115,7 @@ class Stage extends Group$1 {
|
|
|
22115
22115
|
return this._cursor;
|
|
22116
22116
|
}
|
|
22117
22117
|
eventPointTransform(e) {
|
|
22118
|
-
const point = this.global.mapToCanvasPoint(e, this.window
|
|
22118
|
+
const point = this.global.mapToCanvasPoint(e, this.window);
|
|
22119
22119
|
return this.stage.window.pointTransform(point.x, point.y);
|
|
22120
22120
|
}
|
|
22121
22121
|
pauseTriggerEvent() {
|
|
@@ -32118,7 +32118,8 @@ class DefaultTicker extends EventEmitter {
|
|
|
32118
32118
|
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
32119
32119
|
}
|
|
32120
32120
|
checkSkip(delta) {
|
|
32121
|
-
|
|
32121
|
+
var _a, _b, _c;
|
|
32122
|
+
if ("performance" === (null === (_c = null === (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.params) || void 0 === _b ? void 0 : _b.optimize) || void 0 === _c ? void 0 : _c.tickRenderMode)) return !1;
|
|
32122
32123
|
return delta < this.interval + 2 * (Math.random() - .5) * this._jitter;
|
|
32123
32124
|
}
|
|
32124
32125
|
}
|
|
@@ -32638,6 +32639,11 @@ class AnimationStateManager {
|
|
|
32638
32639
|
state.executor.stop();
|
|
32639
32640
|
}), this.stateList = null;
|
|
32640
32641
|
}
|
|
32642
|
+
reApplyState(state) {
|
|
32643
|
+
var _a;
|
|
32644
|
+
const stateInfo = null === (_a = this.stateList) || void 0 === _a ? void 0 : _a.find(stateInfo => stateInfo.state === state);
|
|
32645
|
+
stateInfo && (stateInfo.executor.stop(), stateInfo.executor.execute(stateInfo.animationConfig));
|
|
32646
|
+
}
|
|
32641
32647
|
}
|
|
32642
32648
|
|
|
32643
32649
|
class GraphicStateExtension {
|
|
@@ -32668,12 +32674,19 @@ class GraphicStateExtension {
|
|
|
32668
32674
|
applyUnhighlightState(animationConfig, callback) {
|
|
32669
32675
|
return this._getAnimationStateManager(this).applyUnhighlightState(animationConfig, callback), this;
|
|
32670
32676
|
}
|
|
32671
|
-
stopAnimationState(state, type) {
|
|
32672
|
-
return this._getAnimationStateManager(this).stopState(state, type), this
|
|
32677
|
+
stopAnimationState(state, type, deep = !1) {
|
|
32678
|
+
return this._getAnimationStateManager(this).stopState(state, type), deep && this.isContainer && this.forEachChildren(child => {
|
|
32679
|
+
child.stopAnimationState(state, type, deep);
|
|
32680
|
+
}), this;
|
|
32673
32681
|
}
|
|
32674
32682
|
clearAnimationStates() {
|
|
32675
32683
|
return this._getAnimationStateManager(this).clearState(), this;
|
|
32676
32684
|
}
|
|
32685
|
+
reApplyAnimationState(state, deep = !1) {
|
|
32686
|
+
return this._getAnimationStateManager(this).reApplyState(state), deep && this.isContainer && this.forEachChildren(child => {
|
|
32687
|
+
child.reApplyAnimationState(state, deep);
|
|
32688
|
+
}), this;
|
|
32689
|
+
}
|
|
32677
32690
|
static extend(graphic) {
|
|
32678
32691
|
return new GraphicStateExtension()._getAnimationStateManager(graphic), graphic;
|
|
32679
32692
|
}
|
|
@@ -32725,6 +32738,21 @@ class AnimateExtension {
|
|
|
32725
32738
|
getGraphicAttribute(key, prev = !1) {
|
|
32726
32739
|
return !prev && this.finalAttribute ? this.finalAttribute[key] : this.attribute[key];
|
|
32727
32740
|
}
|
|
32741
|
+
pauseAnimation(deep = !1) {
|
|
32742
|
+
this.animates && this.animates.forEach(animate => animate.pause()), deep && this.isContainer && this.forEachChildren(child => {
|
|
32743
|
+
child.pauseAnimation(deep);
|
|
32744
|
+
});
|
|
32745
|
+
}
|
|
32746
|
+
resumeAnimation(deep = !1) {
|
|
32747
|
+
this.animates && this.animates.forEach(animate => animate.resume()), deep && this.isContainer && this.forEachChildren(child => {
|
|
32748
|
+
child.resumeAnimation(deep);
|
|
32749
|
+
});
|
|
32750
|
+
}
|
|
32751
|
+
stopAnimation(deep = !1) {
|
|
32752
|
+
this.animates && this.animates.forEach(animate => animate.stop()), deep && this.isContainer && this.forEachChildren(child => {
|
|
32753
|
+
child.stopAnimation(deep);
|
|
32754
|
+
});
|
|
32755
|
+
}
|
|
32728
32756
|
}
|
|
32729
32757
|
|
|
32730
32758
|
function registerAnimate$1() {
|
|
@@ -33805,7 +33833,7 @@ class GrowCenterIn extends ACustomAnimate {
|
|
|
33805
33833
|
super(from, to, duration, easing, params);
|
|
33806
33834
|
}
|
|
33807
33835
|
onBind() {
|
|
33808
|
-
var _a, _b;
|
|
33836
|
+
var _a, _b, _c;
|
|
33809
33837
|
super.onBind();
|
|
33810
33838
|
const {
|
|
33811
33839
|
from: from,
|
|
@@ -33814,7 +33842,7 @@ class GrowCenterIn extends ACustomAnimate {
|
|
|
33814
33842
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
33815
33843
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
|
|
33816
33844
|
const finalAttribute = this.target.getFinalAttribute();
|
|
33817
|
-
finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
|
|
33845
|
+
finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
|
|
33818
33846
|
}
|
|
33819
33847
|
onEnd(cb) {
|
|
33820
33848
|
super.onEnd(cb);
|
|
@@ -33912,7 +33940,7 @@ class GrowHeightIn extends ACustomAnimate {
|
|
|
33912
33940
|
super(from, to, duration, easing, params);
|
|
33913
33941
|
}
|
|
33914
33942
|
onBind() {
|
|
33915
|
-
var _a, _b;
|
|
33943
|
+
var _a, _b, _c;
|
|
33916
33944
|
super.onBind();
|
|
33917
33945
|
const {
|
|
33918
33946
|
from: from,
|
|
@@ -33921,7 +33949,7 @@ class GrowHeightIn extends ACustomAnimate {
|
|
|
33921
33949
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
33922
33950
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to;
|
|
33923
33951
|
const finalAttribute = this.target.getFinalAttribute();
|
|
33924
|
-
finalAttribute && this.target.setAttributes(finalAttribute), this.target.setAttributes(fromAttrs);
|
|
33952
|
+
finalAttribute && this.target.setAttributes(finalAttribute), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(fromAttrs);
|
|
33925
33953
|
}
|
|
33926
33954
|
onEnd(cb) {
|
|
33927
33955
|
super.onEnd(cb);
|
|
@@ -35772,16 +35800,15 @@ const moveIn = (graphic, options, animationParameters) => {
|
|
|
35772
35800
|
changedY = 0;
|
|
35773
35801
|
"negative" === orient && (changedX = null !== (_a = layoutRect.width) && void 0 !== _a ? _a : graphic.stage.viewWidth, changedY = null !== (_b = layoutRect.height) && void 0 !== _b ? _b : graphic.stage.viewHeight), changedX += offset, changedY += offset;
|
|
35774
35802
|
const point = isFunction$1(pointOpt) ? pointOpt.call(null, null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, animationParameters) : pointOpt,
|
|
35775
|
-
|
|
35776
|
-
|
|
35777
|
-
|
|
35778
|
-
|
|
35779
|
-
finalAttrsY = excludeChannels.includes("y") ? graphic.attribute.y : finalAttrs.y;
|
|
35803
|
+
finalAttrsX = graphic.getGraphicAttribute("x"),
|
|
35804
|
+
finalAttrsY = graphic.getGraphicAttribute("y"),
|
|
35805
|
+
fromX = excludeChannels.includes("x") ? finalAttrsX : point && isValidNumber$1(point.x) ? point.x : changedX,
|
|
35806
|
+
fromY = excludeChannels.includes("y") ? finalAttrsY : point && isValidNumber$1(point.y) ? point.y : changedY;
|
|
35780
35807
|
switch (direction) {
|
|
35781
35808
|
case "x":
|
|
35782
35809
|
return {
|
|
35783
35810
|
from: {
|
|
35784
|
-
x: fromX
|
|
35811
|
+
x: excludeChannels.includes("x") ? finalAttrsX : fromX
|
|
35785
35812
|
},
|
|
35786
35813
|
to: {
|
|
35787
35814
|
x: finalAttrsX
|
|
@@ -35829,7 +35856,7 @@ const moveOut = (graphic, options, animationParameters) => {
|
|
|
35829
35856
|
case "x":
|
|
35830
35857
|
return {
|
|
35831
35858
|
from: {
|
|
35832
|
-
x: graphic.
|
|
35859
|
+
x: graphic.getGraphicAttribute("x")
|
|
35833
35860
|
},
|
|
35834
35861
|
to: {
|
|
35835
35862
|
x: fromX
|
|
@@ -35838,7 +35865,7 @@ const moveOut = (graphic, options, animationParameters) => {
|
|
|
35838
35865
|
case "y":
|
|
35839
35866
|
return {
|
|
35840
35867
|
from: {
|
|
35841
|
-
y: graphic.
|
|
35868
|
+
y: graphic.getGraphicAttribute("y")
|
|
35842
35869
|
},
|
|
35843
35870
|
to: {
|
|
35844
35871
|
y: fromY
|
|
@@ -35847,8 +35874,8 @@ const moveOut = (graphic, options, animationParameters) => {
|
|
|
35847
35874
|
default:
|
|
35848
35875
|
return {
|
|
35849
35876
|
from: {
|
|
35850
|
-
x: graphic.
|
|
35851
|
-
y: graphic.
|
|
35877
|
+
x: graphic.getGraphicAttribute("x"),
|
|
35878
|
+
y: graphic.getGraphicAttribute("y")
|
|
35852
35879
|
},
|
|
35853
35880
|
to: {
|
|
35854
35881
|
x: fromX,
|
|
@@ -38779,7 +38806,8 @@ class LabelUpdate extends AComponentAnimate {
|
|
|
38779
38806
|
prevText: prevText,
|
|
38780
38807
|
curText: curText,
|
|
38781
38808
|
prevLabelLine: prevLabelLine,
|
|
38782
|
-
curLabelLine: curLabelLine
|
|
38809
|
+
curLabelLine: curLabelLine,
|
|
38810
|
+
increaseEffect = !0
|
|
38783
38811
|
} = this.params,
|
|
38784
38812
|
diff = {};
|
|
38785
38813
|
for (const key in curText.attribute) prevText.attribute[key] !== curText.attribute[key] && (diff[key] = curText.attribute[key]);
|
|
@@ -38789,7 +38817,7 @@ class LabelUpdate extends AComponentAnimate {
|
|
|
38789
38817
|
to: rest,
|
|
38790
38818
|
duration: duration,
|
|
38791
38819
|
easing: easing
|
|
38792
|
-
}), animator.animate(prevText, {
|
|
38820
|
+
}), !1 !== increaseEffect && animator.animate(prevText, {
|
|
38793
38821
|
type: "increaseCount",
|
|
38794
38822
|
to: {
|
|
38795
38823
|
text: curText.attribute.text
|
|
@@ -39483,16 +39511,15 @@ class LabelBase extends AnimateComponent {
|
|
|
39483
39511
|
} = currentLabel;
|
|
39484
39512
|
prevText.applyAnimationState(["update"], [{
|
|
39485
39513
|
name: "update",
|
|
39486
|
-
animation:
|
|
39487
|
-
type: "labelUpdate"
|
|
39488
|
-
|
|
39489
|
-
customParameters: {
|
|
39514
|
+
animation: {
|
|
39515
|
+
type: "labelUpdate",
|
|
39516
|
+
customParameters: Object.assign(Object.assign({}, this._animationConfig.update), {
|
|
39490
39517
|
prevText: prevText,
|
|
39491
39518
|
curText: curText,
|
|
39492
39519
|
prevLabelLine: prevLabelLine,
|
|
39493
39520
|
curLabelLine: curLabelLine
|
|
39494
|
-
}
|
|
39495
|
-
}
|
|
39521
|
+
})
|
|
39522
|
+
}
|
|
39496
39523
|
}]);
|
|
39497
39524
|
}
|
|
39498
39525
|
_syncStateWithRelatedGraphic(relatedGraphic) {
|
|
@@ -51224,6 +51251,12 @@ class BaseModel extends CompilableBase {
|
|
|
51224
51251
|
}
|
|
51225
51252
|
return index;
|
|
51226
51253
|
}
|
|
51254
|
+
updateAnimateStateCallback(callback) {
|
|
51255
|
+
this._aniamtionStateCallback = callback;
|
|
51256
|
+
}
|
|
51257
|
+
getAnimationStateCallback() {
|
|
51258
|
+
return this._aniamtionStateCallback;
|
|
51259
|
+
}
|
|
51227
51260
|
}
|
|
51228
51261
|
|
|
51229
51262
|
class LayoutItem {
|
|
@@ -53897,7 +53930,7 @@ class BaseMark extends GrammarItem {
|
|
|
53897
53930
|
config = config.length === 1 ? config[0] : config;
|
|
53898
53931
|
}
|
|
53899
53932
|
if (Array.isArray(config)) {
|
|
53900
|
-
|
|
53933
|
+
return config.map((item, index) => {
|
|
53901
53934
|
var _a;
|
|
53902
53935
|
return (Object.assign(Object.assign({}, item), { priority: (_a = item.priority) !== null && _a !== void 0 ? _a : Infinity }));
|
|
53903
53936
|
});
|
|
@@ -53988,7 +54021,20 @@ class BaseMark extends GrammarItem {
|
|
|
53988
54021
|
}
|
|
53989
54022
|
}
|
|
53990
54023
|
_setAnimationState(g) {
|
|
53991
|
-
|
|
54024
|
+
var _a, _b, _c;
|
|
54025
|
+
const callback = (this.type === "component"
|
|
54026
|
+
? this.model.getAnimationStateCallback()
|
|
54027
|
+
: (_c = (_b = (_a = this.model).getRegion) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.getAnimationStateCallback()) ||
|
|
54028
|
+
((g) => {
|
|
54029
|
+
var _a;
|
|
54030
|
+
const diffState = (_a = g.context) === null || _a === void 0 ? void 0 : _a.diffState;
|
|
54031
|
+
return diffState === AnimationStateEnum.exit
|
|
54032
|
+
? AnimationStateEnum.exit
|
|
54033
|
+
: diffState === AnimationStateEnum.update
|
|
54034
|
+
? AnimationStateEnum.update
|
|
54035
|
+
: AnimationStateEnum.appear;
|
|
54036
|
+
});
|
|
54037
|
+
const customizedState = callback(g);
|
|
53992
54038
|
g.context.animationState = customizedState !== null && customizedState !== void 0 ? customizedState : g.context.diffState;
|
|
53993
54039
|
if (g.context.animationState === DiffState.exit) {
|
|
53994
54040
|
g.context.reusing = true;
|
|
@@ -54491,9 +54537,6 @@ class BaseMark extends GrammarItem {
|
|
|
54491
54537
|
this._runProgressiveStep();
|
|
54492
54538
|
}
|
|
54493
54539
|
}
|
|
54494
|
-
updateAnimationState(callback) {
|
|
54495
|
-
this._aniamtionStateCallback = callback;
|
|
54496
|
-
}
|
|
54497
54540
|
hasAnimationByState(state) {
|
|
54498
54541
|
if (!state || !this._animationConfig || !this._animationConfig[state]) {
|
|
54499
54542
|
return false;
|
|
@@ -54541,6 +54584,7 @@ class GroupMark extends BaseMark {
|
|
|
54541
54584
|
super(...arguments);
|
|
54542
54585
|
this.type = GroupMark.type;
|
|
54543
54586
|
this._marks = [];
|
|
54587
|
+
this._diffState = DiffState.enter;
|
|
54544
54588
|
}
|
|
54545
54589
|
getMarks() {
|
|
54546
54590
|
return this._marks;
|
|
@@ -54598,13 +54642,12 @@ class GroupMark extends BaseMark {
|
|
|
54598
54642
|
return [this._product];
|
|
54599
54643
|
}
|
|
54600
54644
|
renderInner() {
|
|
54601
|
-
var _a
|
|
54645
|
+
var _a;
|
|
54602
54646
|
if (!this._product) {
|
|
54603
54647
|
return;
|
|
54604
54648
|
}
|
|
54605
54649
|
const style = (_a = this._simpleStyle) !== null && _a !== void 0 ? _a : this.getAttributesOfState({});
|
|
54606
|
-
|
|
54607
|
-
this._product.context = Object.assign(Object.assign(Object.assign({}, this._product.context), this._getCommonContext()), { diffState: prevState ? DiffState.update : DiffState.enter });
|
|
54650
|
+
this._product.context = Object.assign(Object.assign(Object.assign({}, this._product.context), this._getCommonContext()), { diffState: this._diffState });
|
|
54608
54651
|
this._setAnimationState(this._product);
|
|
54609
54652
|
const newAttrs = this._getAttrsFromConfig(style);
|
|
54610
54653
|
if (this._product.context.diffState === DiffState.update) {
|
|
@@ -54623,6 +54666,9 @@ class GroupMark extends BaseMark {
|
|
|
54623
54666
|
}
|
|
54624
54667
|
this.needClear = true;
|
|
54625
54668
|
}
|
|
54669
|
+
clearExitGraphics() {
|
|
54670
|
+
this._diffState = DiffState.update;
|
|
54671
|
+
}
|
|
54626
54672
|
render() {
|
|
54627
54673
|
if (this._isCommited) {
|
|
54628
54674
|
log(`render mark: ${this.getProductId()}, type is ${this.type}`);
|
|
@@ -54633,12 +54679,6 @@ class GroupMark extends BaseMark {
|
|
|
54633
54679
|
mark.render();
|
|
54634
54680
|
});
|
|
54635
54681
|
}
|
|
54636
|
-
updateAnimationState(callback) {
|
|
54637
|
-
super.updateAnimationState(callback);
|
|
54638
|
-
this.getMarks().forEach(mark => {
|
|
54639
|
-
mark.updateAnimationState(callback);
|
|
54640
|
-
});
|
|
54641
|
-
}
|
|
54642
54682
|
release() {
|
|
54643
54683
|
super.release();
|
|
54644
54684
|
this.removeProduct();
|
|
@@ -55924,6 +55964,7 @@ class VChart {
|
|
|
55924
55964
|
});
|
|
55925
55965
|
}
|
|
55926
55966
|
_updateAnimateState(initial) {
|
|
55967
|
+
var _a, _b;
|
|
55927
55968
|
if (this._option.animation) {
|
|
55928
55969
|
const updateGraphicAnimationState = (graphic) => {
|
|
55929
55970
|
var _a;
|
|
@@ -55933,8 +55974,11 @@ class VChart {
|
|
|
55933
55974
|
}
|
|
55934
55975
|
return diffState;
|
|
55935
55976
|
};
|
|
55936
|
-
this.
|
|
55937
|
-
|
|
55977
|
+
(_a = this._chart) === null || _a === void 0 ? void 0 : _a.getAllRegions().forEach(region => {
|
|
55978
|
+
region.updateAnimateStateCallback(updateGraphicAnimationState);
|
|
55979
|
+
});
|
|
55980
|
+
(_b = this._chart) === null || _b === void 0 ? void 0 : _b.getAllComponents().forEach(component => {
|
|
55981
|
+
component.updateAnimateStateCallback(updateGraphicAnimationState);
|
|
55938
55982
|
});
|
|
55939
55983
|
}
|
|
55940
55984
|
}
|
|
@@ -56557,10 +56601,20 @@ class VChart {
|
|
|
56557
56601
|
return (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setDimensionIndex(value, opt);
|
|
56558
56602
|
}
|
|
56559
56603
|
stopAnimation() {
|
|
56604
|
+
var _a;
|
|
56605
|
+
(_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.stopAnimation(true);
|
|
56606
|
+
}
|
|
56607
|
+
reRunNormalAnimation() {
|
|
56608
|
+
var _a;
|
|
56609
|
+
(_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.reApplyAnimationState('normal', true);
|
|
56560
56610
|
}
|
|
56561
56611
|
pauseAnimation() {
|
|
56612
|
+
var _a;
|
|
56613
|
+
(_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.pauseAnimation(true);
|
|
56562
56614
|
}
|
|
56563
56615
|
resumeAnimation() {
|
|
56616
|
+
var _a;
|
|
56617
|
+
(_a = this.getStage()) === null || _a === void 0 ? void 0 : _a.resumeAnimation(true);
|
|
56564
56618
|
}
|
|
56565
56619
|
convertDatumToPosition(datum, dataLinkInfo = {}, isRelativeToCanvas = false, checkInViewData) {
|
|
56566
56620
|
var _a;
|
|
@@ -56844,7 +56898,7 @@ const lookup = (data, opt) => {
|
|
|
56844
56898
|
});
|
|
56845
56899
|
};
|
|
56846
56900
|
|
|
56847
|
-
const version = "2.0.1-alpha.
|
|
56901
|
+
const version = "2.0.1-alpha.3";
|
|
56848
56902
|
|
|
56849
56903
|
const addVChartProperty = (data, op) => {
|
|
56850
56904
|
const context = op.beforeCall();
|
|
@@ -89936,7 +89990,10 @@ class Tooltip extends BaseComponent {
|
|
|
89936
89990
|
const activeType = this._spec.activeType;
|
|
89937
89991
|
this.processor = {};
|
|
89938
89992
|
activeType.forEach(type => {
|
|
89939
|
-
|
|
89993
|
+
const instance = Factory.createTooltipProcessor(type, this);
|
|
89994
|
+
if (instance) {
|
|
89995
|
+
this.processor[type] = instance;
|
|
89996
|
+
}
|
|
89940
89997
|
});
|
|
89941
89998
|
}
|
|
89942
89999
|
_initEvent() {
|
|
@@ -95075,6 +95132,7 @@ class Player extends BaseComponent {
|
|
|
95075
95132
|
this._option.globalInstance.on(ChartEvent.rendered, () => {
|
|
95076
95133
|
var _a;
|
|
95077
95134
|
if ((_a = this._spec) === null || _a === void 0 ? void 0 : _a.auto) {
|
|
95135
|
+
this._playerComponent.pause();
|
|
95078
95136
|
this._playerComponent.play();
|
|
95079
95137
|
}
|
|
95080
95138
|
});
|
|
@@ -97788,14 +97846,15 @@ const getDomStyle = (spec = {}) => {
|
|
|
97788
97846
|
const marginKey = align === 'right' ? 'marginLeft' : 'marginRight';
|
|
97789
97847
|
if (align === 'right') {
|
|
97790
97848
|
panelStyle.direction = 'rtl';
|
|
97791
|
-
titleStyle.textAlign = 'right';
|
|
97792
|
-
keyStyle.textAlign = 'right';
|
|
97793
|
-
valueStyle.textAlign = 'left';
|
|
97794
97849
|
}
|
|
97795
|
-
|
|
97796
|
-
titleStyle.textAlign = 'left';
|
|
97797
|
-
|
|
97798
|
-
|
|
97850
|
+
if (isNil$1(titleStyle.textAlign)) {
|
|
97851
|
+
titleStyle.textAlign = align === 'right' ? 'right' : 'left';
|
|
97852
|
+
}
|
|
97853
|
+
if (isNil$1(keyStyle.textAlign)) {
|
|
97854
|
+
keyStyle.textAlign = align === 'right' ? 'right' : 'left';
|
|
97855
|
+
}
|
|
97856
|
+
if (isNil$1(valueStyle.textAlign)) {
|
|
97857
|
+
valueStyle.textAlign = align === 'right' ? 'left' : 'right';
|
|
97799
97858
|
}
|
|
97800
97859
|
shapeStyle[marginKey] = getPixelPropertyStr((_b = shape.spacing) !== null && _b !== void 0 ? _b : DEFAULT_SHAPE_SPACING);
|
|
97801
97860
|
keyStyle[marginKey] = getPixelPropertyStr((_c = keyLabel.spacing) !== null && _c !== void 0 ? _c : DEFAULT_KEY_SPACING);
|