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

    Interface EngineModule

    The shared base every per-engine module satisfies. It is the common host surface the shared core (Handle, HandleCache, Selection, GpuDevice, Viewport) is generic over, so the three concrete modules — DocumentModule, SpreadsheetModule, PresentationModule — expose one identical shape. Each is attached through its own static attach(wasm, options?) and carries exactly one engine facade (.documents, .spreadsheets, or .presentations).

    interface EngineModule {
        device: GpuDevice;
        poisonDestroyed: boolean;
        createViewport(
            canvas: HTMLCanvasElement | OffscreenCanvas,
            options?: ViewportOptions,
        ): Promise<Viewport>;
        detach(): void;
        _copy(): void;
        _cut(): void;
        _paste(): void;
        _notifyChange(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    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 open model, detach every viewport, and restore the global device hooks.

      Returns void

    • Returns void

    • Returns void

    • Returns void