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.1 to 0.9.2

10

package.json
{
"name": "skia-canvas",
"version": "0.9.1",
"version": "0.9.2",
"description": "An offscreen canvas for Node",

@@ -8,2 +8,10 @@ "main": "lib/index.js",

"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/samizdatco/skia-canvas.git"
},
"bugs": {
"url": "https://github.com/samizdatco/skia-canvas/issues"
},
"homepage": "https://github.com/samizdatco/skia-canvas#readme",
"scripts": {

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

4

README.md

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

The standard canvas has a rather impoverished typesetting system, allowing for only a single line of text and an approach to width-management that horizontally scales the letterforms (a type-crime if ever there was one). Skia Canvas allows you to opt-out of this single-line world by setting the `.textWrap` property to `true`. Doing so affects the behavior of the `drawText()` and `measureText()` methods as described below.
The standard canvas has a rather impoverished typesetting system, allowing for only a single line of text and an approach to width-management that horizontally scales the letterforms (a type-crime if ever there was one). Skia Canvas allows you to opt-out of this single-line world by setting the `.textWrap` property to `true`. Doing so affects the behavior of the `fillText()`, `strokeText()`, and `measureText()` methods as described below.

@@ -173,3 +173,3 @@ ##### `fillText(str, x, y, [width])` & `strokeText(str, x, y, [width])`

1. Manual line breaking via `"\n"` escapes will be honored rather than converted to spaces
2. The optional `width` argument accepted by `drawText` and `measureText` will be interpreted as a ‘column width’ and used to word-wrap long lines
2. The optional `width` argument accepted by `fillText`, `strokeText` and `measureText` will be interpreted as a ‘column width’ and used to word-wrap long lines
3. The line-height setting in the `.font` value will be used to set the inter-line leading rather than simply being ignored.

@@ -176,0 +176,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