@visactor/vrender 1.1.0-alpha.2 → 1.1.0-alpha.4
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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +73 -48
- package/dist/index.js +73 -48
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +6 -6
package/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Direction } from '@visactor/vrender-core';
|
|
2
|
-
export declare const version = "1.1.0-alpha.
|
|
2
|
+
export declare const version = "1.1.0-alpha.4";
|
|
3
3
|
export * from '@visactor/vrender-core';
|
|
4
4
|
export * from '@visactor/vrender-kits';
|
|
5
5
|
export * from '@visactor/vrender-animate';
|
package/cjs/index.js
CHANGED
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "Direction", {
|
|
|
26
26
|
get: function() {
|
|
27
27
|
return vrender_core_1.Direction;
|
|
28
28
|
}
|
|
29
|
-
}), exports.version = "1.1.0-alpha.
|
|
29
|
+
}), exports.version = "1.1.0-alpha.4", __exportStar(require("@visactor/vrender-core"), exports),
|
|
30
30
|
__exportStar(require("@visactor/vrender-kits"), exports), __exportStar(require("@visactor/vrender-animate"), exports),
|
|
31
31
|
__exportStar(require("@visactor/vrender-components"), exports), __exportStar(require("./entries"), exports);
|
|
32
32
|
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AAa1C,0FAbA,wBAAS,OAaA;AAXL,QAAA,OAAO,GAAG,eAAe,CAAC;AAEvC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAC7C,4CAA0B;AAC1B,mCAAuC;AAA9B,qGAAA,WAAW,OAAA;AAGpB,6DAAkD;AAAzC,wGAAA,KAAK,OAAA","file":"index.js","sourcesContent":["import { Direction } from '@visactor/vrender-core';\n// 导出版本号\nexport const version = \"1.1.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AAa1C,0FAbA,wBAAS,OAaA;AAXL,QAAA,OAAO,GAAG,eAAe,CAAC;AAEvC,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAC7C,4CAA0B;AAC1B,mCAAuC;AAA9B,qGAAA,WAAW,OAAA;AAGpB,6DAAkD;AAAzC,wGAAA,KAAK,OAAA","file":"index.js","sourcesContent":["import { Direction } from '@visactor/vrender-core';\n// 导出版本号\nexport const version = \"1.1.0-alpha.4\";\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-animate';\nexport * from '@visactor/vrender-components';\nexport * from './entries';\nexport { createStage } from './legacy';\n\n// avoid naming conflicts with 'State' & 'Direction' in '@visactor/vrender-components'\nexport { State } from '@visactor/vrender-animate';\nexport { Direction };\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -32337,6 +32337,19 @@ function commonInterpolateUpdate(key, from, to, ratio, step, target) {
|
|
|
32337
32337
|
return !1;
|
|
32338
32338
|
}
|
|
32339
32339
|
|
|
32340
|
+
function applyAnimationTransientAttributes(target, attributes, type = AttributeUpdateType.ANIMATE_UPDATE) {
|
|
32341
|
+
var _a;
|
|
32342
|
+
if (!attributes) return;
|
|
32343
|
+
const context = {
|
|
32344
|
+
type: type
|
|
32345
|
+
},
|
|
32346
|
+
transientTarget = target;
|
|
32347
|
+
"function" != typeof transientTarget.applyTransientAttributes ? "function" != typeof transientTarget.setAttributesAndPreventAnimate ? (transientTarget.attribute || (transientTarget.attribute = {}), Object.assign(transientTarget.attribute, attributes), null === (_a = transientTarget.onAttributeUpdate) || void 0 === _a || _a.call(transientTarget, context)) : transientTarget.setAttributesAndPreventAnimate(attributes, !1, context) : transientTarget.applyTransientAttributes(attributes, !1, context);
|
|
32348
|
+
}
|
|
32349
|
+
function applyAppearStartAttributes(target, attributes) {
|
|
32350
|
+
applyAnimationTransientAttributes(target, attributes, AttributeUpdateType.ANIMATE_BIND);
|
|
32351
|
+
}
|
|
32352
|
+
|
|
32340
32353
|
function noop() {}
|
|
32341
32354
|
class Step {
|
|
32342
32355
|
constructor(type, props, duration, easing) {
|
|
@@ -32462,7 +32475,7 @@ class WaitStep extends Step {
|
|
|
32462
32475
|
onStart() {
|
|
32463
32476
|
super.onStart();
|
|
32464
32477
|
const fromProps = this.getFromProps();
|
|
32465
|
-
this.target.
|
|
32478
|
+
applyAnimationTransientAttributes(this.target, fromProps, AttributeUpdateType.ANIMATE_START);
|
|
32466
32479
|
}
|
|
32467
32480
|
update(end, ratio, out) {
|
|
32468
32481
|
this.onStart();
|
|
@@ -32824,7 +32837,7 @@ class Animate {
|
|
|
32824
32837
|
const currentLoop = Math.floor((nextTime - this._startTime) / this._duration);
|
|
32825
32838
|
newLoop = currentLoop > this._currentLoop, this._currentLoop = currentLoop, bounceTime = this._bounce && currentLoop % 2 == 1, bounceTime && (cycleTime = this._duration - cycleTime);
|
|
32826
32839
|
}
|
|
32827
|
-
newLoop && !bounceTime && this.target
|
|
32840
|
+
newLoop && !bounceTime && applyAnimationTransientAttributes(this.target, this._startProps, AttributeUpdateType.ANIMATE_START);
|
|
32828
32841
|
let targetStep = null;
|
|
32829
32842
|
if (this._lastStep === this._firstStep) targetStep = this._firstStep;else {
|
|
32830
32843
|
let currentStep = this._firstStep;
|
|
@@ -33390,7 +33403,8 @@ class AnimateExecutor {
|
|
|
33390
33403
|
void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : from[key] = config.from);
|
|
33391
33404
|
}), diffAttrs) for (const key in diffAttrs) {
|
|
33392
33405
|
const value = diffAttrs[key];
|
|
33393
|
-
void 0
|
|
33406
|
+
if (void 0 === value) continue;
|
|
33407
|
+
props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (attrOutChannel[key] = value, hasAttrs = !0);
|
|
33394
33408
|
}
|
|
33395
33409
|
return {
|
|
33396
33410
|
from: from,
|
|
@@ -33848,7 +33862,9 @@ class IncreaseCount extends ACustomAnimate {
|
|
|
33848
33862
|
const parts = formattedNumber.toString().split(".");
|
|
33849
33863
|
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), formattedWithBasicFormat = parts.join(".");
|
|
33850
33864
|
} else formattedWithBasicFormat = formattedNumber;
|
|
33851
|
-
formattedText = this.formatTemplate ? this.formatTemplate.replace("{{var}}", formattedWithBasicFormat.toString()) : formattedWithBasicFormat, this.target
|
|
33865
|
+
formattedText = this.formatTemplate ? this.formatTemplate.replace("{{var}}", formattedWithBasicFormat.toString()) : formattedWithBasicFormat, applyAnimationTransientAttributes(this.target, {
|
|
33866
|
+
text: formattedText
|
|
33867
|
+
});
|
|
33852
33868
|
}
|
|
33853
33869
|
}
|
|
33854
33870
|
|
|
@@ -33955,7 +33971,7 @@ class MorphingPath extends ACustomAnimate {
|
|
|
33955
33971
|
onUpdate(end, ratio, out) {
|
|
33956
33972
|
const target = this.target,
|
|
33957
33973
|
pathProxy = "function" == typeof target.pathProxy ? target.pathProxy(target.attribute) : target.pathProxy;
|
|
33958
|
-
interpolateMorphingData(this.morphingData, pathProxy, ratio), this.otherAttrs && this.otherAttrs.length && interpolateOtherAttrs(this.otherAttrs, out, ratio), this.target.setAttributes(out), end && !this.saveOnEnd && (this.target.pathProxy = null);
|
|
33974
|
+
interpolateMorphingData(this.morphingData, pathProxy, ratio), this.otherAttrs && this.otherAttrs.length && interpolateOtherAttrs(this.otherAttrs, out, ratio), end && this.saveOnEnd ? this.target.setAttributes(out) : applyAnimationTransientAttributes(this.target, out), end && !this.saveOnEnd && (this.target.pathProxy = null);
|
|
33959
33975
|
}
|
|
33960
33976
|
}
|
|
33961
33977
|
const morphPath = (fromGraphic, toGraphic, animationConfig, fromGraphicTransform) => {
|
|
@@ -34186,7 +34202,9 @@ class InputText extends ACustomAnimate {
|
|
|
34186
34202
|
const blinkRate = .1;
|
|
34187
34203
|
Math.floor(ratio / blinkRate) % 2 == 0 && (displayText = this.beforeText + currentText + this.cursorChar + this.afterText);
|
|
34188
34204
|
} else displayText = this.beforeText + currentText + this.cursorChar + this.afterText;
|
|
34189
|
-
this.target
|
|
34205
|
+
applyAnimationTransientAttributes(this.target, {
|
|
34206
|
+
text: displayText
|
|
34207
|
+
});
|
|
34190
34208
|
}
|
|
34191
34209
|
}
|
|
34192
34210
|
|
|
@@ -34195,11 +34213,9 @@ class ClipGraphicAnimate extends ACustomAnimate {
|
|
|
34195
34213
|
super(null, {}, duration, easing, params), this.clipFromAttribute = from, this.clipToAttribute = to, this._group = null == params ? void 0 : params.group, this._clipGraphic = null == params ? void 0 : params.clipGraphic;
|
|
34196
34214
|
}
|
|
34197
34215
|
onBind() {
|
|
34198
|
-
super.onBind(), this._group && this._clipGraphic && (this._lastClip = this._group.attribute.clip, this._lastPath = this._group.attribute.path, this._group
|
|
34216
|
+
super.onBind(), this._group && this._clipGraphic && (this._lastClip = this._group.attribute.clip, this._lastPath = this._group.attribute.path, applyAppearStartAttributes(this._group, {
|
|
34199
34217
|
clip: !0,
|
|
34200
34218
|
path: [this._clipGraphic]
|
|
34201
|
-
}, !1, {
|
|
34202
|
-
type: AttributeUpdateType.ANIMATE_BIND
|
|
34203
34219
|
}));
|
|
34204
34220
|
}
|
|
34205
34221
|
onEnd() {
|
|
@@ -34412,7 +34428,7 @@ class TagPointsUpdate extends ACustomAnimate {
|
|
|
34412
34428
|
return newPoint.context = point.context, newPoint;
|
|
34413
34429
|
}), this.clipRange) {
|
|
34414
34430
|
if (this.shrinkClipRange) return void (end ? (out.points = this.toPoints, out.clipRange = 1) : (out.points = this.fromPoints, out.clipRange = this.clipRange - (this.clipRange - this.shrinkClipRange) * ratio));
|
|
34415
|
-
this.target
|
|
34431
|
+
applyAnimationTransientAttributes(this.target, {
|
|
34416
34432
|
clipRange: this.clipRange + (1 - this.clipRange) * ratio
|
|
34417
34433
|
});
|
|
34418
34434
|
}
|
|
@@ -34445,7 +34461,7 @@ class CommonIn extends ACustomAnimate {
|
|
|
34445
34461
|
this.keys.forEach(key => {
|
|
34446
34462
|
var _a, _b, _c;
|
|
34447
34463
|
to[key] = null !== (_a = null == attrs ? void 0 : attrs[key]) && void 0 !== _a ? _a : 1, from[key] = null !== (_c = null !== (_b = from[key]) && void 0 !== _b ? _b : fromAttrs[key]) && void 0 !== _c ? _c : 0;
|
|
34448
|
-
}), null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.target
|
|
34464
|
+
}), null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
34449
34465
|
}
|
|
34450
34466
|
onUpdate(end, ratio, out) {
|
|
34451
34467
|
const attribute = this.target.attribute;
|
|
@@ -34699,7 +34715,7 @@ class GrowAngleIn extends GrowAngleBase {
|
|
|
34699
34715
|
to: to
|
|
34700
34716
|
} = growAngleIn(this.target, this.params.options, this.params),
|
|
34701
34717
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
34702
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.target
|
|
34718
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs), this.determineUpdateFunction();
|
|
34703
34719
|
}
|
|
34704
34720
|
}
|
|
34705
34721
|
class GrowAngleOut extends GrowAngleBase {
|
|
@@ -34849,7 +34865,7 @@ class GrowCenterIn extends ACustomAnimate {
|
|
|
34849
34865
|
to: to
|
|
34850
34866
|
} = growCenterIn(this.target, this.params.options, this.params),
|
|
34851
34867
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
34852
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.target
|
|
34868
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
|
|
34853
34869
|
}
|
|
34854
34870
|
onEnd(cb) {
|
|
34855
34871
|
super.onEnd(cb);
|
|
@@ -34954,7 +34970,7 @@ class GrowHeightIn extends ACustomAnimate {
|
|
|
34954
34970
|
to: to
|
|
34955
34971
|
} = growHeightIn(this.target, this.params.options, this.params),
|
|
34956
34972
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
34957
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.target
|
|
34973
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
|
|
34958
34974
|
}
|
|
34959
34975
|
onEnd(cb) {
|
|
34960
34976
|
super.onEnd(cb);
|
|
@@ -35068,7 +35084,7 @@ class GrowPointsIn extends GworPointsBase {
|
|
|
35068
35084
|
from: from,
|
|
35069
35085
|
to: to
|
|
35070
35086
|
} = growPointsIn(this.target, this.params.options, this.params);
|
|
35071
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target
|
|
35087
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
35072
35088
|
} else this.valid = !1;
|
|
35073
35089
|
}
|
|
35074
35090
|
}
|
|
@@ -35130,7 +35146,7 @@ class GrowPointsXIn extends GworPointsBase {
|
|
|
35130
35146
|
from: from,
|
|
35131
35147
|
to: to
|
|
35132
35148
|
} = growPointsXIn(this.target, this.params.options, this.params);
|
|
35133
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target
|
|
35149
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
35134
35150
|
} else this.valid = !1;
|
|
35135
35151
|
}
|
|
35136
35152
|
}
|
|
@@ -35192,7 +35208,7 @@ class GrowPointsYIn extends GworPointsBase {
|
|
|
35192
35208
|
from: from,
|
|
35193
35209
|
to: to
|
|
35194
35210
|
} = growPointsYIn(this.target, this.params.options, this.params);
|
|
35195
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target
|
|
35211
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
35196
35212
|
} else this.valid = !1;
|
|
35197
35213
|
}
|
|
35198
35214
|
}
|
|
@@ -35304,7 +35320,7 @@ class GrowRadiusIn extends GrowPointsBase {
|
|
|
35304
35320
|
to: to
|
|
35305
35321
|
} = growRadiusIn(this.target, this.params.options, this.params),
|
|
35306
35322
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
35307
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.target
|
|
35323
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
|
|
35308
35324
|
}
|
|
35309
35325
|
}
|
|
35310
35326
|
class GrowRadiusOut extends GrowPointsBase {
|
|
@@ -35426,7 +35442,7 @@ class GrowWidthIn extends ACustomAnimate {
|
|
|
35426
35442
|
to: to
|
|
35427
35443
|
} = growWidthIn(this.target, this.params.options, this.params),
|
|
35428
35444
|
fromAttrs = null !== (_b = null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.lastAttrs) && void 0 !== _b ? _b : from;
|
|
35429
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && this.target
|
|
35445
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = fromAttrs, this.to = to, null === (_d = (_c = this.target).applyFinalAttributeToAttribute) || void 0 === _d || _d.call(_c), !1 !== (null === (_e = this.params.controlOptions) || void 0 === _e ? void 0 : _e.immediatelyApply) && applyAppearStartAttributes(this.target, fromAttrs);
|
|
35430
35446
|
}
|
|
35431
35447
|
onEnd(cb) {
|
|
35432
35448
|
super.onEnd(cb);
|
|
@@ -35477,7 +35493,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35477
35493
|
} = this.params,
|
|
35478
35494
|
symbolTime = duration / 10;
|
|
35479
35495
|
let symbolStartOuterFrom, symbolStartOuterTo;
|
|
35480
|
-
if (target._symbolStart
|
|
35496
|
+
if (applyAppearStartAttributes(target._symbolStart, {
|
|
35481
35497
|
scaleX: 0,
|
|
35482
35498
|
scaleY: 0
|
|
35483
35499
|
}), animator.animate(target._symbolStart, {
|
|
@@ -35498,12 +35514,12 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35498
35514
|
clipRange: 0
|
|
35499
35515
|
}, symbolStartOuterTo = {
|
|
35500
35516
|
clipRange: 1
|
|
35501
|
-
}), target._symbolStartOuter
|
|
35517
|
+
}), applyAppearStartAttributes(target._symbolStartOuter, symbolStartOuterFrom), animator.animate(target._symbolStartOuter, {
|
|
35502
35518
|
type: "to",
|
|
35503
35519
|
to: symbolStartOuterTo,
|
|
35504
35520
|
duration: 5 * symbolTime,
|
|
35505
35521
|
easing: easing
|
|
35506
|
-
}), target._symbolEnd
|
|
35522
|
+
}), applyAppearStartAttributes(target._symbolEnd, {
|
|
35507
35523
|
scaleX: 0,
|
|
35508
35524
|
scaleY: 0
|
|
35509
35525
|
}), animator.animate(target._symbolEnd, {
|
|
@@ -35515,7 +35531,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35515
35531
|
duration: 2 * symbolTime,
|
|
35516
35532
|
delay: 8 * symbolTime,
|
|
35517
35533
|
easing: easing
|
|
35518
|
-
}), target._line
|
|
35534
|
+
}), applyAppearStartAttributes(target._line, {
|
|
35519
35535
|
clipRange: 0
|
|
35520
35536
|
}), animator.animate(target._line, {
|
|
35521
35537
|
type: "to",
|
|
@@ -35526,7 +35542,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35526
35542
|
easing: easing
|
|
35527
35543
|
}), "typewriter" === titleType) {
|
|
35528
35544
|
const titleTopText = target._titleTop.attribute.text;
|
|
35529
|
-
target._titleTop
|
|
35545
|
+
applyAppearStartAttributes(target._titleTop, {
|
|
35530
35546
|
text: ""
|
|
35531
35547
|
}), animator.animate(target._titleTop, {
|
|
35532
35548
|
type: "custom",
|
|
@@ -35539,7 +35555,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35539
35555
|
custom: InputText
|
|
35540
35556
|
});
|
|
35541
35557
|
const titleBottomText = target._titleBottom.attribute.text;
|
|
35542
|
-
target._titleBottom
|
|
35558
|
+
applyAppearStartAttributes(target._titleBottom, {
|
|
35543
35559
|
text: ""
|
|
35544
35560
|
}), animator.animate(target._titleBottom, {
|
|
35545
35561
|
type: "custom",
|
|
@@ -35551,7 +35567,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35551
35567
|
},
|
|
35552
35568
|
custom: InputText
|
|
35553
35569
|
});
|
|
35554
|
-
} else target._titleTop
|
|
35570
|
+
} else applyAppearStartAttributes(target._titleTop, {
|
|
35555
35571
|
dy: target._titleTop.AABBBounds.height() + 10
|
|
35556
35572
|
}), animator.animate(target._titleTop, {
|
|
35557
35573
|
type: "to",
|
|
@@ -35561,7 +35577,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35561
35577
|
delay: 5 * symbolTime,
|
|
35562
35578
|
duration: 4 * symbolTime,
|
|
35563
35579
|
easing: "linear"
|
|
35564
|
-
}), target._titleBottom
|
|
35580
|
+
}), applyAppearStartAttributes(target._titleBottom, {
|
|
35565
35581
|
dy: -(10 + target._titleBottom.AABBBounds.height())
|
|
35566
35582
|
}), animator.animate(target._titleBottom, {
|
|
35567
35583
|
type: "to",
|
|
@@ -35575,7 +35591,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35575
35591
|
"scale" === titlePanelType ? [target._titleTopPanel, target._titleBottomPanel].forEach(panel => {
|
|
35576
35592
|
var _a;
|
|
35577
35593
|
const scaleX = null !== (_a = panel.attribute.scaleX) && void 0 !== _a ? _a : 1;
|
|
35578
|
-
panel
|
|
35594
|
+
applyAppearStartAttributes(panel, {
|
|
35579
35595
|
scaleX: 0
|
|
35580
35596
|
}), animator.animate(panel, {
|
|
35581
35597
|
type: "to",
|
|
@@ -35588,7 +35604,7 @@ class LabelItemAppear extends AComponentAnimate {
|
|
|
35588
35604
|
}) : "stroke" === titlePanelType && [target._titleTopPanel, target._titleBottomPanel].forEach(panel => {
|
|
35589
35605
|
const b = panel.AABBBounds,
|
|
35590
35606
|
totalLen = 2 * (b.width() + b.height());
|
|
35591
|
-
panel
|
|
35607
|
+
applyAppearStartAttributes(panel, {
|
|
35592
35608
|
lineDash: [0, 10 * totalLen]
|
|
35593
35609
|
}), animator.animate(panel, {
|
|
35594
35610
|
type: "to",
|
|
@@ -35695,7 +35711,7 @@ class PoptipAppear extends AComponentAnimate {
|
|
|
35695
35711
|
{
|
|
35696
35712
|
wave: wave
|
|
35697
35713
|
} = this.params;
|
|
35698
|
-
if (target
|
|
35714
|
+
if (applyAppearStartAttributes(target, {
|
|
35699
35715
|
scaleX: 0,
|
|
35700
35716
|
scaleY: 0
|
|
35701
35717
|
}), animator.animate(target, {
|
|
@@ -35848,7 +35864,9 @@ class InputRichText extends ACustomAnimate {
|
|
|
35848
35864
|
}
|
|
35849
35865
|
}
|
|
35850
35866
|
}
|
|
35851
|
-
this.target
|
|
35867
|
+
applyAnimationTransientAttributes(this.target, {
|
|
35868
|
+
textConfig: currentTextConfig
|
|
35869
|
+
});
|
|
35852
35870
|
}
|
|
35853
35871
|
}
|
|
35854
35872
|
|
|
@@ -35875,18 +35893,21 @@ class OutputRichText extends ACustomAnimate {
|
|
|
35875
35893
|
displayedLength = Math.round(fromItems * (1 - adjustedRatio));
|
|
35876
35894
|
} else displayedLength = Math.round(fromItems * (1 - ratio));
|
|
35877
35895
|
let currentTextConfig = "forward" === this.direction ? this.fromTextConfig.slice(fromItems - displayedLength) : this.fromTextConfig.slice(0, displayedLength);
|
|
35878
|
-
this.fadeOutChars && (currentTextConfig = this.applyFadeEffect(currentTextConfig, ratio, fromItems, displayedLength)), this.showCursor && displayedLength > 0 && (currentTextConfig = this.addCursor(currentTextConfig, ratio)), this.target
|
|
35896
|
+
this.fadeOutChars && (currentTextConfig = this.applyFadeEffect(currentTextConfig, ratio, fromItems, displayedLength)), this.showCursor && displayedLength > 0 && (currentTextConfig = this.addCursor(currentTextConfig, ratio)), applyAnimationTransientAttributes(this.target, {
|
|
35897
|
+
textConfig: currentTextConfig
|
|
35898
|
+
});
|
|
35879
35899
|
} else {
|
|
35880
35900
|
if (this.fadeOutChars) {
|
|
35881
35901
|
const adjustedRatio = Math.min(1, ratio / maxTextHideRatio);
|
|
35882
35902
|
displayedLength = Math.round(fromItems * (1 - adjustedRatio));
|
|
35883
35903
|
} else displayedLength = Math.round(fromItems * (1 - ratio));
|
|
35884
35904
|
let currentTextConfig = this.fromTextConfig.slice(0, displayedLength);
|
|
35885
|
-
this.fadeOutChars && (currentTextConfig = this.applyFadeEffect(currentTextConfig, ratio, fromItems, displayedLength)), this.showCursor && displayedLength > 0 && (currentTextConfig = this.addCursor(currentTextConfig, ratio)), this.target
|
|
35905
|
+
this.fadeOutChars && (currentTextConfig = this.applyFadeEffect(currentTextConfig, ratio, fromItems, displayedLength)), this.showCursor && displayedLength > 0 && (currentTextConfig = this.addCursor(currentTextConfig, ratio)), applyAnimationTransientAttributes(this.target, {
|
|
35906
|
+
textConfig: currentTextConfig
|
|
35907
|
+
});
|
|
35886
35908
|
}
|
|
35887
35909
|
}
|
|
35888
35910
|
applyFadeEffect(textConfig, ratio, totalItems, displayedLength) {
|
|
35889
|
-
"forward" === this.direction ? totalItems - displayedLength : displayedLength;
|
|
35890
35911
|
const fadeProgress = (ratio - (1 - this.fadeOutDuration)) / this.fadeOutDuration,
|
|
35891
35912
|
fadeOpacity = Math.max(0, 1 - Math.min(1, fadeProgress));
|
|
35892
35913
|
return textConfig.map((item, index) => {
|
|
@@ -35988,7 +36009,9 @@ class SlideRichText extends ACustomAnimate {
|
|
|
35988
36009
|
if (!this.valid) return;
|
|
35989
36010
|
const maxTextShowRatio = 1 - this.fadeInDuration;
|
|
35990
36011
|
let updatedTextConfig;
|
|
35991
|
-
updatedTextConfig = this.wordByWord && this.wordGroups.length > 0 ? this.updateByWord(ratio, maxTextShowRatio) : this.updateByCharacter(ratio, maxTextShowRatio), this.target
|
|
36012
|
+
updatedTextConfig = this.wordByWord && this.wordGroups.length > 0 ? this.updateByWord(ratio, maxTextShowRatio) : this.updateByCharacter(ratio, maxTextShowRatio), applyAnimationTransientAttributes(this.target, {
|
|
36013
|
+
textConfig: updatedTextConfig
|
|
36014
|
+
});
|
|
35992
36015
|
}
|
|
35993
36016
|
updateByWord(ratio, maxTextShowRatio) {
|
|
35994
36017
|
const totalGroups = this.wordGroups.length,
|
|
@@ -36117,7 +36140,9 @@ class SlideOutRichText extends ACustomAnimate {
|
|
|
36117
36140
|
if (!this.valid) return;
|
|
36118
36141
|
const maxTextShowRatio = 1 - this.fadeOutDuration;
|
|
36119
36142
|
let updatedTextConfig;
|
|
36120
|
-
updatedTextConfig = this.wordByWord && this.wordGroups.length > 0 ? this.updateByWord(ratio, maxTextShowRatio) : this.updateByCharacter(ratio, maxTextShowRatio), this.target
|
|
36143
|
+
updatedTextConfig = this.wordByWord && this.wordGroups.length > 0 ? this.updateByWord(ratio, maxTextShowRatio) : this.updateByCharacter(ratio, maxTextShowRatio), applyAnimationTransientAttributes(this.target, {
|
|
36144
|
+
textConfig: updatedTextConfig
|
|
36145
|
+
});
|
|
36121
36146
|
}
|
|
36122
36147
|
updateByWord(ratio, maxTextShowRatio) {
|
|
36123
36148
|
const totalGroups = this.wordGroups.length,
|
|
@@ -36216,7 +36241,7 @@ class ScaleIn extends ACustomAnimate {
|
|
|
36216
36241
|
scaleY: null !== (_k = null == attrs ? void 0 : attrs.scaleY) && void 0 !== _k ? _k : 1
|
|
36217
36242
|
}, this._updateFunction = this.updateXY;
|
|
36218
36243
|
}
|
|
36219
|
-
null === (_m = (_l = this.target).applyFinalAttributeToAttribute) || void 0 === _m || _m.call(_l), this.props = to, this.from = from, this.to = to, !1 !== (null === (_o = this.params.controlOptions) || void 0 === _o ? void 0 : _o.immediatelyApply) && this.target
|
|
36244
|
+
null === (_m = (_l = this.target).applyFinalAttributeToAttribute) || void 0 === _m || _m.call(_l), this.props = to, this.from = from, this.to = to, !1 !== (null === (_o = this.params.controlOptions) || void 0 === _o ? void 0 : _o.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
36220
36245
|
}
|
|
36221
36246
|
onEnd(cb) {
|
|
36222
36247
|
super.onEnd(cb);
|
|
@@ -36319,7 +36344,7 @@ class SlideIn extends ACustomAnimate {
|
|
|
36319
36344
|
opacity: 1,
|
|
36320
36345
|
baseOpacity: 1
|
|
36321
36346
|
};
|
|
36322
|
-
"top" === direction ? (from.y = (null !== (_e = attrs.y) && void 0 !== _e ? _e : 0) - distance, to.y = null !== (_f = attrs.y) && void 0 !== _f ? _f : 0, this.propKeys = ["opacity", "baseOpacity", "y"]) : "bottom" === direction ? (from.y = (null !== (_g = attrs.y) && void 0 !== _g ? _g : 0) + distance, to.y = null !== (_h = attrs.y) && void 0 !== _h ? _h : 0, this.propKeys = ["opacity", "baseOpacity", "y"]) : "left" === direction ? (from.x = (null !== (_j = attrs.x) && void 0 !== _j ? _j : 0) - distance, to.x = null !== (_k = attrs.x) && void 0 !== _k ? _k : 0, this.propKeys = ["opacity", "baseOpacity", "x"]) : (from.x = (null !== (_l = attrs.x) && void 0 !== _l ? _l : 0) + distance, to.x = null !== (_m = attrs.x) && void 0 !== _m ? _m : 0, this.propKeys = ["opacity", "baseOpacity", "x"]), this.from = from, this.to = to, this.props = to, this.target
|
|
36347
|
+
"top" === direction ? (from.y = (null !== (_e = attrs.y) && void 0 !== _e ? _e : 0) - distance, to.y = null !== (_f = attrs.y) && void 0 !== _f ? _f : 0, this.propKeys = ["opacity", "baseOpacity", "y"]) : "bottom" === direction ? (from.y = (null !== (_g = attrs.y) && void 0 !== _g ? _g : 0) + distance, to.y = null !== (_h = attrs.y) && void 0 !== _h ? _h : 0, this.propKeys = ["opacity", "baseOpacity", "y"]) : "left" === direction ? (from.x = (null !== (_j = attrs.x) && void 0 !== _j ? _j : 0) - distance, to.x = null !== (_k = attrs.x) && void 0 !== _k ? _k : 0, this.propKeys = ["opacity", "baseOpacity", "x"]) : (from.x = (null !== (_l = attrs.x) && void 0 !== _l ? _l : 0) + distance, to.x = null !== (_m = attrs.x) && void 0 !== _m ? _m : 0, this.propKeys = ["opacity", "baseOpacity", "x"]), this.from = from, this.to = to, this.props = to, applyAppearStartAttributes(this.target, from);
|
|
36323
36348
|
}
|
|
36324
36349
|
onUpdate(end, ratio, out) {
|
|
36325
36350
|
const attribute = this.target.attribute;
|
|
@@ -36347,7 +36372,7 @@ class GrowIn extends ACustomAnimate {
|
|
|
36347
36372
|
opacity: 1,
|
|
36348
36373
|
baseOpacity: 1
|
|
36349
36374
|
};
|
|
36350
|
-
this.propKeys = ["opacity", "baseOpacity"], "x" !== direction && "xy" !== direction || (from.scaleX = fromScale, to.scaleX = null !== (_f = attrs.scaleX) && void 0 !== _f ? _f : 1, this.propKeys.push("scaleX")), "y" !== direction && "xy" !== direction || (from.scaleY = fromScale, to.scaleY = null !== (_g = attrs.scaleY) && void 0 !== _g ? _g : 1, this.propKeys.push("scaleY")), this.from = from, this.to = to, this.props = to, this.target
|
|
36375
|
+
this.propKeys = ["opacity", "baseOpacity"], "x" !== direction && "xy" !== direction || (from.scaleX = fromScale, to.scaleX = null !== (_f = attrs.scaleX) && void 0 !== _f ? _f : 1, this.propKeys.push("scaleX")), "y" !== direction && "xy" !== direction || (from.scaleY = fromScale, to.scaleY = null !== (_g = attrs.scaleY) && void 0 !== _g ? _g : 1, this.propKeys.push("scaleY")), this.from = from, this.to = to, this.props = to, applyAppearStartAttributes(this.target, from);
|
|
36351
36376
|
}
|
|
36352
36377
|
onUpdate(end, ratio, out) {
|
|
36353
36378
|
const attribute = this.target.attribute;
|
|
@@ -36381,7 +36406,7 @@ class SpinIn extends ACustomAnimate {
|
|
|
36381
36406
|
scaleX: null !== (_h = attrs.scaleX) && void 0 !== _h ? _h : 1,
|
|
36382
36407
|
scaleY: null !== (_j = attrs.scaleY) && void 0 !== _j ? _j : 1
|
|
36383
36408
|
};
|
|
36384
|
-
this.propKeys = ["opacity", "baseOpacity", "angle", "scaleX", "scaleY"], this.from = from, this.to = to, this.props = to, this.target
|
|
36409
|
+
this.propKeys = ["opacity", "baseOpacity", "angle", "scaleX", "scaleY"], this.from = from, this.to = to, this.props = to, applyAppearStartAttributes(this.target, from);
|
|
36385
36410
|
}
|
|
36386
36411
|
onUpdate(end, ratio, out) {
|
|
36387
36412
|
const attribute = this.target.attribute;
|
|
@@ -36428,7 +36453,7 @@ class StrokeIn extends ACustomAnimate {
|
|
|
36428
36453
|
lineWidth: lineWidth,
|
|
36429
36454
|
stroke: strokeColor,
|
|
36430
36455
|
strokeOpacity: fromOpacity
|
|
36431
|
-
}, showFill ? (this.from.fillOpacity = fillOpacity, this.to.fillOpacity = null !== (_t = this.originalAttributes.fillOpacity) && void 0 !== _t ? _t : 1) : (this.from.fillOpacity = 0, this.to.fillOpacity = 0), this.propKeys = ["lineDash", "lineDashOffset", "lineWidth", "stroke", "strokeOpacity", "fillOpacity"], this.props = this.to, this.target
|
|
36456
|
+
}, showFill ? (this.from.fillOpacity = fillOpacity, this.to.fillOpacity = null !== (_t = this.originalAttributes.fillOpacity) && void 0 !== _t ? _t : 1) : (this.from.fillOpacity = 0, this.to.fillOpacity = 0), this.propKeys = ["lineDash", "lineDashOffset", "lineWidth", "stroke", "strokeOpacity", "fillOpacity"], this.props = this.to, applyAppearStartAttributes(this.target, this.from);
|
|
36432
36457
|
}
|
|
36433
36458
|
onUpdate(end, ratio, out) {
|
|
36434
36459
|
var _a;
|
|
@@ -36480,7 +36505,7 @@ class StrokeOut extends ACustomAnimate {
|
|
|
36480
36505
|
lineWidth: lineWidth,
|
|
36481
36506
|
stroke: strokeColor,
|
|
36482
36507
|
strokeOpacity: fromOpacity
|
|
36483
|
-
}, showFill ? (this.from.fillOpacity = null !== (_r = this.originalAttributes.fillOpacity) && void 0 !== _r ? _r : 1, this.to.fillOpacity = 0) : (this.from.fillOpacity = 0, this.to.fillOpacity = 0), this.propKeys = ["lineDash", "lineDashOffset", "lineWidth", "stroke", "strokeOpacity", "fillOpacity"], this.props = this.to, this.target
|
|
36508
|
+
}, showFill ? (this.from.fillOpacity = null !== (_r = this.originalAttributes.fillOpacity) && void 0 !== _r ? _r : 1, this.to.fillOpacity = 0) : (this.from.fillOpacity = 0, this.to.fillOpacity = 0), this.propKeys = ["lineDash", "lineDashOffset", "lineWidth", "stroke", "strokeOpacity", "fillOpacity"], this.props = this.to, applyAppearStartAttributes(this.target, this.from);
|
|
36484
36509
|
}
|
|
36485
36510
|
onUpdate(end, ratio, out) {
|
|
36486
36511
|
var _a;
|
|
@@ -36897,7 +36922,7 @@ class MoveIn extends MoveBase {
|
|
|
36897
36922
|
from: from,
|
|
36898
36923
|
to: to
|
|
36899
36924
|
} = moveIn(this.target, this.params.options, this.params);
|
|
36900
|
-
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target
|
|
36925
|
+
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
36901
36926
|
}
|
|
36902
36927
|
}
|
|
36903
36928
|
class MoveOut extends MoveBase {
|
|
@@ -36956,7 +36981,7 @@ class RotateIn extends RotateBase {
|
|
|
36956
36981
|
from: from,
|
|
36957
36982
|
to: to
|
|
36958
36983
|
} = rotateIn(this.target, this.params.options);
|
|
36959
|
-
this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target
|
|
36984
|
+
this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to, null === (_b = (_a = this.target).applyFinalAttributeToAttribute) || void 0 === _b || _b.call(_a), !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && applyAppearStartAttributes(this.target, from);
|
|
36960
36985
|
}
|
|
36961
36986
|
}
|
|
36962
36987
|
class RotateOut extends RotateBase {
|
|
@@ -36972,8 +36997,8 @@ class RotateOut extends RotateBase {
|
|
|
36972
36997
|
|
|
36973
36998
|
class MotionPath extends ACustomAnimate {
|
|
36974
36999
|
constructor(from, to, duration, easing, params) {
|
|
36975
|
-
var _a;
|
|
36976
|
-
super(from, to, duration, easing, params), params && (this.pathLength = params.path.getLength(), this.path = params.path, this.distance = params.distance, this.totalLength = this.distance * this.pathLength, this.initAngle = null !== (_a = params.initAngle) && void 0 !== _a ? _a : 0, this.changeAngle = !!params.changeAngle, this.cb = params.cb);
|
|
37000
|
+
var _a, _b, _c;
|
|
37001
|
+
super(from, to, duration, easing, params), params && (this.pathLength = params.path.getLength(), this.path = params.path, this.distance = params.distance, this.totalLength = this.distance * this.pathLength, this.initAngle = null !== (_a = params.initAngle) && void 0 !== _a ? _a : 0, this.changeAngle = !!params.changeAngle, this.commitOnEnd = null === (_c = null !== (_b = params.commitOnEnd) && void 0 !== _b ? _b : params.saveOnEnd) || void 0 === _c || _c, this.cb = params.cb);
|
|
36977
37002
|
}
|
|
36978
37003
|
onBind() {
|
|
36979
37004
|
this.from = {
|
|
@@ -36988,7 +37013,7 @@ class MotionPath extends ACustomAnimate {
|
|
|
36988
37013
|
pos: pos,
|
|
36989
37014
|
angle: angle
|
|
36990
37015
|
} = this.path.getAttrAt(at);
|
|
36991
|
-
attrs.x = pos.x, attrs.y = pos.y, this.changeAngle && (attrs.angle = angle + this.initAngle), this.cb && this.cb(this.from, this.to, ratio, this.target), this.target.setAttributes(attrs);
|
|
37016
|
+
attrs.x = pos.x, attrs.y = pos.y, this.changeAngle && (attrs.angle = angle + this.initAngle), this.cb && this.cb(this.from, this.to, ratio, this.target), end && this.commitOnEnd ? this.target.setAttributes(attrs) : applyAnimationTransientAttributes(this.target, attrs);
|
|
36992
37017
|
}
|
|
36993
37018
|
}
|
|
36994
37019
|
|
|
@@ -54286,6 +54311,6 @@ function createStage(params) {
|
|
|
54286
54311
|
return resolveLegacyApp().createStage(params);
|
|
54287
54312
|
}
|
|
54288
54313
|
|
|
54289
|
-
const version = "1.1.0-alpha.
|
|
54314
|
+
const version = "1.1.0-alpha.4";
|
|
54290
54315
|
|
|
54291
54316
|
export { AComponentAnimate, ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AStageAnimate, AXIS_ELEMENT_NAME, AbstractComponent, AbstractGraphicRender, Animate, AnimateExecutor, AnimateMode, AnimateStatus, Step as AnimateStep, AnimateStepType, AnimationStateManager, AnimationStateStore, AnimationStates, AnimationTransitionRegistry, AppContext, Application, Arc, Arc3d, Arc3dRender, ArcInfo, ArcLabel, ArcRender, ArcRenderContribution, ArcSegment, Area, AreaRender, AreaRenderContribution, AttributeUpdateType, AutoEnablePlugins, AxisStateValue, BaseCanvas, BaseEnvContribution, BasePlayer, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEntry, BrowserEnvContribution, Brush, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasStarPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CheckBox, Circle, CircleAxis, CircleAxisGrid, CircleCrosshair, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipIn, ClipOut, ClipRadiusAnimate, ColorContinuousLegend, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, ComponentAnimator, Context2dFactory, ContinuousPlayer, ContributionProvider, ContributionRegistry, ContributionStore, CubicBezierCurve, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TEXT_FONT_FAMILY$1 as DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseClipRenderAfterContribution, DefaultBaseClipRenderBeforeContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStarAttribute, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction, DirectionEnum, DirectionalLight, DiscreteLegend, DiscretePlayer, Dissolve, Distortion, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EmptyTip, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeIn, FadeOut, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, FromTo, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, GaussianBlur, Generator, Gesture, GifImage, Glitch, GlobalPickerService, Glyph, GlyphRender, GradientParser, Graphic, GraphicCreator$1 as GraphicCreator, GraphicFactory, GraphicPicker, GraphicRender, GraphicService, GraphicStateExtension, GraphicUtil, Grayscale, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupTransition, GroupUpdateAABBBoundsMode, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowIn, GrowOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, HtmlAttributePlugin, IContainPointMode, IDataZoomEvent, IDataZoomInteractiveEvent, IMAGE_NUMBER_TYPE, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, Indicator, InputRichText, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LEGEND_ELEMENT_NAME, LINE_NUMBER_TYPE, LabelBase, LabelItemAppear, LabelItemDisappear, Layer, LayerFactory, LayerService, LegendEvent, LegendStateValue, Line$1 as Line, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LineRender, Linear, LinearClosed, LinkPath, Lottie, ManualTicker, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathRichTextPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, MiniappEntry, MonotoneX, MonotoneY, MorphingPath, MotionPath, MoveIn, MoveOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, NodeEntry, OrthoCamera, OutputRichText, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Pager, Particle, Path, PathRender, PathRenderContribution, PerformanceRAF, PickItemInterceptor, PickServiceInterceptor, PickerRegistry, PickerService, Pixelation, PlayerEventEnum, PluginRegistry, PluginService, Polygon, PolygonCrosshair, PolygonRender, PolygonRenderContribution, PolygonSectorCrosshair, PopTip, PoptipAppear, PoptipDisappear, PulseAnimate, Pyramid3d, Pyramid3dRender, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, Radio, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectCrosshair, RectLabel, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, RendererRegistry, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, RotateIn, RotateOut, SLIDER_ELEMENT_NAME, STAR_NUMBER_TYPE, STATUS$1 as STATUS, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, ScaleIn, ScaleOut, ScrollBar, SectorCrosshair, SegContext, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SizeContinuousLegend, SlideIn, SlideOut, SlideOutRichText, SlideRichText, Slider, SpinIn, SpinOut, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StageFactory, Star, StarRender, StarRenderContribution, State, StateDefinitionCompiler, StateEngine, StaticLayerHandlerContribution, Step$1 as Step, StepClosed, StoryLabelItem, StreamLight, StrokeIn, StrokeOut, Switch, Symbol$1 as Symbol, SymbolLabel, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TableSeriesNumber, Tag, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, Timeline, Title, Tooltip, TopZIndex, TransformUtil, Update, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VTag, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WeatherBox, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, alignTextInLine, alternatingWave, angle, angleLabelOrientAttribute, angleTo, application, applyTransformOnBezierCurves, arc3dModule, arcModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindArc3dCanvasPickerContribution, bindArc3dRenderModule, bindArcCanvasPickerContribution, bindArcMathPickerContribution, bindArcRenderModule, bindAreaCanvasPickerContribution, bindAreaMathPickerContribution, bindAreaRenderModule, bindBrowserEnv, bindCircleCanvasPickerContribution, bindCircleMathPickerContribution, bindCircleRenderModule, bindContributionProvider, bindContributionProviderNoSingletonScope, bindFeishuEnv, bindGifImageCanvasPickerContribution, bindGifImageRenderContribution, bindGlyphCanvasPickerContribution, bindGlyphMathPickerContribution, bindGlyphRenderModule, bindHarmonyEnv, bindImageCanvasPickerContribution, bindImageMathPickerContribution, bindImageRenderModule, bindLineCanvasPickerContribution, bindLineMathPickerContribution, bindLineRenderModule, bindLottieCanvasPickerContribution, bindLottieRenderContribution, bindLynxEnv, bindMathPicker, bindNodeEnv, bindPathCanvasPickerContribution, bindPathMathPickerContribution, bindPathRenderModule, bindPolygonCanvasPickerContribution, bindPolygonMathPickerContribution, bindPolygonRenderModule, bindPyramid3dCanvasPickerContribution, bindPyramid3dRenderModule, bindRect3dCanvasPickerContribution, bindRect3dRenderModule, bindRectCanvasPickerContribution, bindRectMathPickerContribution, bindRectRenderModule, bindRichTextMathPickerContribution, bindRichtextCanvasPickerContribution, bindRichtextRenderModule, bindStarRenderModule, bindSymbolCanvasPickerContribution, bindSymbolMathPickerContribution, bindSymbolRenderModule, bindTTEnv, bindTaroEnv, bindTextCanvasPickerContribution, bindTextMathPickerContribution, bindTextRenderModule, bindWxEnv, bootstrapLegacyVRenderRuntime, bootstrapVRenderBrowserApp, bootstrapVRenderNodeApp, boundStroke, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, cartesianTicks, centerToCorner, centroidOfSubpath, circleBounds, circleModule, clampRadian, clock, colorEqual, colorStringInterpolationToStr, columnCenterToEdge, columnEdgeToCenter, columnLeftToRight, columnRightToLeft, computeOffsetForlimit, configureRuntimeApplicationForApp, container, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, cornerTangents, cornerToCenter, createBrowserApp$1 as createApp, createArc, createArc3d, createArea, createBrowserApp$1 as createBrowserApp, createBrowserVRenderApp, createCanvasEventTransformer, createCircle, createColor, createComponentAnimator, createConicalGradient, createContributionProvider$1 as createContributionProvider, createEventTransformer, createGifImage, createGlyph, createGraphic$1 as createGraphic, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createMiniappApp, createNodeApp$1 as createNodeApp, createNodeVRenderApp, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createStar, createSymbol, createText, createTextGraphicByType, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseClipRenderAfterContribution, defaultBaseClipRenderBeforeContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultStarBackgroundRenderContribution, defaultStarTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, deltaXYToAngle, diagonalCenterToEdge, diagonalTopLeftToBottomRight, diff, divideCubic, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawBackgroundImage, drawImageWithLayout, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, fuzzyEqualNumber, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepClosedSegments, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getAxisBreakSymbolAttrs, getBackgroundImage, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getElMap, getExtraModelMatrix, getHorizontalPath, getLegacyBindingContext, getMarksByName, getModelMatrix, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getRichTextBounds, getRuntimeInstallerBindingContext, getRuntimeInstallerGlobal, getScaledStroke, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextBounds, getTextType, getTheme, getThemeFromGroup, getVerticalCoord, getVerticalPath, globalTheme, glyphModule, graphicCreator$1 as graphicCreator, graphicService, graphicUtil, hasOverlap, htmlAttributeTransform, identityMat4, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initTextMeasure, initWxEnv, installBrowserEnvToApp, installBrowserPickersToApp, installDefaultGraphicsToApp, installNodeEnvToApp, installNodePickersToApp, installPoptipToApp, installRuntimeDrawContributionsToApp, installRuntimeGraphicRenderersToApp, installRuntimePickersToApp, installScrollbarToApp, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, interpolatePureColorArrayToStr, intersect, isBrowserEnv, isInRange, isNoRepeatSizingMode, isNodeEnv, isPostiveXAxis, isRichText, isSvg, isVisible, isXML, jsx, labelSmartInvert, layerService, length, limitShapeInBounds, lineModule, linearDiscreteTicks, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadMathPicker, loadNodeEnv, loadPoptip, loadScrollbar, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, mapToCanvasPointForCanvas, mat3Tomat4, mat4Allocate, matrixAllocate, measureTextSize, morphPath, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, newThemeObj, normalize$1 as normalize, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, particleEffect, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polarAngleAxisDiscreteTicks, polarTicks, polygonModule, preLoadAllModule, pulseWave, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, randomOpacity, reactAttributeTransform, rect3dModule, rectFillVisible, rectModule, rectStrokeVisible, recursiveCallBinarySplit, refreshRuntimeInstallerContributions, registerAnimate, registerArc, registerArc3d, registerArc3dGraphic, registerArcDataLabel, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerCustomAnimate, registerDirectionalLight, registerFlexLayoutPlugin, registerGifGraphic, registerGifImage, registerGlobalEventTransformer, registerGlyph, registerGlyphGraphic, registerGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineDataLabel, registerLineGraphic, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectDataLabel, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerStar, registerStarGraphic, registerSymbol, registerSymbolDataLabel, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWindowEventTransformer, registerWrapText, registerWrapTextGraphic, removeRepeatPoint, renderCommandList, resolveBackgroundDrawMode, resolveBackgroundParamsByImageSizing, resolveBackgroundPosition, resolveBackgroundSizing, resolveContainerBinding$1 as resolveContainerBinding, resolveImageMode, resolveImageRepeatMode, resolveRenderableImageSize, rewriteProto, richTextAttributeTransform, richtextModule, rippleEffect, rotateX, rotateY, rotateZ, rotationScan, roughModule, rowBottomToTop, rowCenterToEdge, rowEdgeToCenter, rowTopToBottom, runFill, runStroke, scale, scaleMat4, segments, setPoptipTheme, shouldClipImageByLayout, shouldUseMat4, shouldUseSimpleAttributeFastPath, smartInvertStrategy, snakeWave, snapLength, spiralEffect, splitArc, splitArea, splitCircle, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, starModule, strCommandMap, strokeVisible, symbolModule, tan2AngleToAngle, textAttributesToStyle, textDrawOffsetX, textDrawOffsetY, textIntersect, textLayoutOffsetY, textModule, ticks, transformMat4, transformPointForCanvas, transformUtil, transitionRegistry, translate, traverseGroup, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, xul };
|