From 8b99fcda1b5fd398967377528d95ee6b92d3067f Mon Sep 17 00:00:00 2001 From: Christopher Caldwell Date: Wed, 17 Jul 2024 12:26:57 -0400 Subject: [PATCH] more updates --- index.html | 2 +- package.json | 2 +- src/index.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index eafff61..294e25e 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - +
diff --git a/package.json b/package.json index dc654e8..f419fbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "d3-brush-handles", - "version": "0.0.2", + "version": "0.0.3", "description": "Brush handles for d3-brush", "main": "dist/d3-brush-handles.js", "scripts": { diff --git a/src/index.js b/src/index.js index 4c3a219..4a4103a 100644 --- a/src/index.js +++ b/src/index.js @@ -55,12 +55,12 @@ export function addHandlesToBrushX(brush, brushContainer, selectionFn, brushHeig let selectionFunc = selectionFn; if (selectionFn == null) { - selectionFn = s => s.selection; + selectionFunc = s => s.selection; } function handleBrushEvent(event) { if (!event.sourceEvent) return; - updateHandles(selectionFn(event)); + updateHandles(selectionFunc(event)); } function brushed(event) {