@gltf-transform/extensions
Advanced tools
Comparing version 4.0.0-alpha.13 to 4.0.0-alpha.14
@@ -1,7 +0,5 @@ | ||
import { Accessor, ExtensionProperty, IProperty, Nullable, PropertyType } from '@gltf-transform/core'; | ||
import { Accessor, ExtensionProperty, IProperty, Nullable, PropertyType, RefMap } from '@gltf-transform/core'; | ||
import { EXT_MESH_GPU_INSTANCING } from '../constants.js'; | ||
interface IInstancedMesh extends IProperty { | ||
attributes: { | ||
[key: string]: Accessor; | ||
}; | ||
attributes: RefMap<Accessor>; | ||
} | ||
@@ -8,0 +6,0 @@ export declare const INSTANCE_ATTRIBUTE = "INSTANCE_ATTRIBUTE"; |
@@ -1,6 +0,6 @@ | ||
import { ExtensionProperty, IProperty, Nullable, PropertyType } from '@gltf-transform/core'; | ||
import { ExtensionProperty, IProperty, Nullable, PropertyType, RefSet } from '@gltf-transform/core'; | ||
import { KHR_MATERIALS_VARIANTS } from '../constants.js'; | ||
import type { Mapping } from './mapping.js'; | ||
interface IMappingList extends IProperty { | ||
mappings: Mapping[]; | ||
mappings: RefSet<Mapping>; | ||
} | ||
@@ -7,0 +7,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ExtensionProperty, IProperty, Material, Nullable } from '@gltf-transform/core'; | ||
import { ExtensionProperty, IProperty, Material, Nullable, RefSet } from '@gltf-transform/core'; | ||
import { KHR_MATERIALS_VARIANTS } from '../constants.js'; | ||
@@ -6,3 +6,3 @@ import type { Variant } from './variant.js'; | ||
material: Material; | ||
variants: Variant[]; | ||
variants: RefSet<Variant>; | ||
} | ||
@@ -9,0 +9,0 @@ /** |
{ | ||
"name": "@gltf-transform/extensions", | ||
"version": "4.0.0-alpha.13", | ||
"version": "4.0.0-alpha.14", | ||
"repository": "github:donmccurdy/glTF-Transform", | ||
@@ -38,3 +38,3 @@ "homepage": "https://gltf-transform.dev/extensions.html", | ||
"dependencies": { | ||
"@gltf-transform/core": "^4.0.0-alpha.13", | ||
"@gltf-transform/core": "^4.0.0-alpha.14", | ||
"ktx-parse": "^0.7.0" | ||
@@ -48,3 +48,3 @@ }, | ||
], | ||
"gitHead": "e1040fa15cba3d6c753047e0a974ed3b4176e4d5" | ||
"gitHead": "c1cb498efc512eb2737f27d135225f125012e31f" | ||
} |
@@ -1,6 +0,6 @@ | ||
import { Accessor, ExtensionProperty, IProperty, Nullable, PropertyType } from '@gltf-transform/core'; | ||
import { Accessor, ExtensionProperty, IProperty, Nullable, PropertyType, RefMap } from '@gltf-transform/core'; | ||
import { EXT_MESH_GPU_INSTANCING } from '../constants.js'; | ||
interface IInstancedMesh extends IProperty { | ||
attributes: { [key: string]: Accessor }; | ||
attributes: RefMap<Accessor>; | ||
} | ||
@@ -27,3 +27,3 @@ | ||
protected getDefaults(): Nullable<IInstancedMesh> { | ||
return Object.assign(super.getDefaults() as IProperty, { attributes: {} }); | ||
return Object.assign(super.getDefaults() as IProperty, { attributes: new RefMap<Accessor>() }); | ||
} | ||
@@ -30,0 +30,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ExtensionProperty, IProperty, Nullable, PropertyType } from '@gltf-transform/core'; | ||
import { ExtensionProperty, IProperty, Nullable, PropertyType, RefSet } from '@gltf-transform/core'; | ||
import { KHR_MATERIALS_VARIANTS } from '../constants.js'; | ||
@@ -6,3 +6,3 @@ import type { Mapping } from './mapping.js'; | ||
interface IMappingList extends IProperty { | ||
mappings: Mapping[]; | ||
mappings: RefSet<Mapping>; | ||
} | ||
@@ -26,3 +26,3 @@ | ||
protected getDefaults(): Nullable<IMappingList> { | ||
return Object.assign(super.getDefaults() as IProperty, { mappings: [] }); | ||
return Object.assign(super.getDefaults() as IProperty, { mappings: new RefSet<Mapping>() }); | ||
} | ||
@@ -29,0 +29,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ExtensionProperty, IProperty, Material, Nullable } from '@gltf-transform/core'; | ||
import { ExtensionProperty, IProperty, Material, Nullable, RefSet } from '@gltf-transform/core'; | ||
import { KHR_MATERIALS_VARIANTS } from '../constants.js'; | ||
@@ -7,3 +7,3 @@ import type { Variant } from './variant.js'; | ||
material: Material; | ||
variants: Variant[]; | ||
variants: RefSet<Variant>; | ||
} | ||
@@ -27,3 +27,3 @@ | ||
protected getDefaults(): Nullable<IMapping> { | ||
return Object.assign(super.getDefaults() as IProperty, { material: null, variants: [] }); | ||
return Object.assign(super.getDefaults() as IProperty, { material: null, variants: new RefSet<Variant>() }); | ||
} | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1685311
22854