babylonjs-serializers 8.2.0 → 8.2.2
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 +19 -15
- package/babylon.glTF2Serializer.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +2 -2
- package/babylonjs.serializers.js +19 -15
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +6 -6
- package/package.json +3 -3
|
@@ -75,7 +75,7 @@ import { FloatArray, DataArray, IndicesArray } from "babylonjs/types";
|
|
|
75
75
|
import { Vector4 } from "babylonjs/Maths/math.vector";
|
|
76
76
|
import { Quaternion, Vector3 } from "babylonjs/Maths/math.vector";
|
|
77
77
|
import { VertexBuffer } from "babylonjs/Buffers/buffer";
|
|
78
|
-
import {
|
|
78
|
+
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
79
79
|
import { Node } from "babylonjs/node";
|
|
80
80
|
/**
|
|
81
81
|
* Get the information necessary for enumerating a vertex buffer.
|
|
@@ -83,7 +83,7 @@ import { Node } from "babylonjs/node";
|
|
|
83
83
|
* @param meshes the meshes that use the vertex buffer
|
|
84
84
|
* @returns the information necessary to enumerate the vertex buffer
|
|
85
85
|
*/
|
|
86
|
-
export function GetVertexBufferInfo(vertexBuffer: VertexBuffer, meshes:
|
|
86
|
+
export function GetVertexBufferInfo(vertexBuffer: VertexBuffer, meshes: AbstractMesh[]): {
|
|
87
87
|
byteOffset: number;
|
|
88
88
|
byteStride: number;
|
|
89
89
|
componentCount: number;
|
|
@@ -234,7 +234,7 @@ declare module "babylonjs-serializers/glTF/2.0/glTFMorphTargetsUtilities" {
|
|
|
234
234
|
import { IBufferView, IAccessor } from "babylonjs-gltf2interface";
|
|
235
235
|
import { MorphTarget } from "babylonjs/Morph/morphTarget";
|
|
236
236
|
import { BufferManager } from "babylonjs-serializers/glTF/2.0/bufferManager";
|
|
237
|
-
import {
|
|
237
|
+
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
238
238
|
/**
|
|
239
239
|
* Interface to store morph target information.
|
|
240
240
|
* @internal
|
|
@@ -244,7 +244,7 @@ export interface IMorphTargetData {
|
|
|
244
244
|
influence: number;
|
|
245
245
|
name: string;
|
|
246
246
|
}
|
|
247
|
-
export function BuildMorphTargetBuffers(morphTarget: MorphTarget, mesh:
|
|
247
|
+
export function BuildMorphTargetBuffers(morphTarget: MorphTarget, mesh: AbstractMesh, bufferManager: BufferManager, bufferViews: IBufferView[], accessors: IAccessor[], convertToRightHanded: boolean): IMorphTargetData;
|
|
248
248
|
|
|
249
249
|
}
|
|
250
250
|
declare module "babylonjs-serializers/glTF/2.0/glTFMaterialExporter" {
|
|
@@ -1586,7 +1586,7 @@ declare module BABYLON {
|
|
|
1586
1586
|
* @param meshes the meshes that use the vertex buffer
|
|
1587
1587
|
* @returns the information necessary to enumerate the vertex buffer
|
|
1588
1588
|
*/
|
|
1589
|
-
export function GetVertexBufferInfo(vertexBuffer: VertexBuffer, meshes:
|
|
1589
|
+
export function GetVertexBufferInfo(vertexBuffer: VertexBuffer, meshes: AbstractMesh[]): {
|
|
1590
1590
|
byteOffset: number;
|
|
1591
1591
|
byteStride: number;
|
|
1592
1592
|
componentCount: number;
|
|
@@ -1737,7 +1737,7 @@ declare module BABYLON {
|
|
|
1737
1737
|
influence: number;
|
|
1738
1738
|
name: string;
|
|
1739
1739
|
}
|
|
1740
|
-
export function BuildMorphTargetBuffers(morphTarget: MorphTarget, mesh:
|
|
1740
|
+
export function BuildMorphTargetBuffers(morphTarget: MorphTarget, mesh: AbstractMesh, bufferManager: BufferManager, bufferViews: BABYLON.GLTF2.IBufferView[], accessors: BABYLON.GLTF2.IAccessor[], convertToRightHanded: boolean): IMorphTargetData;
|
|
1741
1741
|
|
|
1742
1742
|
|
|
1743
1743
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-serializers",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2",
|
|
4
4
|
"main": "babylonjs.serializers.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.2.
|
|
19
|
-
"babylonjs-gltf2interface": "^8.2.
|
|
18
|
+
"babylonjs": "^8.2.2",
|
|
19
|
+
"babylonjs-gltf2interface": "^8.2.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|