screenshot-feedback
v1.0.3
Published
feedback screenshot tool to take user feedbacks for webpages like Google's
Downloads
5
Maintainers
Readme
screenshot-feedback
feedback screenshot tool to take user feedbacks for webpages like Google's
This is a component extracted from npm feedback-screenshot and fixed scroll issue in that.
Installing
npm install screenshot-feedback
Usage
import Feedback from 'screenshot-feedback';
const feedback = new Feedback({
borderColor:'#000',
zIndex:200,
parent:document.querySelector('#content'),
html2canvas:{
logging:false,
useCROS:true
}
})
//start screen shot
feedback.open();
//change rect background to black, cover some private data
feedback.setBlackMode(true);
//close screen shot and wait for canvas
feedback.close().then(canvas=>{
console.log(canvas);
})
//cancel screen shot, will return null
feedback.close(true)
Default Values:
borderColor: #347EF8(blue)
zIndex: 999
parent: document.body
setBlackMode: false