Expand description
SVG / PNG helpers for Adaptive Cards fallbacks. SVG builders + optional PNG rasterize for Adaptive Cards Image data URIs.
Used for chart / canvas / gauge / shape / zstack / gradient
backgrounds that Adaptive Cards cannot express natively.
Functions§
- element_
to_ png_ data_ uri - Convenience: element → PNG data URI.
- element_
to_ svg - Build an SVG document for chart/canvas/gauge/shape;
Nonefor other element types. - gradient_
to_ png_ data_ uri - Rasterize a gradient background to a PNG data URI when
rasterizeis enabled. - gradient_
to_ svg - Build an SVG gradient fill for Adaptive Cards
backgroundImagebaking. - svg_
to_ data_ uri - Rasterize SVG to
data:image/png;base64,…when therasterizefeature is on.