Socket
Socket
Sign inDemoInstall

skia-canvas

Package Overview
Dependencies
17
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.2 to 0.9.3

8

package.json
{
"name": "skia-canvas",
"version": "0.9.2",
"description": "An offscreen canvas for Node",
"version": "0.9.3",
"description": "A canvas environment for Node",
"main": "lib/index.js",

@@ -16,2 +16,6 @@ "author": "Christian Swinehart <drafting@samizdat.co>",

"homepage": "https://github.com/samizdatco/skia-canvas#readme",
"keywords":[
"skia", "canvas", "offscreen", "headless", "graphic", "graphics",
"image", "images", "compositing", "render", "pdf", "svg", "rust"
],
"scripts": {

@@ -18,0 +22,0 @@ "install": "neon build"

@@ -5,3 +5,3 @@ # Skia Canvas

While the primary goal of this project is to provide a reliable emulation of the [standard API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) according to the [spec](https://html.spec.whatwg.org/multipage/canvas.html), it also extends it in a number of areas that are relevant to the generation of static graphics file rather that ‘live’ display in a browser.
While the primary goal of this project is to provide a reliable emulation of the [standard API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) according to the [spec](https://html.spec.whatwg.org/multipage/canvas.html), it also extends it in a number of areas that are relevant to the generation of static graphics files rather than ‘live’ display in a browser.

@@ -138,5 +138,5 @@ In particular, Skia Canvas:

The way multi-page documents are handled depends on the filename argument. If the filename contains the string `{}`, it will be used as template for generating a numbered sequence of files—one per page. If no curly braces are found in the filename, only a single file will be saved. That single file will be multi-page in the case of PDF output but for other formats it will contain only the most recently added page.
The way multi-page documents are handled depends on the filename argument. If the filename contains the string `"{}"`, it will be used as template for generating a numbered sequence of files—one per page. If no curly braces are found in the filename, only a single file will be saved. That single file will be multi-page in the case of PDF output but for other formats it will contain only the most recently added page.
An integer can optionally be placed between the braces to indicate the number of padding characters to use for numbering. For instance `page-{}.png` will generate files of the form `page-1.svg` whereas `frame-{4}.png` will generate files like `frame-0001.png`.
An integer can optionally be placed between the braces to indicate the number of padding characters to use for numbering. For instance `"page-{}.svg"` will generate files of the form `page-1.svg` whereas `"frame-{4}.png"` will generate files like `frame-0001.png`.

@@ -268,3 +268,3 @@ ##### `toBuffer(format, {quality, page})`

// with default family name
// with an alias
FontLibrary.use("Stinson", ['fonts/Crimson_Pro/*.ttf'])

@@ -276,3 +276,3 @@ ```

FontLibrary.use({
Nieuwveen: 'fonts/AmstelvarAlpha-VF.ttf',
Nieuwveen: ['fonts/AmstelvarAlpha-VF.ttf', 'fonts/AmstelvarAlphaItalic-VF.ttf'],
Fairway: 'fonts/Raleway/*.ttf'

@@ -279,0 +279,0 @@ })

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc