0.0.9 • Published 6 years ago
@interactive-svg/library v0.0.9
Interactive SVG
Interactive SVG is a Javascript Library written in Typescript for creating Interactive Visuals in the browser. Visit the website for a sandbox editor, examples, and more. Consult the API for programmatic usage.
Usage
Import the module in a Javascript file.
import Interactive from "https://unpkg.com/@interactive-svg/library/dist/Interactive.js";
let interactive = new Interactive("my-id");
let control = interactive.control(100,100);
Then include the script in a html page.
<link rel="stylesheet" href="https://unpkg.com/@interactive-svg/library/dist/library.css">
<div id="my-id"></div>
<script type="module" src="my-script.js"></script>
If you prefer, download and host the library yourself.