@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-loader",
3
- "version": "1.0.0-alpha.6",
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-alpha.6",
19
- "@galacean/engine-math": "1.0.0-alpha.6",
20
- "@galacean/engine-rhi-webgl": "1.0.0-alpha.6",
21
- "@galacean/engine-draco": "1.0.0-alpha.6"
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"
@@ -11,7 +11,10 @@ export declare class GLTFLoader extends Loader<GLTFResource> {
11
11
  * GlTF loader params.
12
12
  */
13
13
  export interface GLTFParams {
14
- /** Keep raw mesh data for glTF parser, default is false. */
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 GLTFUtil {
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 IOasisAnimation {
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 | IOasisAnimation | Object;
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 "./Galacean_materials_remap";
15
- import "./OASIS_animation_event";
14
+ import "./GALACEAN_materials_remap";
15
+ import "./GALACEAN_animation_event";
16
16
  export { GLTFExtensionParser, GLTFExtensionMode } from "./GLTFExtensionParser";
17
17
  export * from "./GLTFExtensionSchema";
@@ -1,6 +1,6 @@
1
1
  export { GLTFPipeline } from "./GLTFPipeline";
2
2
  export { GLTFResource } from "./GLTFResource";
3
- export { GLTFUtil } from "./GLTFUtil";
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
- }