babylonjs-gltf2interface
Advanced tools
Comparing version 4.0.0-alpha.17 to 4.0.0-alpha.18
@@ -10,2 +10,4 @@ /** | ||
* Module for glTF 2.0 Interface | ||
* @ignoreChildren | ||
* @ignore | ||
*/ | ||
@@ -856,2 +858,50 @@ declare module BABYLON.GLTF2 { | ||
} | ||
/** | ||
* Interface for glTF validation results | ||
*/ | ||
interface IGLTFValidationResults { | ||
info: { | ||
generator: string; | ||
hasAnimations: boolean; | ||
hasDefaultScene: boolean; | ||
hasMaterials: boolean; | ||
hasMorphTargets: boolean; | ||
hasSkins: boolean; | ||
hasTextures: boolean; | ||
maxAttributesUsed: number; | ||
primitivesCount: number | ||
}; | ||
issues: { | ||
messages: Array<string>; | ||
numErrors: number; | ||
numHints: number; | ||
numInfos: number; | ||
numWarnings: number; | ||
truncated: boolean | ||
}; | ||
mimeType: string; | ||
uri: string; | ||
validatedAt: string; | ||
validatorVersion: string; | ||
} | ||
/** | ||
* Interface for glTF validation options | ||
*/ | ||
interface IGLTFValidationOptions { | ||
uri?: string; | ||
externalResourceFunction?: (uri: string) => Promise<Uint8Array>; | ||
validateAccessorData?: boolean; | ||
maxIssues?: number; | ||
ignoredIssues?: Array<string>; | ||
severityOverrides?: Object; | ||
} | ||
/** | ||
* glTF validator object Tyyings | ||
*/ | ||
interface IGLTFValidatorTypings { | ||
validateString: (json: string, options?: IGLTFValidationOptions) => Promise<IGLTFValidationResults>; | ||
} | ||
} | ||
@@ -901,6 +951,6 @@ | ||
/** | ||
* glTF validator object | ||
* glTF validator object Tyyings | ||
*/ | ||
declare var GLTFValidator: { | ||
interface IGLTFValidatorTypings { | ||
validateString: (json: string, options?: IGLTFValidationOptions) => Promise<IGLTFValidationResults>; | ||
}; | ||
} |
{ | ||
"name": "babylonjs-gltf2interface", | ||
"description": "A typescript declaration of babylon's gltf2 inteface.", | ||
"version": "4.0.0-alpha.17", | ||
"version": "4.0.0-alpha.18", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
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
29426
947
20
31
7
138