rigSvg 0.1.0
RigKit pack API - rigSvg
Loading...
Searching...
No Matches
SvgWriter.h File Reference
#include <string>
#include "ParsedPathDoc.h"
Include dependency graph for SvgWriter.h:

Functions

bool rigkit::svg::writeString (const plot::ParsedPathDoc &doc, float paperWMm, float paperHMm, std::string &outXml)
 Write ParsedPathDoc to SVG (mm viewBox, solids + gradient defs).
bool rigkit::svg::writeFile (const plot::ParsedPathDoc &doc, const std::string &path, float paperWMm, float paperHMm)
 Write SVG file.

Function Documentation

◆ writeString()

bool rigkit::svg::writeString ( const plot::ParsedPathDoc & doc,
float paperWMm,
float paperHMm,
std::string & outXml )

Write ParsedPathDoc to SVG (mm viewBox, solids + gradient defs).

ArcTo writes SVG A. OkLab/HSV gradients densify to sRGB stops; stop intensity bakes in linear light and clamps to 0-1. Text, clipPath, and @font-face follow the bags the loader filled.

Parameters
paperWMmRoot width and viewBox width, in millimetres.
paperHMmRoot height and viewBox height, in millimetres.