cl-svg

API Reference

cl-svg

Produce Scalable Vector Graphics (SVG) files

CL-SVG

  • Function MOVE-TO (x y)
  • Function MOVE-TO-R (x y)
  • Function LINE-TO (x y)
  • Function LINE-TO-R (x y)
  • Function HORIZONTAL-TO (x)
  • Function HORIZONTAL-TO-R (x)
  • Function VERTICAL-TO (y)
  • Function VERTICAL-TO-R (y)
  • Function CURVE-TO (control-x1 control-y1 control-x2 control-y2 x y)
  • Function CURVE-TO-R (control-x1 control-y1 control-x2 control-y2 x y)
  • Function SMOOTH-CURVE-TO (control-x2 control-y2 x y)
  • Function SMOOTH-CURVE-TO-R (control-x2 control-y2 x y)
  • Function QUADRATIC-CURVE-TO (control-x1 control-y1 x y)
  • Function QUADRATIC-CURVE-TO-R (control-x1 control-y1 x y)
  • Function SMOOTH-QUADRATIC-CURVE-TO (x y)
  • Function SMOOTH-QUADRATIC-CURVE-TO-R (x y)
  • Function ARC-TO (rx ry x-rotation large-arc-flag sweep-flag x y)
  • Function ARC-TO-R (rx ry x-rotation large-arc-flag sweep-flag x y)
  • Function CLOSE-PATH
  • Function MAKE-PATH
  • Macro WITH-PATH (path &body cmds)
  • Macro PATH (&body cmds)
  • Variable *INDENT-SPACING*
    2
  • Variable *FLOAT-FORMAT-PRECISION*
    2
    Constrains how many digits are printed after the decimal point in XML attribute values.
  • Macro WITHOUT-ATTRIBUTE-CHECK (&body body)
  • Condition MISSING-ATTRIBUTES
  • Generic-Function ADD-ELEMENT (container element)
  • Method ADD-ELEMENT ((container svg-element) (element svg-element))
  • Method ADD-ELEMENT ((container svg-element) (element string))
  • Generic-Function ADD-NAMESPACE (element name url)
  • Method ADD-NAMESPACE ((e svg-element) name url)
  • Generic-Function ADD-CLASS (element class)
    Push an XML class into an element. If the property already has contents the new transform is simply appended.
  • Method ADD-CLASS ((element svg-element) (class string))
  • Generic-Function STREAM-OUT (stream element)
  • Method STREAM-OUT (s (e svg-element))
  • Method STREAM-OUT (s (e string))
  • Generic-Function XLINK-HREF (element)
    create a local URL reference to this element
  • Method XLINK-HREF ((e svg-element))
  • Class SVG-TOPLEVEL  (SVG-ELEMENT)
    XML-HEADER
    DOCTYPE
    DEFS   Accessor: SVG-DEFS
    STYLESHEETS
  • Class SVG-1.1-TOPLEVEL  (SVG-TOPLEVEL)
    No slots.
  • Class SVG-1.2-TOPLEVEL  (SVG-TOPLEVEL)
    No slots.
  • Function MAKE-SVG-TOPLEVEL (class &rest attributes)
  • Generic-Function ADD-STYLESHEET (svg-toplevel url)
  • Method ADD-STYLESHEET ((svg svg-toplevel) url)
  • Method STREAM-OUT (s (e svg-toplevel))
  • Macro WITH-SVG-TO-FILE ((svg &rest svg-attributes) (filename &rest open-options) &body body)
  • Macro DRAW (scene (shape &rest params) &rest opts)
  • Function DRAW* (&rest x)
  • Function DESC (scene text)
    add a description to any SVG element
  • Function TITLE (scene text)
    add a title to any SVG element
  • Function COMMENT (scene text)
  • Function SCRIPT (scene script)
    add inline javascript to a scene
  • Function SCRIPT-LINK (scene link)
  • Function STYLE (scene css)
    add inline CSS to a scene
  • Macro MAKE-SVG-SYMBOL (scene (&rest opts) &body shapes)
  • Macro MAKE-MARKER (scene (&rest opts) &body shapes)
  • Macro MAKE-PATTERN (scene (&rest opts) &body shapes)
  • Macro MAKE-MASK (scene (&rest opts) &body shapes)
  • Macro MAKE-GROUP (scene (&rest opts) &body shapes)
  • Macro LINK (scene (&rest opts) &body shapes)
  • Macro MAKE-FOREIGN-OBJECT (scene (&rest opts) &body shapes)
  • Macro TSPAN ((&rest opts) text)
  • Macro TEXT (scene (&rest opts) &body elements)
  • Macro TEXTAREA (scene (&rest opts) &body elements)
  • Function GRADIENT-STOP (&key color offset (opacity 1.0))
  • Macro MAKE-LINEAR-GRADIENT (scene (&rest opts) &body stops)
  • Macro MAKE-RADIAL-GRADIENT (scene (&rest opts) &body stops)
  • Function SCALE (sx &optional sy)
  • Function TRANSLATE (tx &optional ty)
  • Function ROTATE (angle &optional (cx 0) (cy 0))
  • Function SKEW-X (angle)
  • Function SKEW-Y (angle)
  • Function MATRIX (a b c d e f)
  • Macro TRANSFORM ((&rest transformations) &body element)