Socket
Socket
Sign inDemoInstall

text-ellipsis-core

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-ellipsis-core - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "text-ellipsis-core",
"version": "0.0.2",
"version": "0.0.3",
"description": "the core of text-ellipsis.",

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

@@ -29,3 +29,3 @@ // const getLengthByCanvas = (ctx, font = {}) => {

// console.log(str, len);
if (len <= parseInt(font.width, 10)) {
if (len <= parseFloat(font.width, 10)) {
line[beginLine - 1] = str;

@@ -32,0 +32,0 @@ } else {

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