You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@flourish/controls

Package Overview
Dependencies
Maintainers
18
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flourish/controls - npm Package Compare versions

Comparing version

to
8.0.3

23

package.json
{
"name": "@flourish/controls",
"version": "8.0.2",
"version": "8.0.3",
"private": false,

@@ -11,2 +11,11 @@ "description": "Switchable dropdown/buttons/slider control",

},
"scripts": {
"build": "rollup -c",
"watch": "rollup -cw",
"prepare": "npm run build && npm run minify",
"minify": "terser -m -o controls.min.js controls.js",
"lint": "eslint src",
"cypress": "flcypress open",
"test": "flcypress run"
},
"author": "Kiln Enterprises Ltd",

@@ -31,13 +40,5 @@ "license": "LicenseRef-LICENSE",

"@flourish/eslint-plugin-flourish": "^0.7.2",
"cypress": "12",
"cypress": "12.17.4",
"eslint": "^8.35.0"
},
"scripts": {
"build": "rollup -c",
"watch": "rollup -cw",
"minify": "terser -m -o controls.min.js controls.js",
"lint": "eslint src",
"cypress": "flcypress open",
"test": "flcypress run"
}
}
}

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

# 8.0.3
* Take into account font weight when measuring label
# 8.0.2

@@ -2,0 +5,0 @@ * Update dropdown option value and text on every update, not just on enter

@@ -144,5 +144,6 @@ import { select, event as d3_event } from "d3-selection";

var slider_font_size = window.getComputedStyle(slider_label.node()).fontSize;
var slider_font_family = window.getComputedStyle(slider_label.node()).fontFamily;
var slider_font_weight = window.getComputedStyle(slider_holder.node()).fontWeight;
let longest_text_width = 0;
const font = slider_font_size + " sans-serif";
const font = slider_font_weight + " " + slider_font_size + " " + slider_font_family + ", sans-serif";
sorted_options

@@ -149,0 +150,0 @@ .forEach(function(d) {

Sorry, the diff of this file is too big to display