Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babylonjs/serializers

Package Overview
Dependencies
Maintainers
1
Versions
552
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babylonjs/serializers - npm Package Compare versions

Comparing version 4.0.0-alpha.19 to 4.0.0-alpha.20

3

glTF/2.0/glTFAnimation.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc