Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MUR Drupal
d3-library
Commits
4f552825
Commit
4f552825
authored
Mar 01, 2012
by
Mike Bostock
Browse files
Include brush mode with event.
This allows listeners to distinguish between move and resize events.
parent
93c78c62
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
d3.v2.js
View file @
4f552825
...
...
@@ -4429,7 +4429,7 @@ d3.svg.brush = function() {
// Final redraw and notify listeners.
if
(
moved
)
{
redraw
(
g
);
event_
({
type
:
"
brush
"
});
event_
({
type
:
"
brush
"
,
mode
:
dragging
?
"
move
"
:
"
resize
"
});
}
}
...
...
d3.v2.min.js
View file @
4f552825
This diff is collapsed.
Click to expand it.
src/svg/brush.js
View file @
4f552825
...
...
@@ -194,7 +194,7 @@ d3.svg.brush = function() {
// Final redraw and notify listeners.
if
(
moved
)
{
redraw
(
g
);
event_
({
type
:
"
brush
"
});
event_
({
type
:
"
brush
"
,
mode
:
dragging
?
"
move
"
:
"
resize
"
});
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment