Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::ViewportExportOptions Struct Reference

Options controlling viewport SVG export behavior. More...

#include "donner/editor/ViewportSvgExport.h"

Public Attributes

bool transparentBackground = true
 When true, the exported SVG preserves transparency (no background rect). When false, a covering background rect is prepended (white fallback).
bool includeSelectionOverlay = false
 When true, an id="donner-editor-overlay" group is emitted. If a SelectionChromeSnapshot is supplied to ExportViewportAsSvg the group is populated with serialized overlay primitives; otherwise it is emitted empty (M6 back-compat).

Detailed Description

Options controlling viewport SVG export behavior.

Member Data Documentation

◆ includeSelectionOverlay

bool donner::editor::ViewportExportOptions::includeSelectionOverlay = false

When true, an id="donner-editor-overlay" group is emitted. If a SelectionChromeSnapshot is supplied to ExportViewportAsSvg the group is populated with serialized overlay primitives; otherwise it is emitted empty (M6 back-compat).

◆ transparentBackground

bool donner::editor::ViewportExportOptions::transparentBackground = true

When true, the exported SVG preserves transparency (no background rect). When false, a covering background rect is prepended (white fallback).


The documentation for this struct was generated from the following file: