@galacean/engine-loader 1.6.8 → 1.6.10

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.
Files changed (107) hide show
  1. package/dist/main.js +7355 -0
  2. package/dist/main.js.map +1 -0
  3. package/dist/module.js +7325 -0
  4. package/dist/module.js.map +1 -0
  5. package/package.json +4 -4
  6. package/types/AnimationClipLoader.d.ts +1 -0
  7. package/types/AnimatorControllerLoader.d.ts +1 -0
  8. package/types/AudioLoader.d.ts +1 -0
  9. package/types/BufferLoader.d.ts +1 -0
  10. package/types/EnvLoader.d.ts +1 -0
  11. package/types/FontLoader.d.ts +1 -0
  12. package/types/GLTFContentRestorer.d.ts +92 -0
  13. package/types/GLTFLoader.d.ts +22 -0
  14. package/types/HDRLoader.d.ts +1 -0
  15. package/types/JSONLoader.d.ts +1 -0
  16. package/types/KTXCubeLoader.d.ts +1 -0
  17. package/types/KTXLoader.d.ts +4 -0
  18. package/types/MaterialLoader.d.ts +1 -0
  19. package/types/MeshLoader.d.ts +1 -0
  20. package/types/PhysicsMaterialLoader.d.ts +1 -0
  21. package/types/PrefabLoader.d.ts +5 -0
  22. package/types/PrimitiveMeshLoader.d.ts +1 -0
  23. package/types/ProjectLoader.d.ts +1 -0
  24. package/types/SceneLoader.d.ts +1 -0
  25. package/types/ShaderChunkLoader.d.ts +9 -0
  26. package/types/ShaderLoader.d.ts +1 -0
  27. package/types/SourceFontLoader.d.ts +1 -0
  28. package/types/SpriteAtlasLoader.d.ts +1 -0
  29. package/types/SpriteLoader.d.ts +1 -0
  30. package/types/TextLoader.d.ts +1 -0
  31. package/types/Texture2DContentRestorer.d.ts +10 -0
  32. package/types/Texture2DLoader.d.ts +20 -0
  33. package/types/TextureCubeContentRestorer.d.ts +10 -0
  34. package/types/TextureCubeLoader.d.ts +1 -0
  35. package/types/compressed-texture/KhronosTextureContainer.d.ts +20 -0
  36. package/types/compressed-texture/index.d.ts +3 -0
  37. package/types/compressed-texture/type.d.ts +87 -0
  38. package/types/gltf/GLTFResource.d.ts +67 -0
  39. package/types/gltf/GLTFSchema.d.ts +822 -0
  40. package/types/gltf/GLTFUtils.d.ts +45 -0
  41. package/types/gltf/extensions/EXT_meshopt_compression.d.ts +26 -0
  42. package/types/gltf/extensions/EXT_texture_webp.d.ts +1 -0
  43. package/types/gltf/extensions/GALACEAN_animation_event.d.ts +1 -0
  44. package/types/gltf/extensions/GALACEAN_materials_remap.d.ts +1 -0
  45. package/types/gltf/extensions/GLTFExtensionParser.d.ts +46 -0
  46. package/types/gltf/extensions/GLTFExtensionSchema.d.ts +168 -0
  47. package/types/gltf/extensions/KHR_lights_punctual.d.ts +1 -0
  48. package/types/gltf/extensions/KHR_materials_anisotropy.d.ts +1 -0
  49. package/types/gltf/extensions/KHR_materials_clearcoat.d.ts +1 -0
  50. package/types/gltf/extensions/KHR_materials_ior.d.ts +1 -0
  51. package/types/gltf/extensions/KHR_materials_iridescence.d.ts +1 -0
  52. package/types/gltf/extensions/KHR_materials_sheen.d.ts +1 -0
  53. package/types/gltf/extensions/KHR_materials_specular.d.ts +1 -0
  54. package/types/gltf/extensions/KHR_materials_transmission.d.ts +1 -0
  55. package/types/gltf/extensions/KHR_materials_unlit.d.ts +1 -0
  56. package/types/gltf/extensions/KHR_materials_variants.d.ts +6 -0
  57. package/types/gltf/extensions/KHR_materials_volume.d.ts +1 -0
  58. package/types/gltf/extensions/KHR_mesh_quantization.d.ts +1 -0
  59. package/types/gltf/extensions/KHR_texture_basisu.d.ts +1 -0
  60. package/types/gltf/extensions/KHR_texture_transform.d.ts +1 -0
  61. package/types/gltf/extensions/MeshoptDecoder.d.ts +12 -0
  62. package/types/gltf/extensions/index.d.ts +21 -0
  63. package/types/gltf/index.d.ts +6 -0
  64. package/types/gltf/parser/GLTFAnimationParser.d.ts +12 -0
  65. package/types/gltf/parser/GLTFAnimatorControllerParser.d.ts +7 -0
  66. package/types/gltf/parser/GLTFBufferParser.d.ts +7 -0
  67. package/types/gltf/parser/GLTFBufferViewParser.d.ts +6 -0
  68. package/types/gltf/parser/GLTFEntityParser.d.ts +6 -0
  69. package/types/gltf/parser/GLTFMaterialParser.d.ts +15 -0
  70. package/types/gltf/parser/GLTFMeshParser.d.ts +20 -0
  71. package/types/gltf/parser/GLTFParser.d.ts +57 -0
  72. package/types/gltf/parser/GLTFParserContext.d.ts +74 -0
  73. package/types/gltf/parser/GLTFSceneParser.d.ts +11 -0
  74. package/types/gltf/parser/GLTFSchemaParser.d.ts +6 -0
  75. package/types/gltf/parser/GLTFSkinParser.d.ts +7 -0
  76. package/types/gltf/parser/GLTFTextureParser.d.ts +15 -0
  77. package/types/gltf/parser/GLTFValidator.d.ts +6 -0
  78. package/types/gltf/parser/index.d.ts +14 -0
  79. package/types/index.d.ts +35 -0
  80. package/types/ktx2/KTX2Container.d.ts +81 -0
  81. package/types/ktx2/KTX2Loader.d.ts +55 -0
  82. package/types/ktx2/KTX2TargetFormat.d.ts +27 -0
  83. package/types/ktx2/WorkerPool.d.ts +32 -0
  84. package/types/ktx2/transcoder/AbstractTranscoder.d.ts +55 -0
  85. package/types/ktx2/transcoder/BinomialLLCTranscoder.d.ts +8 -0
  86. package/types/ktx2/transcoder/BinomialLLCWorkerCode.d.ts +6 -0
  87. package/types/prefab/PrefabParser.d.ts +11 -0
  88. package/types/prefab/PrefabResource.d.ts +25 -0
  89. package/types/resource-deserialize/index.d.ts +21 -0
  90. package/types/resource-deserialize/resources/animationClip/AnimationClipDecoder.d.ts +18 -0
  91. package/types/resource-deserialize/resources/mesh/MeshDecoder.d.ts +8 -0
  92. package/types/resource-deserialize/resources/mesh/type.d.ts +31 -0
  93. package/types/resource-deserialize/resources/parser/HierarchyParser.d.ts +43 -0
  94. package/types/resource-deserialize/resources/parser/ParserContext.d.ts +30 -0
  95. package/types/resource-deserialize/resources/parser/ReflectionParser.d.ts +21 -0
  96. package/types/resource-deserialize/resources/scene/EditorTextureLoader.d.ts +4 -0
  97. package/types/resource-deserialize/resources/scene/SceneParser.d.ts +17 -0
  98. package/types/resource-deserialize/resources/schema/BasicSchema.d.ts +97 -0
  99. package/types/resource-deserialize/resources/schema/MaterialSchema.d.ts +102 -0
  100. package/types/resource-deserialize/resources/schema/ProjectSchema.d.ts +9 -0
  101. package/types/resource-deserialize/resources/schema/SceneSchema.d.ts +80 -0
  102. package/types/resource-deserialize/resources/schema/index.d.ts +4 -0
  103. package/types/resource-deserialize/resources/texture2D/TextureDecoder.d.ts +5 -0
  104. package/types/resource-deserialize/utils/BufferReader.d.ts +28 -0
  105. package/types/resource-deserialize/utils/Decorator.d.ts +11 -0
  106. package/types/resource-deserialize/utils/FileHeader.d.ts +9 -0
  107. package/types/resource-deserialize/utils/Utils.d.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-loader",
3
- "version": "1.6.8",
3
+ "version": "1.6.10",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -19,9 +19,9 @@
19
19
  "libs/**/*"
20
20
  ],
21
21
  "dependencies": {
22
- "@galacean/engine-core": "1.6.8",
23
- "@galacean/engine-math": "1.6.8",
24
- "@galacean/engine-rhi-webgl": "1.6.8"
22
+ "@galacean/engine-core": "1.6.10",
23
+ "@galacean/engine-math": "1.6.10",
24
+ "@galacean/engine-rhi-webgl": "1.6.10"
25
25
  },
26
26
  "scripts": {
27
27
  "b:types": "tsc"
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,92 @@
1
+ import { AssetPromise, BlendShape, Buffer, ContentRestorer, ModelMesh, RequestConfig, Texture2D } from "@galacean/engine-core";
2
+ import { Vector2 } from "@galacean/engine-math";
3
+ import { GLTFResource } from "./gltf/GLTFResource";
4
+ import type { AccessorComponentType, IBufferView } from "./gltf/GLTFSchema";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare class GLTFContentRestorer extends ContentRestorer<GLTFResource> {
9
+ isGLB: boolean;
10
+ bufferRequests: BufferRequestInfo[];
11
+ glbBufferSlices: Vector2[];
12
+ bufferTextures: BufferTextureRestoreInfo[];
13
+ meshes: ModelMeshRestoreInfo[];
14
+ restoreContent(): AssetPromise<GLTFResource>;
15
+ private _getBufferData;
16
+ }
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare class BufferRequestInfo {
21
+ url: string;
22
+ config: RequestConfig;
23
+ constructor(url: string, config: RequestConfig);
24
+ }
25
+ /**
26
+ * @internal
27
+ */
28
+ export declare class BufferTextureRestoreInfo {
29
+ texture: Texture2D;
30
+ bufferView: IBufferView;
31
+ mimeType: string;
32
+ constructor(texture: Texture2D, bufferView: IBufferView, mimeType: string);
33
+ }
34
+ /**
35
+ * @internal
36
+ */
37
+ export declare class ModelMeshRestoreInfo {
38
+ mesh: ModelMesh;
39
+ vertexBuffers: BufferRestoreInfo[];
40
+ indexBuffer: BufferDataRestoreInfo;
41
+ blendShapes: BlendShapeRestoreInfo[];
42
+ }
43
+ /**
44
+ * @internal
45
+ */
46
+ export declare class BufferRestoreInfo {
47
+ buffer: Buffer;
48
+ data: BufferDataRestoreInfo;
49
+ constructor(buffer: Buffer, data: BufferDataRestoreInfo);
50
+ }
51
+ /**
52
+ * @internal
53
+ */
54
+ export declare class BufferDataRestoreInfo {
55
+ main: RestoreDataAccessor;
56
+ typeSize?: number;
57
+ sparseCount?: number;
58
+ sparseIndices?: RestoreDataAccessor;
59
+ sparseValues?: RestoreDataAccessor;
60
+ constructor(main: RestoreDataAccessor, typeSize?: number, sparseCount?: number, sparseIndices?: RestoreDataAccessor, sparseValues?: RestoreDataAccessor);
61
+ }
62
+ /**
63
+ * @internal
64
+ */
65
+ export declare class RestoreDataAccessor {
66
+ bufferIndex: number;
67
+ TypedArray: Uint8ArrayConstructor | Int8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor;
68
+ byteOffset: number;
69
+ length: number;
70
+ constructor(bufferIndex: number, TypedArray: Uint8ArrayConstructor | Int8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor, byteOffset: number, length: number);
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare class BlendShapeRestoreInfo {
76
+ blendShape: BlendShape;
77
+ position: BlendShapeDataRestoreInfo;
78
+ normal?: BlendShapeDataRestoreInfo;
79
+ tangent?: BlendShapeDataRestoreInfo;
80
+ constructor(blendShape: BlendShape, position: BlendShapeDataRestoreInfo, normal?: BlendShapeDataRestoreInfo, tangent?: BlendShapeDataRestoreInfo);
81
+ }
82
+ /**
83
+ * @internal
84
+ */
85
+ export declare class BlendShapeDataRestoreInfo {
86
+ buffer: BufferDataRestoreInfo;
87
+ byteOffset: number;
88
+ count: number;
89
+ normalized: boolean;
90
+ componentType: AccessorComponentType;
91
+ constructor(buffer: BufferDataRestoreInfo, byteOffset: number, count: number, normalized: boolean, componentType: AccessorComponentType);
92
+ }
@@ -0,0 +1,22 @@
1
+ import { AssetPromise, Engine, EngineConfiguration, Loader, LoadItem, ResourceManager } from "@galacean/engine-core";
2
+ import { GLTFResource } from "./gltf/GLTFResource";
3
+ export declare class GLTFLoader extends Loader<GLTFResource> {
4
+ /**
5
+ * Release glTF loader memory(includes meshopt workers).
6
+ * @remarks If use loader after releasing, we should release again.
7
+ */
8
+ static release(): void;
9
+ initialize(_: Engine, configuration: EngineConfiguration): Promise<void>;
10
+ load(item: LoadItem, resourceManager: ResourceManager): AssetPromise<GLTFResource>;
11
+ }
12
+ /**
13
+ * GlTF loader params.
14
+ */
15
+ export interface GLTFParams {
16
+ /**
17
+ * @beta Now only contains vertex information, need to improve.
18
+ * Keep raw mesh data for glTF parser, default is false.
19
+ */
20
+ keepMeshData?: boolean;
21
+ [key: string]: any;
22
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { AssetPromise, Loader, LoadItem, ResourceManager, Texture2D } from "@galacean/engine-core";
2
+ export declare class KTXLoader extends Loader<Texture2D> {
3
+ load(item: LoadItem, resourceManager: ResourceManager): AssetPromise<Texture2D>;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { AssetPromise, Loader, LoadItem, ResourceManager } from "@galacean/engine-core";
2
+ import { PrefabResource } from "./prefab/PrefabResource";
3
+ export declare class PrefabLoader extends Loader<PrefabResource> {
4
+ load(item: LoadItem, resourceManager: ResourceManager): AssetPromise<PrefabResource>;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { AssetPromise, LoadItem, Loader, ResourceManager } from "@galacean/engine-core";
2
+ export declare class ShaderChunkLoader extends Loader<void[]> {
3
+ private static _shaderIncludeRegex;
4
+ /**
5
+ * @internal
6
+ */
7
+ static _loadChunksInCode(code: string, basePath: string, resourceManager: ResourceManager): Promise<void[]>;
8
+ load(item: LoadItem, resourceManager: ResourceManager): AssetPromise<void[]>;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { AssetPromise, ContentRestorer, RequestConfig, Texture2D } from "@galacean/engine-core";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class Texture2DContentRestorer extends ContentRestorer<Texture2D> {
6
+ url: string;
7
+ requestConfig: RequestConfig;
8
+ constructor(resource: Texture2D, url: string, requestConfig: RequestConfig);
9
+ restoreContent(): AssetPromise<Texture2D>;
10
+ }
@@ -0,0 +1,20 @@
1
+ import { TextureFilterMode, TextureFormat, TextureWrapMode } from "@galacean/engine-core";
2
+ /**
3
+ * Texture2D loader params interface.
4
+ */
5
+ export interface Texture2DParams {
6
+ /** Texture format. default `TextureFormat.R8G8B8A8` */
7
+ format: TextureFormat;
8
+ /** Whether to use multi-level texture, default is true. */
9
+ mipmap: boolean;
10
+ /** Wrapping mode for texture coordinate S. */
11
+ wrapModeU: TextureWrapMode;
12
+ /** Wrapping mode for texture coordinate T. */
13
+ wrapModeV: TextureWrapMode;
14
+ /** Filter mode for texture. */
15
+ filterMode: TextureFilterMode;
16
+ /** Anisotropic level for texture. */
17
+ anisoLevel: number;
18
+ /** Whether the texture data is in sRGB color space, otherwise is linear color space. @defaultValue `true` */
19
+ isSRGBColorSpace: boolean;
20
+ }
@@ -0,0 +1,10 @@
1
+ import { AssetPromise, ContentRestorer, RequestConfig, TextureCube } from "@galacean/engine-core";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare class TextureCubeContentRestorer extends ContentRestorer<TextureCube> {
6
+ urls: string[];
7
+ requestConfig: RequestConfig;
8
+ constructor(resource: TextureCube, urls: string[], requestConfig: RequestConfig);
9
+ restoreContent(): AssetPromise<TextureCube>;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ *
3
+ * ported from https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.khronosTextureContainer.ts
4
+ */
5
+ import { KTXContainer } from "./type";
6
+ /**
7
+ * for description see https://www.khronos.org/opengles/sdk/tools/KTX/
8
+ * for file layout see https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/
9
+ */
10
+ export declare const khronosTextureContainerParser: {
11
+ /**
12
+ *
13
+ * @param buffer contents of the KTX container file
14
+ * @param facesExpected should be either 1 or 6, based whether a cube texture or or
15
+ * @param threeDExpected provision for indicating that data should be a 3D texture, not implemented
16
+ * @param textureArrayExpected provision for indicating that data should be a texture array, not implemented
17
+ * @param mapEngineFormat get Galacean Engine native TextureFormat?
18
+ */
19
+ parse(buffer: ArrayBuffer, facesExpected: number, withMipmaps: boolean, mapEngineFormat?: boolean): KTXContainer;
20
+ };
@@ -0,0 +1,3 @@
1
+ import { CompressedTextureData, CompressedCubeData } from "./type";
2
+ export declare function parseSingleKTX(data: ArrayBuffer): CompressedTextureData;
3
+ export declare function parseCubeKTX(dataArray: ArrayBuffer[]): CompressedCubeData;
@@ -0,0 +1,87 @@
1
+ import { TextureFormat } from "@galacean/engine-core";
2
+ import { GLCompressedTextureInternalFormat } from "@galacean/engine-rhi-webgl";
3
+ export type CompressedTextureData = {
4
+ internalFormat: GLCompressedTextureInternalFormat;
5
+ width: number;
6
+ height: number;
7
+ mipmaps: Mipmap[];
8
+ engineFormat: TextureFormat;
9
+ };
10
+ export type CompressedCubeData = {
11
+ engineFormat: TextureFormat;
12
+ internalFormat: number;
13
+ width: number;
14
+ height: number;
15
+ mipmapsFaces: Mipmap[][];
16
+ };
17
+ export type Mipmap = {
18
+ data: ArrayBufferView;
19
+ width: number;
20
+ height: number;
21
+ };
22
+ export type KTXContainer = {
23
+ /**
24
+ * origin buffer data
25
+ */
26
+ buffer: ArrayBuffer;
27
+ /**
28
+ * Gets the openGL type
29
+ */
30
+ glType: number;
31
+ /**
32
+ * Gets the openGL type size
33
+ */
34
+ glTypeSize: number;
35
+ /**
36
+ * Gets the openGL format
37
+ */
38
+ glFormat: number;
39
+ /**
40
+ * Gets the openGL internal format
41
+ */
42
+ glInternalFormat: number;
43
+ /**
44
+ * Gets the base internal format
45
+ */
46
+ glBaseInternalFormat: GLCompressedTextureInternalFormat;
47
+ /**
48
+ * Gets image width in pixel
49
+ */
50
+ pixelWidth: number;
51
+ /**
52
+ * Gets image height in pixel
53
+ */
54
+ pixelHeight: number;
55
+ /**
56
+ * Gets image depth in pixels
57
+ */
58
+ pixelDepth: number;
59
+ /**
60
+ * Gets the number of array elements
61
+ */
62
+ numberOfArrayElements: number;
63
+ /**
64
+ * Gets the number of faces
65
+ */
66
+ numberOfFaces: number;
67
+ /**
68
+ * Gets the number of mipmap levels
69
+ */
70
+ numberOfMipmapLevels: number;
71
+ /**
72
+ * Gets the bytes of key value data
73
+ */
74
+ bytesOfKeyValueData: number;
75
+ /**
76
+ * Gets the load type
77
+ */
78
+ loadType: number;
79
+ /**
80
+ * parsed mipmap data
81
+ */
82
+ mipmaps?: Mipmap[];
83
+ /**
84
+ * Galacean Engine native TextureFormat
85
+ */
86
+ engineFormat?: TextureFormat;
87
+ };
@@ -0,0 +1,67 @@
1
+ import { AnimationClip, AnimatorController, Camera, Engine, Entity, Light, Material, ModelMesh, ReferResource, Skin, Texture2D } from "@galacean/engine-core";
2
+ /**
3
+ * The glTF resource.
4
+ */
5
+ export declare class GLTFResource extends ReferResource {
6
+ /** glTF file url. */
7
+ readonly url: string;
8
+ /** The array of loaded textures. */
9
+ readonly textures?: Texture2D[];
10
+ /** The array of loaded materials. */
11
+ readonly materials?: Material[];
12
+ /** The array of loaded Meshes. */
13
+ readonly meshes?: ModelMesh[][];
14
+ /** The array of loaded skins. */
15
+ readonly skins?: Skin[];
16
+ /** The array of loaded animationClips. */
17
+ readonly animations?: AnimationClip[];
18
+ /** The loaded AnimatorController. */
19
+ readonly animatorController?: AnimatorController;
20
+ /** @internal */
21
+ _defaultSceneRoot: Entity;
22
+ /** @internal */
23
+ _sceneRoots: Entity[];
24
+ /** @internal */
25
+ _extensionsData: Record<string, any>;
26
+ /**
27
+ * Extensions data.
28
+ */
29
+ get extensionsData(): Record<string, any>;
30
+ /**
31
+ * @internal
32
+ */
33
+ constructor(engine: Engine, url: string);
34
+ /**
35
+ * Instantiate scene root entity.
36
+ * @param sceneIndex - Scene index
37
+ * @returns Root entity
38
+ */
39
+ instantiateSceneRoot(sceneIndex?: number): Entity;
40
+ protected _onDestroy(): void;
41
+ private _disassociationSuperResource;
42
+ /**
43
+ * @deprecated
44
+ * Entity after EntityParser.
45
+ */
46
+ entities: Entity[];
47
+ /**
48
+ * @deprecated
49
+ * Camera after SceneParser.
50
+ */
51
+ cameras?: Camera[];
52
+ /**
53
+ * @deprecated
54
+ * Export lights in extension KHR_lights_punctual.
55
+ */
56
+ lights?: Light[];
57
+ /**
58
+ * @deprecated Please use `instantiateSceneRoot` instead.
59
+ * RootEntities after SceneParser.
60
+ */
61
+ get sceneRoots(): Entity[];
62
+ /**
63
+ * @deprecated Please use `instantiateSceneRoot` instead.
64
+ * RootEntity after SceneParser.
65
+ */
66
+ get defaultSceneRoot(): Entity;
67
+ }