File loading primitive used by SDK loaders.
The io module wraps the file fetch step behind a single FileIO interface. The shipped implementation is BrowserFileIO, which fetches over HTTP(S) and returns a Blob.
io
Blob
arrayBuffer()
text()
json()
npm install @xeokit/sdk Copy
npm install @xeokit/sdk
import { BrowserFileIO } from "@xeokit/sdk/base/io";const io = new BrowserFileIO();const buffer = await io.load("./model.xgf");// pass `buffer` to an XGFLoader.load(...) Copy
import { BrowserFileIO } from "@xeokit/sdk/base/io";const io = new BrowserFileIO();const buffer = await io.load("./model.xgf");// pass `buffer` to an XGFLoader.load(...)
xeokit File I/O
File loading primitive used by SDK loaders.
The
iomodule wraps the file fetch step behind a single FileIO interface. The shipped implementation is BrowserFileIO, which fetches over HTTP(S) and returns aBlob.Features
arrayBuffer(),text(), andjson().Installation
Quick Start