babylonjs-serializers 5.1.0 → 5.4.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 +491 -82
- package/babylon.glTF2Serializer.js.map +1 -1
- package/babylon.glTF2Serializer.min.js +1 -1
- package/babylon.glTF2Serializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +110 -7
- package/babylonjs.serializers.js +506 -82
- 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 +253 -15
- package/package.json +3 -3
|
@@ -3,8 +3,13 @@ declare module "babylonjs-serializers/glTF/2.0/Extensions/index" {
|
|
|
3
3
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_texture_transform";
|
|
4
4
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_lights_punctual";
|
|
5
5
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_clearcoat";
|
|
6
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_iridescence";
|
|
6
7
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_sheen";
|
|
7
8
|
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_unlit";
|
|
9
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_ior";
|
|
10
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_specular";
|
|
11
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_volume";
|
|
12
|
+
export * from "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_transmission";
|
|
8
13
|
|
|
9
14
|
}
|
|
10
15
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_lights_punctual" {
|
|
@@ -77,6 +82,57 @@ export class KHR_materials_clearcoat implements IGLTFExporterExtensionV2 {
|
|
|
77
82
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
78
83
|
}
|
|
79
84
|
|
|
85
|
+
}
|
|
86
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_ior" {
|
|
87
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
88
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
89
|
+
import { Material } from "babylonjs/Materials/material";
|
|
90
|
+
/**
|
|
91
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_ior/README.md)
|
|
92
|
+
*/
|
|
93
|
+
export class KHR_materials_ior implements IGLTFExporterExtensionV2 {
|
|
94
|
+
/** Name of this extension */
|
|
95
|
+
readonly name: string;
|
|
96
|
+
/** Defines whether this extension is enabled */
|
|
97
|
+
enabled: boolean;
|
|
98
|
+
/** Defines whether this extension is required */
|
|
99
|
+
required: boolean;
|
|
100
|
+
private _wasUsed;
|
|
101
|
+
constructor();
|
|
102
|
+
dispose(): void;
|
|
103
|
+
/** @hidden */
|
|
104
|
+
get wasUsed(): boolean;
|
|
105
|
+
private _isExtensionEnabled;
|
|
106
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_iridescence" {
|
|
111
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
112
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
113
|
+
import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
114
|
+
import { Material } from "babylonjs/Materials/material";
|
|
115
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
*/
|
|
119
|
+
export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
120
|
+
/** Name of this extension */
|
|
121
|
+
readonly name: string;
|
|
122
|
+
/** Defines whether this extension is enabled */
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
/** Defines whether this extension is required */
|
|
125
|
+
required: boolean;
|
|
126
|
+
private _exporter;
|
|
127
|
+
private _wasUsed;
|
|
128
|
+
constructor(exporter: _Exporter);
|
|
129
|
+
dispose(): void;
|
|
130
|
+
/** @hidden */
|
|
131
|
+
get wasUsed(): boolean;
|
|
132
|
+
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
133
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
134
|
+
}
|
|
135
|
+
|
|
80
136
|
}
|
|
81
137
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_sheen" {
|
|
82
138
|
import { IMaterial } from "babylonjs-gltf2interface";
|
|
@@ -104,6 +160,64 @@ export class KHR_materials_sheen implements IGLTFExporterExtensionV2 {
|
|
|
104
160
|
postExportMaterialAsync(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
105
161
|
}
|
|
106
162
|
|
|
163
|
+
}
|
|
164
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_specular" {
|
|
165
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
166
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
167
|
+
import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
168
|
+
import { Material } from "babylonjs/Materials/material";
|
|
169
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
170
|
+
/**
|
|
171
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)
|
|
172
|
+
*/
|
|
173
|
+
export class KHR_materials_specular implements IGLTFExporterExtensionV2 {
|
|
174
|
+
/** Name of this extension */
|
|
175
|
+
readonly name: string;
|
|
176
|
+
/** Defines whether this extension is enabled */
|
|
177
|
+
enabled: boolean;
|
|
178
|
+
/** Defines whether this extension is required */
|
|
179
|
+
required: boolean;
|
|
180
|
+
private _exporter;
|
|
181
|
+
private _wasUsed;
|
|
182
|
+
constructor(exporter: _Exporter);
|
|
183
|
+
dispose(): void;
|
|
184
|
+
/** @hidden */
|
|
185
|
+
get wasUsed(): boolean;
|
|
186
|
+
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
187
|
+
private _isExtensionEnabled;
|
|
188
|
+
private _hasTexturesExtension;
|
|
189
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
}
|
|
193
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_transmission" {
|
|
194
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
195
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
196
|
+
import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
197
|
+
import { Material } from "babylonjs/Materials/material";
|
|
198
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
199
|
+
/**
|
|
200
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_transmission/README.md)
|
|
201
|
+
*/
|
|
202
|
+
export class KHR_materials_transmission implements IGLTFExporterExtensionV2 {
|
|
203
|
+
/** Name of this extension */
|
|
204
|
+
readonly name: string;
|
|
205
|
+
/** Defines whether this extension is enabled */
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
/** Defines whether this extension is required */
|
|
208
|
+
required: boolean;
|
|
209
|
+
private _exporter;
|
|
210
|
+
private _wasUsed;
|
|
211
|
+
constructor(exporter: _Exporter);
|
|
212
|
+
dispose(): void;
|
|
213
|
+
/** @hidden */
|
|
214
|
+
get wasUsed(): boolean;
|
|
215
|
+
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
216
|
+
private _isExtensionEnabled;
|
|
217
|
+
private _hasTexturesExtension;
|
|
218
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
219
|
+
}
|
|
220
|
+
|
|
107
221
|
}
|
|
108
222
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_unlit" {
|
|
109
223
|
import { IMaterial } from "babylonjs-gltf2interface";
|
|
@@ -127,6 +241,35 @@ export class KHR_materials_unlit implements IGLTFExporterExtensionV2 {
|
|
|
127
241
|
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
128
242
|
}
|
|
129
243
|
|
|
244
|
+
}
|
|
245
|
+
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_materials_volume" {
|
|
246
|
+
import { IMaterial } from "babylonjs-gltf2interface";
|
|
247
|
+
import { IGLTFExporterExtensionV2 } from "babylonjs-serializers/glTF/2.0/glTFExporterExtension";
|
|
248
|
+
import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
249
|
+
import { Material } from "babylonjs/Materials/material";
|
|
250
|
+
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
251
|
+
/**
|
|
252
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_volume/README.md)
|
|
253
|
+
*/
|
|
254
|
+
export class KHR_materials_volume implements IGLTFExporterExtensionV2 {
|
|
255
|
+
/** Name of this extension */
|
|
256
|
+
readonly name: string;
|
|
257
|
+
/** Defines whether this extension is enabled */
|
|
258
|
+
enabled: boolean;
|
|
259
|
+
/** Defines whether this extension is required */
|
|
260
|
+
required: boolean;
|
|
261
|
+
private _exporter;
|
|
262
|
+
private _wasUsed;
|
|
263
|
+
constructor(exporter: _Exporter);
|
|
264
|
+
dispose(): void;
|
|
265
|
+
/** @hidden */
|
|
266
|
+
get wasUsed(): boolean;
|
|
267
|
+
postExportMaterialAdditionalTextures?(context: string, node: IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
268
|
+
private _isExtensionEnabled;
|
|
269
|
+
private _hasTexturesExtension;
|
|
270
|
+
postExportMaterialAsync?(context: string, node: IMaterial, babylonMaterial: Material): Promise<IMaterial>;
|
|
271
|
+
}
|
|
272
|
+
|
|
130
273
|
}
|
|
131
274
|
declare module "babylonjs-serializers/glTF/2.0/Extensions/KHR_texture_transform" {
|
|
132
275
|
import { ITextureInfo } from "babylonjs-gltf2interface";
|
|
@@ -937,7 +1080,6 @@ import { _Exporter } from "babylonjs-serializers/glTF/2.0/glTFExporter";
|
|
|
937
1080
|
import { Material } from "babylonjs/Materials/material";
|
|
938
1081
|
import { StandardMaterial } from "babylonjs/Materials/standardMaterial";
|
|
939
1082
|
import { PBRBaseMaterial } from "babylonjs/Materials/PBR/pbrBaseMaterial";
|
|
940
|
-
import { PBRMetallicRoughnessMaterial } from "babylonjs/Materials/PBR/pbrMetallicRoughnessMaterial";
|
|
941
1083
|
/**
|
|
942
1084
|
* Utility methods for working with glTF material conversion properties. This class should only be used internally
|
|
943
1085
|
* @hidden
|
|
@@ -1019,13 +1161,6 @@ export class _GLTFMaterialExporter {
|
|
|
1019
1161
|
*/
|
|
1020
1162
|
_convertStandardMaterialAsync(babylonStandardMaterial: StandardMaterial, mimeType: ImageMimeType, hasTextureCoords: boolean): Promise<IMaterial>;
|
|
1021
1163
|
private _finishMaterial;
|
|
1022
|
-
/**
|
|
1023
|
-
* Converts a Babylon PBR Metallic Roughness Material to a glTF Material
|
|
1024
|
-
* @param babylonPBRMetalRoughMaterial BJS PBR Metallic Roughness Material
|
|
1025
|
-
* @param mimeType mime type to use for the textures
|
|
1026
|
-
* @param hasTextureCoords specifies if texture coordinates are present on the submesh to determine if textures should be applied
|
|
1027
|
-
*/
|
|
1028
|
-
_convertPBRMetallicRoughnessMaterialAsync(babylonPBRMetalRoughMaterial: PBRMetallicRoughnessMaterial, mimeType: ImageMimeType, hasTextureCoords: boolean): Promise<IMaterial>;
|
|
1029
1164
|
/**
|
|
1030
1165
|
* Converts an image typed array buffer to a base64 image
|
|
1031
1166
|
* @param buffer typed array buffer
|
|
@@ -1497,6 +1632,47 @@ declare module BABYLON {
|
|
|
1497
1632
|
}
|
|
1498
1633
|
|
|
1499
1634
|
|
|
1635
|
+
/**
|
|
1636
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_ior/README.md)
|
|
1637
|
+
*/
|
|
1638
|
+
export class KHR_materials_ior implements IGLTFExporterExtensionV2 {
|
|
1639
|
+
/** Name of this extension */
|
|
1640
|
+
readonly name = "KHR_materials_ior";
|
|
1641
|
+
/** Defines whether this extension is enabled */
|
|
1642
|
+
enabled: boolean;
|
|
1643
|
+
/** Defines whether this extension is required */
|
|
1644
|
+
required: boolean;
|
|
1645
|
+
private _wasUsed;
|
|
1646
|
+
constructor();
|
|
1647
|
+
dispose(): void;
|
|
1648
|
+
/** @hidden */
|
|
1649
|
+
get wasUsed(): boolean;
|
|
1650
|
+
private _isExtensionEnabled;
|
|
1651
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* @hidden
|
|
1657
|
+
*/
|
|
1658
|
+
export class KHR_materials_iridescence implements IGLTFExporterExtensionV2 {
|
|
1659
|
+
/** Name of this extension */
|
|
1660
|
+
readonly name = "KHR_materials_iridescence";
|
|
1661
|
+
/** Defines whether this extension is enabled */
|
|
1662
|
+
enabled: boolean;
|
|
1663
|
+
/** Defines whether this extension is required */
|
|
1664
|
+
required: boolean;
|
|
1665
|
+
private _exporter;
|
|
1666
|
+
private _wasUsed;
|
|
1667
|
+
constructor(exporter: _Exporter);
|
|
1668
|
+
dispose(): void;
|
|
1669
|
+
/** @hidden */
|
|
1670
|
+
get wasUsed(): boolean;
|
|
1671
|
+
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1672
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
|
|
1500
1676
|
/**
|
|
1501
1677
|
* @hidden
|
|
1502
1678
|
*/
|
|
@@ -1518,6 +1694,52 @@ declare module BABYLON {
|
|
|
1518
1694
|
}
|
|
1519
1695
|
|
|
1520
1696
|
|
|
1697
|
+
/**
|
|
1698
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_specular/README.md)
|
|
1699
|
+
*/
|
|
1700
|
+
export class KHR_materials_specular implements IGLTFExporterExtensionV2 {
|
|
1701
|
+
/** Name of this extension */
|
|
1702
|
+
readonly name = "KHR_materials_specular";
|
|
1703
|
+
/** Defines whether this extension is enabled */
|
|
1704
|
+
enabled: boolean;
|
|
1705
|
+
/** Defines whether this extension is required */
|
|
1706
|
+
required: boolean;
|
|
1707
|
+
private _exporter;
|
|
1708
|
+
private _wasUsed;
|
|
1709
|
+
constructor(exporter: _Exporter);
|
|
1710
|
+
dispose(): void;
|
|
1711
|
+
/** @hidden */
|
|
1712
|
+
get wasUsed(): boolean;
|
|
1713
|
+
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1714
|
+
private _isExtensionEnabled;
|
|
1715
|
+
private _hasTexturesExtension;
|
|
1716
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_transmission/README.md)
|
|
1722
|
+
*/
|
|
1723
|
+
export class KHR_materials_transmission implements IGLTFExporterExtensionV2 {
|
|
1724
|
+
/** Name of this extension */
|
|
1725
|
+
readonly name = "KHR_materials_transmission";
|
|
1726
|
+
/** Defines whether this extension is enabled */
|
|
1727
|
+
enabled: boolean;
|
|
1728
|
+
/** Defines whether this extension is required */
|
|
1729
|
+
required: boolean;
|
|
1730
|
+
private _exporter;
|
|
1731
|
+
private _wasUsed;
|
|
1732
|
+
constructor(exporter: _Exporter);
|
|
1733
|
+
dispose(): void;
|
|
1734
|
+
/** @hidden */
|
|
1735
|
+
get wasUsed(): boolean;
|
|
1736
|
+
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1737
|
+
private _isExtensionEnabled;
|
|
1738
|
+
private _hasTexturesExtension;
|
|
1739
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
|
|
1521
1743
|
/**
|
|
1522
1744
|
* @hidden
|
|
1523
1745
|
*/
|
|
@@ -1537,6 +1759,29 @@ declare module BABYLON {
|
|
|
1537
1759
|
}
|
|
1538
1760
|
|
|
1539
1761
|
|
|
1762
|
+
/**
|
|
1763
|
+
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_volume/README.md)
|
|
1764
|
+
*/
|
|
1765
|
+
export class KHR_materials_volume implements IGLTFExporterExtensionV2 {
|
|
1766
|
+
/** Name of this extension */
|
|
1767
|
+
readonly name = "KHR_materials_volume";
|
|
1768
|
+
/** Defines whether this extension is enabled */
|
|
1769
|
+
enabled: boolean;
|
|
1770
|
+
/** Defines whether this extension is required */
|
|
1771
|
+
required: boolean;
|
|
1772
|
+
private _exporter;
|
|
1773
|
+
private _wasUsed;
|
|
1774
|
+
constructor(exporter: _Exporter);
|
|
1775
|
+
dispose(): void;
|
|
1776
|
+
/** @hidden */
|
|
1777
|
+
get wasUsed(): boolean;
|
|
1778
|
+
postExportMaterialAdditionalTextures?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): BaseTexture[];
|
|
1779
|
+
private _isExtensionEnabled;
|
|
1780
|
+
private _hasTexturesExtension;
|
|
1781
|
+
postExportMaterialAsync?(context: string, node: BABYLON.GLTF2.IMaterial, babylonMaterial: Material): Promise<BABYLON.GLTF2.IMaterial>;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
|
|
1540
1785
|
/**
|
|
1541
1786
|
* @hidden
|
|
1542
1787
|
*/
|
|
@@ -2375,13 +2620,6 @@ declare module BABYLON {
|
|
|
2375
2620
|
*/
|
|
2376
2621
|
_convertStandardMaterialAsync(babylonStandardMaterial: StandardMaterial, mimeType: BABYLON.GLTF2.ImageMimeType, hasTextureCoords: boolean): Promise<BABYLON.GLTF2.IMaterial>;
|
|
2377
2622
|
private _finishMaterial;
|
|
2378
|
-
/**
|
|
2379
|
-
* Converts a Babylon PBR Metallic Roughness Material to a glTF Material
|
|
2380
|
-
* @param babylonPBRMetalRoughMaterial BJS PBR Metallic Roughness Material
|
|
2381
|
-
* @param mimeType mime type to use for the textures
|
|
2382
|
-
* @param hasTextureCoords specifies if texture coordinates are present on the submesh to determine if textures should be applied
|
|
2383
|
-
*/
|
|
2384
|
-
_convertPBRMetallicRoughnessMaterialAsync(babylonPBRMetalRoughMaterial: PBRMetallicRoughnessMaterial, mimeType: BABYLON.GLTF2.ImageMimeType, hasTextureCoords: boolean): Promise<BABYLON.GLTF2.IMaterial>;
|
|
2385
2623
|
/**
|
|
2386
2624
|
* Converts an image typed array buffer to a base64 image
|
|
2387
2625
|
* @param buffer typed array buffer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-serializers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"main": "babylonjs.serializers.js",
|
|
5
5
|
"types": "babylonjs.serializers.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
18
|
-
"babylonjs-gltf2interface": "^5.
|
|
17
|
+
"babylonjs": "^5.4.0",
|
|
18
|
+
"babylonjs-gltf2interface": "^5.4.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|