1.1.6 • Published 2 months ago

snippingtool v1.1.6

Weekly downloads
3
License
ISC
Repository
-
Last release
2 months ago

snippingtool

It is a Vue screenshot annotation widget

It can intercept any position in the web page, and has a small color brush to mark within the intercepted range. Finally, it is saved as a PNG file locally together with the marked content.

dependencies

It relies on jQuery and html2canvas, so make sure your project has both plug-ins installed before use.

install

npm i snippingtool 

jQuery and snippingtool should been introduced into the current component.

import  {startCapture} from 'snippingtool'
import $ from 'jquery'

Write a method

methods:{
    draw(){
    startCapture($("body"));
    }
}

Add this method to the event of any button in the component template.

<button @click="draw">snippingtool</button>

authorsunritzWelcome to communicate.

1.1.6

2 months ago

1.1.5

2 months ago

1.1.4

2 months ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago