@galacean/engine-loader 1.0.0-alpha.6 → 1.0.0-beta.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/main.js +402 -362
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +402 -362
- package/dist/module.js +403 -363
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
- package/types/GLTFLoader.d.ts +4 -1
- package/types/gltf/{GLTFUtil.d.ts → GLTFUtils.d.ts} +1 -7
- package/types/gltf/extensions/GLTFExtensionSchema.d.ts +2 -2
- package/types/gltf/extensions/index.d.ts +2 -2
- package/types/gltf/index.d.ts +1 -1
- package/types/gltf/GLTFParser.d.ts +0 -9
- package/types/gltf/Schema.d.ts +0 -814
- package/types/gltf/extensions/ExtensionParser.d.ts +0 -8
- package/types/gltf/extensions/OASIS_materials_remap.d.ts +0 -1
- package/types/gltf/extensions/Schema.d.ts +0 -142
- package/types/gltf/parser/AnimationParser.d.ts +0 -7
- package/types/gltf/parser/BufferParser.d.ts +0 -7
- package/types/gltf/parser/EntityParser.d.ts +0 -9
- package/types/gltf/parser/MaterialParser.d.ts +0 -8
- package/types/gltf/parser/MeshParser.d.ts +0 -13
- package/types/gltf/parser/Parser.d.ts +0 -21
- package/types/gltf/parser/ParserContext.d.ts +0 -46
- package/types/gltf/parser/SceneParser.d.ts +0 -11
- package/types/gltf/parser/SkinParser.d.ts +0 -6
- package/types/gltf/parser/TextureParser.d.ts +0 -8
- package/types/gltf/parser/Validator.d.ts +0 -5
- /package/types/gltf/extensions/{OASIS_animation_event.d.ts → GALACEAN_animation_event.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-loader",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"types/**/*"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@galacean/engine-core": "1.0.0-
|
|
19
|
-
"@galacean/engine-
|
|
20
|
-
"@galacean/engine-
|
|
21
|
-
"@galacean/engine-
|
|
18
|
+
"@galacean/engine-core": "1.0.0-beta.0",
|
|
19
|
+
"@galacean/engine-draco": "1.0.0-beta.0",
|
|
20
|
+
"@galacean/engine-math": "1.0.0-beta.0",
|
|
21
|
+
"@galacean/engine-rhi-webgl": "1.0.0-beta.0"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"b:types": "tsc"
|
package/types/GLTFLoader.d.ts
CHANGED
|
@@ -11,7 +11,10 @@ export declare class GLTFLoader extends Loader<GLTFResource> {
|
|
|
11
11
|
* GlTF loader params.
|
|
12
12
|
*/
|
|
13
13
|
export interface GLTFParams {
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @beta Now only contains vertex information, need to improve.
|
|
16
|
+
* Keep raw mesh data for glTF parser, default is false.
|
|
17
|
+
*/
|
|
15
18
|
keepMeshData: boolean;
|
|
16
19
|
/** Custom glTF pipeline. */
|
|
17
20
|
pipeline: GLTFPipeline;
|
|
@@ -5,15 +5,11 @@ import { BufferInfo, GLTFParserContext } from "./parser/GLTFParserContext";
|
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class GLTFUtils {
|
|
9
9
|
static floatBufferToVector2Array(buffer: Float32Array): Vector2[];
|
|
10
10
|
static floatBufferToVector3Array(buffer: Float32Array): Vector3[];
|
|
11
11
|
static floatBufferToVector4Array(buffer: Float32Array): Vector4[];
|
|
12
12
|
static floatBufferToColorArray(buffer: Float32Array, isColor3: boolean): Color[];
|
|
13
|
-
/**
|
|
14
|
-
* Parse binary text for glb loader.
|
|
15
|
-
*/
|
|
16
|
-
static decodeText(array: Uint8Array): string;
|
|
17
13
|
/**
|
|
18
14
|
* Get the number of bytes occupied by accessor type.
|
|
19
15
|
*/
|
|
@@ -40,8 +36,6 @@ export declare class GLTFUtil {
|
|
|
40
36
|
* Load image buffer
|
|
41
37
|
*/
|
|
42
38
|
static loadImageBuffer(imageBuffer: ArrayBuffer, type: string): Promise<HTMLImageElement>;
|
|
43
|
-
static isAbsoluteUrl(url: string): boolean;
|
|
44
|
-
static parseRelativeUrl(baseUrl: string, relativeUrl: string): string;
|
|
45
39
|
/**
|
|
46
40
|
* Parse the glb format.
|
|
47
41
|
*/
|
|
@@ -139,11 +139,11 @@ export interface IGalaceanMaterialRemap {
|
|
|
139
139
|
key?: string;
|
|
140
140
|
isClone?: boolean;
|
|
141
141
|
}
|
|
142
|
-
export interface
|
|
142
|
+
export interface IGalaceanAnimation {
|
|
143
143
|
events: {
|
|
144
144
|
time: number;
|
|
145
145
|
functionName: string;
|
|
146
146
|
parameter: any;
|
|
147
147
|
}[];
|
|
148
148
|
}
|
|
149
|
-
export type GLTFExtensionSchema = IKHRLightsPunctual_Light | IKHRDracoMeshCompression | IKHRMaterialsClearcoat | IKHRMaterialsIor | IKHRMaterialsUnlit | IKHRMaterialsPbrSpecularGlossiness | IKHRMaterialsSheen | IKHRMaterialsSpecular | IKHRMaterialsTransmission | IKHRMaterialsTranslucency | IKHRMaterialVariants_Mapping | IKHRMaterialVariants_Variants | IKHRTextureBasisU | IKHRTextureTransform | IKHRXmp | IKHRXmp_Node |
|
|
149
|
+
export type GLTFExtensionSchema = IKHRLightsPunctual_Light | IKHRDracoMeshCompression | IKHRMaterialsClearcoat | IKHRMaterialsIor | IKHRMaterialsUnlit | IKHRMaterialsPbrSpecularGlossiness | IKHRMaterialsSheen | IKHRMaterialsSpecular | IKHRMaterialsTransmission | IKHRMaterialsTranslucency | IKHRMaterialVariants_Mapping | IKHRMaterialVariants_Variants | IKHRTextureBasisU | IKHRTextureTransform | IKHRXmp | IKHRXmp_Node | IGalaceanAnimation | Object;
|
|
@@ -11,7 +11,7 @@ import "./KHR_materials_volume";
|
|
|
11
11
|
import "./KHR_mesh_quantization";
|
|
12
12
|
import "./KHR_texture_basisu";
|
|
13
13
|
import "./KHR_texture_transform";
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
14
|
+
import "./GALACEAN_materials_remap";
|
|
15
|
+
import "./GALACEAN_animation_event";
|
|
16
16
|
export { GLTFExtensionParser, GLTFExtensionMode } from "./GLTFExtensionParser";
|
|
17
17
|
export * from "./GLTFExtensionSchema";
|
package/types/gltf/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { GLTFPipeline } from "./GLTFPipeline";
|
|
2
2
|
export { GLTFResource } from "./GLTFResource";
|
|
3
|
-
export {
|
|
3
|
+
export { GLTFUtils } from "./GLTFUtils";
|
|
4
4
|
export * from "./parser";
|
|
5
5
|
export * from "./extensions/index";
|
|
6
6
|
export type { IMaterial, IMeshPrimitive, ITextureInfo, INode, GLTFExtensionOwnerSchema } from "./GLTFSchema";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AssetPromise } from "@galacean/engine-core";
|
|
2
|
-
import { GLTFResource } from "./GLTFResource";
|
|
3
|
-
import { ParserContext } from "./parser/ParserContext";
|
|
4
|
-
export declare class GLTFParser {
|
|
5
|
-
static defaultPipeline: GLTFParser;
|
|
6
|
-
private _pipes;
|
|
7
|
-
private constructor();
|
|
8
|
-
parse(context: ParserContext): AssetPromise<GLTFResource>;
|
|
9
|
-
}
|