nori-draw

Module for create canvas in your html element and manipulate it. Just draw!

Usage no npm install needed!

<script type="module">
  import noriDraw from 'https://cdn.skypack.dev/nori-draw';
</script>

README

artist2

run: yarn && yarn build

your file in created dist folder

import Draw from 'nori-draw'
 
const div = document.getElementById('id');
const options = {
        width: 500,
        height: 500,
        sizeValue:'px',
        bg: '#FFFFFF',
        lineColor: '#FFFFFF',
        lineWidth: 1,
        cursor: 'default',
        borderWidth: 1,
        borderColor: '#FFFFFF',
        borderStyle: 'solid'
}
 
const draw = new Draw(div, options);