Comparing version 2.9.3 to 2.10.0
@@ -93,1 +93,3 @@ const Canvas = require('./lib/canvas') | ||
exports.rsvgVersion = bindings.rsvgVersion | ||
/** pango version. */ | ||
exports.pangoVersion = bindings.pangoVersion |
@@ -52,3 +52,6 @@ 'use strict' | ||
get.concat(val, (err, res, data) => { | ||
get.concat({ | ||
url: val, | ||
headers: { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36' } | ||
}, (err, res, data) => { | ||
if (err) return onerror(err) | ||
@@ -55,0 +58,0 @@ |
{ | ||
"name": "canvas", | ||
"description": "Canvas graphics API backed by Cairo", | ||
"version": "2.9.3", | ||
"version": "2.10.0", | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
@@ -32,2 +32,4 @@ "main": "index.js", | ||
"test-server": "node test/server.js", | ||
"generate-wpt": "node ./test/wpt/generate.js", | ||
"test-wpt": "mocha test/wpt/generated/*.js", | ||
"install": "node-pre-gyp install --fallback-to-build --update-binary", | ||
@@ -61,2 +63,3 @@ "dtslint": "dtslint types" | ||
"express": "^4.16.3", | ||
"js-yaml": "^4.1.0", | ||
"mocha": "^5.2.0", | ||
@@ -63,0 +66,0 @@ "pixelmatch": "^4.0.2", |
@@ -26,3 +26,3 @@ # node-canvas | ||
----- | ----- | ||
OS X | Using [Homebrew](https://brew.sh/):<br/>`brew install pkg-config cairo pango libpng jpeg giflib librsvg` | ||
OS X | Using [Homebrew](https://brew.sh/):<br/>`brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman` | ||
Ubuntu | `sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev` | ||
@@ -29,0 +29,0 @@ Fedora | `sudo yum install gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel` |
@@ -10,3 +10,3 @@ // TypeScript Version: 3.0 | ||
/** | ||
* Any bitwise combination of `PNG_FILTER_NONE`, `PNG_FITLER_SUB`, | ||
* Any bitwise combination of `PNG_FILTER_NONE`, `PNG_FILTER_SUB`, | ||
* `PNG_FILTER_UP`, `PNG_FILTER_AVG` and `PNG_FILTER_PATETH`; or one of | ||
@@ -16,3 +16,3 @@ * `PNG_ALL_FILTERS` or `PNG_NO_FILTERS` (all are properties of the canvas | ||
* encoding, libpng will select the best filter from this list of allowed | ||
* filters. Defaults to `canvas.PNG_ALL_FITLERS`. | ||
* filters. Defaults to `canvas.PNG_ALL_FILTERS`. | ||
*/ | ||
@@ -305,2 +305,7 @@ filters?: number | ||
/** | ||
* Unloads all fonts | ||
*/ | ||
export function deregisterAllFonts(): void; | ||
/** This class must not be constructed directly; use `canvas.createPNGStream()`. */ | ||
@@ -307,0 +312,0 @@ export class PNGStream extends Readable {} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
358249
1478
9