Skip to content

Instantly share code, notes, and snippets.

@gervasiocaj
Created December 31, 2015 00:12
Show Gist options
  • Save gervasiocaj/5154cc8eac3e8f117289 to your computer and use it in GitHub Desktop.
Save gervasiocaj/5154cc8eac3e8f117289 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="utf-8" ?>
<svg id="drawing" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" >
<script type="text/javascript" xlink:href="https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.2.5/svg.js"></script>
<script type="text/javascript">
<![CDATA[
var draw = SVG('drawing').size(300, 300);
var text = draw.text("Lorem ipsum dolor sit amet consectetur.\nCras sodales imperdiet auctor.");
]]>
</script>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment