Static
UInt8Static
accessStatic
accessAccesses binary data from a buffer view and converts it to an image data URL.
Index of the buffer view in the JSON
JSON object containing buffer view information
The source buffer data
MIME type of the image
Data URL string for the image
Static
addStatic
arrayStatic
atobStatic
base64Static
btoaStatic
calcStatic
copyCopies data from source ArrayBuffer to destination ArrayBuffer.
Copy configuration object
Number of bytes to copy
Destination ArrayBuffer
Byte offset in destination buffer (default: 0)
Source ArrayBuffer
Byte offset in source buffer
The destination ArrayBuffer
Static
copyCopies data using 4-byte aligned operations from source to destination ArrayBuffer.
Copy configuration object
Number of bytes to copy (must be 4-byte aligned)
Destination ArrayBuffer
Byte offset in destination buffer (must be 4-byte aligned)
Source ArrayBuffer
Byte offset in source buffer (must be 4-byte aligned)
The destination ArrayBuffer
Static
copyCopies data using 4-byte aligned operations with padding to achieve 4-byte alignment.
Copy configuration object
Number of bytes to copy
Destination ArrayBuffer
Byte offset in destination buffer
Source ArrayBuffer
Byte offset in source buffer
The destination ArrayBuffer
Static
copyCopies data from source ArrayBuffer to destination ArrayBuffer with padding if needed.
Copy configuration object
Number of bytes to copy
Destination ArrayBuffer
Byte offset in destination buffer
Source ArrayBuffer
Byte offset in source buffer
The destination ArrayBuffer
Static
createStatic
createCreates default options for glTF loading operations.
Default GltfLoadOption configuration object
Static
createStatic
createStatic
dataStatic
detectDetects if an image contains transparent pixels below a specified threshold.
The image to analyze (HTMLImageElement, HTMLCanvasElement, or ImageData)
Alpha threshold value (default: 1.0)
True if transparent pixels are found, false otherwise
Static
fetchStatic
getCreates a copy of an ArrayBuffer with specified parameters.
Copy configuration object
Number of bytes to copy
Byte offset in destination buffer
Source ArrayBuffer
Byte offset in source buffer
Copied ArrayBuffer
Static
getCreates a copy of an ArrayBuffer using 4-byte aligned operations.
Copy configuration object
Number of bytes to copy (must be 4-byte aligned)
Byte offset in destination buffer (must be 4-byte aligned)
Source ArrayBuffer
Byte offset in source buffer (must be 4-byte aligned)
Copied ArrayBuffer
Static
getStatic
getStatic
getStatic
getStatic
getResizes an image to fit within specified dimensions while maintaining aspect ratio.
The source HTMLImageElement
Maximum size for the largest dimension
Tuple containing the resized canvas, width, and height
Static
isStatic
loadLoads a resource asynchronously with support for both binary and text data.
URI of the resource to load
Whether to load as binary data
Callback function for successful loading
Callback function for error handling
Promise that resolves with the loaded resource
Static
normalizedStatic
normalizedStatic
normalizedStatic
normalizedStatic
stringStatic
stringStatic
takeExtracts a Uint8Array from a buffer view based on JSON specification.
RnM2 JSON object containing buffer view information
Index of the buffer view
The source buffer data
Uint8Array view of the specified buffer region
Static
toCRC32Static
uint8Static
uint8
Utility class for data manipulation, conversion, and processing operations. Provides methods for handling various data formats including ArrayBuffer, Uint8Array, base64 encoding/decoding, image processing, and file operations.