@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Class SpreadsheetModule

    A loaded WebSheets engine module, driven through its stable, versioned C ABI (wsheet_sdk_*). SpreadsheetModule.attach asserts the ABI version, forwards any license/host-device option, and installs the device-lifecycle hooks. The workbook facade is SpreadsheetModule.spreadsheets.

    const wasm = await createSpreadsheetsEngine();     // the host loads the Emscripten factory
    const engine = await SpreadsheetModule.attach(wasm);
    const book = await engine.spreadsheets.create();
    const viewport = (await engine.createViewport(canvas)).start();

    Implements

    Index
    device: GpuDevice

    The engine's WebGPU device, adapter, queue, and readiness lifecycle.

    poisonDestroyed: boolean

    Whether destroyed wrappers are poisoned (see AttachOptions.poisonDestroyed).

    • Close the workbook, detach every viewport, and restore the global device hooks.

      Returns void