SDK 2.10.0 Updates Export, Automatic Resize, and Presentation Mode
- Type: Capability change
- Published: 2026-07-27
- Effective date: 2026-07-27
- Audience: Developers using SDK 2.x slide export, presentation mode, or dynamic container layouts
- Action required: Before upgrading, review image and LaTeX export calls and the presentation-mode
appIdconfiguration
What Changed
SDK 2.10.0 includes four main updates:
- Upgraded slide export:
editor.slides.exportImage(options)now providessize,view, andcontainmodes for fixed output dimensions, world-coordinate viewports, and content-fitting exports. LaTeX/TikZ export moves to the dedicatededitor.slides.exportLatex(options)API. - Automatic redraw after a container becomes visible: editor and presentation modes now provide
resize(). The SDK observes container size changes and asks the embedded page to remeasure and redraw when a hidden container becomes visible. - Updated presentation configuration: the application ID moves from top-level
appIdtoauth.appId, the default route becomes/embed/present/:appId/:shareId, and presentation UI options addslidePanel,pencilToolbar, andzoomControl. - Enhanced AI Chat draft image input: draft images now support both URLs and Base64 data, allowing host pages to preload images from different sources into AI Chat.
Upgrade Notes
Move the presentation application ID under auth:
ts
const presentation = await createPresentation(container, {
auth: { appId: 'YOUR_APP_ID' },
shareId: 'YOUR_SHARE_ID',
});Select an explicit image export mode:
ts
const images = await editor.slides.exportImage({
mode: 'view',
viewBounds: { x: -5, y: -5, width: 10, height: 10, scale: 50 },
pixelRatio: 2,
});Use the dedicated API for LaTeX/TikZ:
ts
const items = await editor.slides.exportLatex({
standalone: true,
});Use Cases
- Export PNG, JPG, or SVG by fixed size, viewport, or content bounds
- Export editable, layout-friendly geometry as LaTeX/TikZ
- Host an embedded canvas in hidden tabs, collapsible panels, or dynamic layouts
- Control the slide panel, pencil toolbar, and zoom controls in presentation mode