multiline-canvas-text
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177173
34