@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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +168 -99
- package/dist/index.js +168 -99
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +6 -6
package/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
|
+
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;
|
|
@@ -16889,10 +16914,10 @@
|
|
|
16889
16914
|
}
|
|
16890
16915
|
initAnimate(params) {
|
|
16891
16916
|
var _a;
|
|
16892
|
-
this.createTicker && this.createTimeline && (this.
|
|
16917
|
+
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));
|
|
16893
16918
|
}
|
|
16894
16919
|
startAnimate() {
|
|
16895
|
-
this.
|
|
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.
|
|
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
|
}
|
|
@@ -30441,11 +30473,11 @@
|
|
|
30441
30473
|
return this._bounce = b, this;
|
|
30442
30474
|
}
|
|
30443
30475
|
advance(delta) {
|
|
30444
|
-
var _a;
|
|
30476
|
+
var _a, _b, _c;
|
|
30445
30477
|
if (this.status === exports.AnimateStatus.END) return void console.warn("aaa 动画已经结束,不能推进");
|
|
30446
30478
|
const nextTime = this.currentTime + delta;
|
|
30447
30479
|
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);
|
|
30480
|
+
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
30481
|
this.status = exports.AnimateStatus.RUNNING, this.currentTime <= this._startTime && this.onStart(), this.currentTime = nextTime;
|
|
30450
30482
|
let cycleTime = nextTime - this._startTime,
|
|
30451
30483
|
newLoop = !1,
|
|
@@ -30470,9 +30502,10 @@
|
|
|
30470
30502
|
}
|
|
30471
30503
|
}
|
|
30472
30504
|
if (!targetStep) return;
|
|
30505
|
+
targetStep !== this.lastRunStep && (null === (_c = this.lastRunStep) || void 0 === _c || _c.onEnd()), this.lastRunStep = targetStep;
|
|
30473
30506
|
const ratio = (cycleTime - targetStep.getStartTime()) / targetStep.getDuration(),
|
|
30474
30507
|
isEnd = ratio >= 1;
|
|
30475
|
-
targetStep.update(isEnd, ratio, {}), isEnd && targetStep.onEnd();
|
|
30508
|
+
targetStep.update(isEnd, ratio, {}), isEnd && (targetStep.onEnd(), this.lastRunStep = null);
|
|
30476
30509
|
}
|
|
30477
30510
|
updateDuration() {
|
|
30478
30511
|
this._lastStep ? (this._duration = this._lastStep.getStartTime() + this._lastStep.getDuration(), this._totalDuration = this._duration * (this._loopCount + 1)) : this._duration = 0;
|
|
@@ -30619,8 +30652,16 @@
|
|
|
30619
30652
|
getTime() {
|
|
30620
30653
|
return this.currentTime;
|
|
30621
30654
|
}
|
|
30655
|
+
tickTo(time, cb) {
|
|
30656
|
+
this.startTime < 0 && (this.startTime = 0, this.currentTime = 0);
|
|
30657
|
+
const interval = time - this.currentTime;
|
|
30658
|
+
this.tick(interval, cb);
|
|
30659
|
+
}
|
|
30622
30660
|
}
|
|
30623
30661
|
class ManualTicker extends DefaultTicker {
|
|
30662
|
+
constructor(stage) {
|
|
30663
|
+
super(stage), this.lastFrameTime = 0, this.status = exports.STATUS.RUNNING;
|
|
30664
|
+
}
|
|
30624
30665
|
setupTickHandler() {
|
|
30625
30666
|
const handler = new ManualTickHandler();
|
|
30626
30667
|
return this.tickerHandler && this.tickerHandler.release(), this.tickerHandler = handler, !0;
|
|
@@ -30628,6 +30669,19 @@
|
|
|
30628
30669
|
getTime() {
|
|
30629
30670
|
return this.tickerHandler.getTime();
|
|
30630
30671
|
}
|
|
30672
|
+
tickAt(time) {
|
|
30673
|
+
this.tickTo(time);
|
|
30674
|
+
}
|
|
30675
|
+
start() {
|
|
30676
|
+
let force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
30677
|
+
if (this.status === exports.STATUS.RUNNING) return !1;
|
|
30678
|
+
if (!this.tickerHandler) return !1;
|
|
30679
|
+
if (!force) {
|
|
30680
|
+
if (this.status === exports.STATUS.PAUSE) return !1;
|
|
30681
|
+
if (this.ifCanStop()) return !1;
|
|
30682
|
+
}
|
|
30683
|
+
return this.status = exports.STATUS.RUNNING, !0;
|
|
30684
|
+
}
|
|
30631
30685
|
}
|
|
30632
30686
|
|
|
30633
30687
|
function generatorPathEasingFunc(path) {
|
|
@@ -30738,47 +30792,49 @@
|
|
|
30738
30792
|
index >= 0 && this._animates.splice(index, 1), 0 === this._activeCount && this._started && (this._started = !1, this.onEnd());
|
|
30739
30793
|
});
|
|
30740
30794
|
}
|
|
30741
|
-
parseParams(params, isTimeline) {
|
|
30795
|
+
parseParams(params, isTimeline, child) {
|
|
30742
30796
|
var _a, _b;
|
|
30743
30797
|
const totalTime = this.resolveValue(params.totalTime, void 0, void 0),
|
|
30744
30798
|
startTime = this.resolveValue(params.startTime, void 0, 0),
|
|
30745
|
-
parsedParams =
|
|
30799
|
+
parsedParams = cloneDeep(params);
|
|
30746
30800
|
parsedParams.oneByOneDelay = 0, parsedParams.startTime = startTime, parsedParams.totalTime = totalTime;
|
|
30747
|
-
const oneByOne = this.resolveValue(params.oneByOne,
|
|
30801
|
+
const oneByOne = this.resolveValue(params.oneByOne, child, !1);
|
|
30748
30802
|
if (isTimeline) {
|
|
30749
30803
|
const timeSlices = parsedParams.timeSlices;
|
|
30750
30804
|
isArray$1(timeSlices) || (parsedParams.timeSlices = [timeSlices]);
|
|
30751
30805
|
let sliceTime = 0;
|
|
30752
30806
|
parsedParams.timeSlices.forEach(slice => {
|
|
30753
|
-
slice.delay = this.resolveValue(slice.delay,
|
|
30807
|
+
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
30808
|
});
|
|
30755
30809
|
let oneByOneDelay = 0,
|
|
30756
30810
|
oneByOneTime = 0;
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
|
|
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;
|
|
30811
|
+
oneByOne && (oneByOneTime = Number(oneByOne), oneByOneDelay = oneByOneTime), parsedParams.oneByOne = oneByOneTime, parsedParams.oneByOneDelay = oneByOneDelay;
|
|
30812
|
+
let scale = 1;
|
|
30813
|
+
if (totalTime) {
|
|
30814
|
+
const _totalTime = sliceTime + oneByOneDelay * (this._target.count - 2);
|
|
30815
|
+
scale = totalTime ? totalTime / _totalTime : 1;
|
|
30777
30816
|
}
|
|
30817
|
+
parsedParams.timeSlices = parsedParams.timeSlices.map(slice => {
|
|
30818
|
+
let effects = slice.effects;
|
|
30819
|
+
return Array.isArray(effects) || (effects = [effects]), Object.assign(Object.assign({}, slice), {
|
|
30820
|
+
delay: slice.delay * scale,
|
|
30821
|
+
delayAfter: slice.delayAfter * scale,
|
|
30822
|
+
duration: slice.duration * scale,
|
|
30823
|
+
effects: effects.map(effect => {
|
|
30824
|
+
var _a, _b;
|
|
30825
|
+
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[null !== (_b = effect.type) && void 0 !== _b ? _b : "fromTo"],
|
|
30826
|
+
customType = custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
|
|
30827
|
+
return Object.assign(Object.assign({}, effect), {
|
|
30828
|
+
custom: custom,
|
|
30829
|
+
customType: customType
|
|
30830
|
+
});
|
|
30831
|
+
})
|
|
30832
|
+
});
|
|
30833
|
+
}), parsedParams.oneByOne = oneByOneTime * scale, parsedParams.oneByOneDelay = oneByOneDelay * scale, parsedParams.startTime = startTime * scale;
|
|
30778
30834
|
} else {
|
|
30779
|
-
const delay = this.resolveValue(params.delay,
|
|
30780
|
-
delayAfter = this.resolveValue(params.delayAfter,
|
|
30781
|
-
duration = this.resolveValue(params.duration,
|
|
30835
|
+
const delay = this.resolveValue(params.delay, child, 0),
|
|
30836
|
+
delayAfter = this.resolveValue(params.delayAfter, child, 0),
|
|
30837
|
+
duration = this.resolveValue(params.duration, child, 300);
|
|
30782
30838
|
let oneByOneDelay = 0,
|
|
30783
30839
|
oneByOneTime = 0;
|
|
30784
30840
|
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 +30855,21 @@
|
|
|
30799
30855
|
const isTimeline = ("timeSlices" in params);
|
|
30800
30856
|
let filteredChildren;
|
|
30801
30857
|
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
30858
|
var _a, _b;
|
|
30806
|
-
return params.
|
|
30859
|
+
return params.partitioner(null === (_b = null === (_a = child.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], child, {});
|
|
30860
|
+
})), isTimeline && params.sort && (filteredChildren = null != filteredChildren ? filteredChildren : this._target.getChildren(), filteredChildren.sort((a, b) => {
|
|
30861
|
+
var _a, _b, _c, _d;
|
|
30862
|
+
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
30863
|
}));
|
|
30808
|
-
const
|
|
30809
|
-
|
|
30810
|
-
|
|
30811
|
-
|
|
30812
|
-
|
|
30813
|
-
|
|
30814
|
-
animate
|
|
30815
|
-
|
|
30864
|
+
const cb = isTimeline ? (child, index, count) => {
|
|
30865
|
+
const parsedParams = this.parseParams(params, isTimeline, child),
|
|
30866
|
+
animate = this.executeTimelineItem(parsedParams, child, index, count);
|
|
30867
|
+
animate && this._trackAnimation(animate);
|
|
30868
|
+
} : (child, index, count) => {
|
|
30869
|
+
const parsedParams = this.parseParams(params, isTimeline, child),
|
|
30870
|
+
animate = this.executeTypeConfigItem(parsedParams, child, index, count);
|
|
30871
|
+
animate && this._trackAnimation(animate);
|
|
30872
|
+
};
|
|
30816
30873
|
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
30874
|
}
|
|
30818
30875
|
executeTypeConfigItem(params, graphic, index, count) {
|
|
@@ -30840,22 +30897,24 @@
|
|
|
30840
30897
|
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
30898
|
datum = null === (_d = null === (_c = graphic.context) || void 0 === _c ? void 0 : _c.data) || void 0 === _d ? void 0 : _d[0],
|
|
30842
30899
|
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
|
|
30844
|
-
const wait = index * oneByOneDelay;
|
|
30900
|
+
datum && indexKey && (index = null !== (_f = datum[indexKey]) && void 0 !== _f ? _f : index), animate.startAt(startTime);
|
|
30901
|
+
const wait = index * oneByOneDelay + delayValue;
|
|
30845
30902
|
wait > 0 && animate.wait(wait);
|
|
30846
30903
|
let parsedFromProps = null,
|
|
30847
30904
|
props = params.to,
|
|
30848
30905
|
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)
|
|
30906
|
+
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);
|
|
30907
|
+
let totalDelay = 0;
|
|
30908
|
+
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
30850
30909
|
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(
|
|
30910
|
+
return delayAfterValue > 0 && (totalDelay += delayAfterValue), totalDelay > 0 && animate.wait(totalDelay), loop && loop > 0 && animate.loop(loop), bounce && animate.bounce(!0), animate;
|
|
30852
30911
|
}
|
|
30853
|
-
_handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic) {
|
|
30912
|
+
_handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic) {
|
|
30854
30913
|
var _a, _b, _c, _d;
|
|
30855
30914
|
if (custom && customType) {
|
|
30856
30915
|
const customParams = this.resolveValue(customParameters, graphic, {}),
|
|
30857
30916
|
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);
|
|
30917
|
+
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
30918
|
} else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
|
|
30860
30919
|
}
|
|
30861
30920
|
executeTimelineItem(params, graphic, index, count) {
|
|
@@ -30890,7 +30949,7 @@
|
|
|
30890
30949
|
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
30950
|
delayValue > 0 && animate.wait(delayValue);
|
|
30892
30951
|
(Array.isArray(effects) ? effects : [effects]).forEach(effect => {
|
|
30893
|
-
var _a
|
|
30952
|
+
var _a;
|
|
30894
30953
|
const {
|
|
30895
30954
|
type = "fromTo",
|
|
30896
30955
|
channel: channel,
|
|
@@ -30903,8 +30962,8 @@
|
|
|
30903
30962
|
from = effect.from;
|
|
30904
30963
|
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
|
|
30905
30964
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
30906
|
-
customType =
|
|
30907
|
-
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, options, type, graphic);
|
|
30965
|
+
customType = effect.customType;
|
|
30966
|
+
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, null, options, type, graphic);
|
|
30908
30967
|
}), delayAfterValue > 0 && animate.wait(delayAfterValue);
|
|
30909
30968
|
}
|
|
30910
30969
|
createCustomInterpolatorAnimation(animate, interpolator, props, duration, easing, customParams) {
|
|
@@ -30927,9 +30986,9 @@
|
|
|
30927
30986
|
const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
|
|
30928
30987
|
void 0 !== value && (props[key] = value);
|
|
30929
30988
|
}) : Object.keys(channel).forEach(key => {
|
|
30930
|
-
var _a, _b;
|
|
30989
|
+
var _a, _b, _c, _d;
|
|
30931
30990
|
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 === (
|
|
30991
|
+
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
30992
|
}), {
|
|
30934
30993
|
from: from,
|
|
30935
30994
|
props: props
|
|
@@ -30939,8 +30998,8 @@
|
|
|
30939
30998
|
};
|
|
30940
30999
|
}
|
|
30941
31000
|
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;
|
|
31001
|
+
var _a, _b;
|
|
31002
|
+
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
31003
|
}
|
|
30945
31004
|
executeItem(params, graphic) {
|
|
30946
31005
|
let index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
@@ -31163,6 +31222,10 @@
|
|
|
31163
31222
|
getFinalAttribute() {
|
|
31164
31223
|
return this.finalAttribute;
|
|
31165
31224
|
}
|
|
31225
|
+
getGraphicAttribute(key) {
|
|
31226
|
+
let prev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
31227
|
+
return !prev && this.finalAttribute ? this.finalAttribute[key] : this.attribute[key];
|
|
31228
|
+
}
|
|
31166
31229
|
}
|
|
31167
31230
|
|
|
31168
31231
|
function registerAnimate() {
|
|
@@ -31609,21 +31672,18 @@
|
|
|
31609
31672
|
super(from, to, duration, easing, params);
|
|
31610
31673
|
}
|
|
31611
31674
|
onBind() {
|
|
31612
|
-
var _a;
|
|
31675
|
+
var _a, _b, _c;
|
|
31613
31676
|
super.onBind();
|
|
31614
31677
|
const attrs = this.target.getFinalAttribute(),
|
|
31615
31678
|
fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
|
|
31616
31679
|
to = {},
|
|
31617
|
-
from = {};
|
|
31680
|
+
from = null !== (_b = this.from) && void 0 !== _b ? _b : {};
|
|
31618
31681
|
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 =
|
|
31682
|
+
var _a, _b, _c;
|
|
31683
|
+
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
31684
|
});
|
|
31622
31685
|
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);
|
|
31686
|
+
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
31687
|
}
|
|
31628
31688
|
onUpdate(end, ratio, out) {
|
|
31629
31689
|
const attribute = this.target.attribute;
|
|
@@ -31659,7 +31719,9 @@
|
|
|
31659
31719
|
|
|
31660
31720
|
class GroupFadeIn extends CommonIn {
|
|
31661
31721
|
constructor(from, to, duration, easing, params) {
|
|
31662
|
-
super(from, to, duration, easing, params), this.keys = ["baseOpacity"]
|
|
31722
|
+
super(from, to, duration, easing, params), this.keys = ["baseOpacity"], this.from = {
|
|
31723
|
+
baseOpacity: 0
|
|
31724
|
+
};
|
|
31663
31725
|
}
|
|
31664
31726
|
}
|
|
31665
31727
|
class GroupFadeOut extends CommonOut {
|
|
@@ -31705,7 +31767,9 @@
|
|
|
31705
31767
|
|
|
31706
31768
|
class ClipIn extends CommonIn {
|
|
31707
31769
|
constructor(from, to, duration, easing, params) {
|
|
31708
|
-
super(from, to, duration, easing, params), this.keys = ["clipRange"]
|
|
31770
|
+
super(from, to, duration, easing, params), this.keys = ["clipRange"], this.from = {
|
|
31771
|
+
clipRange: 0
|
|
31772
|
+
};
|
|
31709
31773
|
}
|
|
31710
31774
|
}
|
|
31711
31775
|
class ClipOut extends CommonOut {
|
|
@@ -31716,7 +31780,9 @@
|
|
|
31716
31780
|
|
|
31717
31781
|
class FadeIn extends CommonIn {
|
|
31718
31782
|
constructor(from, to, duration, easing, params) {
|
|
31719
|
-
super(from, to, duration, easing, params), this.keys = ["opacity"]
|
|
31783
|
+
super(from, to, duration, easing, params), this.keys = ["opacity"], this.from = {
|
|
31784
|
+
opacity: 0
|
|
31785
|
+
};
|
|
31720
31786
|
}
|
|
31721
31787
|
}
|
|
31722
31788
|
class FadeOut extends CommonOut {
|
|
@@ -32222,6 +32288,7 @@
|
|
|
32222
32288
|
}
|
|
32223
32289
|
class GrowPointsIn extends GworPointsBase {
|
|
32224
32290
|
onBind() {
|
|
32291
|
+
var _a;
|
|
32225
32292
|
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32226
32293
|
const {
|
|
32227
32294
|
from: from,
|
|
@@ -32229,7 +32296,7 @@
|
|
|
32229
32296
|
} = growPointsIn(this.target, this.params.options, this.params);
|
|
32230
32297
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
|
|
32231
32298
|
const finalAttribute = this.target.getFinalAttribute();
|
|
32232
|
-
finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
|
|
32299
|
+
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
32300
|
} else this.valid = !1;
|
|
32234
32301
|
}
|
|
32235
32302
|
}
|
|
@@ -32254,10 +32321,9 @@
|
|
|
32254
32321
|
}
|
|
32255
32322
|
}
|
|
32256
32323
|
const changePointsX = (graphic, options, animationParameters) => graphic.getFinalAttribute().points.map(point => {
|
|
32257
|
-
var _a;
|
|
32258
32324
|
if (options && "negative" === options.orient) {
|
|
32259
|
-
let groupRight =
|
|
32260
|
-
return
|
|
32325
|
+
let groupRight = graphic.stage.viewWidth;
|
|
32326
|
+
return graphic.parent.parent.parent && (groupRight = graphic.parent.parent.parent.AABBBounds.width()), Object.assign(Object.assign({}, point), {
|
|
32261
32327
|
x: groupRight,
|
|
32262
32328
|
y: point.y,
|
|
32263
32329
|
x1: groupRight,
|
|
@@ -32277,7 +32343,7 @@
|
|
|
32277
32343
|
const attrs = graphic.getFinalAttribute();
|
|
32278
32344
|
return {
|
|
32279
32345
|
from: {
|
|
32280
|
-
points: changePointsX(graphic, options
|
|
32346
|
+
points: changePointsX(graphic, options)
|
|
32281
32347
|
},
|
|
32282
32348
|
to: {
|
|
32283
32349
|
points: attrs.points
|
|
@@ -32286,6 +32352,7 @@
|
|
|
32286
32352
|
};
|
|
32287
32353
|
class GrowPointsXIn extends GworPointsBase {
|
|
32288
32354
|
onBind() {
|
|
32355
|
+
var _a;
|
|
32289
32356
|
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32290
32357
|
const {
|
|
32291
32358
|
from: from,
|
|
@@ -32293,7 +32360,7 @@
|
|
|
32293
32360
|
} = growPointsXIn(this.target, this.params.options, this.params);
|
|
32294
32361
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
|
|
32295
32362
|
const finalAttribute = this.target.getFinalAttribute();
|
|
32296
|
-
finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
|
|
32363
|
+
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
32364
|
} else this.valid = !1;
|
|
32298
32365
|
}
|
|
32299
32366
|
}
|
|
@@ -32304,24 +32371,23 @@
|
|
|
32304
32371
|
{
|
|
32305
32372
|
from: from,
|
|
32306
32373
|
to: to
|
|
32307
|
-
} = (graphic = this.target, options = this.params.options,
|
|
32374
|
+
} = (graphic = this.target, options = this.params.options, this.params, {
|
|
32308
32375
|
from: {
|
|
32309
32376
|
points: graphic.getFinalAttribute().points
|
|
32310
32377
|
},
|
|
32311
32378
|
to: {
|
|
32312
|
-
points: changePointsX(graphic, options
|
|
32379
|
+
points: changePointsX(graphic, options)
|
|
32313
32380
|
}
|
|
32314
32381
|
});
|
|
32315
32382
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from || attrs, this.to = to;
|
|
32316
32383
|
} else this.valid = !1;
|
|
32317
|
-
var graphic, options
|
|
32384
|
+
var graphic, options;
|
|
32318
32385
|
}
|
|
32319
32386
|
}
|
|
32320
32387
|
const changePointsY = (graphic, options, animationParameters) => graphic.getFinalAttribute().points.map(point => {
|
|
32321
|
-
var _a;
|
|
32322
32388
|
if (options && "negative" === options.orient) {
|
|
32323
|
-
let groupBottom =
|
|
32324
|
-
return
|
|
32389
|
+
let groupBottom = graphic.stage.viewHeight;
|
|
32390
|
+
return graphic.parent.parent.parent && (groupBottom = graphic.parent.parent.parent.AABBBounds.height()), Object.assign(Object.assign({}, point), {
|
|
32325
32391
|
x: point.x,
|
|
32326
32392
|
y: groupBottom,
|
|
32327
32393
|
x1: point.x1,
|
|
@@ -32341,7 +32407,7 @@
|
|
|
32341
32407
|
const attrs = graphic.getFinalAttribute();
|
|
32342
32408
|
return {
|
|
32343
32409
|
from: {
|
|
32344
|
-
points: changePointsY(graphic, options
|
|
32410
|
+
points: changePointsY(graphic, options)
|
|
32345
32411
|
},
|
|
32346
32412
|
to: {
|
|
32347
32413
|
points: attrs.points
|
|
@@ -32350,6 +32416,7 @@
|
|
|
32350
32416
|
};
|
|
32351
32417
|
class GrowPointsYIn extends GworPointsBase {
|
|
32352
32418
|
onBind() {
|
|
32419
|
+
var _a;
|
|
32353
32420
|
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32354
32421
|
const {
|
|
32355
32422
|
from: from,
|
|
@@ -32357,7 +32424,7 @@
|
|
|
32357
32424
|
} = growPointsYIn(this.target, this.params.options, this.params);
|
|
32358
32425
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
|
|
32359
32426
|
const finalAttribute = this.target.getFinalAttribute();
|
|
32360
|
-
finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
|
|
32427
|
+
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
32428
|
} else this.valid = !1;
|
|
32362
32429
|
}
|
|
32363
32430
|
}
|
|
@@ -32367,17 +32434,17 @@
|
|
|
32367
32434
|
const {
|
|
32368
32435
|
from: from,
|
|
32369
32436
|
to: to
|
|
32370
|
-
} = (graphic = this.target, options = this.params.options,
|
|
32437
|
+
} = (graphic = this.target, options = this.params.options, this.params, {
|
|
32371
32438
|
from: {
|
|
32372
32439
|
points: graphic.getFinalAttribute().points
|
|
32373
32440
|
},
|
|
32374
32441
|
to: {
|
|
32375
|
-
points: changePointsY(graphic, options
|
|
32442
|
+
points: changePointsY(graphic, options)
|
|
32376
32443
|
}
|
|
32377
32444
|
});
|
|
32378
32445
|
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
32446
|
} else this.valid = !1;
|
|
32380
|
-
var graphic, options
|
|
32447
|
+
var graphic, options;
|
|
32381
32448
|
}
|
|
32382
32449
|
}
|
|
32383
32450
|
|
|
@@ -33346,7 +33413,7 @@
|
|
|
33346
33413
|
super(from, to, duration, easing, params);
|
|
33347
33414
|
}
|
|
33348
33415
|
onBind() {
|
|
33349
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
33416
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
33350
33417
|
let from, to;
|
|
33351
33418
|
super.onBind();
|
|
33352
33419
|
const attrs = this.target.getFinalAttribute(),
|
|
@@ -33376,7 +33443,7 @@
|
|
|
33376
33443
|
}, this._updateFunction = this.updateXY;
|
|
33377
33444
|
}
|
|
33378
33445
|
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);
|
|
33446
|
+
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
33447
|
}
|
|
33381
33448
|
onEnd(cb) {
|
|
33382
33449
|
super.onEnd(cb);
|
|
@@ -33824,8 +33891,8 @@
|
|
|
33824
33891
|
} = null != options ? options : {};
|
|
33825
33892
|
let changedX = 0,
|
|
33826
33893
|
changedY = 0;
|
|
33827
|
-
"negative" === orient && (
|
|
33828
|
-
const point = isFunction$1(pointOpt) ? pointOpt.call(null, graphic.
|
|
33894
|
+
"negative" === orient && (changedX = graphic.stage.viewWidth, changedY = graphic.stage.viewHeight), changedX += offset, changedY += offset;
|
|
33895
|
+
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
33896
|
fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
|
|
33830
33897
|
fromY = point && isValidNumber$1(point.y) ? point.y : changedY,
|
|
33831
33898
|
finalAttrs = graphic.getFinalAttribute(),
|
|
@@ -33871,12 +33938,11 @@
|
|
|
33871
33938
|
direction: direction,
|
|
33872
33939
|
point: pointOpt
|
|
33873
33940
|
} = null != options ? options : {},
|
|
33874
|
-
|
|
33875
|
-
|
|
33876
|
-
groupHeight = null !== (_b = null == groupBounds ? void 0 : groupBounds.height()) && void 0 !== _b ? _b : animationParameters.height,
|
|
33941
|
+
groupWidth = graphic.stage.viewWidth,
|
|
33942
|
+
groupHeight = graphic.stage.viewHeight,
|
|
33877
33943
|
changedX = ("negative" === orient ? groupWidth : 0) + offset,
|
|
33878
33944
|
changedY = ("negative" === orient ? groupHeight : 0) + offset,
|
|
33879
|
-
point = isFunction$1(pointOpt) ? pointOpt.call(null, graphic.
|
|
33945
|
+
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
33946
|
fromX = point && isValidNumber$1(point.x) ? point.x : changedX,
|
|
33881
33947
|
fromY = point && isValidNumber$1(point.y) ? point.y : changedY;
|
|
33882
33948
|
switch (direction) {
|
|
@@ -33924,6 +33990,7 @@
|
|
|
33924
33990
|
}
|
|
33925
33991
|
class MoveIn extends MoveBase {
|
|
33926
33992
|
onBind() {
|
|
33993
|
+
var _a;
|
|
33927
33994
|
super.onBind();
|
|
33928
33995
|
const {
|
|
33929
33996
|
from: from,
|
|
@@ -33931,7 +33998,7 @@
|
|
|
33931
33998
|
} = moveIn(this.target, this.params.options, this.params);
|
|
33932
33999
|
this.props = to, this.propKeys = Object.keys(to).filter(key => null != to[key]), this.from = from, this.to = to;
|
|
33933
34000
|
const finalAttribute = this.target.getFinalAttribute();
|
|
33934
|
-
finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
|
|
34001
|
+
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
34002
|
}
|
|
33936
34003
|
}
|
|
33937
34004
|
class MoveOut extends MoveBase {
|
|
@@ -33984,6 +34051,7 @@
|
|
|
33984
34051
|
}
|
|
33985
34052
|
class RotateIn extends RotateBase {
|
|
33986
34053
|
onBind() {
|
|
34054
|
+
var _a;
|
|
33987
34055
|
super.onBind();
|
|
33988
34056
|
const {
|
|
33989
34057
|
from: from,
|
|
@@ -33991,7 +34059,7 @@
|
|
|
33991
34059
|
} = rotateIn(this.target, this.params.options);
|
|
33992
34060
|
this.props = to, this.propKeys = ["angle"], this.from = from, this.to = to;
|
|
33993
34061
|
const finalAttribute = this.target.getFinalAttribute();
|
|
33994
|
-
finalAttribute && Object.assign(this.target.attribute, finalAttribute), this.target.setAttributes(from);
|
|
34062
|
+
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
34063
|
}
|
|
33996
34064
|
}
|
|
33997
34065
|
class RotateOut extends RotateBase {
|
|
@@ -34032,11 +34100,12 @@
|
|
|
34032
34100
|
super(from, to, duration, easing, params), this.from = null != from ? from : {};
|
|
34033
34101
|
}
|
|
34034
34102
|
onBind() {
|
|
34103
|
+
var _a, _b;
|
|
34035
34104
|
super.onBind();
|
|
34036
34105
|
const finalAttribute = this.target.getFinalAttribute();
|
|
34037
34106
|
Object.keys(this.from).forEach(key => {
|
|
34038
34107
|
null == this.props[key] && (this.props[key] = finalAttribute[key]);
|
|
34039
|
-
});
|
|
34108
|
+
}), "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
34109
|
}
|
|
34041
34110
|
onFirstRun() {
|
|
34042
34111
|
var _a;
|
|
@@ -34247,7 +34316,7 @@
|
|
|
34247
34316
|
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);
|
|
34248
34317
|
};
|
|
34249
34318
|
|
|
34250
|
-
const version = "1.0.0-alpha.
|
|
34319
|
+
const version = "1.0.0-alpha.4";
|
|
34251
34320
|
preLoadAllModule();
|
|
34252
34321
|
if (isBrowserEnv()) {
|
|
34253
34322
|
loadBrowserEnv(container);
|