Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multiline-canvas-text

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multiline-canvas-text - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "multiline-canvas-text",
"version": "2.0.0",
"version": "2.0.1",
"description": "Render a string to canvas, breaking it up into multiple lines to fit the given width.",

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

@@ -21,6 +21,7 @@ # multiline-canvas-text

const lineSpacing = 1; // vertical spacing between the lines
const color = 'white'; // can be any valid css color string: 'black', #FFF', 'rgba(0,0,0,0.5)', etc
const color = 'white'; // can be any valid css color string: 'black', '#FFF', 'rgba(0,0,0,0.5)', etc
const strokeText = false; // true results in calling strokeText instead of fillText
const align = 'center'; // can be 'left', 'right' or 'center'
const result = drawText(text, width, font, fontSize, lineSpacing, color, strokeText);
const result = drawText(text, width, font, fontSize, lineSpacing, color, strokeText, align);

@@ -27,0 +28,0 @@ element.appendChild(result.canvas);

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