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

    Interface PresentationEngine

    The presentation surface a WebDecks engine module exposes.

    interface PresentationEngine {
        open(): Promise<Presentation>;
        create(): Promise<Presentation>;
        import(
            bytes: Uint8Array,
            format?: "webdeck" | "json",
        ): Promise<Presentation>;
    }
    Index
    • Open the deck (a default deck if the engine has none yet).

      Returns Promise<Presentation>

    • Open a deck from encoded bytes. "webdeck" is the native lossless container; "json" is the human-readable deck.json scene. PPTX/ODP/Keynote import runs in the separate wd_io_engine module (a later JS bridge), not this editor module.

      Parameters

      • bytes: Uint8Array
      • Optionalformat: "webdeck" | "json"

      Returns Promise<Presentation>