@galacean/effects-specification 1.0.1 → 1.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fallback/index.d.ts +2 -2
- package/dist/fallback.js +11 -3
- package/dist/fallback.js.map +1 -1
- package/dist/fallback.mjs +11 -3
- package/dist/fallback.mjs.map +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/image.d.ts +9 -4
- package/dist/src/scene.d.ts +2 -2
- package/package.json +1 -1
package/dist/fallback.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Name: @galacean/effects-specification
|
|
3
3
|
* Description: Galacean Effects JSON Specification
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
|
-
* Version: v1.0.
|
|
5
|
+
* Version: v1.1.0-alpha.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/*********************************************/
|
|
@@ -381,6 +381,16 @@ var CompositionEndBehavior;
|
|
|
381
381
|
CompositionEndBehavior[CompositionEndBehavior["pause_destroy"] = END_BEHAVIOR_PAUSE_AND_DESTROY] = "pause_destroy";
|
|
382
382
|
})(CompositionEndBehavior || (CompositionEndBehavior = {}));
|
|
383
383
|
|
|
384
|
+
/**
|
|
385
|
+
* 动态换图类型
|
|
386
|
+
* @since 1.3.0
|
|
387
|
+
*/
|
|
388
|
+
var BackgroundType;
|
|
389
|
+
(function (BackgroundType) {
|
|
390
|
+
BackgroundType["video"] = "video";
|
|
391
|
+
BackgroundType["image"] = "image";
|
|
392
|
+
})(BackgroundType || (BackgroundType = {}));
|
|
393
|
+
|
|
384
394
|
/*********************************************/
|
|
385
395
|
/* 基本数值属性参数 */
|
|
386
396
|
/*********************************************/
|
|
@@ -1465,11 +1475,9 @@ function getStandardImage(image, index, imageTags) {
|
|
|
1465
1475
|
else if (image.url) {
|
|
1466
1476
|
return {
|
|
1467
1477
|
url: image.url,
|
|
1468
|
-
type: image.type,
|
|
1469
1478
|
webp: image.webp,
|
|
1470
1479
|
renderLevel: renderLevel,
|
|
1471
1480
|
oriY: oriY,
|
|
1472
|
-
loop: image.loop,
|
|
1473
1481
|
};
|
|
1474
1482
|
}
|
|
1475
1483
|
else if (image && image.sourceType) {
|