drawtheline

1.1.0 • Public • Published

drawtheline

✏️ Sketch simple line drawings in SVG.

NPM Version

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);

Readme

Keywords

Package Sidebar

Install

npm i drawtheline

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

7.42 kB

Total Files

5

Last publish

Collaborators

  • neogeek