@visactor/vrender 1.0.0-alpha.20 → 1.0.0-alpha.22
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 +25 -18
- package/dist/index.js +25 -18
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +6 -6
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "1.0.0-alpha.
|
|
24
|
+
exports.version = "1.0.0-alpha.22", (0, vrender_core_1.preLoadAllModule)(), (0,
|
|
25
25
|
vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
|
|
26
26
|
vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
|
|
27
27
|
(0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,2BAAY,GAAE,CAAC;AAEf,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv, registerStar } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"1.0.0-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,2BAAY,GAAE,CAAC;AAEf,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv, registerStar } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"1.0.0-alpha.22\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nregisterStar();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-animate';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -594,22 +594,22 @@ const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,sys
|
|
|
594
594
|
class Application {}
|
|
595
595
|
const application = new Application();
|
|
596
596
|
|
|
597
|
+
let idx = 0;
|
|
597
598
|
class PerformanceRAF {
|
|
598
599
|
constructor() {
|
|
599
|
-
this.nextAnimationFrameCbs =
|
|
600
|
+
this.nextAnimationFrameCbs = new Map(), this._rafHandle = null, this.runAnimationFrame = time => {
|
|
600
601
|
this._rafHandle = null;
|
|
601
602
|
const cbs = this.nextAnimationFrameCbs;
|
|
602
|
-
this.nextAnimationFrameCbs =
|
|
603
|
-
for (let i = 0; i < cbs.length; i++) cbs[i] && cbs[i](time);
|
|
603
|
+
this.nextAnimationFrameCbs = new Map(), cbs.forEach(cb => cb(time));
|
|
604
604
|
}, this.tryRunAnimationFrameNextFrame = () => {
|
|
605
|
-
null === this._rafHandle && 0 !== this.nextAnimationFrameCbs.
|
|
605
|
+
null === this._rafHandle && 0 !== this.nextAnimationFrameCbs.size && (this._rafHandle = application.global.getRequestAnimationFrame()(this.runAnimationFrame));
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
608
|
addAnimationFrameCb(callback) {
|
|
609
|
-
return this.nextAnimationFrameCbs.
|
|
609
|
+
return this.nextAnimationFrameCbs.set(++idx, callback), this.tryRunAnimationFrameNextFrame(), idx;
|
|
610
610
|
}
|
|
611
611
|
removeAnimationFrameCb(index) {
|
|
612
|
-
return
|
|
612
|
+
return !!this.nextAnimationFrameCbs.has(index) && (this.nextAnimationFrameCbs.delete(index), !0);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
|
|
@@ -32654,25 +32654,32 @@ class GroupFadeOut extends CommonOut {
|
|
|
32654
32654
|
}
|
|
32655
32655
|
|
|
32656
32656
|
class RotateBySphereAnimate extends ACustomAnimate {
|
|
32657
|
+
onBind() {
|
|
32658
|
+
super.onBind(), this.propKeys = ["x", "y", "z", "alpha", "zIndex"];
|
|
32659
|
+
}
|
|
32660
|
+
onFirstRun() {
|
|
32661
|
+
super.onFirstRun();
|
|
32662
|
+
const finalAttribute = this.target.getFinalAttribute();
|
|
32663
|
+
finalAttribute && this.target.setAttributes(finalAttribute);
|
|
32664
|
+
}
|
|
32657
32665
|
onStart() {
|
|
32666
|
+
super.onStart();
|
|
32658
32667
|
const {
|
|
32659
32668
|
center: center,
|
|
32660
32669
|
r: r
|
|
32661
32670
|
} = "function" == typeof this.params ? this.params() : this.params,
|
|
32662
|
-
startX = this.target.
|
|
32663
|
-
startY = this.target.
|
|
32664
|
-
startZ = this.target.
|
|
32671
|
+
startX = this.target.finalAttribute.x,
|
|
32672
|
+
startY = this.target.finalAttribute.y,
|
|
32673
|
+
startZ = this.target.finalAttribute.z,
|
|
32665
32674
|
phi = Math.acos((startY - center.y) / r);
|
|
32666
32675
|
let theta = Math.acos((startX - center.x) / r / Math.sin(phi));
|
|
32667
32676
|
startZ - center.z < 0 && (theta = pi2 - theta), this.theta = theta, this.phi = phi;
|
|
32668
32677
|
}
|
|
32669
|
-
onBind() {
|
|
32670
|
-
super.onBind();
|
|
32671
|
-
}
|
|
32672
32678
|
onEnd() {}
|
|
32673
32679
|
onUpdate(end, ratio, out) {
|
|
32674
32680
|
if (null == this.phi || null == this.theta) return;
|
|
32675
|
-
const
|
|
32681
|
+
const target = this.target,
|
|
32682
|
+
{
|
|
32676
32683
|
center: center,
|
|
32677
32684
|
r: r,
|
|
32678
32685
|
cb: cb
|
|
@@ -32683,8 +32690,8 @@ class RotateBySphereAnimate extends ACustomAnimate {
|
|
|
32683
32690
|
x = r * Math.sin(phi) * Math.cos(theta) + center.x,
|
|
32684
32691
|
y = r * Math.cos(phi) + center.y,
|
|
32685
32692
|
z = r * Math.sin(phi) * Math.sin(theta) + center.z;
|
|
32686
|
-
for (
|
|
32687
|
-
|
|
32693
|
+
for (target.attribute.x = x, target.attribute.y = y, target.attribute.z = z, target.attribute.alpha = theta + pi / 2; target.attribute.alpha > pi2;) target.attribute.alpha -= pi2;
|
|
32694
|
+
target.attribute.alpha = pi2 - target.attribute.alpha, target.attribute.zIndex = -1e4 * target.attribute.z, cb && cb(out);
|
|
32688
32695
|
}
|
|
32689
32696
|
}
|
|
32690
32697
|
|
|
@@ -34935,9 +34942,9 @@ class Update extends ACustomAnimate {
|
|
|
34935
34942
|
const {
|
|
34936
34943
|
options: options
|
|
34937
34944
|
} = this.params;
|
|
34938
|
-
(null === (_b = null == options ? void 0 : options.excludeChannels) || void 0 === _b ? void 0 : _b.length) &&
|
|
34945
|
+
diffAttrs = Object.assign({}, diffAttrs), (null === (_b = null == options ? void 0 : options.excludeChannels) || void 0 === _b ? void 0 : _b.length) && options.excludeChannels.forEach(channel => {
|
|
34939
34946
|
delete diffAttrs[channel];
|
|
34940
|
-
})
|
|
34947
|
+
}), this.props = diffAttrs;
|
|
34941
34948
|
}
|
|
34942
34949
|
update(end, ratio, out) {
|
|
34943
34950
|
if (this.onStart(), !this.props || !this.propKeys) return;
|
|
@@ -35382,7 +35389,7 @@ const registerCustomAnimate = () => {
|
|
|
35382
35389
|
AnimateExecutor.registerBuiltInAnimate("increaseCount", IncreaseCount), AnimateExecutor.registerBuiltInAnimate("fromTo", FromTo), AnimateExecutor.registerBuiltInAnimate("scaleIn", ScaleIn), AnimateExecutor.registerBuiltInAnimate("scaleOut", ScaleOut), AnimateExecutor.registerBuiltInAnimate("growHeightIn", GrowHeightIn), AnimateExecutor.registerBuiltInAnimate("growHeightOut", GrowHeightOut), AnimateExecutor.registerBuiltInAnimate("growWidthIn", GrowWidthIn), AnimateExecutor.registerBuiltInAnimate("growWidthOut", GrowWidthOut), AnimateExecutor.registerBuiltInAnimate("growCenterIn", GrowCenterIn), AnimateExecutor.registerBuiltInAnimate("growCenterOut", GrowCenterOut), AnimateExecutor.registerBuiltInAnimate("clipIn", ClipIn), AnimateExecutor.registerBuiltInAnimate("clipOut", ClipOut), AnimateExecutor.registerBuiltInAnimate("fadeIn", FadeIn), AnimateExecutor.registerBuiltInAnimate("fadeOut", FadeOut), AnimateExecutor.registerBuiltInAnimate("growPointsIn", GrowPointsIn), AnimateExecutor.registerBuiltInAnimate("growPointsOut", GrowPointsOut), AnimateExecutor.registerBuiltInAnimate("growPointsXIn", GrowPointsXIn), AnimateExecutor.registerBuiltInAnimate("growPointsXOut", GrowPointsXOut), AnimateExecutor.registerBuiltInAnimate("growPointsYIn", GrowPointsYIn), AnimateExecutor.registerBuiltInAnimate("growPointsYOut", GrowPointsYOut), AnimateExecutor.registerBuiltInAnimate("growAngleIn", GrowAngleIn), AnimateExecutor.registerBuiltInAnimate("growAngleOut", GrowAngleOut), AnimateExecutor.registerBuiltInAnimate("growRadiusIn", GrowRadiusIn), AnimateExecutor.registerBuiltInAnimate("growRadiusOut", GrowRadiusOut), AnimateExecutor.registerBuiltInAnimate("moveIn", MoveIn), AnimateExecutor.registerBuiltInAnimate("moveOut", MoveOut), AnimateExecutor.registerBuiltInAnimate("rotateIn", RotateIn), AnimateExecutor.registerBuiltInAnimate("rotateOut", RotateOut), AnimateExecutor.registerBuiltInAnimate("update", Update), AnimateExecutor.registerBuiltInAnimate("state", State), AnimateExecutor.registerBuiltInAnimate("labelItemAppear", LabelItemAppear), AnimateExecutor.registerBuiltInAnimate("labelItemDisappear", LabelItemDisappear), AnimateExecutor.registerBuiltInAnimate("poptipAppear", PoptipAppear), AnimateExecutor.registerBuiltInAnimate("poptipDisappear", PoptipDisappear), AnimateExecutor.registerBuiltInAnimate("inputText", InputText), AnimateExecutor.registerBuiltInAnimate("inputRichText", InputRichText), AnimateExecutor.registerBuiltInAnimate("outputRichText", OutputRichText), AnimateExecutor.registerBuiltInAnimate("slideRichText", SlideRichText), AnimateExecutor.registerBuiltInAnimate("slideOutRichText", SlideOutRichText), AnimateExecutor.registerBuiltInAnimate("slideIn", SlideIn), AnimateExecutor.registerBuiltInAnimate("growIn", GrowIn), AnimateExecutor.registerBuiltInAnimate("spinIn", SpinIn), AnimateExecutor.registerBuiltInAnimate("moveScaleIn", MoveScaleIn), AnimateExecutor.registerBuiltInAnimate("moveRotateIn", MoveRotateIn), AnimateExecutor.registerBuiltInAnimate("strokeIn", StrokeIn), AnimateExecutor.registerBuiltInAnimate("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("strokeOut", StrokeOut), AnimateExecutor.registerBuiltInAnimate("pulse", PulseAnimate), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight);
|
|
35383
35390
|
};
|
|
35384
35391
|
|
|
35385
|
-
const version = "1.0.0-alpha.
|
|
35392
|
+
const version = "1.0.0-alpha.22";
|
|
35386
35393
|
preLoadAllModule();
|
|
35387
35394
|
if (isBrowserEnv()) {
|
|
35388
35395
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -600,22 +600,22 @@
|
|
|
600
600
|
class Application {}
|
|
601
601
|
const application = new Application();
|
|
602
602
|
|
|
603
|
+
let idx = 0;
|
|
603
604
|
class PerformanceRAF {
|
|
604
605
|
constructor() {
|
|
605
|
-
this.nextAnimationFrameCbs =
|
|
606
|
+
this.nextAnimationFrameCbs = new Map(), this._rafHandle = null, this.runAnimationFrame = time => {
|
|
606
607
|
this._rafHandle = null;
|
|
607
608
|
const cbs = this.nextAnimationFrameCbs;
|
|
608
|
-
this.nextAnimationFrameCbs =
|
|
609
|
-
for (let i = 0; i < cbs.length; i++) cbs[i] && cbs[i](time);
|
|
609
|
+
this.nextAnimationFrameCbs = new Map(), cbs.forEach(cb => cb(time));
|
|
610
610
|
}, this.tryRunAnimationFrameNextFrame = () => {
|
|
611
|
-
null === this._rafHandle && 0 !== this.nextAnimationFrameCbs.
|
|
611
|
+
null === this._rafHandle && 0 !== this.nextAnimationFrameCbs.size && (this._rafHandle = application.global.getRequestAnimationFrame()(this.runAnimationFrame));
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
614
|
addAnimationFrameCb(callback) {
|
|
615
|
-
return this.nextAnimationFrameCbs.
|
|
615
|
+
return this.nextAnimationFrameCbs.set(++idx, callback), this.tryRunAnimationFrameNextFrame(), idx;
|
|
616
616
|
}
|
|
617
617
|
removeAnimationFrameCb(index) {
|
|
618
|
-
return
|
|
618
|
+
return !!this.nextAnimationFrameCbs.has(index) && (this.nextAnimationFrameCbs.delete(index), !0);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
|
|
@@ -32660,25 +32660,32 @@
|
|
|
32660
32660
|
}
|
|
32661
32661
|
|
|
32662
32662
|
class RotateBySphereAnimate extends ACustomAnimate {
|
|
32663
|
+
onBind() {
|
|
32664
|
+
super.onBind(), this.propKeys = ["x", "y", "z", "alpha", "zIndex"];
|
|
32665
|
+
}
|
|
32666
|
+
onFirstRun() {
|
|
32667
|
+
super.onFirstRun();
|
|
32668
|
+
const finalAttribute = this.target.getFinalAttribute();
|
|
32669
|
+
finalAttribute && this.target.setAttributes(finalAttribute);
|
|
32670
|
+
}
|
|
32663
32671
|
onStart() {
|
|
32672
|
+
super.onStart();
|
|
32664
32673
|
const {
|
|
32665
32674
|
center: center,
|
|
32666
32675
|
r: r
|
|
32667
32676
|
} = "function" == typeof this.params ? this.params() : this.params,
|
|
32668
|
-
startX = this.target.
|
|
32669
|
-
startY = this.target.
|
|
32670
|
-
startZ = this.target.
|
|
32677
|
+
startX = this.target.finalAttribute.x,
|
|
32678
|
+
startY = this.target.finalAttribute.y,
|
|
32679
|
+
startZ = this.target.finalAttribute.z,
|
|
32671
32680
|
phi = Math.acos((startY - center.y) / r);
|
|
32672
32681
|
let theta = Math.acos((startX - center.x) / r / Math.sin(phi));
|
|
32673
32682
|
startZ - center.z < 0 && (theta = pi2 - theta), this.theta = theta, this.phi = phi;
|
|
32674
32683
|
}
|
|
32675
|
-
onBind() {
|
|
32676
|
-
super.onBind();
|
|
32677
|
-
}
|
|
32678
32684
|
onEnd() {}
|
|
32679
32685
|
onUpdate(end, ratio, out) {
|
|
32680
32686
|
if (null == this.phi || null == this.theta) return;
|
|
32681
|
-
const
|
|
32687
|
+
const target = this.target,
|
|
32688
|
+
{
|
|
32682
32689
|
center: center,
|
|
32683
32690
|
r: r,
|
|
32684
32691
|
cb: cb
|
|
@@ -32689,8 +32696,8 @@
|
|
|
32689
32696
|
x = r * Math.sin(phi) * Math.cos(theta) + center.x,
|
|
32690
32697
|
y = r * Math.cos(phi) + center.y,
|
|
32691
32698
|
z = r * Math.sin(phi) * Math.sin(theta) + center.z;
|
|
32692
|
-
for (
|
|
32693
|
-
|
|
32699
|
+
for (target.attribute.x = x, target.attribute.y = y, target.attribute.z = z, target.attribute.alpha = theta + pi / 2; target.attribute.alpha > pi2;) target.attribute.alpha -= pi2;
|
|
32700
|
+
target.attribute.alpha = pi2 - target.attribute.alpha, target.attribute.zIndex = -1e4 * target.attribute.z, cb && cb(out);
|
|
32694
32701
|
}
|
|
32695
32702
|
}
|
|
32696
32703
|
|
|
@@ -34941,9 +34948,9 @@
|
|
|
34941
34948
|
const {
|
|
34942
34949
|
options: options
|
|
34943
34950
|
} = this.params;
|
|
34944
|
-
(null === (_b = null == options ? void 0 : options.excludeChannels) || void 0 === _b ? void 0 : _b.length) &&
|
|
34951
|
+
diffAttrs = Object.assign({}, diffAttrs), (null === (_b = null == options ? void 0 : options.excludeChannels) || void 0 === _b ? void 0 : _b.length) && options.excludeChannels.forEach(channel => {
|
|
34945
34952
|
delete diffAttrs[channel];
|
|
34946
|
-
})
|
|
34953
|
+
}), this.props = diffAttrs;
|
|
34947
34954
|
}
|
|
34948
34955
|
update(end, ratio, out) {
|
|
34949
34956
|
if (this.onStart(), !this.props || !this.propKeys) return;
|
|
@@ -35388,7 +35395,7 @@
|
|
|
35388
35395
|
AnimateExecutor.registerBuiltInAnimate("increaseCount", IncreaseCount), AnimateExecutor.registerBuiltInAnimate("fromTo", FromTo), AnimateExecutor.registerBuiltInAnimate("scaleIn", ScaleIn), AnimateExecutor.registerBuiltInAnimate("scaleOut", ScaleOut), AnimateExecutor.registerBuiltInAnimate("growHeightIn", GrowHeightIn), AnimateExecutor.registerBuiltInAnimate("growHeightOut", GrowHeightOut), AnimateExecutor.registerBuiltInAnimate("growWidthIn", GrowWidthIn), AnimateExecutor.registerBuiltInAnimate("growWidthOut", GrowWidthOut), AnimateExecutor.registerBuiltInAnimate("growCenterIn", GrowCenterIn), AnimateExecutor.registerBuiltInAnimate("growCenterOut", GrowCenterOut), AnimateExecutor.registerBuiltInAnimate("clipIn", ClipIn), AnimateExecutor.registerBuiltInAnimate("clipOut", ClipOut), AnimateExecutor.registerBuiltInAnimate("fadeIn", FadeIn), AnimateExecutor.registerBuiltInAnimate("fadeOut", FadeOut), AnimateExecutor.registerBuiltInAnimate("growPointsIn", GrowPointsIn), AnimateExecutor.registerBuiltInAnimate("growPointsOut", GrowPointsOut), AnimateExecutor.registerBuiltInAnimate("growPointsXIn", GrowPointsXIn), AnimateExecutor.registerBuiltInAnimate("growPointsXOut", GrowPointsXOut), AnimateExecutor.registerBuiltInAnimate("growPointsYIn", GrowPointsYIn), AnimateExecutor.registerBuiltInAnimate("growPointsYOut", GrowPointsYOut), AnimateExecutor.registerBuiltInAnimate("growAngleIn", GrowAngleIn), AnimateExecutor.registerBuiltInAnimate("growAngleOut", GrowAngleOut), AnimateExecutor.registerBuiltInAnimate("growRadiusIn", GrowRadiusIn), AnimateExecutor.registerBuiltInAnimate("growRadiusOut", GrowRadiusOut), AnimateExecutor.registerBuiltInAnimate("moveIn", MoveIn), AnimateExecutor.registerBuiltInAnimate("moveOut", MoveOut), AnimateExecutor.registerBuiltInAnimate("rotateIn", RotateIn), AnimateExecutor.registerBuiltInAnimate("rotateOut", RotateOut), AnimateExecutor.registerBuiltInAnimate("update", Update), AnimateExecutor.registerBuiltInAnimate("state", State), AnimateExecutor.registerBuiltInAnimate("labelItemAppear", LabelItemAppear), AnimateExecutor.registerBuiltInAnimate("labelItemDisappear", LabelItemDisappear), AnimateExecutor.registerBuiltInAnimate("poptipAppear", PoptipAppear), AnimateExecutor.registerBuiltInAnimate("poptipDisappear", PoptipDisappear), AnimateExecutor.registerBuiltInAnimate("inputText", InputText), AnimateExecutor.registerBuiltInAnimate("inputRichText", InputRichText), AnimateExecutor.registerBuiltInAnimate("outputRichText", OutputRichText), AnimateExecutor.registerBuiltInAnimate("slideRichText", SlideRichText), AnimateExecutor.registerBuiltInAnimate("slideOutRichText", SlideOutRichText), AnimateExecutor.registerBuiltInAnimate("slideIn", SlideIn), AnimateExecutor.registerBuiltInAnimate("growIn", GrowIn), AnimateExecutor.registerBuiltInAnimate("spinIn", SpinIn), AnimateExecutor.registerBuiltInAnimate("moveScaleIn", MoveScaleIn), AnimateExecutor.registerBuiltInAnimate("moveRotateIn", MoveRotateIn), AnimateExecutor.registerBuiltInAnimate("strokeIn", StrokeIn), AnimateExecutor.registerBuiltInAnimate("slideOut", SlideOut), AnimateExecutor.registerBuiltInAnimate("growOut", GrowOut), AnimateExecutor.registerBuiltInAnimate("spinOut", SpinOut), AnimateExecutor.registerBuiltInAnimate("moveScaleOut", MoveScaleOut), AnimateExecutor.registerBuiltInAnimate("moveRotateOut", MoveRotateOut), AnimateExecutor.registerBuiltInAnimate("strokeOut", StrokeOut), AnimateExecutor.registerBuiltInAnimate("pulse", PulseAnimate), AnimateExecutor.registerBuiltInAnimate("MotionPath", MotionPath), AnimateExecutor.registerBuiltInAnimate("streamLight", StreamLight);
|
|
35389
35396
|
};
|
|
35390
35397
|
|
|
35391
|
-
const version = "1.0.0-alpha.
|
|
35398
|
+
const version = "1.0.0-alpha.22";
|
|
35392
35399
|
preLoadAllModule();
|
|
35393
35400
|
if (isBrowserEnv()) {
|
|
35394
35401
|
loadBrowserEnv(container);
|