Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@flourish/controls

Package Overview
Dependencies
Maintainers
21
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 8.0.6 to 8.0.7

controls.min.js

2

package.json
{
"name": "@flourish/controls",
"version": "8.0.6",
"version": "8.0.7",
"private": false,

@@ -5,0 +5,0 @@ "description": "Switchable dropdown/buttons/slider control",

@@ -58,2 +58,8 @@ # Flourish controls

You can add an id string to a control using the second argument:
```js
var buttons_control = createControls(state.buttons_control, "fl-buttons-control");
```
Add an on change handler to each controls instance: `buttons_control.on("change", update);`. This is usually done in the `draw` function.

@@ -60,0 +66,0 @@

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

# 8.0.7
* Add id argument to createControls
# 8.0.6

@@ -2,0 +5,0 @@ * Update setting descriptions and add links

@@ -51,3 +51,3 @@ import { select } from "d3-selection";

function createControls(state) {
function createControls(state, id) {
var control_obj = {};

@@ -62,2 +62,3 @@ var parser = defaultParser;

var container = document.createElement("div");
if (id) container.setAttribute("id", id);
container.setAttribute("class", "fl-controls-container");

@@ -64,0 +65,0 @@ var container_title = select(container).append("div").attr("class", "fl-controls-title");

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

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