babylonjs-loaders
Advanced tools
Comparing version 3.2.0-alpha0 to 3.2.0-alpha2
/// <reference types="babylonjs"/> | ||
declare module 'babylonjs-loaders' { | ||
@@ -130,2 +131,12 @@ export = BABYLON; | ||
interface IGLTFLoader extends IDisposable { | ||
coordinateSystemMode: GLTFLoaderCoordinateSystemMode; | ||
animationStartMode: GLTFLoaderAnimationStartMode; | ||
compileMaterials: boolean; | ||
useClipPlane: boolean; | ||
compileShadowGenerators: boolean; | ||
onDisposeObservable: Observable<IGLTFLoader>; | ||
onMeshLoadedObservable: Observable<AbstractMesh>; | ||
onTextureLoadedObservable: Observable<BaseTexture>; | ||
onMaterialLoadedObservable: Observable<Material>; | ||
onCompleteObservable: Observable<IGLTFLoader>; | ||
importMeshAsync: (meshesNames: any, scene: Scene, data: IGLTFLoaderData, rootUrl: string, onSuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onProgress?: (event: SceneLoaderProgressEvent) => void, onError?: (message: string, exception?: any) => void) => void; | ||
@@ -135,4 +146,4 @@ loadAsync: (scene: Scene, data: IGLTFLoaderData, rootUrl: string, onSuccess?: () => void, onProgress?: (event: SceneLoaderProgressEvent) => void, onError?: (message: string, exception?: any) => void) => void; | ||
class GLTFFileLoader implements IDisposable, ISceneLoaderPluginAsync, ISceneLoaderPluginFactory { | ||
static CreateGLTFLoaderV1: (parent: GLTFFileLoader) => IGLTFLoader; | ||
static CreateGLTFLoaderV2: (parent: GLTFFileLoader) => IGLTFLoader; | ||
static CreateGLTFLoaderV1: () => IGLTFLoader; | ||
static CreateGLTFLoaderV2: () => IGLTFLoader; | ||
/** | ||
@@ -143,3 +154,5 @@ * Raised when the asset has been parsed. | ||
*/ | ||
onParsed: (data: IGLTFLoaderData) => void; | ||
onParsedObservable: Observable<IGLTFLoaderData>; | ||
private _onParsedObserver; | ||
onParsed: (loaderData: IGLTFLoaderData) => void; | ||
static IncrementalLoading: boolean; | ||
@@ -170,2 +183,4 @@ static HomogeneousCoordinates: boolean; | ||
*/ | ||
onMeshLoadedObservable: Observable<AbstractMesh>; | ||
private _onMeshLoadedObserver; | ||
onMeshLoaded: (mesh: AbstractMesh) => void; | ||
@@ -175,7 +190,11 @@ /** | ||
*/ | ||
onTextureLoaded: (texture: BaseTexture) => void; | ||
onTextureLoadedObservable: Observable<BaseTexture>; | ||
private _onTextureLoadedObserver; | ||
onTextureLoaded: (Texture: BaseTexture) => void; | ||
/** | ||
* Raised when the loader creates a material after parsing the glTF properties of the material. | ||
*/ | ||
onMaterialLoaded: (material: Material) => void; | ||
onMaterialLoadedObservable: Observable<Material>; | ||
private _onMaterialLoadedObserver; | ||
onMaterialLoaded: (Material: Material) => void; | ||
/** | ||
@@ -186,3 +205,11 @@ * Raised when the asset is completely loaded, immediately before the loader is disposed. | ||
*/ | ||
onCompleteObservable: Observable<GLTFFileLoader>; | ||
private _onCompleteObserver; | ||
onComplete: () => void; | ||
/** | ||
* Raised when the loader is disposed. | ||
*/ | ||
onDisposeObservable: Observable<GLTFFileLoader>; | ||
private _onDisposeObserver; | ||
onDispose: () => void; | ||
private _loader; | ||
@@ -200,3 +227,3 @@ name: string; | ||
createPlugin(): ISceneLoaderPlugin | ISceneLoaderPluginAsync; | ||
private static _parse(data); | ||
private _parse(data); | ||
private _getLoader(loaderData); | ||
@@ -605,2 +632,12 @@ private static _parseBinary(data); | ||
static RegisterExtension(extension: GLTFLoaderExtension): void; | ||
coordinateSystemMode: GLTFLoaderCoordinateSystemMode; | ||
animationStartMode: GLTFLoaderAnimationStartMode; | ||
compileMaterials: boolean; | ||
useClipPlane: boolean; | ||
compileShadowGenerators: boolean; | ||
onDisposeObservable: Observable<IGLTFLoader>; | ||
onMeshLoadedObservable: Observable<AbstractMesh>; | ||
onTextureLoadedObservable: Observable<BaseTexture>; | ||
onMaterialLoadedObservable: Observable<Material>; | ||
onCompleteObservable: Observable<IGLTFLoader>; | ||
dispose(): void; | ||
@@ -941,2 +978,3 @@ importMeshAsync(meshesNames: any, scene: Scene, data: IGLTFLoaderData, rootUrl: string, onSuccess: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onProgress: (event: SceneLoaderProgressEvent) => void, onError: (message: string) => void): boolean; | ||
index: number; | ||
hasVertexAlpha: boolean; | ||
} | ||
@@ -1018,3 +1056,2 @@ interface IGLTFNode extends IGLTFChildRootProperty { | ||
private _disposed; | ||
private _parent; | ||
private _rootUrl; | ||
@@ -1037,3 +1074,12 @@ private _defaultMaterial; | ||
static RegisterExtension(extension: GLTFLoaderExtension): void; | ||
constructor(parent: GLTFFileLoader); | ||
coordinateSystemMode: GLTFLoaderCoordinateSystemMode; | ||
animationStartMode: GLTFLoaderAnimationStartMode; | ||
compileMaterials: boolean; | ||
useClipPlane: boolean; | ||
compileShadowGenerators: boolean; | ||
onDisposeObservable: Observable<IGLTFLoader>; | ||
onMeshLoadedObservable: Observable<AbstractMesh>; | ||
onTextureLoadedObservable: Observable<BaseTexture>; | ||
onMaterialLoadedObservable: Observable<Material>; | ||
onCompleteObservable: Observable<IGLTFLoader>; | ||
dispose(): void; | ||
@@ -1112,2 +1158,4 @@ importMeshAsync(meshesNames: any, scene: Scene, data: IGLTFLoaderData, rootUrl: string, onSuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, onProgress?: (event: SceneLoaderProgressEvent) => void, onError?: (message: string, exception?: any) => void): void; | ||
private _compileShadowGeneratorsAsync(onSuccess); | ||
private _abortRequests(); | ||
private _releaseResources(); | ||
} | ||
@@ -1114,0 +1162,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"description": "The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.", | ||
"version": "3.2.0-alpha0", | ||
"version": "3.2.0-alpha2", | ||
"repository": { | ||
@@ -31,3 +31,3 @@ "type": "git", | ||
"peerDependencies": { | ||
"babylonjs": ">=3.1.0-alpha" | ||
"babylonjs": ">=3.2.0-alpha" | ||
}, | ||
@@ -34,0 +34,0 @@ "engines": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
420590
6905