@visactor/vrender 1.0.0-alpha.3 → 1.0.0-alpha.5

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.js CHANGED
@@ -1226,6 +1226,9 @@
1226
1226
  };
1227
1227
  var isArrayLike$1 = isArrayLike;
1228
1228
 
1229
+ const isDate = value => isType$1(value, "Date");
1230
+ var isDate$1 = isDate;
1231
+
1229
1232
  const isNumber = function (value) {
1230
1233
  let fuzzy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
1231
1234
  const type = typeof value;
@@ -1246,6 +1249,22 @@
1246
1249
  has = (object, key) => null != object && hasOwnProperty.call(object, key);
1247
1250
  var has$1 = has;
1248
1251
 
1252
+ function cloneDeep(value, ignoreWhen, excludeKeys) {
1253
+ let result;
1254
+ if (!isValid$1(value) || "object" != typeof value || ignoreWhen && ignoreWhen(value)) return value;
1255
+ const isArr = isArray$1(value),
1256
+ length = value.length;
1257
+ 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;
1258
+ const props = isArr ? void 0 : Object.keys(Object(value));
1259
+ let index = -1;
1260
+ if (result) for (; ++index < (props || value).length;) {
1261
+ const key = props ? props[index] : index,
1262
+ subValue = value[key];
1263
+ excludeKeys && excludeKeys.includes(key.toString()) ? result[key] = subValue : result[key] = cloneDeep(subValue, ignoreWhen, excludeKeys);
1264
+ }
1265
+ return result;
1266
+ }
1267
+
1249
1268
  function baseMerge(target, source) {
1250
1269
  let shallowArray = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
1251
1270
  let skipTargetArray = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
@@ -16850,6 +16869,12 @@
16850
16869
  get eventSystem() {
16851
16870
  return this._eventSystem;
16852
16871
  }
16872
+ get ticker() {
16873
+ return this._ticker;
16874
+ }
16875
+ set ticker(ticker) {
16876
+ ticker.bindStage(this), this._ticker && this._ticker.removeListener("tick", this.afterTickCb), ticker.addTimeline(this.timeline), this._ticker = ticker, this._ticker.on("tick", this.afterTickCb);
16877
+ }
16853
16878
  constructor() {
16854
16879
  let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
16855
16880
  var _a, _b;
@@ -16866,7 +16891,7 @@
16866
16891
  }, this.afterRender = stage => {
16867
16892
  this.renderCount++, this._afterRender && this._afterRender(stage), this._afterNextRenderCbs && this._afterNextRenderCbs.forEach(cb => cb(stage)), this._afterNextRenderCbs = null, this.tickedBeforeRender = !1;
16868
16893
  }, this.afterTickCb = () => {
16869
- this.tickedBeforeRender = !0, "rendering" !== this.state && this.render();
16894
+ this.tickedBeforeRender = !0, "rendering" !== this.state && this.renderNextFrame();
16870
16895
  }, this.params = params, this.theme = new Theme(), this.hooks = {
16871
16896
  beforeRender: new SyncHook(["stage"]),
16872
16897
  afterRender: new SyncHook(["stage"])
@@ -16889,10 +16914,10 @@
16889
16914
  }
16890
16915
  initAnimate(params) {
16891
16916
  var _a;
16892
- 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));
16917
+ this.createTicker && this.createTimeline && (this._ticker = params.ticker || this.createTicker(this), this._ticker.bindStage(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));
16893
16918
  }
16894
16919
  startAnimate() {
16895
- this.ticker && this.timeline && (this.ticker.start(), this.timeline.resume());
16920
+ this._ticker && this.timeline && (this._ticker.start(), this.timeline.resume());
16896
16921
  }
16897
16922
  pauseRender() {
16898
16923
  let sr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
@@ -17225,7 +17250,7 @@
17225
17250
  layer.release();
17226
17251
  }), this.interactiveLayer && (this.interactiveLayer.forEachChildren(item => {
17227
17252
  item.setStage && item.setStage(null, null), this.interactiveLayer.removeChild(item);
17228
- }), 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 = [];
17253
+ }), 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 = [];
17229
17254
  }
17230
17255
  setStage(stage) {}
17231
17256
  dirty(b, matrix) {
@@ -30164,7 +30189,7 @@
30164
30189
  tryPreventConflict() {
30165
30190
  const animate = this.animate;
30166
30191
  this.target.animates.forEach(a => {
30167
- if (a === animate || a.priority > animate.priority) return;
30192
+ if (a === animate || a.priority > animate.priority || a.priority === 1 / 0) return;
30168
30193
  const fromProps = a.getStartProps();
30169
30194
  this.propKeys.forEach(key => {
30170
30195
  null != fromProps[key] && a.preventAttr(key);
@@ -30210,6 +30235,13 @@
30210
30235
  constructor(type, props, duration, easing) {
30211
30236
  super(type, props, duration, easing);
30212
30237
  }
30238
+ onStart() {
30239
+ super.onStart();
30240
+ }
30241
+ onFirstRun() {
30242
+ const fromProps = this.getFromProps();
30243
+ this.target.setAttributes(fromProps);
30244
+ }
30213
30245
  update(end, ratio, out) {
30214
30246
  this.onStart();
30215
30247
  }
@@ -30218,19 +30250,29 @@
30218
30250
 
30219
30251
  class DefaultTimeline {
30220
30252
  get animateCount() {
30221
- return this.animates.length;
30253
+ return this._animateCount;
30222
30254
  }
30223
30255
  constructor() {
30224
- this.animates = [], this._playSpeed = 1, this._totalDuration = 0, this._startTime = 0, this._currentTime = 0, this._endAnimatePtr = -1, this.id = Generator.GenAutoIncrementId(), this.animates = [], this.paused = !1;
30256
+ this.head = null, this.tail = null, this.animateMap = new Map(), this._animateCount = 0, this._playSpeed = 1, this._totalDuration = 0, this._startTime = 0, this._currentTime = 0, this.id = Generator.GenAutoIncrementId(), this.paused = !1;
30225
30257
  }
30226
30258
  isRunning() {
30227
- return !this.paused && this._endAnimatePtr >= 0;
30259
+ return !this.paused && this._animateCount > 0;
30228
30260
  }
30229
30261
  forEachAccessAnimate(cb) {
30230
- for (let i = 0; i <= this._endAnimatePtr; i++) cb(this.animates[i], i);
30262
+ let current = this.head,
30263
+ index = 0;
30264
+ for (; current;) {
30265
+ const next = current.next;
30266
+ cb(current.animate, index), index++, current = next;
30267
+ }
30231
30268
  }
30232
30269
  addAnimate(animate) {
30233
- this.animates.push(animate), this._endAnimatePtr++, this.animates[this.animates.length - 1] = this.animates[this._endAnimatePtr], this.animates[this._endAnimatePtr] = animate, this._totalDuration = Math.max(this._totalDuration, animate.getStartTime() + animate.getDuration());
30270
+ const newNode = {
30271
+ animate: animate,
30272
+ next: null,
30273
+ prev: null
30274
+ };
30275
+ this.head ? this.tail && (this.tail.next = newNode, newNode.prev = this.tail, this.tail = newNode) : (this.head = newNode, this.tail = newNode), this.animateMap.set(animate, newNode), this._animateCount++, this._totalDuration = Math.max(this._totalDuration, animate.getStartTime() + animate.getDuration());
30234
30276
  }
30235
30277
  pause() {
30236
30278
  this.paused = !0;
@@ -30242,21 +30284,21 @@
30242
30284
  if (this.paused) return;
30243
30285
  const scaledDelta = delta * this._playSpeed;
30244
30286
  this._currentTime += scaledDelta, this.forEachAccessAnimate((animate, i) => {
30245
- animate.status === exports.AnimateStatus.END ? this.removeAnimate(animate, !0, i) : animate.status !== exports.AnimateStatus.RUNNING && animate.status !== exports.AnimateStatus.INITIAL || animate.advance(scaledDelta);
30287
+ animate.status === exports.AnimateStatus.END ? this.removeAnimate(animate, !0) : animate.status !== exports.AnimateStatus.RUNNING && animate.status !== exports.AnimateStatus.INITIAL || animate.advance(scaledDelta);
30246
30288
  });
30247
30289
  }
30248
30290
  clear() {
30249
30291
  this.forEachAccessAnimate(animate => {
30250
30292
  animate.release();
30251
- }), this.animates = [], this._totalDuration = 0;
30293
+ }), this.head = null, this.tail = null, this.animateMap.clear(), this._animateCount = 0, this._totalDuration = 0;
30252
30294
  }
30253
30295
  removeAnimate(animate) {
30254
30296
  let release = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
30255
- let index = arguments.length > 2 ? arguments[2] : undefined;
30256
- this._endAnimatePtr < 0 || (release && (animate._onRemove && animate._onRemove.forEach(cb => cb()), animate.release()), index = null != index ? index : this.animates.indexOf(animate), this.animates[index] = this.animates[this._endAnimatePtr], this._endAnimatePtr--);
30297
+ const node = this.animateMap.get(animate);
30298
+ node && (release && (animate._onRemove && animate._onRemove.forEach(cb => cb()), animate.release()), node.prev ? node.prev.next = node.next : this.head = node.next, node.next ? node.next.prev = node.prev : this.tail = node.prev, this.animateMap.delete(animate), this._animateCount--, animate.getStartTime() + animate.getDuration() >= this._totalDuration && this.recalculateTotalDuration());
30257
30299
  }
30258
30300
  recalculateTotalDuration() {
30259
- this._totalDuration = 0, this.animates.forEach(animate => {
30301
+ this._totalDuration = 0, this.forEachAccessAnimate(animate => {
30260
30302
  this._totalDuration = Math.max(this._totalDuration, animate.getStartTime() + animate.getDuration());
30261
30303
  });
30262
30304
  }
@@ -30441,11 +30483,11 @@
30441
30483
  return this._bounce = b, this;
30442
30484
  }
30443
30485
  advance(delta) {
30444
- var _a;
30486
+ var _a, _b, _c;
30445
30487
  if (this.status === exports.AnimateStatus.END) return void console.warn("aaa 动画已经结束,不能推进");
30446
30488
  const nextTime = this.currentTime + delta;
30447
30489
  if (nextTime < this._startTime) return void (this.currentTime = nextTime);
30448
- if (nextTime >= this._startTime + this._totalDuration) return null === (_a = this._lastStep) || void 0 === _a || _a.onEnd(), this.onEnd(), void (this.status = exports.AnimateStatus.END);
30490
+ 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 = exports.AnimateStatus.END);
30449
30491
  this.status = exports.AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
30450
30492
  let cycleTime = nextTime - this._startTime,
30451
30493
  newLoop = !1,
@@ -30470,9 +30512,10 @@
30470
30512
  }
30471
30513
  }
30472
30514
  if (!targetStep) return;
30515
+ targetStep !== this.lastRunStep && (null === (_c = this.lastRunStep) || void 0 === _c || _c.onEnd()), this.lastRunStep = targetStep;
30473
30516
  const ratio = (cycleTime - targetStep.getStartTime()) / targetStep.getDuration(),
30474
30517
  isEnd = ratio >= 1;
30475
- targetStep.update(isEnd, ratio, {}), isEnd && targetStep.onEnd();
30518
+ targetStep.update(isEnd, ratio, {}), isEnd && (targetStep.onEnd(), this.lastRunStep = null);
30476
30519
  }
30477
30520
  updateDuration() {
30478
30521
  this._lastStep ? (this._duration = this._lastStep.getStartTime() + this._lastStep.getDuration(), this._totalDuration = this._duration * (this._loopCount + 1)) : this._duration = 0;
@@ -30504,10 +30547,7 @@
30504
30547
  }
30505
30548
  class DefaultTicker extends EventEmitter {
30506
30549
  constructor(stage) {
30507
- super(), this.timelines = [], this.frameTimeHistory = [], this.checkSkip = delta => {
30508
- if ("performance" === this.stage.params.optimize.tickRenderMode) return !1;
30509
- return delta < this.interval + 2 * (Math.random() - .5) * this._jitter;
30510
- }, this.handleTick = (handler, params) => {
30550
+ super(), this.timelines = [], this.frameTimeHistory = [], this.handleTick = (handler, params) => {
30511
30551
  const {
30512
30552
  once = !1
30513
30553
  } = null != params ? params : {};
@@ -30523,6 +30563,9 @@
30523
30563
  }), this.emit("tick", delta));
30524
30564
  }, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
30525
30565
  }
30566
+ bindStage(stage) {
30567
+ this.stage = stage;
30568
+ }
30526
30569
  computeTimeOffsetAndJitter() {
30527
30570
  this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
30528
30571
  }
@@ -30604,14 +30647,18 @@
30604
30647
  var _a;
30605
30648
  this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
30606
30649
  }
30650
+ checkSkip(delta) {
30651
+ if ("performance" === this.stage.params.optimize.tickRenderMode) return !1;
30652
+ return delta < this.interval + 2 * (Math.random() - .5) * this._jitter;
30653
+ }
30607
30654
  }
30608
30655
 
30609
30656
  class ManualTickHandler {
30610
30657
  constructor() {
30611
- this.released = !1, this.startTime = -1, this.currentTime = -1;
30658
+ this.released = !1, this.currentTime = -1;
30612
30659
  }
30613
30660
  tick(interval, cb) {
30614
- this.startTime < 0 && (this.startTime = 0), this.currentTime = this.startTime + interval, cb(this);
30661
+ this.currentTime < 0 && (this.currentTime = 0), this.currentTime += interval, cb(this);
30615
30662
  }
30616
30663
  release() {
30617
30664
  this.released = !0;
@@ -30619,15 +30666,39 @@
30619
30666
  getTime() {
30620
30667
  return this.currentTime;
30621
30668
  }
30669
+ tickTo(time, cb) {
30670
+ this.currentTime < 0 && (this.currentTime = 0);
30671
+ const interval = time - this.currentTime;
30672
+ this.tick(interval, cb);
30673
+ }
30622
30674
  }
30623
30675
  class ManualTicker extends DefaultTicker {
30676
+ constructor(stage) {
30677
+ super(stage), this.lastFrameTime = 0, this.status = exports.STATUS.RUNNING;
30678
+ }
30624
30679
  setupTickHandler() {
30625
30680
  const handler = new ManualTickHandler();
30626
30681
  return this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0;
30627
30682
  }
30683
+ checkSkip(delta) {
30684
+ return !1;
30685
+ }
30628
30686
  getTime() {
30629
30687
  return this.tickerHandler.getTime();
30630
30688
  }
30689
+ tickAt(time) {
30690
+ this.tickTo(time);
30691
+ }
30692
+ start() {
30693
+ let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
30694
+ if (this.status === exports.STATUS.RUNNING) return !1;
30695
+ if (!this.tickerHandler) return !1;
30696
+ if (!force) {
30697
+ if (this.status === exports.STATUS.PAUSE) return !1;
30698
+ if (this.ifCanStop()) return !1;
30699
+ }
30700
+ return this.status = exports.STATUS.RUNNING, !0;
30701
+ }
30631
30702
  }
30632
30703
 
30633
30704
  function generatorPathEasingFunc(path) {
@@ -30738,47 +30809,49 @@
30738
30809
  index >= 0 && this._animates.splice(index, 1), 0 === this._activeCount && this._started && (this._started = !1, this.onEnd());
30739
30810
  });
30740
30811
  }
30741
- parseParams(params, isTimeline) {
30812
+ parseParams(params, isTimeline, child) {
30742
30813
  var _a, _b;
30743
30814
  const totalTime = this.resolveValue(params.totalTime, void 0, void 0),
30744
30815
  startTime = this.resolveValue(params.startTime, void 0, 0),
30745
- parsedParams = Object.assign({}, params);
30816
+ parsedParams = cloneDeep(params);
30746
30817
  parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
30747
- const oneByOne = this.resolveValue(params.oneByOne, void 0, !1);
30818
+ const oneByOne = this.resolveValue(params.oneByOne, child, !1);
30748
30819
  if (isTimeline) {
30749
30820
  const timeSlices = parsedParams.timeSlices;
30750
30821
  isArray$1(timeSlices) || (parsedParams.timeSlices = [timeSlices]);
30751
30822
  let sliceTime = 0;
30752
30823
  parsedParams.timeSlices.forEach(slice => {
30753
- 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;
30824
+ 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;
30754
30825
  });
30755
30826
  let oneByOneDelay = 0,
30756
30827
  oneByOneTime = 0;
30757
- if (oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay, totalTime) {
30758
- const _totalTime = sliceTime + oneByOneDelay * (this._target.count - 2),
30759
- scale = totalTime ? totalTime / _totalTime : 1;
30760
- parsedParams.timeSlices = parsedParams.timeSlices.map(slice => {
30761
- let effects = slice.effects;
30762
- return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
30763
- delay: slice.delay * scale,
30764
- delayAfter: slice.delayAfter * scale,
30765
- duration: slice.duration * scale,
30766
- effects: effects.map(effect => {
30767
- var _a, _b;
30768
- const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
30769
- customType = custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
30770
- return Object.assign(Object.assign({}, effect), {
30771
- custom: custom,
30772
- customType: customType
30773
- });
30774
- })
30775
- });
30776
- }), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
30828
+ oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay;
30829
+ let scale = 1;
30830
+ if (totalTime) {
30831
+ const _totalTime = sliceTime + oneByOneDelay * (this._target.count - 2);
30832
+ scale = totalTime ? totalTime / _totalTime : 1;
30777
30833
  }
30834
+ parsedParams.timeSlices = parsedParams.timeSlices.map(slice => {
30835
+ let effects = slice.effects;
30836
+ return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
30837
+ delay: slice.delay * scale,
30838
+ delayAfter: slice.delayAfter * scale,
30839
+ duration: slice.duration * scale,
30840
+ effects: effects.map(effect => {
30841
+ var _a, _b;
30842
+ const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
30843
+ customType = custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
30844
+ return Object.assign(Object.assign({}, effect), {
30845
+ custom: custom,
30846
+ customType: customType
30847
+ });
30848
+ })
30849
+ });
30850
+ }), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
30778
30851
  } else {
30779
- const delay = this.resolveValue(params.delay, void 0, 0),
30780
- delayAfter = this.resolveValue(params.delayAfter, void 0, 0),
30781
- duration = this.resolveValue(params.duration, void 0, 300);
30852
+ const delay = this.resolveValue(params.delay, child, 0),
30853
+ delayAfter = this.resolveValue(params.delayAfter, child, 0),
30854
+ duration = this.resolveValue(params.duration, child, 300);
30782
30855
  let oneByOneDelay = 0,
30783
30856
  oneByOneTime = 0;
30784
30857
  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"];
@@ -30799,20 +30872,21 @@
30799
30872
  const isTimeline = ("timeSlices" in params);
30800
30873
  let filteredChildren;
30801
30874
  isTimeline && params.partitioner && (filteredChildren = (null != filteredChildren ? filteredChildren : this._target.getChildren()).filter(child => {
30802
- var _a;
30803
- return params.partitioner(null === (_a = child.context) || void 0 === _a ? void 0 : _a.data, child, {});
30804
- })), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
30805
30875
  var _a, _b;
30806
- 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, {});
30876
+ return params.partitioner(null === (_b = null === (_a = child.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], child, {});
30877
+ })), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
30878
+ var _a, _b, _c, _d;
30879
+ 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, {});
30807
30880
  }));
30808
- const parsedParams = this.parseParams(params, isTimeline),
30809
- cb = isTimeline ? (child, index, count) => {
30810
- const animate = this.executeTimelineItem(parsedParams, child, index, count);
30811
- animate && this._trackAnimation(animate);
30812
- } : (child, index, count) => {
30813
- const animate = this.executeTypeConfigItem(parsedParams, child, index, count);
30814
- animate && this._trackAnimation(animate);
30815
- };
30881
+ const cb = isTimeline ? (child, index, count) => {
30882
+ const parsedParams = this.parseParams(params, isTimeline, child),
30883
+ animate = this.executeTimelineItem(parsedParams, child, index, count);
30884
+ animate && this._trackAnimation(animate);
30885
+ } : (child, index, count) => {
30886
+ const parsedParams = this.parseParams(params, isTimeline, child),
30887
+ animate = this.executeTypeConfigItem(parsedParams, child, index, count);
30888
+ animate && this._trackAnimation(animate);
30889
+ };
30816
30890
  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));
30817
30891
  }
30818
30892
  executeTypeConfigItem(params, graphic, index, count) {
@@ -30840,22 +30914,24 @@
30840
30914
  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,
30841
30915
  datum = null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0],
30842
30916
  indexKey = null === (_e = graphic.context) || void 0 === _e ? void 0 : _e.indexKey;
30843
- datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime + delayValue);
30844
- const wait = index * oneByOneDelay;
30917
+ datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime);
30918
+ const wait = index * oneByOneDelay + delayValue;
30845
30919
  wait > 0 && animate.wait(wait);
30846
30920
  let parsedFromProps = null,
30847
30921
  props = params.to,
30848
30922
  from = params.from;
30849
- 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));
30923
+ 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);
30924
+ let totalDelay = 0;
30925
+ oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
30850
30926
  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;
30851
- return delayAfterValue > 0 && animate.wait(delayAfterValue), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
30927
+ return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
30852
30928
  }
30853
- _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic) {
30929
+ _handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
30854
30930
  var _a, _b, _c, _d;
30855
30931
  if (custom && customType) {
30856
30932
  const customParams = this.resolveValue(customParameters, graphic, {}),
30857
30933
  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;
30858
- customParams.options = objOptions, 1 === customType ? this.createCustomAnimation(animate, custom, from, props, duration, easing, customParams) : 2 === customType && this.createCustomInterpolatorAnimation(animate, custom, props, duration, easing, customParams);
30934
+ 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);
30859
30935
  } else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
30860
30936
  }
30861
30937
  executeTimelineItem(params, graphic, index, count) {
@@ -30890,7 +30966,7 @@
30890
30966
  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;
30891
30967
  delayValue > 0 && animate.wait(delayValue);
30892
30968
  (Array.isArray(effects) ? effects : [effects]).forEach(effect => {
30893
- var _a, _b;
30969
+ var _a;
30894
30970
  const {
30895
30971
  type = "fromTo",
30896
30972
  channel: channel,
@@ -30903,8 +30979,8 @@
30903
30979
  from = effect.from;
30904
30980
  props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
30905
30981
  const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
30906
- customType = null !== (_b = effect.customType) && void 0 !== _b ? _b : custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
30907
- this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic);
30982
+ customType = effect.customType;
30983
+ this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, null, options, type, graphic);
30908
30984
  }), delayAfterValue > 0 && animate.wait(delayAfterValue);
30909
30985
  }
30910
30986
  createCustomInterpolatorAnimation(animate, interpolator, props, duration, easing, customParams) {
@@ -30927,9 +31003,9 @@
30927
31003
  const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
30928
31004
  void 0 !== value && (props[key] = value);
30929
31005
  }) : Object.keys(channel).forEach(key => {
30930
- var _a, _b;
31006
+ var _a, _b, _c, _d;
30931
31007
  const config = channel[key];
30932
- 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);
31008
+ 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);
30933
31009
  }), {
30934
31010
  from: from,
30935
31011
  props: props
@@ -30939,8 +31015,8 @@
30939
31015
  };
30940
31016
  }
30941
31017
  resolveValue(value, graphic, defaultValue) {
30942
- var _a;
30943
- return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data, graphic, {}) : value;
31018
+ var _a, _b;
31019
+ 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;
30944
31020
  }
30945
31021
  executeItem(params, graphic) {
30946
31022
  let index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
@@ -31163,6 +31239,10 @@
31163
31239
  getFinalAttribute() {
31164
31240
  return this.finalAttribute;
31165
31241
  }
31242
+ getGraphicAttribute(key) {
31243
+ let prev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
31244
+ return !prev && this.finalAttribute ? this.finalAttribute[key] : this.attribute[key];
31245
+ }
31166
31246
  }
31167
31247
 
31168
31248
  function registerAnimate() {
@@ -31609,21 +31689,18 @@
31609
31689
  super(from, to, duration, easing, params);
31610
31690
  }
31611
31691
  onBind() {
31612
- var _a;
31692
+ var _a, _b, _c;
31613
31693
  super.onBind();
31614
31694
  const attrs = this.target.getFinalAttribute(),
31615
31695
  fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
31616
31696
  to = {},
31617
- from = {};
31697
+ from = null !== (_b = this.from) && void 0 !== _b ? _b : {};
31618
31698
  this.keys.forEach(key => {
31619
- var _a, _b;
31620
- 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;
31699
+ var _a, _b, _c;
31700
+ 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;
31621
31701
  });
31622
31702
  const finalAttribute = this.target.getFinalAttribute();
31623
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.props = to, this.propKeys = this.keys, this.from = from, this.to = to, this.target.setAttributes(from);
31624
- }
31625
- onEnd(cb) {
31626
- super.onEnd(cb);
31703
+ 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);
31627
31704
  }
31628
31705
  onUpdate(end, ratio, out) {
31629
31706
  const attribute = this.target.attribute;
@@ -31659,7 +31736,9 @@
31659
31736
 
31660
31737
  class GroupFadeIn extends CommonIn {
31661
31738
  constructor(from, to, duration, easing, params) {
31662
- super(from, to, duration, easing, params), this.keys = ["baseOpacity"];
31739
+ super(from, to, duration, easing, params), this.keys = ["baseOpacity"], this.from = {
31740
+ baseOpacity: 0
31741
+ };
31663
31742
  }
31664
31743
  }
31665
31744
  class GroupFadeOut extends CommonOut {
@@ -31705,7 +31784,9 @@
31705
31784
 
31706
31785
  class ClipIn extends CommonIn {
31707
31786
  constructor(from, to, duration, easing, params) {
31708
- super(from, to, duration, easing, params), this.keys = ["clipRange"];
31787
+ super(from, to, duration, easing, params), this.keys = ["clipRange"], this.from = {
31788
+ clipRange: 0
31789
+ };
31709
31790
  }
31710
31791
  }
31711
31792
  class ClipOut extends CommonOut {
@@ -31716,7 +31797,9 @@
31716
31797
 
31717
31798
  class FadeIn extends CommonIn {
31718
31799
  constructor(from, to, duration, easing, params) {
31719
- super(from, to, duration, easing, params), this.keys = ["opacity"];
31800
+ super(from, to, duration, easing, params), this.keys = ["opacity"], this.from = {
31801
+ opacity: 0
31802
+ };
31720
31803
  }
31721
31804
  }
31722
31805
  class FadeOut extends CommonOut {
@@ -32222,6 +32305,7 @@
32222
32305
  }
32223
32306
  class GrowPointsIn extends GworPointsBase {
32224
32307
  onBind() {
32308
+ var _a;
32225
32309
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
32226
32310
  const {
32227
32311
  from: from,
@@ -32229,7 +32313,7 @@
32229
32313
  } = growPointsIn(this.target, this.params.options, this.params);
32230
32314
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
32231
32315
  const finalAttribute = this.target.getFinalAttribute();
32232
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
32316
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
32233
32317
  } else this.valid = !1;
32234
32318
  }
32235
32319
  }
@@ -32254,10 +32338,9 @@
32254
32338
  }
32255
32339
  }
32256
32340
  const changePointsX = (graphic, options, animationParameters) => graphic.getFinalAttribute().points.map(point => {
32257
- var _a;
32258
32341
  if (options && "negative" === options.orient) {
32259
- let groupRight = animationParameters.width;
32260
- return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(), animationParameters.groupWidth = groupRight), Object.assign(Object.assign({}, point), {
32342
+ let groupRight = graphic.stage.viewWidth;
32343
+ return graphic.parent.parent.parent && (groupRight = graphic.parent.parent.parent.AABBBounds.width()), Object.assign(Object.assign({}, point), {
32261
32344
  x: groupRight,
32262
32345
  y: point.y,
32263
32346
  x1: groupRight,
@@ -32277,7 +32360,7 @@
32277
32360
  const attrs = graphic.getFinalAttribute();
32278
32361
  return {
32279
32362
  from: {
32280
- points: changePointsX(graphic, options, animationParameters)
32363
+ points: changePointsX(graphic, options)
32281
32364
  },
32282
32365
  to: {
32283
32366
  points: attrs.points
@@ -32286,6 +32369,7 @@
32286
32369
  };
32287
32370
  class GrowPointsXIn extends GworPointsBase {
32288
32371
  onBind() {
32372
+ var _a;
32289
32373
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
32290
32374
  const {
32291
32375
  from: from,
@@ -32293,7 +32377,7 @@
32293
32377
  } = growPointsXIn(this.target, this.params.options, this.params);
32294
32378
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
32295
32379
  const finalAttribute = this.target.getFinalAttribute();
32296
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
32380
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
32297
32381
  } else this.valid = !1;
32298
32382
  }
32299
32383
  }
@@ -32304,24 +32388,23 @@
32304
32388
  {
32305
32389
  from: from,
32306
32390
  to: to
32307
- } = (graphic = this.target, options = this.params.options, animationParameters = this.params, {
32391
+ } = (graphic = this.target, options = this.params.options, this.params, {
32308
32392
  from: {
32309
32393
  points: graphic.getFinalAttribute().points
32310
32394
  },
32311
32395
  to: {
32312
- points: changePointsX(graphic, options, animationParameters)
32396
+ points: changePointsX(graphic, options)
32313
32397
  }
32314
32398
  });
32315
32399
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from || attrs, this.to = to;
32316
32400
  } else this.valid = !1;
32317
- var graphic, options, animationParameters;
32401
+ var graphic, options;
32318
32402
  }
32319
32403
  }
32320
32404
  const changePointsY = (graphic, options, animationParameters) => graphic.getFinalAttribute().points.map(point => {
32321
- var _a;
32322
32405
  if (options && "negative" === options.orient) {
32323
- let groupBottom = animationParameters.height;
32324
- return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(), animationParameters.groupHeight = groupBottom), Object.assign(Object.assign({}, point), {
32406
+ let groupBottom = graphic.stage.viewHeight;
32407
+ return graphic.parent.parent.parent && (groupBottom = graphic.parent.parent.parent.AABBBounds.height()), Object.assign(Object.assign({}, point), {
32325
32408
  x: point.x,
32326
32409
  y: groupBottom,
32327
32410
  x1: point.x1,
@@ -32341,7 +32424,7 @@
32341
32424
  const attrs = graphic.getFinalAttribute();
32342
32425
  return {
32343
32426
  from: {
32344
- points: changePointsY(graphic, options, animationParameters)
32427
+ points: changePointsY(graphic, options)
32345
32428
  },
32346
32429
  to: {
32347
32430
  points: attrs.points
@@ -32350,6 +32433,7 @@
32350
32433
  };
32351
32434
  class GrowPointsYIn extends GworPointsBase {
32352
32435
  onBind() {
32436
+ var _a;
32353
32437
  if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
32354
32438
  const {
32355
32439
  from: from,
@@ -32357,7 +32441,7 @@
32357
32441
  } = growPointsYIn(this.target, this.params.options, this.params);
32358
32442
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
32359
32443
  const finalAttribute = this.target.getFinalAttribute();
32360
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
32444
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
32361
32445
  } else this.valid = !1;
32362
32446
  }
32363
32447
  }
@@ -32367,17 +32451,17 @@
32367
32451
  const {
32368
32452
  from: from,
32369
32453
  to: to
32370
- } = (graphic = this.target, options = this.params.options, animationParameters = this.params, {
32454
+ } = (graphic = this.target, options = this.params.options, this.params, {
32371
32455
  from: {
32372
32456
  points: graphic.getFinalAttribute().points
32373
32457
  },
32374
32458
  to: {
32375
- points: changePointsY(graphic, options, animationParameters)
32459
+ points: changePointsY(graphic, options)
32376
32460
  }
32377
32461
  });
32378
32462
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = null != from ? from : this.target.attribute, this.to = to;
32379
32463
  } else this.valid = !1;
32380
- var graphic, options, animationParameters;
32464
+ var graphic, options;
32381
32465
  }
32382
32466
  }
32383
32467
 
@@ -32958,7 +33042,7 @@
32958
33042
 
32959
33043
  class InputRichText extends ACustomAnimate {
32960
33044
  constructor(from, to, duration, easing, params) {
32961
- super(from, to, duration, easing, params), this.fromTextConfig = [], this.toTextConfig = [], this.originalTextConfig = [], this.showCursor = !1, this.cursorChar = "|", this.blinkCursor = !0, this.beforeText = "", this.afterText = "", this.fadeInChars = !1, this.fadeInDuration = .3, void 0 !== (null == params ? void 0 : params.showCursor) && (this.showCursor = params.showCursor), void 0 !== (null == params ? void 0 : params.cursorChar) && (this.cursorChar = params.cursorChar), void 0 !== (null == params ? void 0 : params.blinkCursor) && (this.blinkCursor = params.blinkCursor), void 0 !== (null == params ? void 0 : params.beforeText) && (this.beforeText = params.beforeText), void 0 !== (null == params ? void 0 : params.afterText) && (this.afterText = params.afterText), void 0 !== (null == params ? void 0 : params.fadeInChars) && (this.fadeInChars = params.fadeInChars), void 0 !== (null == params ? void 0 : params.fadeInDuration) && (this.fadeInDuration = params.fadeInDuration);
33045
+ super(from, to, duration, easing, params), this.fromTextConfig = [], this.toTextConfig = [], this.originalTextConfig = [], this.showCursor = !1, this.cursorChar = "|", this.blinkCursor = !0, this.fadeInChars = !1, this.fadeInDuration = .3, this.strokeFirst = !1, this.strokeToFillRatio = .3, void 0 !== (null == params ? void 0 : params.showCursor) && (this.showCursor = params.showCursor), void 0 !== (null == params ? void 0 : params.cursorChar) && (this.cursorChar = params.cursorChar), void 0 !== (null == params ? void 0 : params.blinkCursor) && (this.blinkCursor = params.blinkCursor), void 0 !== (null == params ? void 0 : params.fadeInChars) && (this.fadeInChars = params.fadeInChars), void 0 !== (null == params ? void 0 : params.fadeInDuration) && (this.fadeInDuration = params.fadeInDuration), void 0 !== (null == params ? void 0 : params.strokeFirst) && (this.strokeFirst = params.strokeFirst), void 0 !== (null == params ? void 0 : params.strokeToFillRatio) && (this.strokeToFillRatio = params.strokeToFillRatio);
32962
33046
  }
32963
33047
  onFirstRun() {
32964
33048
  const fromProps = this.getLastProps(),
@@ -32979,12 +33063,22 @@
32979
33063
  currentLength = Math.round(fromItems + (totalItems - fromItems) * adjustedRatio);
32980
33064
  } else currentLength = Math.round(fromItems + (totalItems - fromItems) * ratio);
32981
33065
  if (currentTextConfig = fromItems > totalItems ? this.fromTextConfig.slice(0, currentLength) : this.toTextConfig.slice(0, currentLength).map((item, index) => {
32982
- if (this.fadeInChars && "text" in item) {
32983
- const fadeProgress = (ratio - index / totalItems * maxTextShowRatio) / this.fadeInDuration,
32984
- opacity = Math.max(0, Math.min(1, fadeProgress));
32985
- return Object.assign(Object.assign({}, item), {
32986
- opacity: opacity
32987
- });
33066
+ if ("text" in item) {
33067
+ const newItem = Object.assign({}, item);
33068
+ if (this.strokeFirst) {
33069
+ const appearTime = index / totalItems * maxTextShowRatio,
33070
+ itemLifetime = Math.max(0, ratio - appearTime),
33071
+ maxLifetime = 1 - appearTime,
33072
+ fillProgress = Math.min(1, itemLifetime / (this.strokeToFillRatio * maxLifetime));
33073
+ if ("fill" in newItem && newItem.fill && (newItem.stroke = newItem.fill, fillProgress < 1 && (newItem.fillOpacity = fillProgress)), this.fadeInChars) {
33074
+ const fadeProgress = Math.min(1, itemLifetime / (this.fadeInDuration * maxLifetime));
33075
+ newItem.opacity = Math.max(0, Math.min(1, fadeProgress));
33076
+ }
33077
+ } else if (this.fadeInChars) {
33078
+ const fadeProgress = (ratio - index / totalItems * maxTextShowRatio) / this.fadeInDuration;
33079
+ newItem.opacity = Math.max(0, Math.min(1, fadeProgress));
33080
+ }
33081
+ return newItem;
32988
33082
  }
32989
33083
  return item;
32990
33084
  }), this.showCursor && currentLength < totalItems) {
@@ -33346,7 +33440,7 @@
33346
33440
  super(from, to, duration, easing, params);
33347
33441
  }
33348
33442
  onBind() {
33349
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
33443
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
33350
33444
  let from, to;
33351
33445
  super.onBind();
33352
33446
  const attrs = this.target.getFinalAttribute(),
@@ -33376,7 +33470,7 @@
33376
33470
  }, this._updateFunction = this.updateXY;
33377
33471
  }
33378
33472
  const finalAttribute = this.target.getFinalAttribute();
33379
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.props = to, this.from = from, this.to = to, this.target.setAttributes(from);
33473
+ 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);
33380
33474
  }
33381
33475
  onEnd(cb) {
33382
33476
  super.onEnd(cb);
@@ -33550,6 +33644,104 @@
33550
33644
  }), this.target.addUpdatePositionTag(), this.target.addUpdateShapeAndBoundsTag();
33551
33645
  }
33552
33646
  }
33647
+ class StrokeIn extends ACustomAnimate {
33648
+ constructor(from, to, duration, easing, params) {
33649
+ super(from, to, duration, easing, params), this.perimeter = 0, this.originalAttributes = {};
33650
+ }
33651
+ onBind() {
33652
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
33653
+ if (super.onBind(), this.originalAttributes = Object.assign({}, this.target.getAttributes()), "rect" === this.target.type) {
33654
+ const attr = this.target.attribute,
33655
+ width = null !== (_a = attr.width) && void 0 !== _a ? _a : 100,
33656
+ height = null !== (_b = attr.height) && void 0 !== _b ? _b : 100;
33657
+ this.perimeter = 2 * (width + height);
33658
+ } else if ("circle" === this.target.type) {
33659
+ const radius = null !== (_c = this.target.attribute.radius) && void 0 !== _c ? _c : 50;
33660
+ this.perimeter = 2 * Math.PI * radius;
33661
+ } else if ("ellipse" === this.target.type) {
33662
+ const attr = this.target.attribute,
33663
+ radiusX = null !== (_d = attr.radiusX) && void 0 !== _d ? _d : 50,
33664
+ radiusY = null !== (_e = attr.radiusY) && void 0 !== _e ? _e : 50;
33665
+ this.perimeter = 2 * Math.PI * Math.sqrt((radiusX * radiusX + radiusY * radiusY) / 2);
33666
+ } else this.perimeter = 1e3;
33667
+ const lineWidth = null !== (_g = null === (_f = this.params) || void 0 === _f ? void 0 : _f.lineWidth) && void 0 !== _g ? _g : 2,
33668
+ strokeColor = null !== (_j = null === (_h = this.params) || void 0 === _h ? void 0 : _h.strokeColor) && void 0 !== _j ? _j : "black",
33669
+ fromOpacity = null !== (_l = null === (_k = this.params) || void 0 === _k ? void 0 : _k.fromOpacity) && void 0 !== _l ? _l : 1,
33670
+ dashLength = null !== (_o = null === (_m = this.params) || void 0 === _m ? void 0 : _m.dashLength) && void 0 !== _o ? _o : this.perimeter,
33671
+ showFill = null !== (_q = null === (_p = this.params) || void 0 === _p ? void 0 : _p.showFill) && void 0 !== _q && _q,
33672
+ fillOpacity = null !== (_s = null === (_r = this.params) || void 0 === _r ? void 0 : _r.fillOpacity) && void 0 !== _s ? _s : 0;
33673
+ this.from = {
33674
+ lineDash: [dashLength, dashLength],
33675
+ lineDashOffset: dashLength,
33676
+ lineWidth: lineWidth,
33677
+ stroke: strokeColor,
33678
+ strokeOpacity: fromOpacity
33679
+ }, this.to = {
33680
+ lineDash: [dashLength, dashLength],
33681
+ lineDashOffset: 0,
33682
+ lineWidth: lineWidth,
33683
+ stroke: strokeColor,
33684
+ strokeOpacity: fromOpacity
33685
+ }, 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.setAttributes(this.from);
33686
+ }
33687
+ onUpdate(end, ratio, out) {
33688
+ var _a;
33689
+ const attribute = this.target.attribute;
33690
+ attribute.lineDashOffset = this.from.lineDashOffset + (this.to.lineDashOffset - this.from.lineDashOffset) * ratio, (null === (_a = this.params) || void 0 === _a ? void 0 : _a.showFill) && (attribute.fillOpacity = this.from.fillOpacity + (this.to.fillOpacity - this.from.fillOpacity) * ratio);
33691
+ }
33692
+ onEnd() {
33693
+ var _a;
33694
+ if (super.onEnd(), !(null === (_a = this.params) || void 0 === _a ? void 0 : _a.showFill)) {
33695
+ const originalAttrs = Object.assign({}, this.originalAttributes);
33696
+ originalAttrs.fillOpacity = 0, this.target.setAttributes(originalAttrs);
33697
+ }
33698
+ }
33699
+ }
33700
+ class StrokeOut extends ACustomAnimate {
33701
+ constructor(from, to, duration, easing, params) {
33702
+ super(from, to, duration, easing, params), this.perimeter = 0, this.originalAttributes = {};
33703
+ }
33704
+ onFirstRun() {
33705
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
33706
+ if (this.originalAttributes = Object.assign({}, this.target.getAttributes()), "rect" === this.target.type) {
33707
+ const attr = this.target.attribute,
33708
+ width = null !== (_a = attr.width) && void 0 !== _a ? _a : 100,
33709
+ height = null !== (_b = attr.height) && void 0 !== _b ? _b : 100;
33710
+ this.perimeter = 2 * (width + height);
33711
+ } else if ("circle" === this.target.type) {
33712
+ const radius = null !== (_c = this.target.attribute.radius) && void 0 !== _c ? _c : 50;
33713
+ this.perimeter = 2 * Math.PI * radius;
33714
+ } else if ("ellipse" === this.target.type) {
33715
+ const attr = this.target.attribute,
33716
+ radiusX = null !== (_d = attr.radiusX) && void 0 !== _d ? _d : 50,
33717
+ radiusY = null !== (_e = attr.radiusY) && void 0 !== _e ? _e : 50;
33718
+ this.perimeter = 2 * Math.PI * Math.sqrt((radiusX * radiusX + radiusY * radiusY) / 2);
33719
+ } else this.perimeter = 1e3;
33720
+ const lineWidth = null !== (_g = null === (_f = this.params) || void 0 === _f ? void 0 : _f.lineWidth) && void 0 !== _g ? _g : 2,
33721
+ strokeColor = null !== (_j = null === (_h = this.params) || void 0 === _h ? void 0 : _h.strokeColor) && void 0 !== _j ? _j : "black",
33722
+ fromOpacity = null !== (_l = null === (_k = this.params) || void 0 === _k ? void 0 : _k.fromOpacity) && void 0 !== _l ? _l : 1,
33723
+ dashLength = null !== (_o = null === (_m = this.params) || void 0 === _m ? void 0 : _m.dashLength) && void 0 !== _o ? _o : this.perimeter,
33724
+ showFill = null !== (_q = null === (_p = this.params) || void 0 === _p ? void 0 : _p.showFill) && void 0 !== _q && _q;
33725
+ this.from = {
33726
+ lineDash: [dashLength, dashLength],
33727
+ lineDashOffset: 0,
33728
+ lineWidth: lineWidth,
33729
+ stroke: strokeColor,
33730
+ strokeOpacity: fromOpacity
33731
+ }, this.to = {
33732
+ lineDash: [dashLength, dashLength],
33733
+ lineDashOffset: -dashLength,
33734
+ lineWidth: lineWidth,
33735
+ stroke: strokeColor,
33736
+ strokeOpacity: fromOpacity
33737
+ }, 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.setAttributes(this.from);
33738
+ }
33739
+ onUpdate(end, ratio, out) {
33740
+ var _a;
33741
+ const attribute = this.target.attribute;
33742
+ attribute.lineDashOffset = this.from.lineDashOffset + (this.to.lineDashOffset - this.from.lineDashOffset) * ratio, (null === (_a = this.params) || void 0 === _a ? void 0 : _a.showFill) && (attribute.fillOpacity = this.from.fillOpacity + (this.to.fillOpacity - this.from.fillOpacity) * ratio);
33743
+ }
33744
+ }
33553
33745
  class MoveScaleIn extends ACustomAnimate {
33554
33746
  constructor(from, to, duration, easing, params) {
33555
33747
  var _a;
@@ -33784,6 +33976,35 @@
33784
33976
  }
33785
33977
  onUpdate(end, ratio, out) {}
33786
33978
  }
33979
+ class PulseAnimate extends ACustomAnimate {
33980
+ constructor(from, to, duration, easing, params) {
33981
+ super(from, to, duration, easing, params), this.originalAttributes = {}, this.pulseCount = 3, this.pulseOpacity = .3, this.pulseScale = 1.05, this.pulseColor = null, this.pulseColorIntensity = .2, this.strokeOnly = !1, this.fillOnly = !1, this.useScale = !0, this.useOpacity = !0, this.useStroke = !0, this.useFill = !0, this.useColor = !1, this.originalFill = null, this.originalStroke = null, void 0 !== (null == params ? void 0 : params.pulseCount) && (this.pulseCount = params.pulseCount), void 0 !== (null == params ? void 0 : params.pulseScale) && (this.pulseScale = params.pulseScale), void 0 !== (null == params ? void 0 : params.pulseColor) && (this.pulseColor = params.pulseColor), void 0 !== (null == params ? void 0 : params.pulseColorIntensity) && (this.pulseColorIntensity = params.pulseColorIntensity), void 0 !== (null == params ? void 0 : params.strokeOnly) && (this.strokeOnly = params.strokeOnly), void 0 !== (null == params ? void 0 : params.fillOnly) && (this.fillOnly = params.fillOnly), void 0 !== (null == params ? void 0 : params.useScale) && (this.useScale = params.useScale), void 0 !== (null == params ? void 0 : params.useOpacity) && (this.useOpacity = params.useOpacity), void 0 !== (null == params ? void 0 : params.useStroke) && (this.useStroke = params.useStroke), void 0 !== (null == params ? void 0 : params.useFill) && (this.useFill = params.useFill), void 0 !== (null == params ? void 0 : params.useColor) && (this.useColor = params.useColor);
33982
+ }
33983
+ onBind() {
33984
+ super.onBind(), this.originalAttributes = Object.assign({}, this.target.getAttributes()), this.useColor && (this.originalFill = this.originalAttributes.fill || null, this.originalStroke = this.originalAttributes.stroke || null, this.pulseColor || (this.fillOnly && this.originalFill ? this.pulseColor = this.originalFill : this.strokeOnly && this.originalStroke ? this.pulseColor = this.originalStroke : this.originalFill ? this.pulseColor = this.originalFill : this.originalStroke ? this.pulseColor = this.originalStroke : this.pulseColor = "#FFFFFF"));
33985
+ }
33986
+ onUpdate(end, ratio, out) {
33987
+ const angle = ratio * Math.PI * this.pulseCount,
33988
+ pulseValue = Math.abs(Math.sin(angle)),
33989
+ attribute = this.target.attribute;
33990
+ if (this.useOpacity) {
33991
+ const opacity = 1 + (this.pulseOpacity - 1) * pulseValue;
33992
+ this.useStroke && (attribute.strokeOpacity = (this.originalAttributes.strokeOpacity || 1) * opacity), this.useFill && (attribute.fillOpacity = (this.originalAttributes.fillOpacity || 1) * opacity);
33993
+ }
33994
+ if (this.useScale) {
33995
+ const scale = 1 + (this.pulseScale - 1) * pulseValue;
33996
+ attribute.scaleX = (this.originalAttributes.scaleX || 1) * scale, attribute.scaleY = (this.originalAttributes.scaleY || 1) * scale;
33997
+ }
33998
+ this.useColor && this.pulseColor && this.applyColorPulse(attribute, pulseValue), this.target.addUpdateShapeAndBoundsTag(), this.target.addUpdatePositionTag();
33999
+ }
34000
+ applyColorPulse(attribute, pulseValue) {
34001
+ const colorRatio = this.pulseColorIntensity * pulseValue;
34002
+ this.useFill && this.originalFill && this.pulseColor && (attribute.fill = interpolateColor(this.originalFill, this.pulseColor, colorRatio, !0)), this.useStroke && this.originalStroke && this.pulseColor && (attribute.stroke = interpolateColor(this.originalStroke, this.pulseColor, colorRatio, !0));
34003
+ }
34004
+ onEnd() {
34005
+ super.onEnd(), this.target.setAttributes(this.originalAttributes);
34006
+ }
34007
+ }
33787
34008
 
33788
34009
  class Update extends ACustomAnimate {
33789
34010
  constructor(from, to, duration, easing, params) {
@@ -33824,8 +34045,8 @@
33824
34045
  } = null != options ? options : {};
33825
34046
  let changedX = 0,
33826
34047
  changedY = 0;
33827
- "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;
33828
- const point = isFunction$1(pointOpt) ? pointOpt.call(null, graphic.getDatum(), graphic, animationParameters) : pointOpt,
34048
+ "negative" === orient && (changedX = graphic.stage.viewWidth, changedY = graphic.stage.viewHeight), changedX += offset, changedY += offset;
34049
+ 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,
33829
34050
  fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
33830
34051
  fromY = point && isValidNumber$1(point.y) ? point.y : changedY,
33831
34052
  finalAttrs = graphic.getFinalAttribute(),
@@ -33871,12 +34092,11 @@
33871
34092
  direction: direction,
33872
34093
  point: pointOpt
33873
34094
  } = null != options ? options : {},
33874
- groupBounds = animationParameters.group ? animationParameters.group.getBounds() : null,
33875
- groupWidth = null !== (_a = null == groupBounds ? void 0 : groupBounds.width()) && void 0 !== _a ? _a : animationParameters.width,
33876
- groupHeight = null !== (_b = null == groupBounds ? void 0 : groupBounds.height()) && void 0 !== _b ? _b : animationParameters.height,
34095
+ groupWidth = graphic.stage.viewWidth,
34096
+ groupHeight = graphic.stage.viewHeight,
33877
34097
  changedX = ("negative" === orient ? groupWidth : 0) + offset,
33878
34098
  changedY = ("negative" === orient ? groupHeight : 0) + offset,
33879
- point = isFunction$1(pointOpt) ? pointOpt.call(null, graphic.getDatum(), graphic, animationParameters) : pointOpt,
34099
+ 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,
33880
34100
  fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
33881
34101
  fromY = point && isValidNumber$1(point.y) ? point.y : changedY;
33882
34102
  switch (direction) {
@@ -33924,6 +34144,7 @@
33924
34144
  }
33925
34145
  class MoveIn extends MoveBase {
33926
34146
  onBind() {
34147
+ var _a;
33927
34148
  super.onBind();
33928
34149
  const {
33929
34150
  from: from,
@@ -33931,7 +34152,7 @@
33931
34152
  } = moveIn(this.target, this.params.options, this.params);
33932
34153
  this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
33933
34154
  const finalAttribute = this.target.getFinalAttribute();
33934
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
34155
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
33935
34156
  }
33936
34157
  }
33937
34158
  class MoveOut extends MoveBase {
@@ -33984,6 +34205,7 @@
33984
34205
  }
33985
34206
  class RotateIn extends RotateBase {
33986
34207
  onBind() {
34208
+ var _a;
33987
34209
  super.onBind();
33988
34210
  const {
33989
34211
  from: from,
@@ -33991,7 +34213,7 @@
33991
34213
  } = rotateIn(this.target, this.params.options);
33992
34214
  this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to;
33993
34215
  const finalAttribute = this.target.getFinalAttribute();
33994
- finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
34216
+ finalAttribute && Object.assign(this.target.attribute, finalAttribute), !1 !== (null === (_a = this.params.controlOptions) || void 0 === _a ? void 0 : _a.immediatelyApply) && this.target.setAttributes(from);
33995
34217
  }
33996
34218
  }
33997
34219
  class RotateOut extends RotateBase {
@@ -34032,11 +34254,12 @@
34032
34254
  super(from, to, duration, easing, params), this.from = null != from ? from : {};
34033
34255
  }
34034
34256
  onBind() {
34257
+ var _a, _b;
34035
34258
  super.onBind();
34036
34259
  const finalAttribute = this.target.getFinalAttribute();
34037
34260
  Object.keys(this.from).forEach(key => {
34038
34261
  null == this.props[key] && (this.props[key] = finalAttribute[key]);
34039
- });
34262
+ }), "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);
34040
34263
  }
34041
34264
  onFirstRun() {
34042
34265
  var _a;
@@ -34244,10 +34467,10 @@
34244
34467
  }
34245
34468
 
34246
34469
  const registerCustomAnimate = () => {
34247
- 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);
34470
+ 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("strokeIn", StrokeIn), AnimateExecutor.registerBuiltInAnimate("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("strokeOut", StrokeOut), AnimateExecutor.registerBuiltInAnimate("pulse", PulseAnimate), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight);
34248
34471
  };
34249
34472
 
34250
- const version = "1.0.0-alpha.3";
34473
+ const version = "1.0.0-alpha.5";
34251
34474
  preLoadAllModule();
34252
34475
  if (isBrowserEnv()) {
34253
34476
  loadBrowserEnv(container);
@@ -34535,6 +34758,7 @@
34535
34758
  exports.PolygonRenderContribution = PolygonRenderContribution;
34536
34759
  exports.PoptipAppear = PoptipAppear;
34537
34760
  exports.PoptipDisappear = PoptipDisappear;
34761
+ exports.PulseAnimate = PulseAnimate;
34538
34762
  exports.Pyramid3d = Pyramid3d;
34539
34763
  exports.Pyramid3dRender = Pyramid3dRender;
34540
34764
  exports.REACT_TO_CANOPUS_EVENTS = REACT_TO_CANOPUS_EVENTS;
@@ -34580,6 +34804,8 @@
34580
34804
  exports.StaticLayerHandlerContribution = StaticLayerHandlerContribution;
34581
34805
  exports.Step = Step$1;
34582
34806
  exports.StreamLight = StreamLight;
34807
+ exports.StrokeIn = StrokeIn;
34808
+ exports.StrokeOut = StrokeOut;
34583
34809
  exports.Symbol = Symbol$1;
34584
34810
  exports.SymbolRender = SymbolRender;
34585
34811
  exports.SymbolRenderContribution = SymbolRenderContribution;