canvas-screenshot
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "canvas-screenshot", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "A one trick pony package to download an image from a canvas.", | ||
@@ -12,4 +12,4 @@ "main": "index.js", | ||
"devDependencies": { | ||
"budo": "^11.3.2", | ||
"get-canvas-context": "^1.0.2" | ||
"budo": "^11.6.1", | ||
"canvas-context": "^1.0.1" | ||
}, | ||
@@ -16,0 +16,0 @@ "dependencies": { |
@@ -39,7 +39,7 @@ # canvas-screenshot [![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges) | ||
| Option | Type | Default | Description | | ||
| -------------------- | ----------------- | --------------------------------------- | ----------------------- | | ||
| **canvas** | HTMLCanvasElement | | The canvas element | | ||
| **options.filename** | string? | `Screenshot ${Date().toLocaleString()}` | File name | | ||
| **options.quality** | number? | 1 | Quality between 0 and 1 | | ||
| Option | Type | Default | Description | | ||
| -------------------- | ----------------- | ---------------------------------------- | ----------------------- | | ||
| **canvas** | HTMLCanvasElement | | The canvas element | | ||
| **options.filename** | string? | `Screen Shot YYYY-MM-DD at HH.MM.SS.png` | File name | | ||
| **options.quality** | number? | 1 | Quality between 0 and 1 | | ||
@@ -46,0 +46,0 @@ Type is inferred from the filename extension (jpg/jpeg) for `"image/jpeg"` and default to `"image/png"`. |
10572
5