The documentation for Snap.svg's Snap()
function lists three possible ways of creating a Snap object.
Snap(width, height)
- Creates a new, blank canvas of given dimensions.Snap(svg element)
- Create a Snap canvas from an existing, inline SVG elementSnap(css selector)
- Same as above, but with a selector rather than a direct reference
Is it possible to create a Snap object from either an SVG embedded as either an<object>
element or a <img>
?