New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flourish/pocket-knife

Package Overview
Dependencies
Maintainers
31
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/pocket-knife - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "@flourish/pocket-knife",
"version": "1.0.0",
"version": "1.1.0",
"description": "Flourish module with handy tools",

@@ -5,0 +5,0 @@ "main": "pocket-knife.js",

@@ -0,1 +1,4 @@

### 1.1.0
* Fix truncated line-wrapping
### 1.0.0

@@ -2,0 +5,0 @@ * Add `getTextDirection`

@@ -80,3 +80,3 @@ import { color } from "d3-color";

// if everything fits in one line, so leave as a single string
// if everything fits in one line, leave as a single string
var text_width = ctx.measureText(text).width;

@@ -118,5 +118,5 @@ if (text_width <= max_width) {

var remove_counter = 1;
var truncated_string = string;
var truncated_string = word;
do {
truncated_string = string.substring(0, string.length - remove_counter) + "…";
truncated_string = word.substring(0, string.length - remove_counter) + "…";
string_width = ctx.measureText(truncated_string).width;

@@ -123,0 +123,0 @@ }

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