Function: svg-create

svg-create is a byte-compiled function defined in svg.el.gz.

Signature

(svg-create WIDTH HEIGHT &rest ARGS)

Documentation

Create a new, empty SVG image with dimensions WIDTH x HEIGHT.

ARGS can be used to provide stroke and stroke-width parameters to any further elements added.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-create (width height &rest args)
  "Create a new, empty SVG image with dimensions WIDTH x HEIGHT.
ARGS can be used to provide `stroke' and `stroke-width' parameters to
any further elements added."
  (dom-node 'svg
	    `((width . ,width)
	      (height . ,height)
	      (version . "1.1")
	      (xmlns . "http://www.w3.org/2000/svg")
              ,@(unless (plist-get args :xmlns:xlink)
                  '((xmlns:xlink . "http://www.w3.org/1999/xlink")))
              ,@(svg--arguments nil args))))