@visactor/vrender-animate 1.0.0-alpha.2 → 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/custom/{from-to.js → fromTo.js} +1 -2
- package/cjs/custom/fromTo.js.map +1 -0
- package/cjs/custom/{group-fade.js → groupFade.js} +1 -1
- package/cjs/custom/groupFade.js.map +1 -0
- package/cjs/custom/growAngle.js +2 -1
- package/cjs/custom/motionPath.d.ts +21 -0
- package/cjs/custom/motionPath.js +31 -0
- package/cjs/custom/motionPath.js.map +1 -0
- package/cjs/custom/register.d.ts +27 -0
- package/cjs/custom/register.js +376 -4
- package/cjs/custom/register.js.map +1 -1
- package/cjs/custom/richtext/input-richtext.js +2 -1
- package/cjs/custom/scale.js +1 -2
- package/cjs/custom/story.js +2 -1
- package/cjs/custom/streamLight.d.ts +27 -0
- package/cjs/custom/streamLight.js +161 -0
- package/cjs/custom/streamLight.js.map +1 -0
- package/cjs/executor/animate-executor.js +3 -2
- package/cjs/executor/animate-executor.js.map +1 -1
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +5 -14
- package/cjs/index.js.map +1 -1
- package/cjs/utils/easing-func.js +1 -2
- package/dist/index.es.js +279 -5
- package/es/custom/{from-to.js → fromTo.js} +1 -2
- package/es/custom/fromTo.js.map +1 -0
- package/es/custom/{group-fade.js → groupFade.js} +1 -1
- package/es/custom/groupFade.js.map +1 -0
- package/es/custom/growAngle.js +2 -1
- package/es/custom/motionPath.d.ts +21 -0
- package/es/custom/motionPath.js +23 -0
- package/es/custom/motionPath.js.map +1 -0
- package/es/custom/register.d.ts +27 -0
- package/es/custom/register.js +11 -2
- package/es/custom/register.js.map +1 -1
- package/es/custom/richtext/input-richtext.js +2 -1
- package/es/custom/scale.js +1 -2
- package/es/custom/story.js +2 -1
- package/es/custom/streamLight.d.ts +27 -0
- package/es/custom/streamLight.js +157 -0
- package/es/custom/streamLight.js.map +1 -0
- package/es/executor/animate-executor.js +3 -2
- package/es/executor/animate-executor.js.map +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/index.js.map +1 -1
- package/es/utils/easing-func.js +1 -2
- package/package.json +3 -3
- package/cjs/custom/from-to.js.map +0 -1
- package/cjs/custom/group-fade.js.map +0 -1
- package/es/custom/from-to.js.map +0 -1
- package/es/custom/group-fade.js.map +0 -1
- /package/cjs/custom/{from-to.d.ts → fromTo.d.ts} +0 -0
- /package/cjs/custom/{group-fade.d.ts → groupFade.d.ts} +0 -0
- /package/es/custom/{from-to.d.ts → fromTo.d.ts} +0 -0
- /package/es/custom/{group-fade.d.ts → groupFade.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/custom/fromTo.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAElD,MAAa,MAAO,SAAQ,+BAAsC;IAKhE,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAY;QAClF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;IACzB,CAAC;IAED,MAAM;QACJ,KAAK,CAAC,MAAM,EAAE,CAAC;QAEf,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;QAEvD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACnC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE;gBAC3B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;aACvC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,UAAU;;QAER,IAAI,CAAC,IAAI,mCAA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AC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;oBACjD,OAAO;iBACR;gBACD,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBACjC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACjC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBAChC,IAAI,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAC/D,CAAC,CAAC,CAAC;QACP,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,CAAC,CAAC;QACpC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;CACF;AAnED,wBAmEC","file":"fromTo.js","sourcesContent":["import type { EasingType } from '@visactor/vrender-core';\nimport { ACustomAnimate } from './custom-animate';\n\nexport class FromTo extends ACustomAnimate<Record<string, number>> {\n declare valid: boolean;\n\n keys: string[];\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params?: any) {\n super(from, to, duration, easing, params);\n this.from = from ?? {};\n }\n\n onBind(): void {\n super.onBind();\n\n const finalAttribute = this.target.getFinalAttribute();\n // 如果存在from,不存在to,那么需要设置给props\n Object.keys(this.from).forEach(key => {\n if (this.props[key] == null) {\n this.props[key] = finalAttribute[key];\n }\n });\n }\n\n onFirstRun(): void {\n // 获取上一步的属性值作为起始值\n this.from = { ...this.getLastProps(), ...this.from };\n const startProps = this.animate.getStartProps();\n this.propKeys &&\n this.propKeys.forEach(key => {\n this.from[key] = this.from[key] ?? startProps[key];\n });\n // TODO:比较hack\n // 如果是入场动画,那么还需要设置属性\n if (this.target.context?.animationState === 'appear') {\n // 用于入场的时候设置属性(因为有动画的时候VChart不会再设置属性了)\n const finalAttribute = this.target.getFinalAttribute();\n this.target.setAttributes(finalAttribute);\n }\n this.target.setAttributes(this.from);\n }\n\n /**\n * 更新执行的时候调用\n * 如果跳帧了就不一定会执行\n */\n update(end: boolean, ratio: number, out: Record<string, any>): void {\n // TODO 需要修复,只有在开始的时候才调用\n this.onStart();\n if (!this.props || !this.propKeys) {\n return;\n }\n // 应用缓动函数\n const easedRatio = this.easing(ratio);\n this.animate.interpolateUpdateFunction\n ? this.animate.interpolateUpdateFunction(this.from, this.props, easedRatio, this, this.target)\n : this.interpolateUpdateFunctions.forEach((func, index) => {\n // 如果这个属性被屏蔽了,直接跳过\n if (!this.animate.validAttr(this.propKeys[index])) {\n return;\n }\n const key = this.propKeys[index];\n const fromValue = this.from[key];\n const toValue = this.props[key];\n func(key, fromValue, toValue, easedRatio, this, this.target);\n });\n this.onUpdate(end, easedRatio, out);\n this.syncAttributeUpdate();\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/custom/groupFade.ts"],"names":[],"mappings":";;;AAEA,qCAA+C;AAE/C,MAAa,WAAY,SAAQ,iBAAQ;IAGvC,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAY;QAClF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC;IAC9B,CAAC;CACF;AAPD,kCAOC;AAED,MAAa,YAAa,SAAQ,kBAAS;IAGzC,YAAY,IAAU,EAAE,EAAQ,EAAE,QAAgB,EAAE,MAAkB,EAAE,MAAY;QAClF,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC;IAC9B,CAAC;CACF;AAPD,oCAOC","file":"groupFade.js","sourcesContent":["import type { EasingType, IGroup } from '@visactor/vrender-core';\nimport { ACustomAnimate } from './custom-animate';\nimport { CommonIn, CommonOut } from './common';\n\nexport class GroupFadeIn extends CommonIn {\n declare valid: boolean;\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params?: any) {\n super(from, to, duration, easing, params);\n this.keys = ['baseOpacity'];\n }\n}\n\nexport class GroupFadeOut extends CommonOut {\n declare valid: boolean;\n\n constructor(from: null, to: null, duration: number, easing: EasingType, params?: any) {\n super(from, to, duration, easing, params);\n this.keys = ['baseOpacity'];\n }\n}\n"]}
|
package/cjs/custom/growAngle.js
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CustomPath2D, IGraphic, EasingType } from '@visactor/vrender-core';
|
|
2
|
+
import { ACustomAnimate } from './custom-animate';
|
|
3
|
+
export declare class MotionPath extends ACustomAnimate<any> {
|
|
4
|
+
valid: boolean;
|
|
5
|
+
pathLength: number;
|
|
6
|
+
path: CustomPath2D;
|
|
7
|
+
distance: number;
|
|
8
|
+
totalLength: number;
|
|
9
|
+
initAngle: number;
|
|
10
|
+
changeAngle: boolean;
|
|
11
|
+
cb?: (from: any, to: any, ratio: number, target: IGraphic) => void;
|
|
12
|
+
constructor(from: any, to: any, duration: number, easing: EasingType, params?: {
|
|
13
|
+
path: CustomPath2D;
|
|
14
|
+
distance: number;
|
|
15
|
+
cb?: (from: any, to: any, ratio: number, target: IGraphic) => void;
|
|
16
|
+
initAngle?: number;
|
|
17
|
+
changeAngle?: boolean;
|
|
18
|
+
});
|
|
19
|
+
onBind(): void;
|
|
20
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.MotionPath = void 0;
|
|
6
|
+
|
|
7
|
+
const custom_animate_1 = require("./custom-animate");
|
|
8
|
+
|
|
9
|
+
class MotionPath extends custom_animate_1.ACustomAnimate {
|
|
10
|
+
constructor(from, to, duration, easing, params) {
|
|
11
|
+
var _a;
|
|
12
|
+
super(from, to, duration, easing, params), params && (this.pathLength = params.path.getLength(),
|
|
13
|
+
this.path = params.path, this.distance = params.distance, this.totalLength = this.distance * this.pathLength,
|
|
14
|
+
this.initAngle = null !== (_a = params.initAngle) && void 0 !== _a ? _a : 0, this.changeAngle = !!params.changeAngle,
|
|
15
|
+
this.cb = params.cb);
|
|
16
|
+
}
|
|
17
|
+
onBind() {
|
|
18
|
+
this.from = {
|
|
19
|
+
x: 0,
|
|
20
|
+
y: 0
|
|
21
|
+
}, this.to = this.path.getAttrAt(this.totalLength).pos, this.props = this.to;
|
|
22
|
+
}
|
|
23
|
+
onUpdate(end, ratio, out) {
|
|
24
|
+
const attrs = {}, at = this.totalLength * ratio, {pos: pos, angle: angle} = this.path.getAttrAt(at);
|
|
25
|
+
attrs.x = pos.x, attrs.y = pos.y, this.changeAngle && (attrs.angle = angle + this.initAngle),
|
|
26
|
+
this.cb && this.cb(this.from, this.to, ratio, this.target), this.target.setAttributes(attrs);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
exports.MotionPath = MotionPath;
|
|
31
|
+
//# sourceMappingURL=motionPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/custom/motionPath.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAElD,MAAa,UAAW,SAAQ,+BAAmB;IASjD,YACE,IAAS,EACT,EAAO,EACP,QAAgB,EAChB,MAAkB,EAClB,MAMC;;QAED,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,IAAI,MAAM,EAAE;YACV,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YAC1C,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,C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,CAAC;QACvE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;CACF;AArDD,gCAqDC","file":"motionPath.js","sourcesContent":["import type { CustomPath2D, IGraphic, EasingType } from '@visactor/vrender-core';\nimport { ACustomAnimate } from './custom-animate';\n\nexport class MotionPath extends ACustomAnimate<any> {\n declare valid: boolean;\n declare pathLength: number;\n declare path: CustomPath2D;\n declare distance: number;\n declare totalLength: number;\n declare initAngle: number;\n declare changeAngle: boolean;\n declare cb?: (from: any, to: any, ratio: number, target: IGraphic) => void;\n constructor(\n from: any,\n to: any,\n duration: number,\n easing: EasingType,\n params?: {\n path: CustomPath2D;\n distance: number;\n cb?: (from: any, to: any, ratio: number, target: IGraphic) => void;\n initAngle?: number;\n changeAngle?: boolean;\n }\n ) {\n super(from, to, duration, easing, params);\n if (params) {\n this.pathLength = params.path.getLength();\n this.path = params.path;\n this.distance = params.distance;\n this.totalLength = this.distance * this.pathLength;\n this.initAngle = params.initAngle ?? 0;\n this.changeAngle = !!params.changeAngle;\n this.cb = params.cb;\n }\n }\n\n onBind(): void {\n this.from = { x: 0, y: 0 };\n this.to = this.path.getAttrAt(this.totalLength).pos;\n this.props = this.to;\n }\n\n onUpdate(end: boolean, ratio: number, out: Record<string, any>): void {\n const attrs = {} as any;\n // 计算位置\n const at = this.totalLength * ratio;\n const { pos, angle } = this.path.getAttrAt(at);\n attrs.x = pos.x;\n attrs.y = pos.y;\n if (this.changeAngle) {\n attrs.angle = angle + this.initAngle;\n }\n this.cb && this.cb(this.from, this.to, ratio, this.target as IGraphic);\n this.target.setAttributes(attrs);\n }\n}\n"]}
|
package/cjs/custom/register.d.ts
CHANGED
|
@@ -1 +1,28 @@
|
|
|
1
|
+
import { ClipIn, ClipOut } from './clip';
|
|
2
|
+
import { FadeIn, FadeOut } from './fade';
|
|
3
|
+
import { GrowAngleIn, GrowAngleOut } from './growAngle';
|
|
4
|
+
import { GrowCenterIn, GrowCenterOut } from './growCenter';
|
|
5
|
+
import { GrowHeightIn, GrowHeightOut } from './growHeight';
|
|
6
|
+
import { GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut } from './growPoints';
|
|
7
|
+
import { GrowRadiusIn, GrowRadiusOut } from './growRadius';
|
|
8
|
+
import { GrowWidthIn, GrowWidthOut } from './growWidth';
|
|
9
|
+
import { InputText } from './input-text';
|
|
10
|
+
import { LabelItemAppear, LabelItemDisappear } from './label-item-animate';
|
|
11
|
+
import { IncreaseCount } from './number';
|
|
12
|
+
import { PoptipAppear, PoptipDisappear } from './poptip-animate';
|
|
13
|
+
import { InputRichText } from './richtext/input-richtext';
|
|
14
|
+
import { OutputRichText } from './richtext/output-richtext';
|
|
15
|
+
import { SlideRichText } from './richtext/slide-richtext';
|
|
16
|
+
import { SlideOutRichText } from './richtext/slide-out-richtext';
|
|
17
|
+
import { ScaleIn, ScaleOut } from './scale';
|
|
18
|
+
import { State } from './state';
|
|
19
|
+
import { GrowIn, GrowOut, MoveRotateIn, MoveRotateOut, MoveScaleIn, MoveScaleOut, SlideIn, SlideOut, SpinIn, SpinOut } from './story';
|
|
20
|
+
import { Update } from './update';
|
|
21
|
+
import { MoveIn, MoveOut } from './move';
|
|
22
|
+
import { RotateIn, RotateOut } from './rotate';
|
|
23
|
+
import { MotionPath } from './motionPath';
|
|
24
|
+
import { FromTo } from './fromTo';
|
|
25
|
+
import { GroupFadeIn, GroupFadeOut } from './groupFade';
|
|
26
|
+
import { StreamLight } from './streamLight';
|
|
1
27
|
export declare const registerCustomAnimate: () => void;
|
|
28
|
+
export { ClipIn, ClipOut, FadeIn, FadeOut, GrowAngleIn, GrowAngleOut, GrowCenterIn, GrowCenterOut, GrowHeightIn, GrowHeightOut, GrowPointsIn, GrowPointsOut, GrowPointsXIn, GrowPointsXOut, GrowPointsYIn, GrowPointsYOut, GrowRadiusIn, GrowRadiusOut, GrowWidthIn, GrowWidthOut, IncreaseCount, PoptipAppear, PoptipDisappear, ScaleIn, ScaleOut, MoveIn, MoveOut, RotateIn, RotateOut, State, Update, MotionPath, LabelItemAppear, LabelItemDisappear, InputText, InputRichText, OutputRichText, SlideRichText, SlideOutRichText, SlideIn, GrowIn, SpinIn, MoveScaleIn, MoveRotateIn, SlideOut, GrowOut, SpinOut, MoveScaleOut, MoveRotateOut, GroupFadeIn, GroupFadeOut, FromTo, StreamLight };
|
package/cjs/custom/register.js
CHANGED
|
@@ -2,11 +2,381 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.registerCustomAnimate = void 0
|
|
5
|
+
}), exports.MoveRotateOut = exports.MoveScaleOut = exports.SpinOut = exports.GrowOut = exports.SlideOut = exports.MoveRotateIn = exports.MoveScaleIn = exports.SpinIn = exports.GrowIn = exports.SlideIn = exports.SlideOutRichText = exports.SlideRichText = exports.OutputRichText = exports.InputRichText = exports.InputText = exports.LabelItemDisappear = exports.LabelItemAppear = exports.MotionPath = exports.Update = exports.State = exports.RotateOut = exports.RotateIn = exports.MoveOut = exports.MoveIn = exports.ScaleOut = exports.ScaleIn = exports.PoptipDisappear = exports.PoptipAppear = exports.IncreaseCount = exports.GrowWidthOut = exports.GrowWidthIn = exports.GrowRadiusOut = exports.GrowRadiusIn = exports.GrowPointsYOut = exports.GrowPointsYIn = exports.GrowPointsXOut = exports.GrowPointsXIn = exports.GrowPointsOut = exports.GrowPointsIn = exports.GrowHeightOut = exports.GrowHeightIn = exports.GrowCenterOut = exports.GrowCenterIn = exports.GrowAngleOut = exports.GrowAngleIn = exports.FadeOut = exports.FadeIn = exports.ClipOut = exports.ClipIn = exports.registerCustomAnimate = void 0,
|
|
6
|
+
exports.StreamLight = exports.FromTo = exports.GroupFadeOut = exports.GroupFadeIn = void 0;
|
|
6
7
|
|
|
7
|
-
const animate_executor_1 = require("../executor/animate-executor"), clip_1 = require("./clip")
|
|
8
|
+
const animate_executor_1 = require("../executor/animate-executor"), clip_1 = require("./clip");
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "ClipIn", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: function() {
|
|
13
|
+
return clip_1.ClipIn;
|
|
14
|
+
}
|
|
15
|
+
}), Object.defineProperty(exports, "ClipOut", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
get: function() {
|
|
18
|
+
return clip_1.ClipOut;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const fade_1 = require("./fade");
|
|
23
|
+
|
|
24
|
+
Object.defineProperty(exports, "FadeIn", {
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
get: function() {
|
|
27
|
+
return fade_1.FadeIn;
|
|
28
|
+
}
|
|
29
|
+
}), Object.defineProperty(exports, "FadeOut", {
|
|
30
|
+
enumerable: !0,
|
|
31
|
+
get: function() {
|
|
32
|
+
return fade_1.FadeOut;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const growAngle_1 = require("./growAngle");
|
|
37
|
+
|
|
38
|
+
Object.defineProperty(exports, "GrowAngleIn", {
|
|
39
|
+
enumerable: !0,
|
|
40
|
+
get: function() {
|
|
41
|
+
return growAngle_1.GrowAngleIn;
|
|
42
|
+
}
|
|
43
|
+
}), Object.defineProperty(exports, "GrowAngleOut", {
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
get: function() {
|
|
46
|
+
return growAngle_1.GrowAngleOut;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const growCenter_1 = require("./growCenter");
|
|
51
|
+
|
|
52
|
+
Object.defineProperty(exports, "GrowCenterIn", {
|
|
53
|
+
enumerable: !0,
|
|
54
|
+
get: function() {
|
|
55
|
+
return growCenter_1.GrowCenterIn;
|
|
56
|
+
}
|
|
57
|
+
}), Object.defineProperty(exports, "GrowCenterOut", {
|
|
58
|
+
enumerable: !0,
|
|
59
|
+
get: function() {
|
|
60
|
+
return growCenter_1.GrowCenterOut;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
const growHeight_1 = require("./growHeight");
|
|
65
|
+
|
|
66
|
+
Object.defineProperty(exports, "GrowHeightIn", {
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
get: function() {
|
|
69
|
+
return growHeight_1.GrowHeightIn;
|
|
70
|
+
}
|
|
71
|
+
}), Object.defineProperty(exports, "GrowHeightOut", {
|
|
72
|
+
enumerable: !0,
|
|
73
|
+
get: function() {
|
|
74
|
+
return growHeight_1.GrowHeightOut;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const growPoints_1 = require("./growPoints");
|
|
79
|
+
|
|
80
|
+
Object.defineProperty(exports, "GrowPointsIn", {
|
|
81
|
+
enumerable: !0,
|
|
82
|
+
get: function() {
|
|
83
|
+
return growPoints_1.GrowPointsIn;
|
|
84
|
+
}
|
|
85
|
+
}), Object.defineProperty(exports, "GrowPointsOut", {
|
|
86
|
+
enumerable: !0,
|
|
87
|
+
get: function() {
|
|
88
|
+
return growPoints_1.GrowPointsOut;
|
|
89
|
+
}
|
|
90
|
+
}), Object.defineProperty(exports, "GrowPointsXIn", {
|
|
91
|
+
enumerable: !0,
|
|
92
|
+
get: function() {
|
|
93
|
+
return growPoints_1.GrowPointsXIn;
|
|
94
|
+
}
|
|
95
|
+
}), Object.defineProperty(exports, "GrowPointsXOut", {
|
|
96
|
+
enumerable: !0,
|
|
97
|
+
get: function() {
|
|
98
|
+
return growPoints_1.GrowPointsXOut;
|
|
99
|
+
}
|
|
100
|
+
}), Object.defineProperty(exports, "GrowPointsYIn", {
|
|
101
|
+
enumerable: !0,
|
|
102
|
+
get: function() {
|
|
103
|
+
return growPoints_1.GrowPointsYIn;
|
|
104
|
+
}
|
|
105
|
+
}), Object.defineProperty(exports, "GrowPointsYOut", {
|
|
106
|
+
enumerable: !0,
|
|
107
|
+
get: function() {
|
|
108
|
+
return growPoints_1.GrowPointsYOut;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
const growRadius_1 = require("./growRadius");
|
|
113
|
+
|
|
114
|
+
Object.defineProperty(exports, "GrowRadiusIn", {
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
get: function() {
|
|
117
|
+
return growRadius_1.GrowRadiusIn;
|
|
118
|
+
}
|
|
119
|
+
}), Object.defineProperty(exports, "GrowRadiusOut", {
|
|
120
|
+
enumerable: !0,
|
|
121
|
+
get: function() {
|
|
122
|
+
return growRadius_1.GrowRadiusOut;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
const growWidth_1 = require("./growWidth");
|
|
127
|
+
|
|
128
|
+
Object.defineProperty(exports, "GrowWidthIn", {
|
|
129
|
+
enumerable: !0,
|
|
130
|
+
get: function() {
|
|
131
|
+
return growWidth_1.GrowWidthIn;
|
|
132
|
+
}
|
|
133
|
+
}), Object.defineProperty(exports, "GrowWidthOut", {
|
|
134
|
+
enumerable: !0,
|
|
135
|
+
get: function() {
|
|
136
|
+
return growWidth_1.GrowWidthOut;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
const input_text_1 = require("./input-text");
|
|
141
|
+
|
|
142
|
+
Object.defineProperty(exports, "InputText", {
|
|
143
|
+
enumerable: !0,
|
|
144
|
+
get: function() {
|
|
145
|
+
return input_text_1.InputText;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
const label_item_animate_1 = require("./label-item-animate");
|
|
150
|
+
|
|
151
|
+
Object.defineProperty(exports, "LabelItemAppear", {
|
|
152
|
+
enumerable: !0,
|
|
153
|
+
get: function() {
|
|
154
|
+
return label_item_animate_1.LabelItemAppear;
|
|
155
|
+
}
|
|
156
|
+
}), Object.defineProperty(exports, "LabelItemDisappear", {
|
|
157
|
+
enumerable: !0,
|
|
158
|
+
get: function() {
|
|
159
|
+
return label_item_animate_1.LabelItemDisappear;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
const number_1 = require("./number");
|
|
164
|
+
|
|
165
|
+
Object.defineProperty(exports, "IncreaseCount", {
|
|
166
|
+
enumerable: !0,
|
|
167
|
+
get: function() {
|
|
168
|
+
return number_1.IncreaseCount;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
const poptip_animate_1 = require("./poptip-animate");
|
|
173
|
+
|
|
174
|
+
Object.defineProperty(exports, "PoptipAppear", {
|
|
175
|
+
enumerable: !0,
|
|
176
|
+
get: function() {
|
|
177
|
+
return poptip_animate_1.PoptipAppear;
|
|
178
|
+
}
|
|
179
|
+
}), Object.defineProperty(exports, "PoptipDisappear", {
|
|
180
|
+
enumerable: !0,
|
|
181
|
+
get: function() {
|
|
182
|
+
return poptip_animate_1.PoptipDisappear;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
const input_richtext_1 = require("./richtext/input-richtext");
|
|
187
|
+
|
|
188
|
+
Object.defineProperty(exports, "InputRichText", {
|
|
189
|
+
enumerable: !0,
|
|
190
|
+
get: function() {
|
|
191
|
+
return input_richtext_1.InputRichText;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
const output_richtext_1 = require("./richtext/output-richtext");
|
|
196
|
+
|
|
197
|
+
Object.defineProperty(exports, "OutputRichText", {
|
|
198
|
+
enumerable: !0,
|
|
199
|
+
get: function() {
|
|
200
|
+
return output_richtext_1.OutputRichText;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
const slide_richtext_1 = require("./richtext/slide-richtext");
|
|
205
|
+
|
|
206
|
+
Object.defineProperty(exports, "SlideRichText", {
|
|
207
|
+
enumerable: !0,
|
|
208
|
+
get: function() {
|
|
209
|
+
return slide_richtext_1.SlideRichText;
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
const slide_out_richtext_1 = require("./richtext/slide-out-richtext");
|
|
214
|
+
|
|
215
|
+
Object.defineProperty(exports, "SlideOutRichText", {
|
|
216
|
+
enumerable: !0,
|
|
217
|
+
get: function() {
|
|
218
|
+
return slide_out_richtext_1.SlideOutRichText;
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
const scale_1 = require("./scale");
|
|
223
|
+
|
|
224
|
+
Object.defineProperty(exports, "ScaleIn", {
|
|
225
|
+
enumerable: !0,
|
|
226
|
+
get: function() {
|
|
227
|
+
return scale_1.ScaleIn;
|
|
228
|
+
}
|
|
229
|
+
}), Object.defineProperty(exports, "ScaleOut", {
|
|
230
|
+
enumerable: !0,
|
|
231
|
+
get: function() {
|
|
232
|
+
return scale_1.ScaleOut;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
const state_1 = require("./state");
|
|
237
|
+
|
|
238
|
+
Object.defineProperty(exports, "State", {
|
|
239
|
+
enumerable: !0,
|
|
240
|
+
get: function() {
|
|
241
|
+
return state_1.State;
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
const story_1 = require("./story");
|
|
246
|
+
|
|
247
|
+
Object.defineProperty(exports, "GrowIn", {
|
|
248
|
+
enumerable: !0,
|
|
249
|
+
get: function() {
|
|
250
|
+
return story_1.GrowIn;
|
|
251
|
+
}
|
|
252
|
+
}), Object.defineProperty(exports, "GrowOut", {
|
|
253
|
+
enumerable: !0,
|
|
254
|
+
get: function() {
|
|
255
|
+
return story_1.GrowOut;
|
|
256
|
+
}
|
|
257
|
+
}), Object.defineProperty(exports, "MoveRotateIn", {
|
|
258
|
+
enumerable: !0,
|
|
259
|
+
get: function() {
|
|
260
|
+
return story_1.MoveRotateIn;
|
|
261
|
+
}
|
|
262
|
+
}), Object.defineProperty(exports, "MoveRotateOut", {
|
|
263
|
+
enumerable: !0,
|
|
264
|
+
get: function() {
|
|
265
|
+
return story_1.MoveRotateOut;
|
|
266
|
+
}
|
|
267
|
+
}), Object.defineProperty(exports, "MoveScaleIn", {
|
|
268
|
+
enumerable: !0,
|
|
269
|
+
get: function() {
|
|
270
|
+
return story_1.MoveScaleIn;
|
|
271
|
+
}
|
|
272
|
+
}), Object.defineProperty(exports, "MoveScaleOut", {
|
|
273
|
+
enumerable: !0,
|
|
274
|
+
get: function() {
|
|
275
|
+
return story_1.MoveScaleOut;
|
|
276
|
+
}
|
|
277
|
+
}), Object.defineProperty(exports, "SlideIn", {
|
|
278
|
+
enumerable: !0,
|
|
279
|
+
get: function() {
|
|
280
|
+
return story_1.SlideIn;
|
|
281
|
+
}
|
|
282
|
+
}), Object.defineProperty(exports, "SlideOut", {
|
|
283
|
+
enumerable: !0,
|
|
284
|
+
get: function() {
|
|
285
|
+
return story_1.SlideOut;
|
|
286
|
+
}
|
|
287
|
+
}), Object.defineProperty(exports, "SpinIn", {
|
|
288
|
+
enumerable: !0,
|
|
289
|
+
get: function() {
|
|
290
|
+
return story_1.SpinIn;
|
|
291
|
+
}
|
|
292
|
+
}), Object.defineProperty(exports, "SpinOut", {
|
|
293
|
+
enumerable: !0,
|
|
294
|
+
get: function() {
|
|
295
|
+
return story_1.SpinOut;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
const update_1 = require("./update");
|
|
300
|
+
|
|
301
|
+
Object.defineProperty(exports, "Update", {
|
|
302
|
+
enumerable: !0,
|
|
303
|
+
get: function() {
|
|
304
|
+
return update_1.Update;
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
|
|
308
|
+
const move_1 = require("./move");
|
|
309
|
+
|
|
310
|
+
Object.defineProperty(exports, "MoveIn", {
|
|
311
|
+
enumerable: !0,
|
|
312
|
+
get: function() {
|
|
313
|
+
return move_1.MoveIn;
|
|
314
|
+
}
|
|
315
|
+
}), Object.defineProperty(exports, "MoveOut", {
|
|
316
|
+
enumerable: !0,
|
|
317
|
+
get: function() {
|
|
318
|
+
return move_1.MoveOut;
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
const rotate_1 = require("./rotate");
|
|
323
|
+
|
|
324
|
+
Object.defineProperty(exports, "RotateIn", {
|
|
325
|
+
enumerable: !0,
|
|
326
|
+
get: function() {
|
|
327
|
+
return rotate_1.RotateIn;
|
|
328
|
+
}
|
|
329
|
+
}), Object.defineProperty(exports, "RotateOut", {
|
|
330
|
+
enumerable: !0,
|
|
331
|
+
get: function() {
|
|
332
|
+
return rotate_1.RotateOut;
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
const motionPath_1 = require("./motionPath");
|
|
337
|
+
|
|
338
|
+
Object.defineProperty(exports, "MotionPath", {
|
|
339
|
+
enumerable: !0,
|
|
340
|
+
get: function() {
|
|
341
|
+
return motionPath_1.MotionPath;
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
const fromTo_1 = require("./fromTo");
|
|
346
|
+
|
|
347
|
+
Object.defineProperty(exports, "FromTo", {
|
|
348
|
+
enumerable: !0,
|
|
349
|
+
get: function() {
|
|
350
|
+
return fromTo_1.FromTo;
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
const groupFade_1 = require("./groupFade");
|
|
355
|
+
|
|
356
|
+
Object.defineProperty(exports, "GroupFadeIn", {
|
|
357
|
+
enumerable: !0,
|
|
358
|
+
get: function() {
|
|
359
|
+
return groupFade_1.GroupFadeIn;
|
|
360
|
+
}
|
|
361
|
+
}), Object.defineProperty(exports, "GroupFadeOut", {
|
|
362
|
+
enumerable: !0,
|
|
363
|
+
get: function() {
|
|
364
|
+
return groupFade_1.GroupFadeOut;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
const streamLight_1 = require("./streamLight");
|
|
369
|
+
|
|
370
|
+
Object.defineProperty(exports, "StreamLight", {
|
|
371
|
+
enumerable: !0,
|
|
372
|
+
get: function() {
|
|
373
|
+
return streamLight_1.StreamLight;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
const registerCustomAnimate = () => {
|
|
8
378
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("increaseCount", number_1.IncreaseCount),
|
|
9
|
-
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("fromTo",
|
|
379
|
+
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("fromTo", fromTo_1.FromTo),
|
|
10
380
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("scaleIn", scale_1.ScaleIn),
|
|
11
381
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("scaleOut", scale_1.ScaleOut),
|
|
12
382
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growHeightIn", growHeight_1.GrowHeightIn),
|
|
@@ -53,7 +423,9 @@ const animate_executor_1 = require("../executor/animate-executor"), clip_1 = req
|
|
|
53
423
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("growOut", story_1.GrowOut),
|
|
54
424
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("spinOut", story_1.SpinOut),
|
|
55
425
|
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("moveScaleOut", story_1.MoveScaleOut),
|
|
56
|
-
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("moveRotateOut", story_1.MoveRotateOut)
|
|
426
|
+
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("moveRotateOut", story_1.MoveRotateOut),
|
|
427
|
+
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("MotionPath", motionPath_1.MotionPath),
|
|
428
|
+
animate_executor_1.AnimateExecutor.registerBuiltInAnimate("streamLight", streamLight_1.StreamLight);
|
|
57
429
|
};
|
|
58
430
|
|
|
59
431
|
exports.registerCustomAnimate = registerCustomAnimate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/custom/register.ts"],"names":[],"mappings":";;;AAAA,mEAA+D;AAC/D,iCAAyC;AACzC,iCAAyC;AACzC,2CAAwD;AACxD,6CAA2D;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,EAAE,6BAAY,CAAC,CAAC;IACrE,kCAAe,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,gCAAe,CAAC,CAAC;IAG3E,kCAAe,CAAC,sBAAsB,CAAC,WAAW,EAAE,sBAAS,CAAC,CAAC;IAC/D,kCAAe,CAAC,sBAAsB,CAAC,eAAe,EAAE,8BAAa,CAAC,CAAC;IACvE,kCAAe,CAAC,sBAAsB,CAAC,gBAAgB,EAAE,gCAAc,CAAC,CAAC;IACzE,kCAAe,CAAC,sBAAsB,CAAC,eAAe,EAAE,8BAAa,CAAC,CAAC;IACvE,kCAAe,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,qCAAgB,CAAC,CAAC;IAG7E,kCAAe,CAAC,sBAAsB,CAAC,SAAS,EAAE,eAAO,CAAC,CAAC;IAC3D,kCAAe,CAAC,sBAAsB,CAAC,QAAQ,EAAE,cAAM,CAAC,CAAC;IACzD,kCAAe,CAAC,sBAAsB,CAAC,QAAQ,EAAE,cAAM,CAAC,CAAC;IACzD,kCAAe,CAAC,sBAAsB,CAAC,aAAa,EAAE,mBAAW,CAAC,CAAC;IACnE,kCAAe,CAAC,sBAAsB,CAAC,cAAc,EAAE,oBAAY,CAAC,CAAC;IAGrE,kCAAe,CAAC,sBAAsB,CAAC,UAAU,EAAE,gBAAQ,CAAC,CAAC;IAC7D,kCAAe,CAAC,sBAAsB,CAAC,SAAS,EAAE,eAAO,CAAC,CAAC;IAC3D,kCAAe,CAAC,sBAAsB,CAAC,SAAS,EAAE,eAAO,CAAC,CAAC;IAC3D,kCAAe,CAAC,sBAAsB,CAAC,cAAc,EAAE,oBAAY,CAAC,CAAC;IACrE,kCAAe,CAAC,sBAAsB,CAAC,eAAe,EAAE,qBAAa,CAAC,CAAC;AACzE,CAAC,CAAC;AA7DW,QAAA,qBAAqB,yBA6DhC","file":"register.js","sourcesContent":["import { AnimateExecutor } from '../executor/animate-executor';\nimport { ClipIn, ClipOut } from './clip';\nimport { FadeIn, FadeOut } from './fade';\nimport { GrowAngleIn, GrowAngleOut } from './growAngle';\nimport { GrowCenterIn, GrowCenterOut } from './growCenter';\nimport { GrowHeightIn, GrowHeightOut } from './growHeight';\nimport {\n GrowPointsIn,\n GrowPointsOut,\n GrowPointsXIn,\n GrowPointsXOut,\n GrowPointsYIn,\n GrowPointsYOut\n} from './growPoints';\nimport { GrowRadiusIn, GrowRadiusOut } from './growRadius';\nimport { GrowWidthIn, GrowWidthOut } from './growWidth';\nimport { InputText } from './input-text';\nimport { LabelItemAppear, LabelItemDisappear } from './label-item-animate';\nimport { IncreaseCount } from './number';\nimport { PoptipAppear, PoptipDisappear } from './poptip-animate';\nimport { InputRichText } from './richtext/input-richtext';\nimport { OutputRichText } from './richtext/output-richtext';\nimport { SlideRichText } from './richtext/slide-richtext';\nimport { SlideOutRichText } from './richtext/slide-out-richtext';\nimport { ScaleIn, ScaleOut } from './scale';\nimport { State } from './state';\nimport {\n GrowIn,\n GrowOut,\n MoveRotateIn,\n MoveRotateOut,\n MoveScaleIn,\n MoveScaleOut,\n SlideIn,\n SlideOut,\n SpinIn,\n SpinOut\n} from './story';\nimport { Update } from './update';\nimport { MoveIn, MoveOut } from './move';\nimport { RotateIn, RotateOut } from './rotate';\nimport { FromTo } from './from-to';\n\nexport const registerCustomAnimate = () => {\n // 基础动画\n AnimateExecutor.registerBuiltInAnimate('increaseCount', IncreaseCount);\n\n AnimateExecutor.registerBuiltInAnimate('fromTo', FromTo);\n AnimateExecutor.registerBuiltInAnimate('scaleIn', ScaleIn);\n AnimateExecutor.registerBuiltInAnimate('scaleOut', ScaleOut);\n AnimateExecutor.registerBuiltInAnimate('growHeightIn', GrowHeightIn);\n AnimateExecutor.registerBuiltInAnimate('growHeightOut', GrowHeightOut);\n AnimateExecutor.registerBuiltInAnimate('growWidthIn', GrowWidthIn);\n AnimateExecutor.registerBuiltInAnimate('growWidthOut', GrowWidthOut);\n AnimateExecutor.registerBuiltInAnimate('growCenterIn', GrowCenterIn);\n AnimateExecutor.registerBuiltInAnimate('growCenterOut', GrowCenterOut);\n AnimateExecutor.registerBuiltInAnimate('clipIn', ClipIn);\n AnimateExecutor.registerBuiltInAnimate('clipOut', ClipOut);\n AnimateExecutor.registerBuiltInAnimate('fadeIn', FadeIn);\n AnimateExecutor.registerBuiltInAnimate('fadeOut', FadeOut);\n AnimateExecutor.registerBuiltInAnimate('growPointsIn', GrowPointsIn);\n AnimateExecutor.registerBuiltInAnimate('growPointsOut', GrowPointsOut);\n AnimateExecutor.registerBuiltInAnimate('growPointsXIn', GrowPointsXIn);\n AnimateExecutor.registerBuiltInAnimate('growPointsXOut', GrowPointsXOut);\n AnimateExecutor.registerBuiltInAnimate('growPointsYIn', GrowPointsYIn);\n AnimateExecutor.registerBuiltInAnimate('growPointsYOut', GrowPointsYOut);\n AnimateExecutor.registerBuiltInAnimate('growAngleIn', GrowAngleIn);\n AnimateExecutor.registerBuiltInAnimate('growAngleOut', GrowAngleOut);\n AnimateExecutor.registerBuiltInAnimate('growRadiusIn', GrowRadiusIn);\n AnimateExecutor.registerBuiltInAnimate('growRadiusOut', GrowRadiusOut);\n AnimateExecutor.registerBuiltInAnimate('moveIn', MoveIn);\n AnimateExecutor.registerBuiltInAnimate('moveOut', MoveOut);\n AnimateExecutor.registerBuiltInAnimate('rotateIn', RotateIn);\n AnimateExecutor.registerBuiltInAnimate('rotateOut', RotateOut);\n // state和update共用一个自定义动画类\n AnimateExecutor.registerBuiltInAnimate('update', Update);\n AnimateExecutor.registerBuiltInAnimate('state', State);\n // Label item animations\n AnimateExecutor.registerBuiltInAnimate('labelItemAppear', LabelItemAppear);\n AnimateExecutor.registerBuiltInAnimate('labelItemDisappear', LabelItemDisappear);\n // Poptip animations\n AnimateExecutor.registerBuiltInAnimate('poptipAppear', PoptipAppear);\n AnimateExecutor.registerBuiltInAnimate('poptipDisappear', PoptipDisappear);\n\n // Text input animations\n AnimateExecutor.registerBuiltInAnimate('inputText', InputText);\n AnimateExecutor.registerBuiltInAnimate('inputRichText', InputRichText);\n AnimateExecutor.registerBuiltInAnimate('outputRichText', OutputRichText);\n AnimateExecutor.registerBuiltInAnimate('slideRichText', SlideRichText);\n AnimateExecutor.registerBuiltInAnimate('slideOutRichText', SlideOutRichText);\n\n // 故事化动画 - 入场\n AnimateExecutor.registerBuiltInAnimate('slideIn', SlideIn);\n AnimateExecutor.registerBuiltInAnimate('growIn', GrowIn);\n AnimateExecutor.registerBuiltInAnimate('spinIn', SpinIn);\n AnimateExecutor.registerBuiltInAnimate('moveScaleIn', MoveScaleIn);\n AnimateExecutor.registerBuiltInAnimate('moveRotateIn', MoveRotateIn);\n\n // 故事化动画 - 出场\n AnimateExecutor.registerBuiltInAnimate('slideOut', SlideOut);\n AnimateExecutor.registerBuiltInAnimate('growOut', GrowOut);\n AnimateExecutor.registerBuiltInAnimate('spinOut', SpinOut);\n AnimateExecutor.registerBuiltInAnimate('moveScaleOut', MoveScaleOut);\n AnimateExecutor.registerBuiltInAnimate('moveRotateOut', MoveRotateOut);\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/custom/register.ts"],"names":[],"mappings":";;;;AAAA,mEAA+D;AAC/D,iCAAyC;AAkHvC,uFAlHO,aAAM,OAkHP;AACN,wFAnHe,cAAO,OAmHf;AAlHT,iCAAyC;AAmHvC,uFAnHO,aAAM,OAmHP;AACN,wFApHe,cAAO,OAoHf;AAnHT,2CAAwD;AAoHtD,4FApHO,uBAAW,OAoHP;AACX,6FArHoB,wBAAY,OAqHpB;AApHd,6CAA2D;AAqHzD,6FArHO,yBAAY,OAqHP;AACZ,8FAtHqB,0BAAa,OAsHrB;AArHf,6CAA2D;AAsHzD,6FAtHO,yBAAY,OAsHP;AACZ,8FAvHqB,0BAAa,OAuHrB;AAtHf,6CAOsB;AAgHpB,6FAtHA,yBAAY,OAsHA;AACZ,8FAtHA,0BAAa,OAsHA;AACb,8FAtHA,0BAAa,OAsHA;AACb,+FAtHA,2BAAc,OAsHA;AACd,8FAtHA,0BAAa,OAsHA;AACb,+FAtH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import { ClipIn, ClipOut } from './clip';\nimport { FadeIn, FadeOut } from './fade';\nimport { GrowAngleIn, GrowAngleOut } from './growAngle';\nimport { GrowCenterIn, GrowCenterOut } from './growCenter';\nimport { GrowHeightIn, GrowHeightOut } from './growHeight';\nimport {\n GrowPointsIn,\n GrowPointsOut,\n GrowPointsXIn,\n GrowPointsXOut,\n GrowPointsYIn,\n GrowPointsYOut\n} from './growPoints';\nimport { GrowRadiusIn, GrowRadiusOut } from './growRadius';\nimport { GrowWidthIn, GrowWidthOut } from './growWidth';\nimport { InputText } from './input-text';\nimport { LabelItemAppear, LabelItemDisappear } from './label-item-animate';\nimport { IncreaseCount } from './number';\nimport { PoptipAppear, PoptipDisappear } from './poptip-animate';\nimport { InputRichText } from './richtext/input-richtext';\nimport { OutputRichText } from './richtext/output-richtext';\nimport { SlideRichText } from './richtext/slide-richtext';\nimport { SlideOutRichText } from './richtext/slide-out-richtext';\nimport { ScaleIn, ScaleOut } from './scale';\nimport { State } from './state';\nimport {\n GrowIn,\n GrowOut,\n MoveRotateIn,\n MoveRotateOut,\n MoveScaleIn,\n MoveScaleOut,\n SlideIn,\n SlideOut,\n SpinIn,\n SpinOut\n} from './story';\nimport { Update } from './update';\nimport { MoveIn, MoveOut } from './move';\nimport { RotateIn, RotateOut } from './rotate';\nimport { MotionPath } from './motionPath';\nimport { FromTo } from './fromTo';\nimport { GroupFadeIn, GroupFadeOut } from './groupFade';\nimport { StreamLight } from './streamLight';\n\nexport const registerCustomAnimate = () => {\n // 基础动画\n AnimateExecutor.registerBuiltInAnimate('increaseCount', IncreaseCount);\n\n AnimateExecutor.registerBuiltInAnimate('fromTo', FromTo);\n AnimateExecutor.registerBuiltInAnimate('scaleIn', ScaleIn);\n AnimateExecutor.registerBuiltInAnimate('scaleOut', ScaleOut);\n AnimateExecutor.registerBuiltInAnimate('growHeightIn', GrowHeightIn);\n AnimateExecutor.registerBuiltInAnimate('growHeightOut', GrowHeightOut);\n AnimateExecutor.registerBuiltInAnimate('growWidthIn', GrowWidthIn);\n AnimateExecutor.registerBuiltInAnimate('growWidthOut', GrowWidthOut);\n AnimateExecutor.registerBuiltInAnimate('growCenterIn', GrowCenterIn);\n AnimateExecutor.registerBuiltInAnimate('growCenterOut', GrowCenterOut);\n AnimateExecutor.registerBuiltInAnimate('clipIn', ClipIn);\n AnimateExecutor.registerBuiltInAnimate('clipOut', ClipOut);\n AnimateExecutor.registerBuiltInAnimate('fadeIn', FadeIn);\n AnimateExecutor.registerBuiltInAnimate('fadeOut', FadeOut);\n AnimateExecutor.registerBuiltInAnimate('growPointsIn', GrowPointsIn);\n AnimateExecutor.registerBuiltInAnimate('growPointsOut', GrowPointsOut);\n AnimateExecutor.registerBuiltInAnimate('growPointsXIn', GrowPointsXIn);\n AnimateExecutor.registerBuiltInAnimate('growPointsXOut', GrowPointsXOut);\n AnimateExecutor.registerBuiltInAnimate('growPointsYIn', GrowPointsYIn);\n AnimateExecutor.registerBuiltInAnimate('growPointsYOut', GrowPointsYOut);\n AnimateExecutor.registerBuiltInAnimate('growAngleIn', GrowAngleIn);\n AnimateExecutor.registerBuiltInAnimate('growAngleOut', GrowAngleOut);\n AnimateExecutor.registerBuiltInAnimate('growRadiusIn', GrowRadiusIn);\n AnimateExecutor.registerBuiltInAnimate('growRadiusOut', GrowRadiusOut);\n AnimateExecutor.registerBuiltInAnimate('moveIn', MoveIn);\n AnimateExecutor.registerBuiltInAnimate('moveOut', MoveOut);\n AnimateExecutor.registerBuiltInAnimate('rotateIn', RotateIn);\n AnimateExecutor.registerBuiltInAnimate('rotateOut', RotateOut);\n // state和update共用一个自定义动画类\n AnimateExecutor.registerBuiltInAnimate('update', Update);\n AnimateExecutor.registerBuiltInAnimate('state', State);\n // Label item animations\n AnimateExecutor.registerBuiltInAnimate('labelItemAppear', LabelItemAppear);\n AnimateExecutor.registerBuiltInAnimate('labelItemDisappear', LabelItemDisappear);\n // Poptip animations\n AnimateExecutor.registerBuiltInAnimate('poptipAppear', PoptipAppear);\n AnimateExecutor.registerBuiltInAnimate('poptipDisappear', PoptipDisappear);\n\n // Text input animations\n AnimateExecutor.registerBuiltInAnimate('inputText', InputText);\n AnimateExecutor.registerBuiltInAnimate('inputRichText', InputRichText);\n AnimateExecutor.registerBuiltInAnimate('outputRichText', OutputRichText);\n AnimateExecutor.registerBuiltInAnimate('slideRichText', SlideRichText);\n AnimateExecutor.registerBuiltInAnimate('slideOutRichText', SlideOutRichText);\n\n // 故事化动画 - 入场\n AnimateExecutor.registerBuiltInAnimate('slideIn', SlideIn);\n AnimateExecutor.registerBuiltInAnimate('growIn', GrowIn);\n AnimateExecutor.registerBuiltInAnimate('spinIn', SpinIn);\n AnimateExecutor.registerBuiltInAnimate('moveScaleIn', MoveScaleIn);\n AnimateExecutor.registerBuiltInAnimate('moveRotateIn', MoveRotateIn);\n\n // 故事化动画 - 出场\n AnimateExecutor.registerBuiltInAnimate('slideOut', SlideOut);\n AnimateExecutor.registerBuiltInAnimate('growOut', GrowOut);\n AnimateExecutor.registerBuiltInAnimate('spinOut', SpinOut);\n AnimateExecutor.registerBuiltInAnimate('moveScaleOut', MoveScaleOut);\n AnimateExecutor.registerBuiltInAnimate('moveRotateOut', MoveRotateOut);\n\n // 路径动画\n AnimateExecutor.registerBuiltInAnimate('MotionPath', MotionPath);\n // 流光动画\n AnimateExecutor.registerBuiltInAnimate('streamLight', StreamLight);\n};\n\nexport {\n ClipIn,\n ClipOut,\n FadeIn,\n FadeOut,\n GrowAngleIn,\n GrowAngleOut,\n GrowCenterIn,\n GrowCenterOut,\n GrowHeightIn,\n GrowHeightOut,\n GrowPointsIn,\n GrowPointsOut,\n GrowPointsXIn,\n GrowPointsXOut,\n GrowPointsYIn,\n GrowPointsYOut,\n GrowRadiusIn,\n GrowRadiusOut,\n GrowWidthIn,\n GrowWidthOut,\n IncreaseCount,\n PoptipAppear,\n PoptipDisappear,\n ScaleIn,\n ScaleOut,\n MoveIn,\n MoveOut,\n RotateIn,\n RotateOut,\n State,\n Update,\n MotionPath,\n LabelItemAppear,\n LabelItemDisappear,\n InputText,\n InputRichText,\n OutputRichText,\n SlideRichText,\n SlideOutRichText,\n SlideIn,\n GrowIn,\n SpinIn,\n MoveScaleIn,\n MoveRotateIn,\n SlideOut,\n GrowOut,\n SpinOut,\n MoveScaleOut,\n MoveRotateOut,\n GroupFadeIn,\n GroupFadeOut,\n FromTo,\n StreamLight\n};\n"]}
|
package/cjs/custom/scale.js
CHANGED
package/cjs/custom/story.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EasingType, IArea, ICurve, ICustomPath2D, IGraphic, ILine, ILineAttribute, IRect, IRectAttribute } from '@visactor/vrender-core';
|
|
2
|
+
import { ACustomAnimate } from './custom-animate';
|
|
3
|
+
import type { IPoint } from '@visactor/vutils';
|
|
4
|
+
export declare class StreamLight extends ACustomAnimate<any> {
|
|
5
|
+
valid: boolean;
|
|
6
|
+
target: IGraphic;
|
|
7
|
+
rect: IRect;
|
|
8
|
+
line: ILine;
|
|
9
|
+
area: IArea;
|
|
10
|
+
constructor(from: any, to: any, duration: number, easing: EasingType, params?: {
|
|
11
|
+
attribute?: Partial<IRectAttribute | ILineAttribute>;
|
|
12
|
+
streamLength?: number;
|
|
13
|
+
isHorizontal?: boolean;
|
|
14
|
+
});
|
|
15
|
+
getEndProps(): Record<string, any>;
|
|
16
|
+
onStart(): void;
|
|
17
|
+
onStartLineOrArea(type: 'line' | 'area'): void;
|
|
18
|
+
onStartRect(): void;
|
|
19
|
+
onBind(): void;
|
|
20
|
+
onEnd(): void;
|
|
21
|
+
onUpdate(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
22
|
+
protected onUpdateRect(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
23
|
+
protected onUpdateLineOrArea(end: boolean, ratio: number, out: Record<string, any>): void;
|
|
24
|
+
protected _onUpdateLineOrAreaWithCache(customPath: ICustomPath2D, g: ILine | IArea, end: boolean, ratio: number, out: Record<string, any>): void;
|
|
25
|
+
protected _updateCurves(customPath: ICustomPath2D, curves: ICurve<IPoint>[], totalLen: number, ratio: number): void;
|
|
26
|
+
protected _onUpdateLineWithoutCache(customPath: ICustomPath2D, line: ILine, end: boolean, ratio: number, out: Record<string, any>): void;
|
|
27
|
+
}
|