Comparing version 2.0.0-beta.1 to 2.0.0
# Change Log | ||
## v2.0.0 (beta) | ||
## v2.0.0 | ||
- **Breaking change**: for use on server, peer dependencies [canvas 2.x](https://github.com/Automattic/node-canvas), [jsdom 13.x](https://github.com/jsdom/jsdom) and [xmldom 0.x](https://github.com/jindw/xmldom) must be installed. | ||
- Fix exponential notation ([#710](https://github.com/canvg/canvg/pull/710)) | ||
- Fix font parsing ([#707](https://github.com/canvg/canvg/pull/707)) | ||
- Implement `textPath` ([#687](https://github.com/canvg/canvg/pull/687)) | ||
@@ -6,0 +8,0 @@ - Implement focal gradient radius ([#675](https://github.com/canvg/canvg/pull/675)) |
@@ -27,3 +27,3 @@ { | ||
"browser": "dist/browser/canvg.min.js", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0", | ||
"scripts": { | ||
@@ -75,3 +75,3 @@ "test-browser": "ava test/browser.test.js --tap | tap-diff", | ||
"pngjs-image": "^0.11.7", | ||
"puppeteer": "^1.10.0", | ||
"puppeteer": "^1.16.0", | ||
"rollup": "^0.67.3", | ||
@@ -78,0 +78,0 @@ "rollup-plugin-alias": "^1.4.0", |
@@ -46,11 +46,11 @@ # canvg | ||
`npm install canvg@^1.5` | ||
`npm install canvg canvas@^2 jsdom@^13 xmldom@^0` | ||
**2.0.0 beta** (see [CHANGELOG](https://github.com/canvg/canvg/blob/master/CHANGELOG.md)) | ||
`npm install canvg@2.0.0-beta.1 canvas@^2 jsdom@^13 xmldom@^0` | ||
The dependencies required on the server only are peers so must be installed | ||
alongside the canvg package. | ||
**Older version** | ||
`npm install canvg@^1.5` | ||
## Usage on the browser | ||
@@ -70,12 +70,2 @@ | ||
For the **2.0.0 beta** (see [CHANGELOG](https://github.com/canvg/canvg/blob/master/CHANGELOG.md)), use this: | ||
```html | ||
<!-- Required to convert named colors to RGB --> | ||
<script src="https://cdn.jsdelivr.net/npm/rgbcolor@^1/index.js"></script> | ||
<!-- Optional if you want blur --> | ||
<script src="https://cdn.jsdelivr.net/npm/stackblur-canvas@^1/dist/stackblur.min.js"></script> | ||
<!-- Main canvg code --> | ||
<script src="https://cdn.jsdelivr.net/npm/canvg@2.0.0-beta.1/dist/browser/canvg.min.js"></script> | ||
``` | ||
Put a canvas on your page | ||
@@ -82,0 +72,0 @@ ```html |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7183
1
380483
113