@gltf-transform/core
Advanced tools
Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4
@@ -38,3 +38,3 @@ import { Nullable, PropertyType, TypedArray } from '../constants.js'; | ||
* .setType(Accessor.Type.VEC3) | ||
* .setBuffer(doc.listBuffers()[0]); | ||
* .setBuffer(doc.getRoot().listBuffers()[0]); | ||
* | ||
@@ -212,3 +212,3 @@ * accessor.getCount(); // → 4 | ||
/** Assigns the raw typed array underlying this accessor. */ | ||
setArray(array: TypedArray): this; | ||
setArray(array: TypedArray | null): this; | ||
/** Returns the total bytelength of this accessor, exclusive of padding. */ | ||
@@ -215,0 +215,0 @@ getByteLength(): number; |
{ | ||
"name": "@gltf-transform/core", | ||
"version": "4.0.0-alpha.3", | ||
"version": "4.0.0-alpha.4", | ||
"repository": "github:donmccurdy/glTF-Transform", | ||
@@ -54,3 +54,3 @@ "homepage": "https://gltf-transform.dev/", | ||
}, | ||
"gitHead": "f4c8a697fb8301f721edc4fb57aea30a42db1f77" | ||
"gitHead": "a062d5e78cec994d5ea01299fcab6357cd0a6452" | ||
} |
@@ -42,3 +42,3 @@ import { Nullable, PropertyType, TypedArray } from '../constants.js'; | ||
* .setType(Accessor.Type.VEC3) | ||
* .setBuffer(doc.listBuffers()[0]); | ||
* .setBuffer(doc.getRoot().listBuffers()[0]); | ||
* | ||
@@ -464,3 +464,3 @@ * accessor.getCount(); // → 4 | ||
/** Assigns the raw typed array underlying this accessor. */ | ||
public setArray(array: TypedArray): this { | ||
public setArray(array: TypedArray | null): this { | ||
this.set('componentType', array ? arrayToComponentType(array) : Accessor.ComponentType.FLOAT); | ||
@@ -467,0 +467,0 @@ this.set('array', array); |
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
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
2224382