canvas-comment
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -547,3 +547,4 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/jpeg'; | ||
var imgData = this.canvas.toDataURL(type); | ||
var quality = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; | ||
var imgData = this.canvas.toDataURL(type, quality); | ||
return imgData; | ||
@@ -550,0 +551,0 @@ } |
@@ -562,3 +562,4 @@ "use strict"; | ||
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'image/jpeg'; | ||
var imgData = this.canvas.toDataURL(type); | ||
var quality = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; | ||
var imgData = this.canvas.toDataURL(type, quality); | ||
return imgData; | ||
@@ -565,0 +566,0 @@ } |
{ | ||
"name": "canvas-comment", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -92,3 +92,3 @@ import EventBus from './event-bus'; | ||
*/ | ||
getDrawImage(type?: string): string; | ||
getDrawImage(type?: string, quality?: number): string; | ||
/** | ||
@@ -95,0 +95,0 @@ * 删除指定矩形 |
57428
1327