Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
GenerateShowcaseAsset.h File Reference

In-memory generator for the Donner editor showcase. More...

#include <string>
#include <string_view>
#include "donner/editor/ViewportSvgExport.h"
Include dependency graph for GenerateShowcaseAsset.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

Result< std::string, std::string > donner::editor::GenerateShowcaseAsset (std::string_view source)
 Generate the v0.8 editor showcase from an SVG document.

Detailed Description

In-memory generator for the Donner editor showcase.

Function Documentation

◆ GenerateShowcaseAsset()

Result< std::string, std::string > donner::editor::GenerateShowcaseAsset ( std::string_view source)

Generate the v0.8 editor showcase from an SVG document.

The generated SVG exercises the same text-to-outlines and viewport-export paths as the interactive editor. It is returned in memory so demos and tests can create the derived showcase on demand without checking generated assets into the repository.

Parameters
sourceBase SVG source. The repository's canonical input is donner_splash.svg; callers must not supply live <text> or the generator's reserved showcase_svg_label* and donner-editor-overlay ids.
Returns
Generated showcase SVG, or a human-readable error.