|
rigSvg 0.1.0
RigKit pack API - rigSvg
|
#include <string>#include "ParsedPathDoc.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. | |
| 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.
| paperWMm | Root width and viewBox width, in millimetres. |
| paperHMm | Root height and viewBox height, in millimetres. |