Skip to content

Function: parseGIfTIScalars() ​

ts
function parseGIfTIScalars(xmlString, domParser?): 
  | Float32Array<ArrayBufferLike>
  | Float32Array<ArrayBufferLike>[];

Defined in: loaders.ts:351

Parse per-vertex scalar GIFTI data. Returns one vector, or vectors in DataArray order (then column order for N×T arrays). Supports ASCII, Base64 and bounded gzip/zlib payloads, both endians and row/column-major scalar matrices. Geometry/vector/label intents are rejected; all maps must share vertex count. NaN denotes missing scalar data; infinities and Float32 overflow are rejected.

Parameters ​

xmlString ​

string

domParser? ​

() => DOMParser

Returns ​

| Float32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike>[]

Released under the MIT License.