@flourish/controls
Advanced tools
Comparing version 8.0.5 to 8.0.6
const { defineConfig } = require("cypress"); | ||
const flourishConfig = require("@flourish/cypress/config.js"); | ||
@@ -8,2 +9,3 @@ module.exports = defineConfig({ | ||
setupNodeEvents(on, config) { | ||
flourishConfig(on, config); | ||
return require("./cypress/plugins/index.js")(on, config); | ||
@@ -10,0 +12,0 @@ }, |
@@ -104,2 +104,3 @@ /* eslint-disable no-undef */ | ||
cy.get(swatch_sizes).each((swatch_size) => { | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(1).then(function () { | ||
@@ -155,2 +156,3 @@ state.controls_style.font_size = font_size; | ||
cy.get(swatch_sizes).each((swatch_size) => { | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(10).then(function () { | ||
@@ -157,0 +159,0 @@ state.controls_style.font_size = font_size; |
{ | ||
"name": "@flourish/controls", | ||
"version": "8.0.5", | ||
"version": "8.0.6", | ||
"private": false, | ||
@@ -25,3 +25,3 @@ "description": "Switchable dropdown/buttons/slider control", | ||
"terser": "^5.7.1", | ||
"@flourish/formatters": "^1.0.3" | ||
"@flourish/formatters": "^1.0.4" | ||
}, | ||
@@ -31,7 +31,7 @@ "devDependencies": { | ||
"@babel/preset-env": "^7.23.6", | ||
"@flourish/cypress": "8", | ||
"@flourish/eslint-plugin-flourish": "^0.7.2", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"cypress": "12.17.4", | ||
"eslint": "^8.35.0" | ||
"eslint": "^8.35.0", | ||
"@flourish/cypress": "^8.0.0" | ||
}, | ||
@@ -42,3 +42,3 @@ "scripts": { | ||
"minify": "terser -m -o controls.min.js controls.js", | ||
"lint": "eslint src", | ||
"lint": "eslint .", | ||
"cypress": "flcypress open", | ||
@@ -45,0 +45,0 @@ "test": "flcypress run" |
@@ -0,1 +1,4 @@ | ||
# 8.0.6 | ||
* Update setting descriptions and add links | ||
# 8.0.5 | ||
@@ -2,0 +5,0 @@ * Fix format specifiers for negative decimal places in @flourish/formatters |
import { select, event as d3_event } from "d3-selection"; | ||
import { remToPx } from "../lib/remToPx.js"; | ||
function createButtons(control_obj, state, container) { | ||
@@ -6,0 +5,0 @@ var button_obj = {}; |
@@ -5,3 +5,2 @@ import { select } from "d3-selection"; | ||
function createDropdown(control_obj, state, container) { | ||
@@ -46,3 +45,2 @@ var dropdown_obj = {}; | ||
dropdown_obj.update = function(sorted_options, visible) { | ||
@@ -84,3 +82,2 @@ var dropdown_font_size = window.getComputedStyle(dropdown.node()).fontSize; | ||
return dropdown_obj; | ||
@@ -87,0 +84,0 @@ } |
@@ -132,3 +132,2 @@ import { select, event as d3_event } from "d3-selection"; | ||
slider_obj.update = function(_sorted_options, visible) { | ||
@@ -191,3 +190,2 @@ slider_div | ||
if (control_obj._isPlaying_() && !is_playing) startSliderPlayer(); | ||
@@ -194,0 +192,0 @@ else if (!control_obj._isPlaying_() && is_playing) stopSliderPlayer(); |
@@ -11,3 +11,2 @@ import { select } from "d3-selection"; | ||
var DEFAULTS = Object.freeze({ | ||
@@ -123,3 +122,2 @@ control_type: "dropdown", | ||
var indexFunction = function(i) { | ||
@@ -126,0 +124,0 @@ if (i === undefined) { |
@@ -24,3 +24,2 @@ function ascending(a, b) { | ||
export { sortArray }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194902
4791
1
Updated@flourish/formatters@^1.0.4