babylonjs-serializers 9.12.0 → 9.13.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/babylon.glTF2Serializer.js +1 -1
- package/babylon.glTF2Serializer.js.map +1 -1
- package/babylon.glTF2Serializer.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylon.usdzSerializer.js +1 -1
- package/babylon.usdzSerializer.js.map +1 -1
- package/babylon.usdzSerializer.min.js +1 -1
- package/babylon.usdzSerializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +12 -0
- package/babylonjs.serializers.js +1 -1
- package/babylonjs.serializers.js.map +1 -1
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +28 -0
- package/package.json +3 -3
|
@@ -22,6 +22,22 @@ export const ConvertHandednessMatrix: Matrix;
|
|
|
22
22
|
*/
|
|
23
23
|
export function IsNoopNode(node: Node, useRightHandedSystem: boolean): boolean;
|
|
24
24
|
|
|
25
|
+
}
|
|
26
|
+
declare module "babylonjs-serializers/exportImageUtils" {
|
|
27
|
+
import { ImageMimeType } from "babylonjs-gltf2interface";
|
|
28
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
29
|
+
import { Nullable } from "babylonjs/types";
|
|
30
|
+
export function GetFileExtensionFromMimeType(mimeType: ImageMimeType): string;
|
|
31
|
+
/**
|
|
32
|
+
* Gets cached image data from a texture's internal buffer, if available.
|
|
33
|
+
* @param babylonTexture texture to check for cached image data
|
|
34
|
+
* @returns image data and mime type if found; null otherwise
|
|
35
|
+
*/
|
|
36
|
+
export function GetCachedImageAsync(babylonTexture: BaseTexture): Promise<Nullable<{
|
|
37
|
+
data: ArrayBuffer;
|
|
38
|
+
mimeType: string;
|
|
39
|
+
}>>;
|
|
40
|
+
|
|
25
41
|
}
|
|
26
42
|
declare module "babylonjs-serializers/stl/stlSerializer" {
|
|
27
43
|
import { Mesh } from "babylonjs/Meshes/mesh";
|
|
@@ -3714,6 +3730,18 @@ declare namespace BABYLON {
|
|
|
3714
3730
|
export function IsNoopNode(node: Node, useRightHandedSystem: boolean): boolean;
|
|
3715
3731
|
|
|
3716
3732
|
|
|
3733
|
+
export function GetFileExtensionFromMimeType(mimeType: BABYLON.GLTF2.ImageMimeType): string;
|
|
3734
|
+
/**
|
|
3735
|
+
* Gets cached image data from a texture's internal buffer, if available.
|
|
3736
|
+
* @param babylonTexture texture to check for cached image data
|
|
3737
|
+
* @returns image data and mime type if found; null otherwise
|
|
3738
|
+
*/
|
|
3739
|
+
export function GetCachedImageAsync(babylonTexture: BaseTexture): Promise<Nullable<{
|
|
3740
|
+
data: ArrayBuffer;
|
|
3741
|
+
mimeType: string;
|
|
3742
|
+
}>>;
|
|
3743
|
+
|
|
3744
|
+
|
|
3717
3745
|
/**
|
|
3718
3746
|
* Class for generating STL data from a Babylon scene.
|
|
3719
3747
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-serializers",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.13.0",
|
|
4
4
|
"main": "babylonjs.serializers.min.js",
|
|
5
5
|
"types": "babylonjs.serializers.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"test:escheck": "es-check es6 ./babylonjs.serializers.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"babylonjs": "9.
|
|
20
|
-
"babylonjs-gltf2interface": "9.
|
|
19
|
+
"babylonjs": "9.13.0",
|
|
20
|
+
"babylonjs-gltf2interface": "9.13.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@dev/build-tools": "1.0.0",
|