Skip to content

Style Presets Now Available in the SDK, MCP, and API ​

  • Type: New capability
  • Published: 2026-11-10
  • Effective: 2026-11-10
  • Scope: Developers using the SDK, MCP, intelligent drawing API, and rendering API
  • Action required: Keep your existing template integration, use a template containing style presets, and assign the corresponding semantic roles to objects. The SDK template panel requires version 2.16.0 and explicit configuration.

Automatically style key elements, auxiliary objects, comparisons, headings, and body text when generating diagrams. Switch templates to change the style of the whole diagram.

The same triangle styled with monochrome exam and colorful presentation templates, with emphasis, auxiliary, comparison, heading, and body text styles changing together

From shared defaults to styles by semantic role ​

Previously, templates provided default styles by object type, with one set of defaults each for points, lines, text, and so on. Templates can now also contain multiple style presets, assigning semantic roles such as emphasis, auxiliary, comparison, heading, and body text to objects. Each role has its own style definitions.

Template and preset panels in Dino-GSP: choose a system template on the left and configure heading, body text, emphasis, auxiliary, and comparison presets on the right

A template contains multiple style presets, each with its own style definitions for a semantic role.

Purpose in the diagramStyle presetBenefit
Points, lines, or regions that need to stand outEmphasisHelp readers quickly identify key elements
Auxiliary lines and pointsAuxiliaryDistinguish supporting construction from the main figure while preserving geometric relationships
Objects being comparedComparisonMake different objects or states easier to identify
Diagram titles and explanatory textHeading, body textKeep text hierarchy and typography consistent

Preset names and their appearance are defined by the template. During generation, ask the AI to assign styles according to these semantic roles. When editing an existing diagram, select an object and choose the corresponding preset from its style options.

Select a preset for point B using the floating toolbar dropdown or the style preset field in the right panel

Keep using your existing template integration ​

Style presets are included in template data. The SDK, MCP, and API continue to use their existing template capabilities, with full backward compatibility for existing data.

  1. Open template management and export an existing template containing the presets you need. You can also edit and save your own template on the Dino-GSP main site, then export its data.

    Template editor with the default, emphasis, auxiliary, comparison, region, heading, and body text tabs and the Add style group button highlighted

  2. Load or pass the complete template data through your existing integration.

  3. Assign semantic roles to objects when drawing, using preset names already defined in the template.

IntegrationEntry point
SDK editor or presentation modeContinue calling mode.setMasterTemplate(template) with the complete template JSON string
MCPContinue loading the template with load_template, then ask the AI to draw using its style presets
Intelligent drawing APIPass the template JSON string through template when creating a task, and describe each object's semantic role in the drawing prompt
Rendering APIContinue passing the template object through template to render objects according to their preset assignments in the project

SDK 2.16.0: Show a template panel with your own template data ​

SDK editor mode now supports a template panel. Enable the template entry on the left of the canvas and provide your own system template list through a callback, allowing users to preview and apply templates inside the embedded editor.

  • Set ui.masterTemplatePanel: true to show the panel. It is disabled by default.
  • Provide the system template list through masterTemplates.listSystem. Each item includes id, name, and content, which holds the complete template JSON string.
  • Data can come from your host application's API or local template files, allowing you to reuse your existing template management workflow.

SDK example showing a system template list in the embedded editor, with monochrome and colorful presentation templates available to preview and apply

Upgrade to SDK 2.16.0 to use this capability. Self-hosted embedded pages also need a corresponding update. See System Template Panel for complete code and field descriptions.

Try it now ​