Socket
Socket
Sign inDemoInstall

text-ellipsis-core

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

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

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

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

// 因为offsetWidth存在四舍五入 降低精度
return span.offsetWidth - 0.5;
return span.offsetWidth + 0.5;
};

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