canvas-screenshots
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "canvas-screenshots", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/screenShots.js", |
@@ -113,3 +113,3 @@ /** | ||
this.mask.style.cursor = this.cursorStyle; | ||
this.mask.style.zIndex = '100'; | ||
this.mask.style.zIndex = '2147483647'; | ||
this.mask.style.width = `${width}px`; | ||
@@ -272,2 +272,6 @@ this.mask.style.height = `${height}px`; | ||
this.keyUpListener = (e: KeyboardEvent): void => { | ||
if (e.keyCode === 27) { | ||
this.destroyed(); | ||
config.emitter.emit('destoryed'); | ||
} | ||
emitter.emit('keyup', e); | ||
@@ -362,6 +366,8 @@ }; | ||
const tmpCanvas: HTMLCanvasElement = document.createElement('canvas'); | ||
tmpCanvas.style.width = `${config.boxRect.endX - | ||
config.boxRect.startX}px`; | ||
tmpCanvas.style.height = `${config.boxRect.endY - | ||
config.boxRect.startY}px`; | ||
tmpCanvas.style.width = `${ | ||
config.boxRect.endX - config.boxRect.startX | ||
}px`; | ||
tmpCanvas.style.height = `${ | ||
config.boxRect.endY - config.boxRect.startY | ||
}px`; | ||
tmpCanvas.width = | ||
@@ -368,0 +374,0 @@ (config.boxRect.endX - config.boxRect.startX) * config.rate; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3064834
6584