Socket
Socket
Sign inDemoInstall

canvg

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvg - npm Package Compare versions

Comparing version 2.0.0-beta.1 to 2.0.0

4

CHANGELOG.md
# 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc