StaticUInt8StaticaccessStaticaccessAccesses 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
StaticaddStaticarrayStaticatobStaticbase64StaticbtoaStaticcalcStaticcopyCopies 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
StaticcopyCopies 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
StaticcopyCopies 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
StaticcopyCopies 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
StaticcreateStaticcreateCreates default options for glTF loading operations.
Default GltfLoadOption configuration object
StaticcreateStaticcreateStaticdataStaticdetectDetects 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
StaticfetchStaticgetCreates 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
StaticgetCreates 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
StaticgetStaticgetStaticgetStaticgetStaticgetResizes 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
StaticisStaticloadLoads 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
StaticnormalizedStaticnormalizedStaticnormalizedStaticnormalizedStaticstringStaticstringStatictakeExtracts 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
StatictoCRC32Staticuint8Staticuint8
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.