@galacean/effects-specification 1.1.0-alpha.0 → 2.0.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 +45 -11
- package/dist/fallback.js.map +1 -1
- package/dist/fallback.mjs +45 -11
- package/dist/fallback.mjs.map +1 -1
- package/dist/index.js +43 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -12
- package/dist/index.mjs.map +1 -1
- package/dist/src/components.d.ts +92 -0
- package/dist/src/composition.d.ts +45 -0
- package/dist/src/image.d.ts +4 -9
- package/dist/src/index.d.ts +1 -0
- package/dist/src/item/base-item.d.ts +27 -6
- package/dist/src/item/interact-item.d.ts +10 -0
- package/dist/src/item/model/camera.d.ts +24 -1
- package/dist/src/item/model/light.d.ts +47 -0
- package/dist/src/item/model/mesh.d.ts +27 -0
- package/dist/src/item/model/skybox.d.ts +45 -0
- package/dist/src/item/model/tree.d.ts +22 -0
- package/dist/src/item/null-item.d.ts +48 -0
- package/dist/src/item/particle-item.d.ts +72 -0
- package/dist/src/item/sprite-item.d.ts +48 -0
- package/dist/src/item/text-item.d.ts +43 -0
- package/dist/src/scene.d.ts +105 -0
- package/dist/src/vfx-item-data.d.ts +74 -0
- 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:
|
|
5
|
+
* Version: v2.0.0-alpha.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/*********************************************/
|
|
@@ -381,16 +381,6 @@ 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
|
-
|
|
394
384
|
/*********************************************/
|
|
395
385
|
/* 基本数值属性参数 */
|
|
396
386
|
/*********************************************/
|
|
@@ -525,6 +515,26 @@ var ShapeArcMode;
|
|
|
525
515
|
ShapeArcMode[ShapeArcMode["UNIFORM_BURST"] = 3] = "UNIFORM_BURST";
|
|
526
516
|
})(ShapeArcMode || (ShapeArcMode = {}));
|
|
527
517
|
|
|
518
|
+
var LightType;
|
|
519
|
+
(function (LightType) {
|
|
520
|
+
/**
|
|
521
|
+
* 点光源
|
|
522
|
+
*/
|
|
523
|
+
LightType["point"] = "point";
|
|
524
|
+
/**
|
|
525
|
+
* 聚光灯
|
|
526
|
+
*/
|
|
527
|
+
LightType["spot"] = "spot";
|
|
528
|
+
/**
|
|
529
|
+
* 方向光
|
|
530
|
+
*/
|
|
531
|
+
LightType["directional"] = "directional";
|
|
532
|
+
/**
|
|
533
|
+
* 环境光
|
|
534
|
+
*/
|
|
535
|
+
LightType["ambient"] = "ambient";
|
|
536
|
+
})(LightType || (LightType = {}));
|
|
537
|
+
|
|
528
538
|
var ModelBoundingType;
|
|
529
539
|
(function (ModelBoundingType) {
|
|
530
540
|
ModelBoundingType[ModelBoundingType["box"] = 2] = "box";
|
|
@@ -676,6 +686,28 @@ var FontStyle;
|
|
|
676
686
|
FontStyle["oblique"] = "oblique";
|
|
677
687
|
})(FontStyle || (FontStyle = {}));
|
|
678
688
|
|
|
689
|
+
var DataType;
|
|
690
|
+
(function (DataType) {
|
|
691
|
+
DataType["VFXItemData"] = "VFXItemData";
|
|
692
|
+
DataType["EffectComponent"] = "EffectComponent";
|
|
693
|
+
DataType["Material"] = "Material";
|
|
694
|
+
DataType["Shader"] = "Shader";
|
|
695
|
+
DataType["SpriteComponent"] = "SpriteComponent";
|
|
696
|
+
DataType["ParticleSystem"] = "ParticleSystem";
|
|
697
|
+
DataType["InteractComponent"] = "InteractComponent";
|
|
698
|
+
DataType["CameraController"] = "CameraController";
|
|
699
|
+
DataType["Geometry"] = "Geometry";
|
|
700
|
+
DataType["Texture"] = "Texture";
|
|
701
|
+
DataType["TextComponent"] = "TextComponent";
|
|
702
|
+
// FIXME: 先完成ECS的场景转换,后面移到spec中
|
|
703
|
+
DataType["MeshComponent"] = "MeshComponent";
|
|
704
|
+
DataType["SkyboxComponent"] = "SkyboxComponent";
|
|
705
|
+
DataType["LightComponent"] = "LightComponent";
|
|
706
|
+
DataType["CameraComponent"] = "CameraComponent";
|
|
707
|
+
DataType["ModelPluginComponent"] = "ModelPluginComponent";
|
|
708
|
+
DataType["TreeComponent"] = "TreeComponent";
|
|
709
|
+
})(DataType || (DataType = {}));
|
|
710
|
+
|
|
679
711
|
/******************************************************************************
|
|
680
712
|
Copyright (c) Microsoft Corporation.
|
|
681
713
|
|
|
@@ -1475,9 +1507,11 @@ function getStandardImage(image, index, imageTags) {
|
|
|
1475
1507
|
else if (image.url) {
|
|
1476
1508
|
return {
|
|
1477
1509
|
url: image.url,
|
|
1510
|
+
type: image.type,
|
|
1478
1511
|
webp: image.webp,
|
|
1479
1512
|
renderLevel: renderLevel,
|
|
1480
1513
|
oriY: oriY,
|
|
1514
|
+
loop: image.loop,
|
|
1481
1515
|
};
|
|
1482
1516
|
}
|
|
1483
1517
|
else if (image && image.sourceType) {
|