Curves.Drawing.Raw (curves v1.0.1)

Copy Markdown View Source

Part of an SVG that isn't made of curves, such as <text>, <image>, <defs> or <style>, kept as its markup so that drawing the Curves.Drawing again includes it.

FieldWhat it holds
:elementits element's name, e.g. "text"
:markupits SVG markup. It is the original, made safe and well formed: <script> and <foreignObject> elements, animations of links and event handlers, event attributes (onclick and so on), javascript: links and invalid names are taken out, tags left open are closed, and stray or unfinished tags are left out.
:transformthe transforms of the groups around it, as {a, b, c, d, e, f} (like SVG's matrix(a, b, c, d, e, f)), so it is drawn in the same place wherever it is put. Its own transform is still in its markup.

Summary

Types

t()

@type t() :: %Curves.Drawing.Raw{
  element: String.t(),
  markup: String.t(),
  transform: Curves.Drawing.matrix()
}