Function: svg-clip-path
svg-clip-path is a byte-compiled function defined in svg.el.gz.
Signature
(svg-clip-path SVG &rest ARGS)
Documentation
Add a clipping path to SVG, where ARGS is a plist of modifiers.
If applied to a shape via the :clip-path property, parts of that shape which lie outside of the clipping path are not drawn.
Source Code
;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-clip-path (svg &rest args)
"Add a clipping path to SVG, where ARGS is a plist of modifiers.
If applied to a shape via the :clip-path property, parts of that
shape which lie outside of the clipping path are not drawn."
(let ((new-dom-node (dom-node 'clipPath
`(,@(svg--arguments svg args)))))
(svg--append svg new-dom-node)
new-dom-node))