Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
caldwellc committed Jul 17, 2024
1 parent 854cb13 commit 8b99fcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script>
<html>
<body>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].3"></script>
<div id="chart-area"></div>
<script src="examples/example.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8b99fcd

Please sign in to comment.