@visactor/vchart-extension 2.0.0-alpha.4 → 2.0.0
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/index.js +20 -1
- package/build/index.min.js +1 -1
- package/cjs/charts/ranking-list/ranking-list-transformer.js.map +1 -1
- package/cjs/charts/sequence-scatter-kde/utils.d.ts +1 -1
- package/cjs/charts/sequence-scatter-kde/utils.js.map +1 -1
- package/esm/charts/ranking-list/ranking-list-transformer.js.map +1 -1
- package/esm/charts/sequence-scatter-kde/utils.d.ts +1 -1
- package/esm/charts/sequence-scatter-kde/utils.js.map +1 -1
- package/package.json +8 -8
package/build/index.js
CHANGED
|
@@ -17689,6 +17689,10 @@
|
|
|
17689
17689
|
target.attribute.x = interpolateNumber(from, to, ratio), target.addUpdateBoundTag(), target.addUpdatePositionTag();
|
|
17690
17690
|
}, this.y = (key, from, to, ratio, step, target) => {
|
|
17691
17691
|
target.attribute.y = interpolateNumber(from, to, ratio), target.addUpdateBoundTag(), target.addUpdatePositionTag();
|
|
17692
|
+
}, this.dx = (key, from, to, ratio, step, target) => {
|
|
17693
|
+
target.attribute.dx = interpolateNumber(from, to, ratio), target.addUpdateBoundTag(), target.addUpdatePositionTag();
|
|
17694
|
+
}, this.dy = (key, from, to, ratio, step, target) => {
|
|
17695
|
+
target.attribute.dy = interpolateNumber(from, to, ratio), target.addUpdateBoundTag(), target.addUpdatePositionTag();
|
|
17692
17696
|
}, this.angle = (key, from, to, ratio, step, target) => {
|
|
17693
17697
|
target.attribute.angle = interpolateNumber(from, to, ratio), target.addUpdateBoundTag(), target.addUpdatePositionTag();
|
|
17694
17698
|
}, this.scaleX = (key, from, to, ratio, step, target) => {
|
|
@@ -18502,7 +18506,10 @@
|
|
|
18502
18506
|
_handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
|
|
18503
18507
|
var _a, _b, _c, _d;
|
|
18504
18508
|
if (custom && customType) {
|
|
18505
|
-
const customParams = this.resolveValue(customParameters, graphic, {
|
|
18509
|
+
const customParams = this.resolveValue(customParameters, graphic, {
|
|
18510
|
+
width: graphic.stage.width,
|
|
18511
|
+
height: graphic.stage.height
|
|
18512
|
+
}),
|
|
18506
18513
|
objOptions = isFunction$1(options) ? options.call(null, null !== (_b = customParams && (null === (_a = customParams.data) || void 0 === _a ? void 0 : _a[0])) && void 0 !== _b ? _b : null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, customParams) : options;
|
|
18507
18514
|
customParams.options = objOptions, customParams.controlOptions = controlOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
|
|
18508
18515
|
} else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
|
|
@@ -21917,6 +21924,18 @@
|
|
|
21917
21924
|
const changeEvent = new CustomEvent(eventName, details);
|
|
21918
21925
|
changeEvent.manager = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventSystem.manager, this.dispatchEvent(changeEvent);
|
|
21919
21926
|
}
|
|
21927
|
+
eventPosToStagePos(e) {
|
|
21928
|
+
var _a, _b;
|
|
21929
|
+
const result = {
|
|
21930
|
+
x: 0,
|
|
21931
|
+
y: 0
|
|
21932
|
+
},
|
|
21933
|
+
stagePoints = null !== (_b = null === (_a = this.stage) || void 0 === _a ? void 0 : _a.eventPointTransform(e)) && void 0 !== _b ? _b : {
|
|
21934
|
+
x: 0,
|
|
21935
|
+
y: 0
|
|
21936
|
+
};
|
|
21937
|
+
return this.globalTransMatrix.transformPoint(stagePoints, result), result;
|
|
21938
|
+
}
|
|
21920
21939
|
}
|
|
21921
21940
|
|
|
21922
21941
|
const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|