1.1.5 • Published 7 years ago

sharingan v1.1.5

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

sharingan

use html5canvas

copy the screen and draw something

demo

params

namedesctypedefault
typetype of drawing , one of pen line rect circlestringpen
colorcolor of drawingstringred
linewidthwidth of linenumber2
stylestyle of drawingstringstroke
scalescalenumber1
elementthe element to copyelement-
targetthe target canvaselement-

usage

<div id="container"></div>

<canvas id="target"> </canvas>
import Sharingan from "sharingan";

var s;
function takeScreenshot() {
    s = new Sharingan({
      scale: 0.6,
      element: document.getElementById('container'),
      target: document.getElementById('target')
    });
    s.catch(function(target){});
}

License

MIT

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago