@visactor/vrender 1.0.0-alpha.3 → 1.0.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/dist/index.es.js CHANGED
@@ -1220,6 +1220,9 @@ const isArrayLike = function (value) {
1220
1220
  };
1221
1221
  var isArrayLike$1 = isArrayLike;
1222
1222
 
1223
+ const isDate = value => isType$1(value, "Date");
1224
+ var isDate$1 = isDate;
1225
+
1223
1226
  const isNumber = function (value) {
1224
1227
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
1225
1228
  const type = typeof value;
@@ -1240,6 +1243,22 @@ const hasOwnProperty = Object.prototype.hasOwnProperty,
1240
1243
  has = (object, key) => null != object && hasOwnProperty.call(object, key);
1241
1244
  var has$1 = has;
1242
1245
 
1246
+ function cloneDeep(value, ignoreWhen, excludeKeys) {
1247
+ let result;
1248
+ if (!isValid$1(value) || "object" != typeof value || ignoreWhen && ignoreWhen(value)) return value;
1249
+ const isArr = isArray$1(value),
1250
+ length = value.length;
1251
+ result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean$1(value) || isNumber$1(value) || isString$1(value) ? value : isDate$1(value) ? new Date(+value) : void 0;
1252
+ const props = isArr ? void 0 : Object.keys(Object(value));
1253
+ let index = -1;
1254
+ if (result) for (; ++index < (props || value).length;) {
1255
+ const key = props ? props[index] : index,
1256
+ subValue = value[key];
1257
+ excludeKeys && excludeKeys.includes(key.toString()) ? result[key] = subValue : result[key] = cloneDeep(subValue, ignoreWhen, excludeKeys);
1258
+ }
1259
+ return result;
1260
+ }
1261
+
1243
1262
  function baseMerge(target, source) {
1244
1263
  let shallowArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
1245
1264
  let skipTargetArray = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
@@ -16844,6 +16863,12 @@ class Stage extends Group {
16844
16863
  get eventSystem() {
16845
16864
  return this._eventSystem;
16846
16865
  }
16866
+ get ticker() {
16867
+ return this._ticker;
16868
+ }
16869
+ set ticker(ticker) {
16870
+ this._ticker && this._ticker.removeListener("tick", this.afterTickCb), ticker.addTimeline(this.timeline), this._ticker = ticker, this._ticker.on("tick", this.afterTickCb);
16871
+ }
16847
16872
  constructor() {
16848
16873
  let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16849
16874
  var _a, _b;
@@ -16883,10 +16908,10 @@ class Stage extends Group {
16883
16908
  }
16884
16909
  initAnimate(params) {
16885
16910
  var _a;
16886
- this.createTicker && this.createTimeline && (this.ticker = params.ticker || this.createTicker(this), "performance" === (null === (_a = this.params.optimize) || void 0 === _a ? void 0 : _a.tickRenderMode) && this.ticker.setFPS(30), this.timeline = this.createTimeline(), this.ticker.addTimeline(this.timeline), this.ticker.on("tick", this.afterTickCb));
16911
+ this.createTicker && this.createTimeline && (this._ticker = params.ticker || this.createTicker(this), "performance" === (null === (_a = this.params.optimize) || void 0 === _a ? void 0 : _a.tickRenderMode) && this._ticker.setFPS(30), this.timeline = this.createTimeline(), this._ticker.addTimeline(this.timeline), this._ticker.on("tick", this.afterTickCb));
16887
16912
  }
16888
16913
  startAnimate() {
16889
- this.ticker && this.timeline && (this.ticker.start(), this.timeline.resume());
16914
+ this._ticker && this.timeline && (this._ticker.start(), this.timeline.resume());
16890
16915
  }
16891
16916
  pauseRender() {
16892
16917
  let sr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
@@ -17219,7 +17244,7 @@ class Stage extends Group {
17219
17244
  layer.release();
17220
17245
  }), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
17221
17246
  item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
17222
- }), this.interactiveLayer.release()), this.window.release(), null === (_a = this.ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this.ticker) || void 0 === _b || _b.removeListener("afterTick", this.afterTickCb), this.renderService.renderTreeRoots = [];
17247
+ }), this.interactiveLayer.release()), this.window.release(), null === (_a = this._ticker) || void 0 === _a || _a.remTimeline(null == this ? void 0 : this.timeline), null === (_b = this._ticker) || void 0 === _b || _b.removeListener("tick", this.afterTickCb), this.renderService.renderTreeRoots = [];
17223
17248
  }
17224
17249
  setStage(stage) {}
17225
17250
  dirty(b, matrix) {
@@ -30158,7 +30183,7 @@ class Step {
30158
30183
  tryPreventConflict() {
30159
30184
  const animate = this.animate;
30160
30185
  this.target.animates.forEach(a => {
30161
- if (a === animate || a.priority > animate.priority) return;
30186
+ if (a === animate || a.priority > animate.priority || a.priority === 1 / 0) return;
30162
30187
  const fromProps = a.getStartProps();
30163
30188
  this.propKeys.forEach(key => {
30164
30189
  null != fromProps[key] && a.preventAttr(key);
@@ -30204,6 +30229,13 @@ class WaitStep extends Step {
30204
30229
  constructor(type, props, duration, easing) {
30205
30230
  super(type, props, duration, easing);
30206
30231
  }
30232
+ onStart() {
30233
+ super.onStart();
30234
+ }
30235
+ onFirstRun() {
30236
+ const fromProps = this.getFromProps();
30237
+ this.target.setAttributes(fromProps);
30238
+ }
30207
30239
  update(end, ratio, out) {
30208
30240
  this.onStart();
30209
30241
  }
@@ -30435,11 +30467,11 @@ class Animate {
30435
30467
  return this._bounce = b, this;
30436
30468
  }
30437
30469
  advance(delta) {
30438
- var _a;
30470
+ var _a, _b, _c;
30439
30471
  if (this.status === AnimateStatus.END) return void console.warn("aaa 动画已经结束,不能推进");
30440
30472
  const nextTime = this.currentTime + delta;
30441
30473
  if (nextTime < this._startTime) return void (this.currentTime = nextTime);
30442
- if (nextTime >= this._startTime + this._totalDuration) return null === (_a = this._lastStep) || void 0 === _a || _a.onEnd(), this.onEnd(), void (this.status = AnimateStatus.END);
30474
+ if (nextTime >= this._startTime + this._totalDuration) return null === (_a = this._lastStep) || void 0 === _a || _a.onUpdate(!0, 1, {}), null === (_b = this._lastStep) || void 0 === _b || _b.onEnd(), this.onEnd(), void (this.status = AnimateStatus.END);
30443
30475
  this.status = AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
30444
30476
  let cycleTime = nextTime - this._startTime,
30445
30477
  newLoop = !1,
@@ -30464,9 +30496,10 @@ class Animate {
30464
30496
  }
30465
30497
  }
30466
30498
  if (!targetStep) return;
30499
+ targetStep !== this.lastRunStep && (null === (_c = this.lastRunStep) || void 0 === _c || _c.onEnd()), this.lastRunStep = targetStep;
30467
30500
  const ratio = (cycleTime - targetStep.getStartTime()) / targetStep.getDuration(),
30468
30501
  isEnd = ratio >= 1;
30469
- targetStep.update(isEnd, ratio, {}), isEnd && targetStep.onEnd();
30502
+ targetStep.update(isEnd, ratio, {}), isEnd && (targetStep.onEnd(), this.lastRunStep = null);
30470
30503
  }
30471
30504
  updateDuration() {
30472
30505
  this._lastStep ? (this._duration = this._lastStep.getStartTime() + this._lastStep.getDuration(), this._totalDuration = this._duration * (this._loopCount + 1)) : this._duration = 0;
@@ -30613,8 +30646,16 @@ class ManualTickHandler {
30613
30646
  getTime() {
30614
30647
  return this.currentTime;
30615
30648
  }
30649
+ tickTo(time, cb) {
30650
+ this.startTime < 0 && (this.startTime = 0, this.currentTime = 0);
30651
+ const interval = time - this.currentTime;
30652
+ this.tick(interval, cb);
30653
+ }
30616
30654
  }
30617
30655
  class ManualTicker extends DefaultTicker {
30656
+ constructor(stage) {
30657
+ super(stage), this.lastFrameTime = 0, this.status = STATUS$1.RUNNING;
30658
+ }
30618
30659
  setupTickHandler() {
30619
30660
  const handler = new ManualTickHandler();
30620
30661
  return this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0;
@@ -30622,6 +30663,19 @@ class ManualTicker extends DefaultTicker {
30622
30663
  getTime() {
30623
30664
  return this.tickerHandler.getTime();
30624
30665
  }
30666
+ tickAt(time) {
30667
+ this.tickTo(time);
30668
+ }
30669
+ start() {
30670
+ let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
30671
+ if (this.status === STATUS$1.RUNNING) return !1;
30672
+ if (!this.tickerHandler) return !1;
30673
+ if (!force) {
30674
+ if (this.status === STATUS$1.PAUSE) return !1;
30675
+ if (this.ifCanStop()) return !1;
30676
+ }
30677
+ return this.status = STATUS$1.RUNNING, !0;
30678
+ }
30625
30679
  }
30626
30680
 
30627
30681
  function generatorPathEasingFunc(path) {
@@ -30732,47 +30786,49 @@ class AnimateExecutor {
30732
30786
  index >= 0 && this._animates.splice(index, 1), 0 === this._activeCount && this._started && (this._started = !1, this.onEnd());
30733
30787
  });
30734
30788
  }
30735
- parseParams(params, isTimeline) {
30789
+ parseParams(params, isTimeline, child) {
30736
30790
  var _a, _b;
30737
30791
  const totalTime = this.resolveValue(params.totalTime, void 0, void 0),
30738
30792
  startTime = this.resolveValue(params.startTime, void 0, 0),
30739
- parsedParams = Object.assign({}, params);
30793
+ parsedParams = cloneDeep(params);
30740
30794
  parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
30741
- const oneByOne = this.resolveValue(params.oneByOne, void 0, !1);
30795
+ const oneByOne = this.resolveValue(params.oneByOne, child, !1);
30742
30796
  if (isTimeline) {
30743
30797
  const timeSlices = parsedParams.timeSlices;
30744
30798
  isArray$1(timeSlices) || (parsedParams.timeSlices = [timeSlices]);
30745
30799
  let sliceTime = 0;
30746
30800
  parsedParams.timeSlices.forEach(slice => {
30747
- slice.delay = this.resolveValue(slice.delay, void 0, 0), slice.delayAfter = this.resolveValue(slice.delayAfter, void 0, 0), slice.duration = this.resolveValue(slice.duration, void 0, 300), sliceTime += slice.delay + slice.duration + slice.delayAfter;
30801
+ slice.delay = this.resolveValue(slice.delay, child, 0), slice.delayAfter = this.resolveValue(slice.delayAfter, child, 0), slice.duration = this.resolveValue(slice.duration, child, 300), sliceTime += slice.delay + slice.duration + slice.delayAfter;
30748
30802
  });
30749
30803
  let oneByOneDelay = 0,
30750
30804
  oneByOneTime = 0;
30751
- if (oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay, totalTime) {
30752
- const _totalTime = sliceTime + oneByOneDelay * (this._target.count - 2),
30753
- scale = totalTime ? totalTime / _totalTime : 1;
30754
- parsedParams.timeSlices = parsedParams.timeSlices.map(slice => {
30755
- let effects = slice.effects;
30756
- return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
30757
- delay: slice.delay * scale,
30758
- delayAfter: slice.delayAfter * scale,
30759
- duration: slice.duration * scale,
30760
- effects: effects.map(effect => {
30761
- var _a, _b;
30762
- const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
30763
- customType = custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
30764
- return Object.assign(Object.assign({}, effect), {
30765
- custom: custom,
30766
- customType: customType
30767
- });
30768
- })
30769
- });
30770
- }), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
30805
+ oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay;
30806
+ let scale = 1;
30807
+ if (totalTime) {
30808
+ const _totalTime = sliceTime + oneByOneDelay * (this._target.count - 2);
30809
+ scale = totalTime ? totalTime / _totalTime : 1;
30771
30810
  }
30811
+ parsedParams.timeSlices = parsedParams.timeSlices.map(slice => {
30812
+ let effects = slice.effects;
30813
+ return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
30814
+ delay: slice.delay * scale,
30815
+ delayAfter: slice.delayAfter * scale,
30816
+ duration: slice.duration * scale,
30817
+ effects: effects.map(effect => {
30818
+ var _a, _b;
30819
+ const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
30820
+ customType = custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
30821
+ return Object.assign(Object.assign({}, effect), {
30822
+ custom: custom,
30823
+ customType: customType
30824
+ });
30825
+ })
30826
+ });
30827
+ }), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
30772
30828
  } else {
30773
- const delay = this.resolveValue(params.delay, void 0, 0),
30774
- delayAfter = this.resolveValue(params.delayAfter, void 0, 0),
30775
- duration = this.resolveValue(params.duration, void 0, 300);
30829
+ const delay = this.resolveValue(params.delay, child, 0),
30830
+ delayAfter = this.resolveValue(params.delayAfter, child, 0),
30831
+ duration = this.resolveValue(params.duration, child, 300);
30776
30832
  let oneByOneDelay = 0,
30777
30833
  oneByOneTime = 0;
30778
30834
  oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = duration + oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay, parsedParams.custom = null !== (_a = params.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = params.type) && void 0 !== _b ? _b : "fromTo"];
@@ -30793,20 +30849,21 @@ class AnimateExecutor {
30793
30849
  const isTimeline = ("timeSlices" in params);
30794
30850
  let filteredChildren;
30795
30851
  isTimeline && params.partitioner && (filteredChildren = (null != filteredChildren ? filteredChildren : this._target.getChildren()).filter(child => {
30796
- var _a;
30797
- return params.partitioner(null === (_a = child.context) || void 0 === _a ? void 0 : _a.data, child, {});
30798
- })), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
30799
30852
  var _a, _b;
30800
- return params.sort(null === (_a = a.context) || void 0 === _a ? void 0 : _a.data, null === (_b = b.context) || void 0 === _b ? void 0 : _b.data, a, b, {});
30853
+ return params.partitioner(null === (_b = null === (_a = child.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], child, {});
30854
+ })), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
30855
+ var _a, _b, _c, _d;
30856
+ return params.sort(null === (_b = null === (_a = a.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], null === (_d = null === (_c = b.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], a, b, {});
30801
30857
  }));
30802
- const parsedParams = this.parseParams(params, isTimeline),
30803
- cb = isTimeline ? (child, index, count) => {
30804
- const animate = this.executeTimelineItem(parsedParams, child, index, count);
30805
- animate && this._trackAnimation(animate);
30806
- } : (child, index, count) => {
30807
- const animate = this.executeTypeConfigItem(parsedParams, child, index, count);
30808
- animate && this._trackAnimation(animate);
30809
- };
30858
+ const cb = isTimeline ? (child, index, count) => {
30859
+ const parsedParams = this.parseParams(params, isTimeline, child),
30860
+ animate = this.executeTimelineItem(parsedParams, child, index, count);
30861
+ animate && this._trackAnimation(animate);
30862
+ } : (child, index, count) => {
30863
+ const parsedParams = this.parseParams(params, isTimeline, child),
30864
+ animate = this.executeTypeConfigItem(parsedParams, child, index, count);
30865
+ animate && this._trackAnimation(animate);
30866
+ };
30810
30867
  filteredChildren ? filteredChildren.forEach((child, index) => cb(child, index, filteredChildren.length)) : this._target.count <= 1 ? cb(this._target, 0, 1) : this._target.forEachChildren((child, index) => cb(child, index, this._target.count - 1));
30811
30868
  }
30812
30869
  executeTypeConfigItem(params, graphic, index, count) {
@@ -30834,22 +30891,24 @@ class AnimateExecutor {
30834
30891
  const delayValue = isFunction$1(delay) ? delay(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : delay,
30835
30892
  datum = null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0],
30836
30893
  indexKey = null === (_e = graphic.context) || void 0 === _e ? void 0 : _e.indexKey;
30837
- datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime + delayValue);
30838
- const wait = index * oneByOneDelay;
30894
+ datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime);
30895
+ const wait = index * oneByOneDelay + delayValue;
30839
30896
  wait > 0 && animate.wait(wait);
30840
30897
  let parsedFromProps = null,
30841
30898
  props = params.to,
30842
30899
  from = params.from;
30843
- props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic), oneByOneDelay && animate.wait(oneByOneDelay * (count - index - 1));
30900
+ props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
30901
+ let totalDelay = 0;
30902
+ oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
30844
30903
  const delayAfterValue = isFunction$1(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
30845
- return delayAfterValue > 0 && animate.wait(delayAfterValue), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
30904
+ return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
30846
30905
  }
30847
- _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic) {
30906
+ _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
30848
30907
  var _a, _b, _c, _d;
30849
30908
  if (custom && customType) {
30850
30909
  const customParams = this.resolveValue(customParameters, graphic, {}),
30851
30910
  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;
30852
- customParams.options = objOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
30911
+ 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);
30853
30912
  } else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
30854
30913
  }
30855
30914
  executeTimelineItem(params, graphic, index, count) {
@@ -30884,7 +30943,7 @@ class AnimateExecutor {
30884
30943
  delayAfterValue = isFunction$1(delayAfter) ? delayAfter(null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0], graphic, {}) : delayAfter;
30885
30944
  delayValue > 0 && animate.wait(delayValue);
30886
30945
  (Array.isArray(effects) ? effects : [effects]).forEach(effect => {
30887
- var _a, _b;
30946
+ var _a;
30888
30947
  const {
30889
30948
  type = "fromTo",
30890
30949
  channel: channel,
@@ -30897,8 +30956,8 @@ class AnimateExecutor {
30897
30956
  from = effect.from;
30898
30957
  props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
30899
30958
  const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
30900
- customType = null !== (_b = effect.customType) && void 0 !== _b ? _b : custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
30901
- this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic);
30959
+ customType = effect.customType;
30960
+ this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, null, options, type, graphic);
30902
30961
  }), delayAfterValue > 0 && animate.wait(delayAfterValue);
30903
30962
  }
30904
30963
  createCustomInterpolatorAnimation(animate, interpolator, props, duration, easing, customParams) {
@@ -30921,9 +30980,9 @@ class AnimateExecutor {
30921
30980
  const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
30922
30981
  void 0 !== value && (props[key] = value);
30923
30982
  }) : Object.keys(channel).forEach(key => {
30924
- var _a, _b;
30983
+ var _a, _b, _c, _d;
30925
30984
  const config = channel[key];
30926
- void 0 !== config.to && ("function" == typeof config.to ? props[key] = config.to(null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data, graphic, {}) : props[key] = config.to), void 0 !== config.from && (from || (from = {}), "function" == typeof config.from ? from[key] = config.from(null === (_b = graphic.context) || void 0 === _b ? void 0 : _b.data, graphic, {}) : from[key] = config.from);
30985
+ 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);
30927
30986
  }), {
30928
30987
  from: from,
30929
30988
  props: props
@@ -30933,8 +30992,8 @@ class AnimateExecutor {
30933
30992
  };
30934
30993
  }
30935
30994
  resolveValue(value, graphic, defaultValue) {
30936
- var _a;
30937
- return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data, graphic, {}) : value;
30995
+ var _a, _b;
30996
+ return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : value;
30938
30997
  }
30939
30998
  executeItem(params, graphic) {
30940
30999
  let index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
@@ -31157,6 +31216,10 @@ class AnimateExtension {
31157
31216
  getFinalAttribute() {
31158
31217
  return this.finalAttribute;
31159
31218
  }
31219
+ getGraphicAttribute(key) {
31220
+ let prev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
31221
+ return !prev && this.finalAttribute ? this.finalAttribute[key] : this.attribute[key];
31222
+ }
31160
31223
  }
31161
31224
 
31162
31225
  function registerAnimate() {
@@ -31603,21 +31666,18 @@ class CommonIn extends ACustomAnimate {
31603
31666
  super(from, to, duration, easing, params);
31604
31667
  }
31605
31668
  onBind() {
31606
- var _a;
31669
+ var _a, _b, _c;
31607
31670
  super.onBind();
31608
31671
  const attrs = this.target.getFinalAttribute(),
31609
31672
  fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
31610
31673
  to = {},
31611
- from = {};
31674
+ from = null !== (_b = this.from) && void 0 !== _b ? _b : {};
31612
31675
  this.keys.forEach(key => {
31613
- var _a, _b;
31614
- to[key] = null !== (_a = null == attrs ? void 0 : attrs[key]) && void 0 !== _a ? _a : 1, from[key] = null !== (_b = fromAttrs[key]) && void 0 !== _b ? _b : 0;
31676
+ var _a, _b, _c;
31677
+ 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;
31615
31678
  });
31616
31679
  const finalAttribute = this.target.getFinalAttribute();
31617
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, this.target.setAttributes(from);
31618
- }
31619
- onEnd(cb) {
31620
- super.onEnd(cb);
31680
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, !1 !== (null === (_c = this.params.controlOptions) || void 0 === _c ? void 0 : _c.immediatelyApply) && this.target.setAttributes(from);
31621
31681
  }
31622
31682
  onUpdate(end, ratio, out) {
31623
31683
  const attribute = this.target.attribute;
@@ -31653,7 +31713,9 @@ class CommonOut extends ACustomAnimate {
31653
31713
 
31654
31714
  class GroupFadeIn extends CommonIn {
31655
31715
  constructor(from, to, duration, easing, params) {
31656
- super(from, to, duration, easing, params), this.keys = ["baseOpacity"];
31716
+ super(from, to, duration, easing, params), this.keys = ["baseOpacity"], this.from = {
31717
+ baseOpacity: 0
31718
+ };
31657
31719
  }
31658
31720
  }
31659
31721
  class GroupFadeOut extends CommonOut {
@@ -31699,7 +31761,9 @@ class RotateBySphereAnimate extends ACustomAnimate {
31699
31761
 
31700
31762
  class ClipIn extends CommonIn {
31701
31763
  constructor(from, to, duration, easing, params) {
31702
- super(from, to, duration, easing, params), this.keys = ["clipRange"];
31764
+ super(from, to, duration, easing, params), this.keys = ["clipRange"], this.from = {
31765
+ clipRange: 0
31766
+ };
31703
31767
  }
31704
31768
  }
31705
31769
  class ClipOut extends CommonOut {
@@ -31710,7 +31774,9 @@ class ClipOut extends CommonOut {
31710
31774
 
31711
31775
  class FadeIn extends CommonIn {
31712
31776
  constructor(from, to, duration, easing, params) {
31713
- super(from, to, duration, easing, params), this.keys = ["opacity"];
31777
+ super(from, to, duration, easing, params), this.keys = ["opacity"], this.from = {
31778
+ opacity: 0
31779
+ };
31714
31780
  }
31715
31781
  }
31716
31782
  class FadeOut extends CommonOut {
@@ -32216,6 +32282,7 @@ class GworPointsBase extends ACustomAnimate {
32216
32282
  }
32217
32283
  class GrowPointsIn extends GworPointsBase {
32218
32284
  onBind() {
32285
+ var _a;
32219
32286
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
32220
32287
  const {
32221
32288
  from: from,
@@ -32223,7 +32290,7 @@ class GrowPointsIn extends GworPointsBase {
32223
32290
  } = growPointsIn(this.target, this.params.options, this.params);
32224
32291
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
32225
32292
  const finalAttribute = this.target.getFinalAttribute();
32226
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
32293
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
32227
32294
  } else this.valid = !1;
32228
32295
  }
32229
32296
  }
@@ -32248,10 +32315,9 @@ class GrowPointsOut extends GworPointsBase {
32248
32315
  }
32249
32316
  }
32250
32317
  const changePointsX = (graphic, options, animationParameters) => graphic.getFinalAttribute().points.map(point => {
32251
- var _a;
32252
32318
  if (options && "negative" === options.orient) {
32253
- let groupRight = animationParameters.width;
32254
- return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = groupRight), Object.assign(Object.assign({}, point), {
32319
+ let groupRight = graphic.stage.viewWidth;
32320
+ return graphic.parent.parent.parent && (groupRight = graphic.parent.parent.parent.AABBBounds.width()), Object.assign(Object.assign({}, point), {
32255
32321
  x: groupRight,
32256
32322
  y: point.y,
32257
32323
  x1: groupRight,
@@ -32271,7 +32337,7 @@ const changePointsX = (graphic, options, animationParameters) => graphic.getFina
32271
32337
  const attrs = graphic.getFinalAttribute();
32272
32338
  return {
32273
32339
  from: {
32274
- points: changePointsX(graphic, options, animationParameters)
32340
+ points: changePointsX(graphic, options)
32275
32341
  },
32276
32342
  to: {
32277
32343
  points: attrs.points
@@ -32280,6 +32346,7 @@ const changePointsX = (graphic, options, animationParameters) => graphic.getFina
32280
32346
  };
32281
32347
  class GrowPointsXIn extends GworPointsBase {
32282
32348
  onBind() {
32349
+ var _a;
32283
32350
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
32284
32351
  const {
32285
32352
  from: from,
@@ -32287,7 +32354,7 @@ class GrowPointsXIn extends GworPointsBase {
32287
32354
  } = growPointsXIn(this.target, this.params.options, this.params);
32288
32355
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
32289
32356
  const finalAttribute = this.target.getFinalAttribute();
32290
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
32357
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
32291
32358
  } else this.valid = !1;
32292
32359
  }
32293
32360
  }
@@ -32298,24 +32365,23 @@ class GrowPointsXOut extends GworPointsBase {
32298
32365
  {
32299
32366
  from: from,
32300
32367
  to: to
32301
- } = (graphic = this.target, options = this.params.options, animationParameters = this.params, {
32368
+ } = (graphic = this.target, options = this.params.options, this.params, {
32302
32369
  from: {
32303
32370
  points: graphic.getFinalAttribute().points
32304
32371
  },
32305
32372
  to: {
32306
- points: changePointsX(graphic, options, animationParameters)
32373
+ points: changePointsX(graphic, options)
32307
32374
  }
32308
32375
  });
32309
32376
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from || attrs, this.to = to;
32310
32377
  } else this.valid = !1;
32311
- var graphic, options, animationParameters;
32378
+ var graphic, options;
32312
32379
  }
32313
32380
  }
32314
32381
  const changePointsY = (graphic, options, animationParameters) => graphic.getFinalAttribute().points.map(point => {
32315
- var _a;
32316
32382
  if (options && "negative" === options.orient) {
32317
- let groupBottom = animationParameters.height;
32318
- return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(), animationParameters.groupHeight = groupBottom), Object.assign(Object.assign({}, point), {
32383
+ let groupBottom = graphic.stage.viewHeight;
32384
+ return graphic.parent.parent.parent && (groupBottom = graphic.parent.parent.parent.AABBBounds.height()), Object.assign(Object.assign({}, point), {
32319
32385
  x: point.x,
32320
32386
  y: groupBottom,
32321
32387
  x1: point.x1,
@@ -32335,7 +32401,7 @@ const changePointsY = (graphic, options, animationParameters) => graphic.getFina
32335
32401
  const attrs = graphic.getFinalAttribute();
32336
32402
  return {
32337
32403
  from: {
32338
- points: changePointsY(graphic, options, animationParameters)
32404
+ points: changePointsY(graphic, options)
32339
32405
  },
32340
32406
  to: {
32341
32407
  points: attrs.points
@@ -32344,6 +32410,7 @@ const changePointsY = (graphic, options, animationParameters) => graphic.getFina
32344
32410
  };
32345
32411
  class GrowPointsYIn extends GworPointsBase {
32346
32412
  onBind() {
32413
+ var _a;
32347
32414
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
32348
32415
  const {
32349
32416
  from: from,
@@ -32351,7 +32418,7 @@ class GrowPointsYIn extends GworPointsBase {
32351
32418
  } = growPointsYIn(this.target, this.params.options, this.params);
32352
32419
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
32353
32420
  const finalAttribute = this.target.getFinalAttribute();
32354
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
32421
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
32355
32422
  } else this.valid = !1;
32356
32423
  }
32357
32424
  }
@@ -32361,17 +32428,17 @@ class GrowPointsYOut extends GworPointsBase {
32361
32428
  const {
32362
32429
  from: from,
32363
32430
  to: to
32364
- } = (graphic = this.target, options = this.params.options, animationParameters = this.params, {
32431
+ } = (graphic = this.target, options = this.params.options, this.params, {
32365
32432
  from: {
32366
32433
  points: graphic.getFinalAttribute().points
32367
32434
  },
32368
32435
  to: {
32369
- points: changePointsY(graphic, options, animationParameters)
32436
+ points: changePointsY(graphic, options)
32370
32437
  }
32371
32438
  });
32372
32439
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = null != from ? from : this.target.attribute, this.to = to;
32373
32440
  } else this.valid = !1;
32374
- var graphic, options, animationParameters;
32441
+ var graphic, options;
32375
32442
  }
32376
32443
  }
32377
32444
 
@@ -33340,7 +33407,7 @@ class ScaleIn extends ACustomAnimate {
33340
33407
  super(from, to, duration, easing, params);
33341
33408
  }
33342
33409
  onBind() {
33343
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
33410
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
33344
33411
  let from, to;
33345
33412
  super.onBind();
33346
33413
  const attrs = this.target.getFinalAttribute(),
@@ -33370,7 +33437,7 @@ class ScaleIn extends ACustomAnimate {
33370
33437
  }, this._updateFunction = this.updateXY;
33371
33438
  }
33372
33439
  const finalAttribute = this.target.getFinalAttribute();
33373
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.props = to, this.from = from, this.to = to, this.target.setAttributes(from);
33440
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.props = to, this.from = from, this.to = to, !1 !== (null === (_l = this.params.controlOptions) || void 0 === _l ? void 0 : _l.immediatelyApply) && this.target.setAttributes(from);
33374
33441
  }
33375
33442
  onEnd(cb) {
33376
33443
  super.onEnd(cb);
@@ -33818,8 +33885,8 @@ const moveIn = (graphic, options, animationParameters) => {
33818
33885
  } = null != options ? options : {};
33819
33886
  let changedX = 0,
33820
33887
  changedY = 0;
33821
- "negative" === orient && (animationParameters.group ? (changedX = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), changedY = null !== (_b = animationParameters.groupHeight) && void 0 !== _b ? _b : animationParameters.group.getBounds().height(), animationParameters.groupWidth = changedX, animationParameters.groupHeight = changedY) : (changedX = animationParameters.width, changedY = animationParameters.height)), changedX += offset, changedY += offset;
33822
- const point = isFunction$1(pointOpt) ? pointOpt.call(null, graphic.getDatum(), graphic, animationParameters) : pointOpt,
33888
+ "negative" === orient && (changedX = graphic.stage.viewWidth, changedY = graphic.stage.viewHeight), changedX += offset, changedY += offset;
33889
+ const point = isFunction$1(pointOpt) ? pointOpt.call(null, null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, animationParameters) : pointOpt,
33823
33890
  fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
33824
33891
  fromY = point && isValidNumber$1(point.y) ? point.y : changedY,
33825
33892
  finalAttrs = graphic.getFinalAttribute(),
@@ -33865,12 +33932,11 @@ const moveOut = (graphic, options, animationParameters) => {
33865
33932
  direction: direction,
33866
33933
  point: pointOpt
33867
33934
  } = null != options ? options : {},
33868
- groupBounds = animationParameters.group ? animationParameters.group.getBounds() : null,
33869
- groupWidth = null !== (_a = null == groupBounds ? void 0 : groupBounds.width()) && void 0 !== _a ? _a : animationParameters.width,
33870
- groupHeight = null !== (_b = null == groupBounds ? void 0 : groupBounds.height()) && void 0 !== _b ? _b : animationParameters.height,
33935
+ groupWidth = graphic.stage.viewWidth,
33936
+ groupHeight = graphic.stage.viewHeight,
33871
33937
  changedX = ("negative" === orient ? groupWidth : 0) + offset,
33872
33938
  changedY = ("negative" === orient ? groupHeight : 0) + offset,
33873
- point = isFunction$1(pointOpt) ? pointOpt.call(null, graphic.getDatum(), graphic, animationParameters) : pointOpt,
33939
+ point = isFunction$1(pointOpt) ? pointOpt.call(null, null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, animationParameters) : pointOpt,
33874
33940
  fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
33875
33941
  fromY = point && isValidNumber$1(point.y) ? point.y : changedY;
33876
33942
  switch (direction) {
@@ -33918,6 +33984,7 @@ class MoveBase extends ACustomAnimate {
33918
33984
  }
33919
33985
  class MoveIn extends MoveBase {
33920
33986
  onBind() {
33987
+ var _a;
33921
33988
  super.onBind();
33922
33989
  const {
33923
33990
  from: from,
@@ -33925,7 +33992,7 @@ class MoveIn extends MoveBase {
33925
33992
  } = moveIn(this.target, this.params.options, this.params);
33926
33993
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
33927
33994
  const finalAttribute = this.target.getFinalAttribute();
33928
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
33995
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
33929
33996
  }
33930
33997
  }
33931
33998
  class MoveOut extends MoveBase {
@@ -33978,6 +34045,7 @@ class RotateBase extends ACustomAnimate {
33978
34045
  }
33979
34046
  class RotateIn extends RotateBase {
33980
34047
  onBind() {
34048
+ var _a;
33981
34049
  super.onBind();
33982
34050
  const {
33983
34051
  from: from,
@@ -33985,7 +34053,7 @@ class RotateIn extends RotateBase {
33985
34053
  } = rotateIn(this.target, this.params.options);
33986
34054
  this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to;
33987
34055
  const finalAttribute = this.target.getFinalAttribute();
33988
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
34056
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
33989
34057
  }
33990
34058
  }
33991
34059
  class RotateOut extends RotateBase {
@@ -34026,11 +34094,12 @@ class FromTo extends ACustomAnimate {
34026
34094
  super(from, to, duration, easing, params), this.from = null != from ? from : {};
34027
34095
  }
34028
34096
  onBind() {
34097
+ var _a, _b;
34029
34098
  super.onBind();
34030
34099
  const finalAttribute = this.target.getFinalAttribute();
34031
34100
  Object.keys(this.from).forEach(key => {
34032
34101
  null == this.props[key] && (this.props[key] = finalAttribute[key]);
34033
- });
34102
+ }), "appear" === (null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.animationState) && finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_b = this.params.controlOptions) || void 0 === _b ? void 0 : _b.immediatelyApply) && this.target.setAttributes(this.from);
34034
34103
  }
34035
34104
  onFirstRun() {
34036
34105
  var _a;
@@ -34241,7 +34310,7 @@ const registerCustomAnimate = () => {
34241
34310
  AnimateExecutor.registerBuiltInAnimate("increaseCount", IncreaseCount), AnimateExecutor.registerBuiltInAnimate("fromTo", FromTo), AnimateExecutor.registerBuiltInAnimate("scaleIn", ScaleIn), AnimateExecutor.registerBuiltInAnimate("scaleOut", ScaleOut), AnimateExecutor.registerBuiltInAnimate("growHeightIn", GrowHeightIn), AnimateExecutor.registerBuiltInAnimate("growHeightOut", GrowHeightOut), AnimateExecutor.registerBuiltInAnimate("growWidthIn", GrowWidthIn), AnimateExecutor.registerBuiltInAnimate("growWidthOut", GrowWidthOut), AnimateExecutor.registerBuiltInAnimate("growCenterIn", GrowCenterIn), AnimateExecutor.registerBuiltInAnimate("growCenterOut", GrowCenterOut), AnimateExecutor.registerBuiltInAnimate("clipIn", ClipIn), AnimateExecutor.registerBuiltInAnimate("clipOut", ClipOut), AnimateExecutor.registerBuiltInAnimate("fadeIn", FadeIn), AnimateExecutor.registerBuiltInAnimate("fadeOut", FadeOut), AnimateExecutor.registerBuiltInAnimate("growPointsIn", GrowPointsIn), AnimateExecutor.registerBuiltInAnimate("growPointsOut", GrowPointsOut), AnimateExecutor.registerBuiltInAnimate("growPointsXIn", GrowPointsXIn), AnimateExecutor.registerBuiltInAnimate("growPointsXOut", GrowPointsXOut), AnimateExecutor.registerBuiltInAnimate("growPointsYIn", GrowPointsYIn), AnimateExecutor.registerBuiltInAnimate("growPointsYOut", GrowPointsYOut), AnimateExecutor.registerBuiltInAnimate("growAngleIn", GrowAngleIn), AnimateExecutor.registerBuiltInAnimate("growAngleOut", GrowAngleOut), AnimateExecutor.registerBuiltInAnimate("growRadiusIn", GrowRadiusIn), AnimateExecutor.registerBuiltInAnimate("growRadiusOut", GrowRadiusOut), AnimateExecutor.registerBuiltInAnimate("moveIn", MoveIn), AnimateExecutor.registerBuiltInAnimate("moveOut", MoveOut), AnimateExecutor.registerBuiltInAnimate("rotateIn", RotateIn), AnimateExecutor.registerBuiltInAnimate("rotateOut", RotateOut), AnimateExecutor.registerBuiltInAnimate("update", Update), AnimateExecutor.registerBuiltInAnimate("state", State), AnimateExecutor.registerBuiltInAnimate("labelItemAppear", LabelItemAppear), AnimateExecutor.registerBuiltInAnimate("labelItemDisappear", LabelItemDisappear), AnimateExecutor.registerBuiltInAnimate("poptipAppear", PoptipAppear), AnimateExecutor.registerBuiltInAnimate("poptipDisappear", PoptipDisappear), AnimateExecutor.registerBuiltInAnimate("inputText", InputText), AnimateExecutor.registerBuiltInAnimate("inputRichText", InputRichText), AnimateExecutor.registerBuiltInAnimate("outputRichText", OutputRichText), AnimateExecutor.registerBuiltInAnimate("slideRichText", SlideRichText), AnimateExecutor.registerBuiltInAnimate("slideOutRichText", SlideOutRichText), AnimateExecutor.registerBuiltInAnimate("slideIn", SlideIn), AnimateExecutor.registerBuiltInAnimate("growIn", GrowIn), AnimateExecutor.registerBuiltInAnimate("spinIn", SpinIn), AnimateExecutor.registerBuiltInAnimate("moveScaleIn", MoveScaleIn), AnimateExecutor.registerBuiltInAnimate("moveRotateIn", MoveRotateIn), AnimateExecutor.registerBuiltInAnimate("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight);
34242
34311
  };
34243
34312
 
34244
- const version = "1.0.0-alpha.3";
34313
+ const version = "1.0.0-alpha.4";
34245
34314
  preLoadAllModule();
34246
34315
  if (isBrowserEnv()) {
34247
34316
  loadBrowserEnv(container);