babylonjs-gltf2interface
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -859,3 +859,3 @@ /** | ||
/** | ||
* Interface for glTF validation results | ||
* The glTF validation results | ||
*/ | ||
@@ -889,3 +889,3 @@ interface IGLTFValidationResults { | ||
/** | ||
* Interface for glTF validation options | ||
* The glTF validation options | ||
*/ | ||
@@ -902,55 +902,8 @@ interface IGLTFValidationOptions { | ||
/** | ||
* glTF validator object Tyyings | ||
* The glTF validator object | ||
*/ | ||
interface IGLTFValidatorTypings { | ||
interface IGLTFValidator { | ||
validateBytes: (data: Uint8Array, options?: IGLTFValidationOptions) => Promise<IGLTFValidationResults>; | ||
validateString: (json: string, options?: IGLTFValidationOptions) => Promise<IGLTFValidationResults>; | ||
} | ||
} | ||
/** | ||
* 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>; | ||
} |
{ | ||
"name": "babylonjs-gltf2interface", | ||
"description": "A typescript declaration of babylon's gltf2 inteface.", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
28296
903