Socket
Socket
Sign inDemoInstall

canvas-multiline-text

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

4

CHANGELOG.md

@@ -0,3 +1,7 @@

# 1.0.2 (25/03/2018)
Better readme
# 1.0.1 (29/11/2017)
First release

2

package.json
{
"name": "canvas-multiline-text",
"version": "1.0.1",
"version": "1.0.2",
"description": "Draws a text in a rectangle on a canvas, on multiple lines",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -44,3 +44,3 @@ # canvas-multiline-text

### Options
The whole `options` parameter (well) if optional.
The whole `options` parameter is optional.
* `font` - Used font name or font family. Default is `sans-serif`.

@@ -51,3 +51,3 @@ * `minFontSize` - Min font size for text. Default is `30`.

* `stroke` - If true, `strokeText()` wil be used instead of `fillText()`. Default is `false`.
* `lineHeight` - Multiplicator for line height. Default is `1.1`. *
* `lineHeight` - Multiplicator for line height. Default is `1.1`.
* `verbose` - If true, greenlock-express will log (see below) the server bootstrap.

@@ -57,2 +57,2 @@ * `logFunction` - Custom function for logging, with signature `logFunction(message)`. Default is `console.log`.

## Dependencies
This module require some kind of Canvas object, so in Node.js you'll need to have [`node-canvas`](https://github.com/Automattic/node-canvas) installed, even if it's not in this modul's dependencies list.
This module require some kind of Canvas object, so in Node.js you'll need to have [`node-canvas`](https://github.com/Automattic/node-canvas) installed, even if it's not in this module's dependencies list.
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