@flourish/controls
Advanced tools
Comparing version
{ | ||
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
191667
0.3%4752
0.08%1
Infinity%