babylonjs-serializers 8.34.1 → 8.36.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.
@@ -312,7 +312,6 @@ export class GLTFMaterialExporter {
312
312
  getTextureInfo(babylonTexture: Nullable<BaseTexture>): Nullable<ITextureInfo>;
313
313
  exportStandardMaterialAsync(babylonStandardMaterial: StandardMaterial, hasUVs: boolean): Promise<number>;
314
314
  private _finishMaterialAsync;
315
- private _getImageDataAsync;
316
315
  /**
317
316
  * Resizes the two source textures to the same dimensions. If a texture is null, a default white texture is generated. If both textures are null, returns null
318
317
  * @param texture1 first texture to resize
@@ -328,7 +327,6 @@ export class GLTFMaterialExporter {
328
327
  * @param diffuseTexture texture used to store diffuse information
329
328
  * @param specularGlossinessTexture texture used to store specular and glossiness information
330
329
  * @param factors specular glossiness material factors
331
- * @param mimeType the mime type to use for the texture
332
330
  * @returns pbr metallic roughness interface or null
333
331
  */
334
332
  private _convertSpecularGlossinessTexturesToMetallicRoughnessAsync;
@@ -379,7 +377,7 @@ export class GLTFMaterialExporter {
379
377
  exportOpenPBRMaterialAsync(babylonOpenPBRMaterial: OpenPBRMaterial, hasUVs: boolean): Promise<number>;
380
378
  exportTextureAsync(babylonTexture: BaseTexture, overrideId?: Nullable<number>): Promise<Nullable<ITextureInfo>>;
381
379
  private _exportTextureImageAsync;
382
- private _exportImage;
380
+ private _exportImageAsync;
383
381
  private _exportTextureInfo;
384
382
  private _exportTextureSampler;
385
383
  }
@@ -457,7 +455,7 @@ export interface IGLTFExporterExtensionV2 extends IGLTFExporterExtension, IDispo
457
455
 
458
456
  }
459
457
  declare module "babylonjs-serializers/glTF/2.0/glTFExporter" {
460
- import { IBufferView, IAccessor, INode, IScene, IMesh, IMaterial, ITexture, IImage, ISampler, IAnimation, IMeshPrimitive, IGLTF, ITextureInfo, ISkin, ICamera, ImageMimeType } from "babylonjs-gltf2interface";
458
+ import { IBufferView, IAccessor, INode, IScene, IMesh, IMaterial, ITexture, IImage, ISampler, IAnimation, IMeshPrimitive, IGLTF, ITextureInfo, ISkin, ICamera } from "babylonjs-gltf2interface";
461
459
  import { Nullable } from "babylonjs/types";
462
460
  import { Node } from "babylonjs/node";
463
461
  import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
@@ -485,10 +483,7 @@ export class GLTFExporter {
485
483
  readonly _textures: ITexture[];
486
484
  readonly _babylonScene: Scene;
487
485
  readonly _imageData: {
488
- [fileName: string]: {
489
- data: ArrayBuffer;
490
- mimeType: ImageMimeType;
491
- };
486
+ [fileName: string]: Blob;
492
487
  };
493
488
  /**
494
489
  * Baked animation sample rate
@@ -2070,7 +2065,6 @@ declare module BABYLON {
2070
2065
  getTextureInfo(babylonTexture: Nullable<BaseTexture>): Nullable<BABYLON.GLTF2.ITextureInfo>;
2071
2066
  exportStandardMaterialAsync(babylonStandardMaterial: StandardMaterial, hasUVs: boolean): Promise<number>;
2072
2067
  private _finishMaterialAsync;
2073
- private _getImageDataAsync;
2074
2068
  /**
2075
2069
  * Resizes the two source textures to the same dimensions. If a texture is null, a default white texture is generated. If both textures are null, returns null
2076
2070
  * @param texture1 first texture to resize
@@ -2086,7 +2080,6 @@ declare module BABYLON {
2086
2080
  * @param diffuseTexture texture used to store diffuse information
2087
2081
  * @param specularGlossinessTexture texture used to store specular and glossiness information
2088
2082
  * @param factors specular glossiness material factors
2089
- * @param mimeType the mime type to use for the texture
2090
2083
  * @returns pbr metallic roughness interface or null
2091
2084
  */
2092
2085
  private _convertSpecularGlossinessTexturesToMetallicRoughnessAsync;
@@ -2137,7 +2130,7 @@ declare module BABYLON {
2137
2130
  exportOpenPBRMaterialAsync(babylonOpenPBRMaterial: OpenPBRMaterial, hasUVs: boolean): Promise<number>;
2138
2131
  exportTextureAsync(babylonTexture: BaseTexture, overrideId?: Nullable<number>): Promise<Nullable<BABYLON.GLTF2.ITextureInfo>>;
2139
2132
  private _exportTextureImageAsync;
2140
- private _exportImage;
2133
+ private _exportImageAsync;
2141
2134
  private _exportTextureInfo;
2142
2135
  private _exportTextureSampler;
2143
2136
  }
@@ -2222,10 +2215,7 @@ declare module BABYLON {
2222
2215
  readonly _textures: BABYLON.GLTF2.ITexture[];
2223
2216
  readonly _babylonScene: Scene;
2224
2217
  readonly _imageData: {
2225
- [fileName: string]: {
2226
- data: ArrayBuffer;
2227
- mimeType: BABYLON.GLTF2.ImageMimeType;
2228
- };
2218
+ [fileName: string]: Blob;
2229
2219
  };
2230
2220
  /**
2231
2221
  * Baked animation sample rate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-serializers",
3
- "version": "8.34.1",
3
+ "version": "8.36.0",
4
4
  "main": "babylonjs.serializers.min.js",
5
5
  "types": "babylonjs.serializers.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.serializers.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.34.1",
19
- "babylonjs-gltf2interface": "^8.34.1"
18
+ "babylonjs": "^8.36.0",
19
+ "babylonjs-gltf2interface": "^8.36.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",