README
drawtheline
✏️ Sketch simple line drawings in SVG.
Install
$ npm install drawtheline
<script type="module" src="https://unpkg.com/drawtheline@1.1.0/index.js"></script>
<script>
import {
inputDownEvent,
inputUpEvent
} from 'https://unpkg.com/drawtheline@1.1.0/index.js';
</script>
Usage
import { inputDownEvent, inputUpEvent } from 'drawtheline';
const svg = document.querySelector('svg');
svg.addEventListener('mousedown', inputDownEvent);
svg.addEventListener('touchstart', inputDownEvent);