This is the cl-svg Reference Manual, version 0.3, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 04:30:16 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-svg
Produce Scalable Vector Graphics (SVG) files
William S. Annis <wm.annis@gmail.com>
William S. Annis <wm.annis@gmail.com>
MIT License
0.3
package.lisp
(file).
format-xml.lisp
(file).
path.lisp
(file).
svg.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-svg/format-xml.lisp
package.lisp
(file).
cl-svg
(system).
*float-format-precision*
(special variable).
*indent-spacing*
(special variable).
set-float-precision
(function).
*indent-level*
(special variable).
*precision-epsilon*
(special variable).
begin-group->xml
(function).
element->xml
(function).
end-group->xml
(function).
points
(function).
pp-xml-attr
(generic function).
pp-xml-value
(generic function).
string->xml
(function).
with-indentation
(macro).
with-xml-group-element
(macro).
xmlify-keyword
(function).
cl-svg/path.lisp
format-xml.lisp
(file).
cl-svg
(system).
arc-to
(function).
arc-to-r
(function).
close-path
(function).
curve-to
(function).
curve-to-r
(function).
horizontal-to
(function).
horizontal-to-r
(function).
line-to
(function).
line-to-r
(function).
make-path
(function).
move-to
(function).
move-to-r
(function).
path
(macro).
quadratic-curve-to
(function).
quadratic-curve-to-r
(function).
smooth-curve-to
(function).
smooth-curve-to-r
(function).
smooth-quadratic-curve-to
(function).
smooth-quadratic-curve-to-r
(function).
vertical-to
(function).
vertical-to-r
(function).
with-path
(macro).
define-path-instruction-pair
(macro).
error-unless-string
(function).
format-instruction
(function).
cl-svg/svg.lisp
path.lisp
(file).
cl-svg
(system).
add-class
(generic function).
add-element
(generic function).
add-namespace
(generic function).
add-stylesheet
(generic function).
comment
(function).
desc
(function).
draw
(macro).
draw*
(function).
gradient-stop
(function).
initialize-instance
(method).
link
(macro).
make-foreign-object
(macro).
make-group
(macro).
make-linear-gradient
(macro).
make-marker
(macro).
make-mask
(macro).
make-pattern
(macro).
make-radial-gradient
(macro).
make-svg-symbol
(macro).
make-svg-toplevel
(function).
matrix
(function).
missing-attributes
(condition).
rotate
(function).
scale
(function).
script
(function).
script-link
(function).
skew-x
(function).
skew-y
(function).
stream-out
(generic function).
style
(function).
svg-1.1-toplevel
(class).
svg-1.2-toplevel
(class).
svg-toplevel
(class).
text
(macro).
textarea
(macro).
title
(function).
transform
(macro).
translate
(function).
tspan
(macro).
with-svg-to-file
(macro).
without-attribute-check
(macro).
xlink-href
(generic function).
*check-required-attributes*
(special variable).
add-defs-element
(generic function).
add-transform
(generic function).
assert-required-attributes
(generic function).
compose-tspan
(function).
define-defs-group-maker
(macro).
define-element-maker
(macro).
define-gradient-maker
(macro).
define-toplevel-group-maker
(macro).
element-attributes
(reader method).
(setf element-attributes)
(writer method).
element-contents
(reader method).
(setf element-contents)
(writer method).
element-id
(generic function).
(setf element-id)
(generic function).
element-name
(reader method).
(setf element-name)
(writer method).
get-attribute
(generic function).
has-attribute-p
(generic function).
has-contents-p
(generic function).
make-svg-element
(generic function).
missing-attribute-message
(reader method).
(setf missing-attribute-message)
(writer method).
push-attribute
(generic function).
svg-defs
(reader method).
(setf svg-defs)
(writer method).
svg-element
(class).
Packages are listed by definition order.
cl-svg
svg
common-lisp
.
*float-format-precision*
(special variable).
*indent-spacing*
(special variable).
add-class
(generic function).
add-element
(generic function).
add-namespace
(generic function).
add-stylesheet
(generic function).
arc-to
(function).
arc-to-r
(function).
close-path
(function).
comment
(function).
curve-to
(function).
curve-to-r
(function).
desc
(function).
draw
(macro).
draw*
(function).
gradient-stop
(function).
horizontal-to
(function).
horizontal-to-r
(function).
line-to
(function).
line-to-r
(function).
link
(macro).
make-foreign-object
(macro).
make-group
(macro).
make-linear-gradient
(macro).
make-marker
(macro).
make-mask
(macro).
make-path
(function).
make-pattern
(macro).
make-radial-gradient
(macro).
make-svg-symbol
(macro).
make-svg-toplevel
(function).
matrix
(function).
missing-attributes
(condition).
move-to
(function).
move-to-r
(function).
path
(macro).
quadratic-curve-to
(function).
quadratic-curve-to-r
(function).
rotate
(function).
scale
(function).
script
(function).
script-link
(function).
set-float-precision
(function).
skew-x
(function).
skew-y
(function).
smooth-curve-to
(function).
smooth-curve-to-r
(function).
smooth-quadratic-curve-to
(function).
smooth-quadratic-curve-to-r
(function).
stream-out
(generic function).
style
(function).
svg-1.1-toplevel
(class).
svg-1.2-toplevel
(class).
svg-toplevel
(class).
text
(macro).
textarea
(macro).
title
(function).
transform
(macro).
translate
(function).
tspan
(macro).
vertical-to
(function).
vertical-to-r
(function).
with-path
(macro).
with-svg-to-file
(macro).
without-attribute-check
(macro).
xlink-href
(generic function).
*check-required-attributes*
(special variable).
*indent-level*
(special variable).
*precision-epsilon*
(special variable).
add-defs-element
(generic function).
add-transform
(generic function).
assert-required-attributes
(generic function).
begin-group->xml
(function).
compose-tspan
(function).
define-defs-group-maker
(macro).
define-element-maker
(macro).
define-gradient-maker
(macro).
define-path-instruction-pair
(macro).
define-toplevel-group-maker
(macro).
element->xml
(function).
element-attributes
(generic reader).
(setf element-attributes)
(generic writer).
element-contents
(generic reader).
(setf element-contents)
(generic writer).
element-id
(generic function).
(setf element-id)
(generic function).
element-name
(generic reader).
(setf element-name)
(generic writer).
end-group->xml
(function).
error-unless-string
(function).
format-instruction
(function).
get-attribute
(generic function).
has-attribute-p
(generic function).
has-contents-p
(generic function).
make-svg-element
(generic function).
missing-attribute-message
(generic reader).
(setf missing-attribute-message)
(generic writer).
points
(function).
pp-xml-attr
(generic function).
pp-xml-value
(generic function).
push-attribute
(generic function).
string->xml
(function).
svg-defs
(generic reader).
(setf svg-defs)
(generic writer).
svg-element
(class).
with-indentation
(macro).
with-xml-group-element
(macro).
xmlify-keyword
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Constrains how many digits are printed after the decimal point in XML attribute values.
Push an XML class into an element. If the property already has contents the new transform is simply appended.
svg-element
) (class string
)) ¶svg-element
) (element string
)) ¶svg-element
) (element svg-element
)) ¶svg-element
) name url) ¶svg-toplevel
) url) ¶svg-toplevel
)) ¶string
)) ¶svg-element
)) ¶create a local URL reference to this element
svg-element
)) ¶svg-element
) &key &allow-other-keys) ¶condition
.
:message
Initarg | Value |
---|---|
:name | svg |
:xml-header | <?xml version="1.0" standalone="no"?> |
:doctype | <!doctype svg public "-//w3c//dtd svg 1.1//en"
"http://www.w3.org/graphics/svg/1.1/dtd/svg11.dtd"> |
:attributes | (list version 1.1 id toplevel xmlns http://www.w3.org/2000/svg xmlns:xlink http://www.w3.org/1999/xlink) |
Initarg | Value |
---|---|
:name | svg |
:xml-header | <?xml version="1.0" standalone="no"?> |
:attributes | (list version 1.2 id toplevel xmlns http://www.w3.org/2000/svg xmlns:xlink http://www.w3.org/1999/xlink) |
:xml-header
:doctype
(make-instance (quote cl-svg::svg-element) :name "defs")
list
:stylesheets
Determines if the shape element attribute list is checked for completeness.
Convert a ’:view-box’ lisp-style name into XMLish ’viewBox’.
svg-toplevel
) e) ¶Push a transformation into an element. If the property already has contents the new transform is simply appended.
svg-element
) (transform string
)) ¶(eql :radial-gradient)
) attributes) ¶(eql :linear-gradient)
) attributes) ¶(eql :textarea)
) attributes) ¶(eql :text)
) attributes) ¶(eql :foreign-object)
) attributes) ¶(eql :link)
) attributes) ¶(eql :group)
) attributes) ¶(eql :mask)
) attributes) ¶(eql :pattern)
) attributes) ¶(eql :marker)
) attributes) ¶(eql :symbol)
) attributes) ¶(eql :use)
) attributes) ¶(eql :image)
) attributes) ¶(eql :path)
) attributes) ¶(eql :circle)
) attributes) ¶(eql :ellipse)
) attributes) ¶(eql :polygon)
) attributes) ¶(eql :polyline)
) attributes) ¶(eql :rect)
) attributes) ¶(eql :line)
) attributes) ¶svg-element
)) ¶automatically generated reader method
svg-element
)) ¶automatically generated writer method
svg-element
)) ¶automatically generated reader method
svg-element
)) ¶automatically generated writer method
svg-element
)) ¶svg-element
)) ¶svg-element
)) ¶automatically generated reader method
svg-element
)) ¶automatically generated writer method
svg-element
) attribute) ¶svg-element
) attribute) ¶svg-element
)) ¶(eql :radial-gradient)
) attributes) ¶(eql :linear-gradient)
) attributes) ¶(eql :textarea)
) attributes) ¶(eql :text)
) attributes) ¶(eql :foreign-object)
) attributes) ¶(eql :link)
) attributes) ¶(eql :group)
) attributes) ¶(eql :mask)
) attributes) ¶(eql :pattern)
) attributes) ¶(eql :marker)
) attributes) ¶(eql :symbol)
) attributes) ¶(eql :use)
) attributes) ¶(eql :image)
) attributes) ¶(eql :path)
) attributes) ¶(eql :circle)
) attributes) ¶(eql :ellipse)
) attributes) ¶(eql :polygon)
) attributes) ¶(eql :polyline)
) attributes) ¶(eql :rect)
) attributes) ¶(eql :line)
) attributes) ¶missing-attributes
)) ¶missing-attributes
)) ¶This turns a keyword slot of a p-list into something XML
will recognize, in particular making the case correct. It is intended
for ~/pp-xml-attr/ use in a FORMAT string.
This function exists entirely to restrain the floating
point representation in the SVG, which is bloated by pointless precision.
*FLOAT-FORMAT-PRECISION* (2, by default) determines how many digits are
printed after the decimal point.
svg-element
) attribute value) ¶svg-toplevel
)) ¶automatically generated reader method
svg-toplevel
)) ¶automatically generated writer method
add-class
.
add-element
.
add-element
.
add-namespace
.
add-transform
.
(setf element-attributes)
.
element-attributes
.
(setf element-contents)
.
element-contents
.
(setf element-id)
.
element-id
.
(setf element-name)
.
element-name
.
get-attribute
.
has-attribute-p
.
has-contents-p
.
initialize-instance
.
push-attribute
.
stream-out
.
xlink-href
.
string
(error "svg-element must have a name")
:name
(make-array 0 :adjustable t :fill-pointer 0)
list
:attributes
Jump to: | (
A B C D E F G H I L M P Q R S T V W X |
---|
Jump to: | (
A B C D E F G H I L M P Q R S T V W X |
---|
Jump to: | *
A C D M N S X |
---|
Jump to: | *
A C D M N S X |
---|
Jump to: | C F M P S |
---|
Jump to: | C F M P S |
---|