@visactor/vrender 1.0.0-alpha.1 → 1.0.0-alpha.3
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 +281 -36
- package/dist/index.js +332 -35
- 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 +4 -4
package/dist/index.js
CHANGED
|
@@ -16889,7 +16889,7 @@
|
|
|
16889
16889
|
}
|
|
16890
16890
|
initAnimate(params) {
|
|
16891
16891
|
var _a;
|
|
16892
|
-
this.createTicker && this.createTimeline && (this.ticker = params.ticker || this.createTicker(this), "
|
|
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));
|
|
16893
16893
|
}
|
|
16894
16894
|
startAnimate() {
|
|
16895
16895
|
this.ticker && this.timeline && (this.ticker.start(), this.timeline.resume());
|
|
@@ -30099,10 +30099,12 @@
|
|
|
30099
30099
|
function noop() {}
|
|
30100
30100
|
class Step {
|
|
30101
30101
|
constructor(type, props, duration, easing) {
|
|
30102
|
-
this._startTime = 0, this._hasFirstRun = !1, this.
|
|
30102
|
+
this._startTime = 0, this._hasFirstRun = !1, this._syncAttributeUpdate = () => {
|
|
30103
|
+
this.target.setAttributes(this.target.attribute);
|
|
30104
|
+
}, this.type = type, this.props = props, this.duration = duration, this.easing = easing ? "function" == typeof easing ? easing : Easing[easing] : Easing.linear, "wait" === type && (this.onUpdate = noop), this.id = Generator.GenAutoIncrementId(), this.syncAttributeUpdate = noop;
|
|
30103
30105
|
}
|
|
30104
30106
|
bind(target, animate) {
|
|
30105
|
-
this.target = target, this.animate = animate, this.onBind();
|
|
30107
|
+
this.target = target, this.animate = animate, this.onBind(), this.syncAttributeUpdate();
|
|
30106
30108
|
}
|
|
30107
30109
|
append(step) {
|
|
30108
30110
|
this.next = step, step.prev = this, step.setStartTime(this.getStartTime() + this.duration, !1);
|
|
@@ -30145,7 +30147,9 @@
|
|
|
30145
30147
|
getStartTime() {
|
|
30146
30148
|
return this._startTime;
|
|
30147
30149
|
}
|
|
30148
|
-
onBind() {
|
|
30150
|
+
onBind() {
|
|
30151
|
+
"glyph" === this.target.type && (this.syncAttributeUpdate = this._syncAttributeUpdate);
|
|
30152
|
+
}
|
|
30149
30153
|
onFirstRun() {}
|
|
30150
30154
|
onStart() {
|
|
30151
30155
|
if (!this._hasFirstRun) {
|
|
@@ -30185,7 +30189,7 @@
|
|
|
30185
30189
|
if (!this.animate.validAttr(this.propKeys[index])) return;
|
|
30186
30190
|
const key = this.propKeys[index];
|
|
30187
30191
|
func(key, this.fromProps[key], this.props[key], easedRatio, this, this.target);
|
|
30188
|
-
}), this.onUpdate(end, easedRatio, out);
|
|
30192
|
+
}), this.onUpdate(end, easedRatio, out), this.syncAttributeUpdate();
|
|
30189
30193
|
}
|
|
30190
30194
|
onUpdate(end, ratio, out) {}
|
|
30191
30195
|
onEnd(cb) {
|
|
@@ -30850,7 +30854,7 @@
|
|
|
30850
30854
|
var _a, _b, _c, _d;
|
|
30851
30855
|
if (custom && customType) {
|
|
30852
30856
|
const customParams = this.resolveValue(customParameters, graphic, {}),
|
|
30853
|
-
objOptions = isFunction$1(options) ? options.call(null, null !== (_b =
|
|
30857
|
+
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;
|
|
30854
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);
|
|
30855
30859
|
} else "to" === type ? animate.to(props, duration, easing) : "from" === type && animate.from(props, duration, easing);
|
|
30856
30860
|
}
|
|
@@ -30886,6 +30890,7 @@
|
|
|
30886
30890
|
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;
|
|
30887
30891
|
delayValue > 0 && animate.wait(delayValue);
|
|
30888
30892
|
(Array.isArray(effects) ? effects : [effects]).forEach(effect => {
|
|
30893
|
+
var _a, _b;
|
|
30889
30894
|
const {
|
|
30890
30895
|
type = "fromTo",
|
|
30891
30896
|
channel: channel,
|
|
@@ -30896,7 +30901,10 @@
|
|
|
30896
30901
|
let parsedFromProps = null,
|
|
30897
30902
|
props = effect.to,
|
|
30898
30903
|
from = effect.from;
|
|
30899
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from)
|
|
30904
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic)), from = parsedFromProps.from);
|
|
30905
|
+
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);
|
|
30900
30908
|
}), delayAfterValue > 0 && animate.wait(delayAfterValue);
|
|
30901
30909
|
}
|
|
30902
30910
|
createCustomInterpolatorAnimation(animate, interpolator, props, duration, easing, customParams) {
|
|
@@ -30918,9 +30926,9 @@
|
|
|
30918
30926
|
var _a, _b;
|
|
30919
30927
|
const value = null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs) || void 0 === _b ? void 0 : _b[key];
|
|
30920
30928
|
void 0 !== value && (props[key] = value);
|
|
30921
|
-
}) : Object.
|
|
30922
|
-
let [key, config] = _ref;
|
|
30929
|
+
}) : Object.keys(channel).forEach(key => {
|
|
30923
30930
|
var _a, _b;
|
|
30931
|
+
const config = channel[key];
|
|
30924
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);
|
|
30925
30933
|
}), {
|
|
30926
30934
|
from: from,
|
|
@@ -31168,7 +31176,7 @@
|
|
|
31168
31176
|
update(end, ratio, out) {
|
|
31169
31177
|
if (this.onStart(), !this.props || !this.propKeys) return;
|
|
31170
31178
|
const easedRatio = this.easing(ratio);
|
|
31171
|
-
this.onUpdate(end, easedRatio, out);
|
|
31179
|
+
this.onUpdate(end, easedRatio, out), this.syncAttributeUpdate();
|
|
31172
31180
|
}
|
|
31173
31181
|
setProps(props) {
|
|
31174
31182
|
this.props = props, this.propKeys = Object.keys(props), this.animate.reSyncProps();
|
|
@@ -31362,7 +31370,7 @@
|
|
|
31362
31370
|
super(null, null, duration, easing, params), this.clipFromAttribute = from, this.clipToAttribute = to, this._group = null == params ? void 0 : params.group, this._clipGraphic = null == params ? void 0 : params.clipGraphic;
|
|
31363
31371
|
}
|
|
31364
31372
|
onBind() {
|
|
31365
|
-
this._group && this._clipGraphic && (this._lastClip = this._group.attribute.clip, this._lastPath = this._group.attribute.path, this._group.setAttributes({
|
|
31373
|
+
super.onBind(), this._group && this._clipGraphic && (this._lastClip = this._group.attribute.clip, this._lastPath = this._group.attribute.path, this._group.setAttributes({
|
|
31366
31374
|
clip: !0,
|
|
31367
31375
|
path: [this._clipGraphic]
|
|
31368
31376
|
}, !1, {
|
|
@@ -31520,6 +31528,7 @@
|
|
|
31520
31528
|
return [];
|
|
31521
31529
|
}
|
|
31522
31530
|
onBind() {
|
|
31531
|
+
super.onBind();
|
|
31523
31532
|
const {
|
|
31524
31533
|
points: points,
|
|
31525
31534
|
segments: segments
|
|
@@ -31601,6 +31610,7 @@
|
|
|
31601
31610
|
}
|
|
31602
31611
|
onBind() {
|
|
31603
31612
|
var _a;
|
|
31613
|
+
super.onBind();
|
|
31604
31614
|
const attrs = this.target.getFinalAttribute(),
|
|
31605
31615
|
fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {},
|
|
31606
31616
|
to = {},
|
|
@@ -31627,6 +31637,7 @@
|
|
|
31627
31637
|
super(from, to, duration, easing, params);
|
|
31628
31638
|
}
|
|
31629
31639
|
onBind() {
|
|
31640
|
+
super.onBind();
|
|
31630
31641
|
const attrs = this.target.attribute,
|
|
31631
31642
|
to = {},
|
|
31632
31643
|
from = {};
|
|
@@ -31670,7 +31681,9 @@
|
|
|
31670
31681
|
let theta = Math.acos((startX - center.x) / r / Math.sin(phi));
|
|
31671
31682
|
startZ - center.z < 0 && (theta = pi2 - theta), this.theta = theta, this.phi = phi;
|
|
31672
31683
|
}
|
|
31673
|
-
onBind() {
|
|
31684
|
+
onBind() {
|
|
31685
|
+
super.onBind();
|
|
31686
|
+
}
|
|
31674
31687
|
onEnd() {}
|
|
31675
31688
|
onUpdate(end, ratio, out) {
|
|
31676
31689
|
if (null == this.phi || null == this.theta) return;
|
|
@@ -31834,6 +31847,7 @@
|
|
|
31834
31847
|
class GrowAngleIn extends GrowAngleBase {
|
|
31835
31848
|
onBind() {
|
|
31836
31849
|
var _a, _b;
|
|
31850
|
+
super.onBind();
|
|
31837
31851
|
const {
|
|
31838
31852
|
from: from,
|
|
31839
31853
|
to: to
|
|
@@ -31846,6 +31860,7 @@
|
|
|
31846
31860
|
}
|
|
31847
31861
|
class GrowAngleOut extends GrowAngleBase {
|
|
31848
31862
|
onBind() {
|
|
31863
|
+
super.onBind();
|
|
31849
31864
|
const {
|
|
31850
31865
|
from: from,
|
|
31851
31866
|
to: to
|
|
@@ -31984,6 +31999,7 @@
|
|
|
31984
31999
|
}
|
|
31985
32000
|
onBind() {
|
|
31986
32001
|
var _a, _b;
|
|
32002
|
+
super.onBind();
|
|
31987
32003
|
const {
|
|
31988
32004
|
from: from,
|
|
31989
32005
|
to: to
|
|
@@ -32008,6 +32024,7 @@
|
|
|
32008
32024
|
super(from, to, duration, easing, params);
|
|
32009
32025
|
}
|
|
32010
32026
|
onBind() {
|
|
32027
|
+
super.onBind();
|
|
32011
32028
|
const {
|
|
32012
32029
|
from: from,
|
|
32013
32030
|
to: to
|
|
@@ -32089,6 +32106,7 @@
|
|
|
32089
32106
|
}
|
|
32090
32107
|
onBind() {
|
|
32091
32108
|
var _a, _b;
|
|
32109
|
+
super.onBind();
|
|
32092
32110
|
const {
|
|
32093
32111
|
from: from,
|
|
32094
32112
|
to: to
|
|
@@ -32151,6 +32169,7 @@
|
|
|
32151
32169
|
super(from, to, duration, easing, params);
|
|
32152
32170
|
}
|
|
32153
32171
|
onBind() {
|
|
32172
|
+
super.onBind();
|
|
32154
32173
|
const {
|
|
32155
32174
|
from: from,
|
|
32156
32175
|
to: to
|
|
@@ -32203,7 +32222,7 @@
|
|
|
32203
32222
|
}
|
|
32204
32223
|
class GrowPointsIn extends GworPointsBase {
|
|
32205
32224
|
onBind() {
|
|
32206
|
-
if (["area", "line", "polygon"].includes(this.target.type)) {
|
|
32225
|
+
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32207
32226
|
const {
|
|
32208
32227
|
from: from,
|
|
32209
32228
|
to: to
|
|
@@ -32216,7 +32235,7 @@
|
|
|
32216
32235
|
}
|
|
32217
32236
|
class GrowPointsOut extends GworPointsBase {
|
|
32218
32237
|
onBind() {
|
|
32219
|
-
if (["area", "line"].includes(this.target.type)) {
|
|
32238
|
+
if (super.onBind(), ["area", "line"].includes(this.target.type)) {
|
|
32220
32239
|
const attrs = this.target.getFinalAttribute(),
|
|
32221
32240
|
{
|
|
32222
32241
|
from: from,
|
|
@@ -32267,7 +32286,7 @@
|
|
|
32267
32286
|
};
|
|
32268
32287
|
class GrowPointsXIn extends GworPointsBase {
|
|
32269
32288
|
onBind() {
|
|
32270
|
-
if (["area", "line", "polygon"].includes(this.target.type)) {
|
|
32289
|
+
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32271
32290
|
const {
|
|
32272
32291
|
from: from,
|
|
32273
32292
|
to: to
|
|
@@ -32280,7 +32299,7 @@
|
|
|
32280
32299
|
}
|
|
32281
32300
|
class GrowPointsXOut extends GworPointsBase {
|
|
32282
32301
|
onBind() {
|
|
32283
|
-
if (["area", "line"].includes(this.target.type)) {
|
|
32302
|
+
if (super.onBind(), ["area", "line"].includes(this.target.type)) {
|
|
32284
32303
|
const attrs = this.target.getFinalAttribute(),
|
|
32285
32304
|
{
|
|
32286
32305
|
from: from,
|
|
@@ -32331,7 +32350,7 @@
|
|
|
32331
32350
|
};
|
|
32332
32351
|
class GrowPointsYIn extends GworPointsBase {
|
|
32333
32352
|
onBind() {
|
|
32334
|
-
if (["area", "line", "polygon"].includes(this.target.type)) {
|
|
32353
|
+
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32335
32354
|
const {
|
|
32336
32355
|
from: from,
|
|
32337
32356
|
to: to
|
|
@@ -32344,7 +32363,7 @@
|
|
|
32344
32363
|
}
|
|
32345
32364
|
class GrowPointsYOut extends GworPointsBase {
|
|
32346
32365
|
onBind() {
|
|
32347
|
-
if (["area", "line", "polygon"].includes(this.target.type)) {
|
|
32366
|
+
if (super.onBind(), ["area", "line", "polygon"].includes(this.target.type)) {
|
|
32348
32367
|
const {
|
|
32349
32368
|
from: from,
|
|
32350
32369
|
to: to
|
|
@@ -32444,6 +32463,7 @@
|
|
|
32444
32463
|
class GrowRadiusIn extends GrowPointsBase {
|
|
32445
32464
|
onBind() {
|
|
32446
32465
|
var _a, _b;
|
|
32466
|
+
super.onBind();
|
|
32447
32467
|
const {
|
|
32448
32468
|
from: from,
|
|
32449
32469
|
to: to
|
|
@@ -32456,6 +32476,7 @@
|
|
|
32456
32476
|
}
|
|
32457
32477
|
class GrowRadiusOut extends GrowPointsBase {
|
|
32458
32478
|
onBind() {
|
|
32479
|
+
super.onBind();
|
|
32459
32480
|
const {
|
|
32460
32481
|
to: to
|
|
32461
32482
|
} = (graphic = this.target, options = this.params.options, this.params, !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growRadiusOutOverall(graphic, options) : growRadiusOutIndividual(graphic, options));
|
|
@@ -32566,6 +32587,7 @@
|
|
|
32566
32587
|
}
|
|
32567
32588
|
onBind() {
|
|
32568
32589
|
var _a, _b;
|
|
32590
|
+
super.onBind();
|
|
32569
32591
|
const {
|
|
32570
32592
|
from: from,
|
|
32571
32593
|
to: to
|
|
@@ -32590,6 +32612,7 @@
|
|
|
32590
32612
|
super(from, to, duration, easing, params);
|
|
32591
32613
|
}
|
|
32592
32614
|
onBind() {
|
|
32615
|
+
super.onBind();
|
|
32593
32616
|
const {
|
|
32594
32617
|
from: from,
|
|
32595
32618
|
to: to
|
|
@@ -32610,6 +32633,7 @@
|
|
|
32610
32633
|
|
|
32611
32634
|
class LabelItemAppear extends AComponentAnimate {
|
|
32612
32635
|
onBind() {
|
|
32636
|
+
super.onBind();
|
|
32613
32637
|
const animator = createComponentAnimator(this.target);
|
|
32614
32638
|
this._animator = animator;
|
|
32615
32639
|
const duration = this.duration,
|
|
@@ -32748,6 +32772,7 @@
|
|
|
32748
32772
|
}
|
|
32749
32773
|
class LabelItemDisappear extends AComponentAnimate {
|
|
32750
32774
|
onBind() {
|
|
32775
|
+
super.onBind();
|
|
32751
32776
|
const animator = createComponentAnimator(this.target);
|
|
32752
32777
|
this._animator = animator;
|
|
32753
32778
|
const duration = this.duration,
|
|
@@ -32830,6 +32855,7 @@
|
|
|
32830
32855
|
|
|
32831
32856
|
class PoptipAppear extends AComponentAnimate {
|
|
32832
32857
|
onBind() {
|
|
32858
|
+
super.onBind();
|
|
32833
32859
|
const animator = createComponentAnimator(this.target);
|
|
32834
32860
|
this._animator = animator;
|
|
32835
32861
|
const duration = this.duration,
|
|
@@ -32912,6 +32938,7 @@
|
|
|
32912
32938
|
}
|
|
32913
32939
|
class PoptipDisappear extends AComponentAnimate {
|
|
32914
32940
|
onBind() {
|
|
32941
|
+
super.onBind();
|
|
32915
32942
|
const animator = createComponentAnimator(this.target);
|
|
32916
32943
|
this._animator = animator;
|
|
32917
32944
|
const duration = this.duration,
|
|
@@ -33321,6 +33348,7 @@
|
|
|
33321
33348
|
onBind() {
|
|
33322
33349
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
33323
33350
|
let from, to;
|
|
33351
|
+
super.onBind();
|
|
33324
33352
|
const attrs = this.target.getFinalAttribute(),
|
|
33325
33353
|
fromAttrs = null !== (_a = this.target.attribute) && void 0 !== _a ? _a : {};
|
|
33326
33354
|
switch (null === (_b = this.params) || void 0 === _b ? void 0 : _b.direction) {
|
|
@@ -33378,6 +33406,7 @@
|
|
|
33378
33406
|
onBind() {
|
|
33379
33407
|
var _a, _b, _c, _d, _e;
|
|
33380
33408
|
let from, to;
|
|
33409
|
+
super.onBind();
|
|
33381
33410
|
const attrs = this.target.attribute;
|
|
33382
33411
|
switch (null === (_a = this.params) || void 0 === _a ? void 0 : _a.direction) {
|
|
33383
33412
|
case "x":
|
|
@@ -33427,7 +33456,7 @@
|
|
|
33427
33456
|
if (!this.animate.validAttr(this.propKeys[index])) return;
|
|
33428
33457
|
const key = this.propKeys[index];
|
|
33429
33458
|
func(key, this.fromProps[key], this.props[key], easedRatio, this, this.target);
|
|
33430
|
-
}), this.onUpdate(end, easedRatio, out);
|
|
33459
|
+
}), this.onUpdate(end, easedRatio, out), this.syncAttributeUpdate();
|
|
33431
33460
|
}
|
|
33432
33461
|
}
|
|
33433
33462
|
|
|
@@ -33437,6 +33466,7 @@
|
|
|
33437
33466
|
}
|
|
33438
33467
|
onBind() {
|
|
33439
33468
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
33469
|
+
super.onBind();
|
|
33440
33470
|
const attrs = this.target.getFinalAttribute(),
|
|
33441
33471
|
direction = (null === (_a = this.params) || void 0 === _a ? void 0 : _a.direction) || "right",
|
|
33442
33472
|
distance = (null === (_b = this.params) || void 0 === _b ? void 0 : _b.distance) || 50,
|
|
@@ -33464,6 +33494,7 @@
|
|
|
33464
33494
|
}
|
|
33465
33495
|
onBind() {
|
|
33466
33496
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
33497
|
+
super.onBind();
|
|
33467
33498
|
const attrs = this.target.getFinalAttribute(),
|
|
33468
33499
|
fromScale = null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.fromScale) && void 0 !== _b ? _b : 0,
|
|
33469
33500
|
direction = (null === (_c = this.params) || void 0 === _c ? void 0 : _c.direction) || "xy",
|
|
@@ -33491,6 +33522,7 @@
|
|
|
33491
33522
|
}
|
|
33492
33523
|
onBind() {
|
|
33493
33524
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
33525
|
+
super.onBind();
|
|
33494
33526
|
const attrs = this.target.getFinalAttribute(),
|
|
33495
33527
|
fromAngle = null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.fromAngle) && void 0 !== _b ? _b : 2 * Math.PI,
|
|
33496
33528
|
fromScale = null !== (_d = null === (_c = this.params) || void 0 === _c ? void 0 : _c.fromScale) && void 0 !== _d ? _d : 0,
|
|
@@ -33527,6 +33559,7 @@
|
|
|
33527
33559
|
}
|
|
33528
33560
|
onBind() {
|
|
33529
33561
|
var _a, _b, _c, _d, _e, _f;
|
|
33562
|
+
super.onBind();
|
|
33530
33563
|
const executor = new AnimateExecutor(this.target);
|
|
33531
33564
|
executor.execute({
|
|
33532
33565
|
type: "custom",
|
|
@@ -33562,6 +33595,7 @@
|
|
|
33562
33595
|
}
|
|
33563
33596
|
onBind() {
|
|
33564
33597
|
var _a, _b, _c, _d, _e, _f;
|
|
33598
|
+
super.onBind();
|
|
33565
33599
|
const executor = new AnimateExecutor(this.target);
|
|
33566
33600
|
executor.execute({
|
|
33567
33601
|
type: "custom",
|
|
@@ -33757,6 +33791,7 @@
|
|
|
33757
33791
|
}
|
|
33758
33792
|
onBind() {
|
|
33759
33793
|
var _a, _b;
|
|
33794
|
+
super.onBind();
|
|
33760
33795
|
let {
|
|
33761
33796
|
diffAttrs = {}
|
|
33762
33797
|
} = null !== (_a = this.target.context) && void 0 !== _a ? _a : {};
|
|
@@ -33889,6 +33924,7 @@
|
|
|
33889
33924
|
}
|
|
33890
33925
|
class MoveIn extends MoveBase {
|
|
33891
33926
|
onBind() {
|
|
33927
|
+
super.onBind();
|
|
33892
33928
|
const {
|
|
33893
33929
|
from: from,
|
|
33894
33930
|
to: to
|
|
@@ -33900,6 +33936,7 @@
|
|
|
33900
33936
|
}
|
|
33901
33937
|
class MoveOut extends MoveBase {
|
|
33902
33938
|
onBind() {
|
|
33939
|
+
super.onBind();
|
|
33903
33940
|
const {
|
|
33904
33941
|
from: from,
|
|
33905
33942
|
to: to
|
|
@@ -33947,6 +33984,7 @@
|
|
|
33947
33984
|
}
|
|
33948
33985
|
class RotateIn extends RotateBase {
|
|
33949
33986
|
onBind() {
|
|
33987
|
+
super.onBind();
|
|
33950
33988
|
const {
|
|
33951
33989
|
from: from,
|
|
33952
33990
|
to: to
|
|
@@ -33958,6 +33996,7 @@
|
|
|
33958
33996
|
}
|
|
33959
33997
|
class RotateOut extends RotateBase {
|
|
33960
33998
|
onBind() {
|
|
33999
|
+
super.onBind();
|
|
33961
34000
|
const {
|
|
33962
34001
|
from: from,
|
|
33963
34002
|
to: to
|
|
@@ -33966,43 +34005,249 @@
|
|
|
33966
34005
|
}
|
|
33967
34006
|
}
|
|
33968
34007
|
|
|
34008
|
+
class MotionPath extends ACustomAnimate {
|
|
34009
|
+
constructor(from, to, duration, easing, params) {
|
|
34010
|
+
var _a;
|
|
34011
|
+
super(from, to, duration, easing, params), params && (this.pathLength = params.path.getLength(), this.path = params.path, this.distance = params.distance, this.totalLength = this.distance * this.pathLength, this.initAngle = null !== (_a = params.initAngle) && void 0 !== _a ? _a : 0, this.changeAngle = !!params.changeAngle, this.cb = params.cb);
|
|
34012
|
+
}
|
|
34013
|
+
onBind() {
|
|
34014
|
+
this.from = {
|
|
34015
|
+
x: 0,
|
|
34016
|
+
y: 0
|
|
34017
|
+
}, this.to = this.path.getAttrAt(this.totalLength).pos, this.props = this.to;
|
|
34018
|
+
}
|
|
34019
|
+
onUpdate(end, ratio, out) {
|
|
34020
|
+
const attrs = {},
|
|
34021
|
+
at = this.totalLength * ratio,
|
|
34022
|
+
{
|
|
34023
|
+
pos: pos,
|
|
34024
|
+
angle: angle
|
|
34025
|
+
} = this.path.getAttrAt(at);
|
|
34026
|
+
attrs.x = pos.x, attrs.y = pos.y, this.changeAngle && (attrs.angle = angle + this.initAngle), this.cb && this.cb(this.from, this.to, ratio, this.target), this.target.setAttributes(attrs);
|
|
34027
|
+
}
|
|
34028
|
+
}
|
|
34029
|
+
|
|
33969
34030
|
class FromTo extends ACustomAnimate {
|
|
33970
34031
|
constructor(from, to, duration, easing, params) {
|
|
33971
|
-
super(from, to, duration, easing, params), this.from = from
|
|
34032
|
+
super(from, to, duration, easing, params), this.from = null != from ? from : {};
|
|
33972
34033
|
}
|
|
33973
34034
|
onBind() {
|
|
34035
|
+
super.onBind();
|
|
34036
|
+
const finalAttribute = this.target.getFinalAttribute();
|
|
34037
|
+
Object.keys(this.from).forEach(key => {
|
|
34038
|
+
null == this.props[key] && (this.props[key] = finalAttribute[key]);
|
|
34039
|
+
});
|
|
34040
|
+
}
|
|
34041
|
+
onFirstRun() {
|
|
33974
34042
|
var _a;
|
|
33975
|
-
|
|
33976
|
-
|
|
33977
|
-
|
|
33978
|
-
toKeys = Object.keys(this.to);
|
|
33979
|
-
if (fromKeys.forEach(key => {
|
|
33980
|
-
var _a;
|
|
33981
|
-
null == this.to[key] && (this.to[key] = null !== (_a = finalAttribute[key]) && void 0 !== _a ? _a : 0);
|
|
33982
|
-
}), toKeys.forEach(key => {
|
|
34043
|
+
this.from = Object.assign(Object.assign({}, this.getLastProps()), this.from);
|
|
34044
|
+
const startProps = this.animate.getStartProps();
|
|
34045
|
+
if (this.propKeys && this.propKeys.forEach(key => {
|
|
33983
34046
|
var _a;
|
|
33984
|
-
|
|
33985
|
-
}),
|
|
34047
|
+
this.from[key] = null !== (_a = this.from[key]) && void 0 !== _a ? _a : startProps[key];
|
|
34048
|
+
}), "appear" === (null === (_a = this.target.context) || void 0 === _a ? void 0 : _a.animationState)) {
|
|
33986
34049
|
const finalAttribute = this.target.getFinalAttribute();
|
|
33987
34050
|
this.target.setAttributes(finalAttribute);
|
|
33988
34051
|
}
|
|
34052
|
+
this.target.setAttributes(this.from);
|
|
33989
34053
|
}
|
|
33990
34054
|
update(end, ratio, out) {
|
|
33991
34055
|
if (this.onStart(), !this.props || !this.propKeys) return;
|
|
33992
34056
|
const easedRatio = this.easing(ratio);
|
|
33993
|
-
this.interpolateUpdateFunctions.forEach((func, index) => {
|
|
34057
|
+
this.animate.interpolateUpdateFunction ? this.animate.interpolateUpdateFunction(this.from, this.props, easedRatio, this, this.target) : this.interpolateUpdateFunctions.forEach((func, index) => {
|
|
33994
34058
|
if (!this.animate.validAttr(this.propKeys[index])) return;
|
|
33995
34059
|
const key = this.propKeys[index];
|
|
33996
|
-
func(key, this.from[key], this.
|
|
33997
|
-
});
|
|
34060
|
+
func(key, this.from[key], this.props[key], easedRatio, this, this.target);
|
|
34061
|
+
}), this.onUpdate(end, easedRatio, out), this.syncAttributeUpdate();
|
|
34062
|
+
}
|
|
34063
|
+
}
|
|
34064
|
+
|
|
34065
|
+
class StreamLight extends ACustomAnimate {
|
|
34066
|
+
constructor(from, to, duration, easing, params) {
|
|
34067
|
+
super(from, to, duration, easing, params);
|
|
34068
|
+
}
|
|
34069
|
+
getEndProps() {
|
|
34070
|
+
return {};
|
|
34071
|
+
}
|
|
34072
|
+
onStart() {
|
|
34073
|
+
this.target && ("rect" === this.target.type ? this.onStartRect() : "line" === this.target.type ? this.onStartLineOrArea("line") : "area" === this.target.type && this.onStartLineOrArea("area"));
|
|
34074
|
+
}
|
|
34075
|
+
onStartLineOrArea(type) {
|
|
34076
|
+
var _a;
|
|
34077
|
+
const root = this.target.attachShadow(),
|
|
34078
|
+
line = application.graphicService.creator[type](Object.assign({}, null === (_a = this.params) || void 0 === _a ? void 0 : _a.attribute));
|
|
34079
|
+
this[type] = line, line.pathProxy = new CustomPath2D(), root.add(line);
|
|
34080
|
+
}
|
|
34081
|
+
onStartRect() {
|
|
34082
|
+
var _a, _b, _c;
|
|
34083
|
+
const root = this.target.attachShadow(),
|
|
34084
|
+
isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
|
|
34085
|
+
sizeAttr = isHorizontal ? "height" : "width",
|
|
34086
|
+
otherSizeAttr = isHorizontal ? "width" : "height",
|
|
34087
|
+
size = this.target.AABBBounds[sizeAttr](),
|
|
34088
|
+
y = isHorizontal ? 0 : this.target.AABBBounds.y1,
|
|
34089
|
+
rect = application.graphicService.creator.rect(Object.assign(Object.assign({
|
|
34090
|
+
[sizeAttr]: size,
|
|
34091
|
+
fill: "#bcdeff",
|
|
34092
|
+
shadowBlur: 30,
|
|
34093
|
+
shadowColor: "#bcdeff"
|
|
34094
|
+
}, null === (_c = this.params) || void 0 === _c ? void 0 : _c.attribute), {
|
|
34095
|
+
x: 0,
|
|
34096
|
+
y: y,
|
|
34097
|
+
[otherSizeAttr]: 0
|
|
34098
|
+
}));
|
|
34099
|
+
this.rect = rect, root.add(rect);
|
|
34100
|
+
}
|
|
34101
|
+
onBind() {}
|
|
34102
|
+
onEnd() {
|
|
34103
|
+
this.target.detachShadow();
|
|
34104
|
+
}
|
|
34105
|
+
onUpdate(end, ratio, out) {
|
|
34106
|
+
return this.rect ? this.onUpdateRect(end, ratio, out) : this.line || this.area ? this.onUpdateLineOrArea(end, ratio, out) : void 0;
|
|
34107
|
+
}
|
|
34108
|
+
onUpdateRect(end, ratio, out) {
|
|
34109
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
34110
|
+
const isHorizontal = null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.isHorizontal) || void 0 === _b || _b,
|
|
34111
|
+
parentAttr = this.target.attribute;
|
|
34112
|
+
if (isHorizontal) {
|
|
34113
|
+
const parentWidth = null !== (_d = null !== (_c = parentAttr.width) && void 0 !== _c ? _c : Math.abs(parentAttr.x1 - parentAttr.x)) && void 0 !== _d ? _d : 250,
|
|
34114
|
+
streamLength = null !== (_f = null === (_e = this.params) || void 0 === _e ? void 0 : _e.streamLength) && void 0 !== _f ? _f : parentWidth,
|
|
34115
|
+
maxLength = null !== (_j = null === (_h = null === (_g = this.params) || void 0 === _g ? void 0 : _g.attribute) || void 0 === _h ? void 0 : _h.width) && void 0 !== _j ? _j : 60,
|
|
34116
|
+
startX = -maxLength,
|
|
34117
|
+
currentX = startX + (streamLength - startX) * ratio,
|
|
34118
|
+
x = Math.max(currentX, 0),
|
|
34119
|
+
w = Math.min(Math.min(currentX + maxLength, maxLength), streamLength - currentX),
|
|
34120
|
+
width = w + x > parentWidth ? Math.max(parentWidth - x, 0) : w;
|
|
34121
|
+
this.rect.setAttributes({
|
|
34122
|
+
x: x,
|
|
34123
|
+
width: width,
|
|
34124
|
+
dx: Math.min(parentAttr.x1 - parentAttr.x, 0)
|
|
34125
|
+
}, !1, {
|
|
34126
|
+
type: exports.AttributeUpdateType.ANIMATE_PLAY,
|
|
34127
|
+
animationState: {
|
|
34128
|
+
ratio: ratio,
|
|
34129
|
+
end: end
|
|
34130
|
+
}
|
|
34131
|
+
});
|
|
34132
|
+
} else {
|
|
34133
|
+
const parentHeight = null !== (_l = null !== (_k = parentAttr.height) && void 0 !== _k ? _k : Math.abs(parentAttr.y1 - parentAttr.y)) && void 0 !== _l ? _l : 250,
|
|
34134
|
+
streamLength = null !== (_o = null === (_m = this.params) || void 0 === _m ? void 0 : _m.streamLength) && void 0 !== _o ? _o : parentHeight,
|
|
34135
|
+
maxLength = null !== (_r = null === (_q = null === (_p = this.params) || void 0 === _p ? void 0 : _p.attribute) || void 0 === _q ? void 0 : _q.height) && void 0 !== _r ? _r : 60,
|
|
34136
|
+
currentY = parentHeight - (streamLength + maxLength) * ratio;
|
|
34137
|
+
let y = Math.min(currentY, parentHeight);
|
|
34138
|
+
const h = Math.min(parentHeight - currentY, maxLength);
|
|
34139
|
+
let height;
|
|
34140
|
+
y <= 0 ? (height = Math.max(y + h, 0), y = 0) : height = h, this.rect.setAttributes({
|
|
34141
|
+
y: y,
|
|
34142
|
+
height: height,
|
|
34143
|
+
dy: Math.min(parentAttr.y1 - parentAttr.y, 0)
|
|
34144
|
+
}, !1, {
|
|
34145
|
+
type: exports.AttributeUpdateType.ANIMATE_PLAY,
|
|
34146
|
+
animationState: {
|
|
34147
|
+
ratio: ratio,
|
|
34148
|
+
end: end
|
|
34149
|
+
}
|
|
34150
|
+
});
|
|
34151
|
+
}
|
|
34152
|
+
}
|
|
34153
|
+
onUpdateLineOrArea(end, ratio, out) {
|
|
34154
|
+
const target = this.line || this.area;
|
|
34155
|
+
if (!target) return;
|
|
34156
|
+
const customPath = target.pathProxy,
|
|
34157
|
+
targetLine = this.target;
|
|
34158
|
+
targetLine.cache || targetLine.cacheArea ? this._onUpdateLineOrAreaWithCache(customPath, targetLine, end, ratio, out) : this._onUpdateLineWithoutCache(customPath, targetLine, end, ratio, out);
|
|
34159
|
+
const targetAttrs = targetLine.attribute;
|
|
34160
|
+
target.setAttributes(Object.assign({
|
|
34161
|
+
stroke: targetAttrs.stroke
|
|
34162
|
+
}, target.attribute)), target.addUpdateBoundTag();
|
|
34163
|
+
}
|
|
34164
|
+
_onUpdateLineOrAreaWithCache(customPath, g, end, ratio, out) {
|
|
34165
|
+
var _a, _b;
|
|
34166
|
+
if (customPath.clear(), "line" === g.type) {
|
|
34167
|
+
let cache = g.cache;
|
|
34168
|
+
Array.isArray(cache) || (cache = [cache]);
|
|
34169
|
+
const totalLen = cache.reduce((l, c) => l + c.getLength(), 0),
|
|
34170
|
+
curves = [];
|
|
34171
|
+
return cache.forEach(c => {
|
|
34172
|
+
c.curves.forEach(ci => curves.push(ci));
|
|
34173
|
+
}), this._updateCurves(customPath, curves, totalLen, ratio);
|
|
34174
|
+
}
|
|
34175
|
+
if ("area" === g.type && (null === (_b = null === (_a = g.cacheArea) || void 0 === _a ? void 0 : _a.top) || void 0 === _b ? void 0 : _b.curves)) {
|
|
34176
|
+
const cache = g.cacheArea,
|
|
34177
|
+
totalLen = cache.top.curves.reduce((a, b) => a + b.getLength(), 0);
|
|
34178
|
+
return this._updateCurves(customPath, cache.top.curves, totalLen, ratio);
|
|
34179
|
+
}
|
|
34180
|
+
}
|
|
34181
|
+
_updateCurves(customPath, curves, totalLen, ratio) {
|
|
34182
|
+
var _a, _b;
|
|
34183
|
+
const startLen = totalLen * ratio,
|
|
34184
|
+
endLen = Math.min(startLen + (null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength) && void 0 !== _b ? _b : 10), totalLen);
|
|
34185
|
+
let lastLen = 0,
|
|
34186
|
+
start = !1;
|
|
34187
|
+
for (let i = 0; i < curves.length; i++) if (!1 !== curves[i].defined) {
|
|
34188
|
+
const curveItem = curves[i],
|
|
34189
|
+
len = curveItem.getLength(),
|
|
34190
|
+
startPercent = 1 - (lastLen + len - startLen) / len;
|
|
34191
|
+
let curveForStart,
|
|
34192
|
+
endPercent = 1 - (lastLen + len - endLen) / len;
|
|
34193
|
+
if (lastLen < startLen && lastLen + len > startLen) if (start = !0, curveItem.p2 && curveItem.p3) {
|
|
34194
|
+
const [_, curve2] = divideCubic(curveItem, startPercent);
|
|
34195
|
+
customPath.moveTo(curve2.p0.x, curve2.p0.y), curveForStart = curve2;
|
|
34196
|
+
} else {
|
|
34197
|
+
const p = curveItem.getPointAt(startPercent);
|
|
34198
|
+
customPath.moveTo(p.x, p.y);
|
|
34199
|
+
}
|
|
34200
|
+
if (lastLen < endLen && lastLen + len > endLen) {
|
|
34201
|
+
if (curveItem.p2 && curveItem.p3) {
|
|
34202
|
+
curveForStart && (endPercent = (endLen - startLen) / curveForStart.getLength());
|
|
34203
|
+
const [curve1] = divideCubic(curveForStart || curveItem, endPercent);
|
|
34204
|
+
customPath.bezierCurveTo(curve1.p1.x, curve1.p1.y, curve1.p2.x, curve1.p2.y, curve1.p3.x, curve1.p3.y);
|
|
34205
|
+
} else {
|
|
34206
|
+
const p = curveItem.getPointAt(endPercent);
|
|
34207
|
+
customPath.lineTo(p.x, p.y);
|
|
34208
|
+
}
|
|
34209
|
+
break;
|
|
34210
|
+
}
|
|
34211
|
+
if (start) if (curveItem.p2 && curveItem.p3) {
|
|
34212
|
+
const curve = curveForStart || curveItem;
|
|
34213
|
+
customPath.bezierCurveTo(curve.p1.x, curve.p1.y, curve.p2.x, curve.p2.y, curve.p3.x, curve.p3.y);
|
|
34214
|
+
} else customPath.lineTo(curveItem.p1.x, curveItem.p1.y);
|
|
34215
|
+
lastLen += len;
|
|
34216
|
+
}
|
|
34217
|
+
}
|
|
34218
|
+
_onUpdateLineWithoutCache(customPath, line, end, ratio, out) {
|
|
34219
|
+
var _a, _b;
|
|
34220
|
+
const {
|
|
34221
|
+
points: points,
|
|
34222
|
+
curveType: curveType
|
|
34223
|
+
} = line.attribute;
|
|
34224
|
+
if (!points || points.length < 2 || "linear" !== curveType) return;
|
|
34225
|
+
let totalLen = 0;
|
|
34226
|
+
for (let i = 1; i < points.length; i++) totalLen += PointService.distancePP(points[i], points[i - 1]);
|
|
34227
|
+
const startLen = totalLen * ratio,
|
|
34228
|
+
endLen = Math.min(startLen + (null !== (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.streamLength) && void 0 !== _b ? _b : 10), totalLen),
|
|
34229
|
+
nextPoints = [];
|
|
34230
|
+
let lastLen = 0;
|
|
34231
|
+
for (let i = 1; i < points.length; i++) {
|
|
34232
|
+
const len = PointService.distancePP(points[i], points[i - 1]);
|
|
34233
|
+
if (lastLen < startLen && lastLen + len > startLen && nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - startLen) / len)), lastLen < endLen && lastLen + len > endLen) {
|
|
34234
|
+
nextPoints.push(PointService.pointAtPP(points[i - 1], points[i], 1 - (lastLen + len - endLen) / len));
|
|
34235
|
+
break;
|
|
34236
|
+
}
|
|
34237
|
+
nextPoints.length && nextPoints.push(points[i]), lastLen += len;
|
|
34238
|
+
}
|
|
34239
|
+
if (nextPoints.length && !(nextPoints.length < 2)) {
|
|
34240
|
+
customPath.clear(), customPath.moveTo(nextPoints[0].x, nextPoints[0].y);
|
|
34241
|
+
for (let i = 1; i < nextPoints.length; i++) customPath.lineTo(nextPoints[i].x, nextPoints[i].y);
|
|
34242
|
+
}
|
|
33998
34243
|
}
|
|
33999
34244
|
}
|
|
34000
34245
|
|
|
34001
34246
|
const registerCustomAnimate = () => {
|
|
34002
|
-
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);
|
|
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);
|
|
34003
34248
|
};
|
|
34004
34249
|
|
|
34005
|
-
const version = "1.0.0-alpha.
|
|
34250
|
+
const version = "1.0.0-alpha.3";
|
|
34006
34251
|
preLoadAllModule();
|
|
34007
34252
|
if (isBrowserEnv()) {
|
|
34008
34253
|
loadBrowserEnv(container);
|
|
@@ -34092,6 +34337,8 @@
|
|
|
34092
34337
|
exports.ClipAngleAnimate = ClipAngleAnimate;
|
|
34093
34338
|
exports.ClipDirectionAnimate = ClipDirectionAnimate;
|
|
34094
34339
|
exports.ClipGraphicAnimate = ClipGraphicAnimate;
|
|
34340
|
+
exports.ClipIn = ClipIn;
|
|
34341
|
+
exports.ClipOut = ClipOut;
|
|
34095
34342
|
exports.ClipRadiusAnimate = ClipRadiusAnimate;
|
|
34096
34343
|
exports.ColorInterpolate = ColorInterpolate;
|
|
34097
34344
|
exports.ColorStore = ColorStore;
|
|
@@ -34101,6 +34348,7 @@
|
|
|
34101
34348
|
exports.ContainerModule = ContainerModule;
|
|
34102
34349
|
exports.Context2dFactory = Context2dFactory;
|
|
34103
34350
|
exports.ContributionProvider = ContributionProvider;
|
|
34351
|
+
exports.CubicBezierCurve = CubicBezierCurve;
|
|
34104
34352
|
exports.CurveContext = CurveContext;
|
|
34105
34353
|
exports.CustomEvent = CustomEvent;
|
|
34106
34354
|
exports.CustomPath2D = CustomPath2D;
|
|
@@ -34173,12 +34421,15 @@
|
|
|
34173
34421
|
exports.FORMAT_ELEMENT_COMMAND = FORMAT_ELEMENT_COMMAND;
|
|
34174
34422
|
exports.FORMAT_TEXT_COMMAND = FORMAT_TEXT_COMMAND;
|
|
34175
34423
|
exports.Factory = Factory;
|
|
34424
|
+
exports.FadeIn = FadeIn;
|
|
34425
|
+
exports.FadeOut = FadeOut;
|
|
34176
34426
|
exports.FederatedEvent = FederatedEvent;
|
|
34177
34427
|
exports.FederatedMouseEvent = FederatedMouseEvent;
|
|
34178
34428
|
exports.FederatedPointerEvent = FederatedPointerEvent;
|
|
34179
34429
|
exports.FederatedWheelEvent = FederatedWheelEvent;
|
|
34180
34430
|
exports.FlexLayoutPlugin = FlexLayoutPlugin;
|
|
34181
34431
|
exports.Fragment = Fragment;
|
|
34432
|
+
exports.FromTo = FromTo;
|
|
34182
34433
|
exports.GLYPH_NUMBER_TYPE = GLYPH_NUMBER_TYPE;
|
|
34183
34434
|
exports.GRAPHIC_UPDATE_TAG_KEY = GRAPHIC_UPDATE_TAG_KEY;
|
|
34184
34435
|
exports.GROUP_NUMBER_TYPE = GROUP_NUMBER_TYPE;
|
|
@@ -34200,6 +34451,24 @@
|
|
|
34200
34451
|
exports.GroupFadeOut = GroupFadeOut;
|
|
34201
34452
|
exports.GroupRender = GroupRender;
|
|
34202
34453
|
exports.GroupRenderContribution = GroupRenderContribution;
|
|
34454
|
+
exports.GrowAngleIn = GrowAngleIn;
|
|
34455
|
+
exports.GrowAngleOut = GrowAngleOut;
|
|
34456
|
+
exports.GrowCenterIn = GrowCenterIn;
|
|
34457
|
+
exports.GrowCenterOut = GrowCenterOut;
|
|
34458
|
+
exports.GrowHeightIn = GrowHeightIn;
|
|
34459
|
+
exports.GrowHeightOut = GrowHeightOut;
|
|
34460
|
+
exports.GrowIn = GrowIn;
|
|
34461
|
+
exports.GrowOut = GrowOut;
|
|
34462
|
+
exports.GrowPointsIn = GrowPointsIn;
|
|
34463
|
+
exports.GrowPointsOut = GrowPointsOut;
|
|
34464
|
+
exports.GrowPointsXIn = GrowPointsXIn;
|
|
34465
|
+
exports.GrowPointsXOut = GrowPointsXOut;
|
|
34466
|
+
exports.GrowPointsYIn = GrowPointsYIn;
|
|
34467
|
+
exports.GrowPointsYOut = GrowPointsYOut;
|
|
34468
|
+
exports.GrowRadiusIn = GrowRadiusIn;
|
|
34469
|
+
exports.GrowRadiusOut = GrowRadiusOut;
|
|
34470
|
+
exports.GrowWidthIn = GrowWidthIn;
|
|
34471
|
+
exports.GrowWidthOut = GrowWidthOut;
|
|
34203
34472
|
exports.HtmlAttributePlugin = HtmlAttributePlugin;
|
|
34204
34473
|
exports.IMAGE_NUMBER_TYPE = IMAGE_NUMBER_TYPE;
|
|
34205
34474
|
exports.Image = Image$1;
|
|
@@ -34207,10 +34476,13 @@
|
|
|
34207
34476
|
exports.ImageRenderContribution = ImageRenderContribution;
|
|
34208
34477
|
exports.IncreaseCount = IncreaseCount;
|
|
34209
34478
|
exports.IncrementalDrawContribution = IncrementalDrawContribution;
|
|
34479
|
+
exports.InputRichText = InputRichText;
|
|
34210
34480
|
exports.InputText = InputText;
|
|
34211
34481
|
exports.InteractiveDrawItemInterceptorContribution = InteractiveDrawItemInterceptorContribution;
|
|
34212
34482
|
exports.InteractiveSubRenderContribution = InteractiveSubRenderContribution;
|
|
34213
34483
|
exports.LINE_NUMBER_TYPE = LINE_NUMBER_TYPE;
|
|
34484
|
+
exports.LabelItemAppear = LabelItemAppear;
|
|
34485
|
+
exports.LabelItemDisappear = LabelItemDisappear;
|
|
34214
34486
|
exports.Layer = Layer;
|
|
34215
34487
|
exports.LayerService = LayerService;
|
|
34216
34488
|
exports.Line = Line$1;
|
|
@@ -34235,9 +34507,17 @@
|
|
|
34235
34507
|
exports.MatrixAllocate = MatrixAllocate;
|
|
34236
34508
|
exports.MonotoneX = MonotoneX;
|
|
34237
34509
|
exports.MonotoneY = MonotoneY;
|
|
34510
|
+
exports.MotionPath = MotionPath;
|
|
34511
|
+
exports.MoveIn = MoveIn;
|
|
34512
|
+
exports.MoveOut = MoveOut;
|
|
34513
|
+
exports.MoveRotateIn = MoveRotateIn;
|
|
34514
|
+
exports.MoveRotateOut = MoveRotateOut;
|
|
34515
|
+
exports.MoveScaleIn = MoveScaleIn;
|
|
34516
|
+
exports.MoveScaleOut = MoveScaleOut;
|
|
34238
34517
|
exports.NOWORK_ANIMATE_ATTR = NOWORK_ANIMATE_ATTR;
|
|
34239
34518
|
exports.Node = Node;
|
|
34240
34519
|
exports.OrthoCamera = OrthoCamera;
|
|
34520
|
+
exports.OutputRichText = OutputRichText;
|
|
34241
34521
|
exports.PATH_NUMBER_TYPE = PATH_NUMBER_TYPE;
|
|
34242
34522
|
exports.POLYGON_NUMBER_TYPE = POLYGON_NUMBER_TYPE;
|
|
34243
34523
|
exports.PURE_STYLE_KEY = PURE_STYLE_KEY;
|
|
@@ -34253,6 +34533,8 @@
|
|
|
34253
34533
|
exports.Polygon = Polygon;
|
|
34254
34534
|
exports.PolygonRender = PolygonRender;
|
|
34255
34535
|
exports.PolygonRenderContribution = PolygonRenderContribution;
|
|
34536
|
+
exports.PoptipAppear = PoptipAppear;
|
|
34537
|
+
exports.PoptipDisappear = PoptipDisappear;
|
|
34256
34538
|
exports.Pyramid3d = Pyramid3d;
|
|
34257
34539
|
exports.Pyramid3dRender = Pyramid3dRender;
|
|
34258
34540
|
exports.REACT_TO_CANOPUS_EVENTS = REACT_TO_CANOPUS_EVENTS;
|
|
@@ -34275,17 +34557,29 @@
|
|
|
34275
34557
|
exports.RichTextEditPlugin = RichTextEditPlugin;
|
|
34276
34558
|
exports.RichTextRender = RichTextRender;
|
|
34277
34559
|
exports.RotateBySphereAnimate = RotateBySphereAnimate;
|
|
34560
|
+
exports.RotateIn = RotateIn;
|
|
34561
|
+
exports.RotateOut = RotateOut;
|
|
34278
34562
|
exports.SVG_ATTRIBUTE_MAP = SVG_ATTRIBUTE_MAP;
|
|
34279
34563
|
exports.SVG_ATTRIBUTE_MAP_KEYS = SVG_ATTRIBUTE_MAP_KEYS;
|
|
34280
34564
|
exports.SVG_PARSE_ATTRIBUTE_MAP = SVG_PARSE_ATTRIBUTE_MAP;
|
|
34281
34565
|
exports.SVG_PARSE_ATTRIBUTE_MAP_KEYS = SVG_PARSE_ATTRIBUTE_MAP_KEYS;
|
|
34282
34566
|
exports.SYMBOL_NUMBER_TYPE = SYMBOL_NUMBER_TYPE;
|
|
34567
|
+
exports.ScaleIn = ScaleIn;
|
|
34568
|
+
exports.ScaleOut = ScaleOut;
|
|
34283
34569
|
exports.SegContext = SegContext;
|
|
34284
34570
|
exports.ShadowRoot = ShadowRoot;
|
|
34285
34571
|
exports.ShadowRootDrawItemInterceptorContribution = ShadowRootDrawItemInterceptorContribution;
|
|
34572
|
+
exports.SlideIn = SlideIn;
|
|
34573
|
+
exports.SlideOut = SlideOut;
|
|
34574
|
+
exports.SlideOutRichText = SlideOutRichText;
|
|
34575
|
+
exports.SlideRichText = SlideRichText;
|
|
34576
|
+
exports.SpinIn = SpinIn;
|
|
34577
|
+
exports.SpinOut = SpinOut;
|
|
34286
34578
|
exports.Stage = Stage;
|
|
34579
|
+
exports.State = State;
|
|
34287
34580
|
exports.StaticLayerHandlerContribution = StaticLayerHandlerContribution;
|
|
34288
34581
|
exports.Step = Step$1;
|
|
34582
|
+
exports.StreamLight = StreamLight;
|
|
34289
34583
|
exports.Symbol = Symbol$1;
|
|
34290
34584
|
exports.SymbolRender = SymbolRender;
|
|
34291
34585
|
exports.SymbolRenderContribution = SymbolRenderContribution;
|
|
@@ -34297,6 +34591,7 @@
|
|
|
34297
34591
|
exports.TextRenderContribution = TextRenderContribution;
|
|
34298
34592
|
exports.Theme = Theme;
|
|
34299
34593
|
exports.TransformUtil = TransformUtil;
|
|
34594
|
+
exports.Update = Update;
|
|
34300
34595
|
exports.VArc = VArc;
|
|
34301
34596
|
exports.VArc3d = VArc3d;
|
|
34302
34597
|
exports.VArea = VArea;
|
|
@@ -34433,6 +34728,8 @@
|
|
|
34433
34728
|
exports.diagonalCenterToEdge = diagonalCenterToEdge;
|
|
34434
34729
|
exports.diagonalTopLeftToBottomRight = diagonalTopLeftToBottomRight;
|
|
34435
34730
|
exports.diff = diff;
|
|
34731
|
+
exports.divideCubic = divideCubic;
|
|
34732
|
+
exports.divideQuad = divideQuad;
|
|
34436
34733
|
exports.drawArc = drawArc;
|
|
34437
34734
|
exports.drawArcPath = drawArcPath$1;
|
|
34438
34735
|
exports.drawAreaSegments = drawAreaSegments;
|