@visactor/vchart 1.12.2 → 1.12.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.js +17 -10
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/compile/compilable-base.js +1 -2
- package/cjs/compile/util.js +2 -1
- package/cjs/constant/layout.js +1 -2
- package/cjs/constant/polar.js +2 -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/series/base/base-series-transformer.js +11 -8
- package/cjs/series/base/base-series-transformer.js.map +1 -1
- package/esm/compile/compilable-base.js +1 -2
- package/esm/compile/util.js +2 -1
- package/esm/constant/layout.js +1 -2
- package/esm/constant/polar.js +2 -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/series/base/base-series-transformer.js +11 -8
- package/esm/series/base/base-series-transformer.js.map +1 -1
- package/package.json +15 -15
package/build/index.js
CHANGED
|
@@ -11841,7 +11841,8 @@
|
|
|
11841
11841
|
constructor() {
|
|
11842
11842
|
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Generator.GenAutoIncrementId();
|
|
11843
11843
|
let timeline = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTimeline;
|
|
11844
|
-
|
|
11844
|
+
let slience = arguments.length > 2 ? arguments[2] : undefined;
|
|
11845
|
+
this.id = id, this.timeline = timeline, this.status = AnimateStatus.INITIAL, this.tailAnimate = new SubAnimate(this), this.subAnimates = [this.tailAnimate], this.timeScale = 1, this.rawPosition = -1, this._startTime = 0, this._duringTime = 0, this.timeline.addAnimate(this), this.slience = slience;
|
|
11845
11846
|
}
|
|
11846
11847
|
setTimeline(timeline) {
|
|
11847
11848
|
timeline !== this.timeline && (this.timeline.removeAnimate(this, !1), timeline.addAnimate(this));
|
|
@@ -11969,7 +11970,7 @@
|
|
|
11969
11970
|
return !this._preventAttrs || !this._preventAttrs.has(key);
|
|
11970
11971
|
}
|
|
11971
11972
|
bind(target) {
|
|
11972
|
-
return this.target = target, this.target.onAnimateBind && this.target.onAnimateBind(this), this.subAnimates.forEach(sa => {
|
|
11973
|
+
return this.target = target, this.target.onAnimateBind && !this.slience && this.target.onAnimateBind(this), this.subAnimates.forEach(sa => {
|
|
11973
11974
|
sa.bind(target);
|
|
11974
11975
|
}), this;
|
|
11975
11976
|
}
|
|
@@ -14058,8 +14059,8 @@
|
|
|
14058
14059
|
}
|
|
14059
14060
|
animate(params) {
|
|
14060
14061
|
this.animates || (this.animates = new Map());
|
|
14061
|
-
const animate = new Animate$1(null == params ? void 0 : params.id, this.stage && this.stage.getTimeline()
|
|
14062
|
-
if (params) {
|
|
14062
|
+
const animate = new Animate$1(null == params ? void 0 : params.id, this.stage && this.stage.getTimeline(), null == params ? void 0 : params.slience);
|
|
14063
|
+
if (animate.bind(this), params) {
|
|
14063
14064
|
const {
|
|
14064
14065
|
onStart: onStart,
|
|
14065
14066
|
onFrame: onFrame,
|
|
@@ -14095,7 +14096,9 @@
|
|
|
14095
14096
|
keys.forEach(key => {
|
|
14096
14097
|
noWorkAttrs[key] ? (noAnimateAttrs || (noAnimateAttrs = {}), noAnimateAttrs[key] = attrs[key]) : animateAttrs[key] = isClear && void 0 === attrs[key] ? this.getDefaultAttribute(key) : attrs[key];
|
|
14097
14098
|
});
|
|
14098
|
-
const animate = this.animate(
|
|
14099
|
+
const animate = this.animate({
|
|
14100
|
+
slience: !0
|
|
14101
|
+
});
|
|
14099
14102
|
animate.stateNames = stateNames, animate.to(animateAttrs, null !== (_b = null === (_a = this.stateAnimateConfig) || void 0 === _a ? void 0 : _a.duration) && void 0 !== _b ? _b : DefaultStateAnimateConfig.duration, null !== (_d = null === (_c = this.stateAnimateConfig) || void 0 === _c ? void 0 : _c.easing) && void 0 !== _d ? _d : DefaultStateAnimateConfig.easing), noAnimateAttrs && this.setAttributes(noAnimateAttrs, !1, {
|
|
14100
14103
|
type: AttributeUpdateType.STATE
|
|
14101
14104
|
});
|
|
@@ -14312,7 +14315,7 @@
|
|
|
14312
14315
|
if (!animate.validAttr(key)) return;
|
|
14313
14316
|
const nextStepVal = nextProps[key],
|
|
14314
14317
|
lastStepVal = null !== (_a = lastProps && lastProps[key]) && void 0 !== _a ? _a : subAnimate.getLastPropByName(key, step);
|
|
14315
|
-
if (null == nextStepVal || null == lastStepVal) return void (nextAttributes[key] = nextStepVal);
|
|
14318
|
+
if (null == nextStepVal || null == lastStepVal || nextStepVal === lastStepVal) return void (nextAttributes[key] = nextStepVal);
|
|
14316
14319
|
let match;
|
|
14317
14320
|
match = animate.interpolateFunc && animate.interpolateFunc(key, ratio, lastStepVal, nextStepVal, nextAttributes), match || (match = animate.customInterpolate(key, ratio, lastStepVal, nextStepVal, this, nextAttributes), match || this.defaultInterpolate(nextStepVal, lastStepVal, key, nextAttributes, nextParsedProps, ratio) || this._interpolate(key, ratio, lastStepVal, nextStepVal, nextAttributes));
|
|
14318
14321
|
}), step.parsedProps = nextParsedProps;
|
|
@@ -23036,7 +23039,9 @@
|
|
|
23036
23039
|
release() {
|
|
23037
23040
|
super.release(), this.hooks.beforeRender.unTap("constructor", this.beforeRender), this.hooks.afterRender.unTap("constructor", this.afterRender), this.eventSystem && this.eventSystem.release(), this.layerService.releaseStage(this), this.pluginService.release(), this.forEach(layer => {
|
|
23038
23041
|
layer.release();
|
|
23039
|
-
}), this.interactiveLayer && (this.interactiveLayer.
|
|
23042
|
+
}), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
|
|
23043
|
+
item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
|
|
23044
|
+
}), this.interactiveLayer.release()), this.window.release(), this.ticker.remTimeline(this.timeline), this.renderService.renderTreeRoots = [];
|
|
23040
23045
|
}
|
|
23041
23046
|
setStage(stage) {}
|
|
23042
23047
|
dirty(b, matrix) {
|
|
@@ -30978,7 +30983,7 @@
|
|
|
30978
30983
|
interactiveLayer && interactiveLayer.add(this.poptipComponent);
|
|
30979
30984
|
} else 2 === graphic._showPoptip && (graphic._showPoptip = 0, this.poptipComponent && (this.poptipComponent.setAttributes({
|
|
30980
30985
|
visibleAll: !1
|
|
30981
|
-
}), null === (_b = this.poptipComponent.parent) || void 0 === _b || _b.removeChild(this.poptipComponent)));
|
|
30986
|
+
}), null === (_b = this.poptipComponent.parent) || void 0 === _b || _b.removeChild(this.poptipComponent), this.poptipComponent = null));
|
|
30982
30987
|
}
|
|
30983
30988
|
};
|
|
30984
30989
|
PopTipRenderContribution = __decorate$1([injectable()], PopTipRenderContribution);
|
|
@@ -60886,7 +60891,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60886
60891
|
};
|
|
60887
60892
|
registerVChartCore();
|
|
60888
60893
|
|
|
60889
|
-
const version = "1.12.
|
|
60894
|
+
const version = "1.12.3";
|
|
60890
60895
|
|
|
60891
60896
|
const addVChartProperty = (data, op) => {
|
|
60892
60897
|
const context = op.beforeCall();
|
|
@@ -61756,8 +61761,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61756
61761
|
}
|
|
61757
61762
|
const labels = array(spec[labelSpecKey]);
|
|
61758
61763
|
labels.forEach(labelSpec => {
|
|
61764
|
+
var _a, _b, _c, _d;
|
|
61759
61765
|
if (labelSpec && labelSpec.visible) {
|
|
61760
|
-
|
|
61766
|
+
const animationEnabled = (_d = (_c = (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.animation) !== null && _b !== void 0 ? _b : spec.animation) !== null && _c !== void 0 ? _c : labelSpec.animation) !== null && _d !== void 0 ? _d : true;
|
|
61767
|
+
this.addLabelSpec(markName, Object.assign(Object.assign({}, labelSpec), { animation: animationEnabled && hasAnimation, getStyleHandler: (series) => { var _a; return (_a = series[styleHandlerName]) === null || _a === void 0 ? void 0 : _a.bind(series); } }), head);
|
|
61761
61768
|
}
|
|
61762
61769
|
});
|
|
61763
61770
|
}
|