Whether this wrapper still refers to a live engine object.
Number of slides in the deck.
Total scene-node count across every slide (all node types).
The currently-shown slide's 0-based index (0 in a headless host).
The slide design height in pixels (1080 for 16:9, 1440 for 4:3).
The slide aspect ratio (width / height).
The deck's live selection (selected object count, primary object, current slide).
Whether an undo step is available (needs a live view's history).
Whether a redo step is available.
Reference equality is the identity test — prefer a === b. This is retained only for
the rare cross-realm case where two wrappers describe the same handle by value. Reads the
raw index so comparing a stale wrapper never throws.
A readable identity for logs and diagnostics, never [object Object].
Navigate to the index-th slide (needs a live view); chainable.
Append a new blank slide and return its wrapper. atIndex is accepted for
forward-compatibility but the slide is appended (positional insert is a later pass).
Undo one step; returns whether the history moved.
Redo one step; returns whether the history moved.
Begin a find session over the deck's text. flags OR together FindFlag options
(only match-case is honoured here). Returns a FindSession that navigates the
current slide to each match and drives replace.
Set the editor chrome theme (true light, false dark); chainable.
Load a deck from encoded bytes over the current deck. "webdeck" is the native
container; "json" the human-readable deck.json scene.
Export the deck. "webdeck" is the lossless native round-trip; "pptx" and "odp"
come from the real in-module serializers (no wd_io_engine hop). "pdf" serializes the
deck to a webdeck blob and renders it in the host-supplied wd_io_engine (see
PdfExportOptions); text uses the supplied fonts, not the live view's.
Export the deck. "webdeck" is the lossless native round-trip; "pptx" and "odp"
come from the real in-module serializers (no wd_io_engine hop). "pdf" serializes the
deck to a webdeck blob and renders it in the host-supplied wd_io_engine (see
PdfExportOptions); text uses the supplied fonts, not the live view's.
Close the deck handle and release its wrappers (resets the engine to a fresh deck).
A presentation deck. Reads are property getters straight off the engine model; navigation returns cached wrappers (
===identity); editing mutators chain and repaint any attached viewport. The PNG path is thumbnail-only — the live view presents through the WebGPU swapchain. PPTX/ODP export bytes come from the real in-module serializers.