@babylonjs/serializers
Advanced tools
Comparing version 4.0.0-alpha.19 to 4.0.0-alpha.20
import { Vector3, Quaternion } from "@babylonjs/core/Maths/math"; | ||
import { Tools } from "@babylonjs/core/Misc/tools"; | ||
import { Animation, AnimationKeyInterpolation } from "@babylonjs/core/Animations/animation"; | ||
import { Animation } from "@babylonjs/core/Animations/animation"; | ||
import { Mesh } from "@babylonjs/core/Meshes/mesh"; | ||
import { _GLTFUtilities } from "./glTFUtilities"; | ||
import { AnimationKeyInterpolation } from '@babylonjs/core/Animations/animationKey'; | ||
/** | ||
@@ -7,0 +8,0 @@ * @hidden |
@@ -7,3 +7,3 @@ { | ||
"description": "The Babylon.js serializers library is an extension you can use to serialize Babylon scenes.", | ||
"version": "4.0.0-alpha.19", | ||
"version": "4.0.0-alpha.20", | ||
"repository": { | ||
@@ -84,4 +84,4 @@ "type": "git", | ||
"dependencies": { | ||
"@babylonjs/core": "4.0.0-alpha.19", | ||
"babylonjs-gltf2interface": "4.0.0-alpha.19", | ||
"@babylonjs/core": "4.0.0-alpha.20", | ||
"babylonjs-gltf2interface": "4.0.0-alpha.20", | ||
"tslib": "^1.9.3" | ||
@@ -88,0 +88,0 @@ }, |
@@ -6,38 +6,25 @@ Babylon.js Serializers | ||
## CDN | ||
Compiled js files (minified and source) are offered on our public CDN here: | ||
* https://preview.babylonjs.com/serializers/babylonjs.serializers.js | ||
* https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.serializers.min.js | ||
## NPM | ||
To install using npm : | ||
``` | ||
npm install --save babylonjs babylonjs-serializers | ||
npm install --save @babylonjs/core @babylonjs/serializers | ||
``` | ||
If using TypeScript, the typing needs to be added to tsconfig.json: | ||
# How to use | ||
Afterwards it can be imported to the your project using: | ||
``` | ||
.... | ||
"types": [ | ||
"babylonjs", | ||
"babylonjs-serializers", | ||
"oneMoreDependencyThatIReallyNeed" | ||
], | ||
.... | ||
import { GLTF2Export } from '@babylonjs/serializers/glTF'; | ||
``` | ||
Afterwards it can be imported to the project using: | ||
And used as usual: | ||
``` | ||
import * as BABYLON from 'babylonjs'; | ||
import from 'babylonjs-serializers'; | ||
GLTF2Export.GLTFAsync(scene, "fileName").then((gltf) => { | ||
gltf.downloadFiles(); | ||
}); | ||
``` | ||
This will extend Babylon's namespace with the serializers currently available. | ||
For more information you can have a look at our [our ES6 dedicated documentation](https://doc.babylonjs.com/features/es6_support) and the [gltf exporter documentation](https://doc.babylonjs.com/extensions/gltfexporter). | ||
Using webpack to package your project will use the minified js file. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4789
577825
30
+ Added@babylonjs/core@4.0.0-alpha.20(transitive)
+ Addedbabylonjs-gltf2interface@4.0.0-alpha.20(transitive)
- Removed@babylonjs/core@4.0.0-alpha.19(transitive)
- Removedbabylonjs-gltf2interface@4.0.0-alpha.19(transitive)