Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
c3-closed
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
charts
c3-closed
Commits
edc15c94
Commit
edc15c94
authored
Oct 28, 2013
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable multiple selection with alt drag
parent
6fb6b0f1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
c3.js
c3.js
+7
-2
c3.min.js
c3.min.js
+0
-0
No files found.
c3.js
View file @
edc15c94
...
...
@@ -793,7 +793,7 @@
//-- Define brush/zoom -//
var
brush
=
d3
.
svg
.
brush
().
on
(
"brush"
,
redrawForBrush
);
var
zoom
=
d3
.
behavior
.
zoom
().
on
(
"zoom"
,
__zoom_enabled
?
redrawForZoom
:
null
);
var
zoom
=
d3
.
behavior
.
zoom
().
on
(
"zoom
start"
,
function
(){
zoom
.
startDomain
=
d3
.
event
.
sourceEvent
.
altKey
?
x
.
orgDomain
()
:
null
;
}).
on
(
"zoom
"
,
__zoom_enabled
?
redrawForZoom
:
null
);
// define functions for c3
brush
.
update
=
function
()
{
...
...
@@ -1104,7 +1104,7 @@
.
call
(
d3
.
behavior
.
drag
().
origin
(
Object
).
on
(
'drag'
,
function
(
d
){
if
(
!
__data_selection_enabled
)
return
;
// do nothing if not selectable
if
(
__zoom_enabled
)
return
;
// skip if zoomable because of conflict drag dehavior
if
(
__zoom_enabled
&&
!
zoom
.
startDomain
)
return
;
// skip if zoomable because of conflict drag dehavior
var
sx
=
dragStart
[
0
],
sy
=
dragStart
[
1
],
mouse
=
d3
.
mouse
(
this
),
...
...
@@ -1461,6 +1461,11 @@
});
}
function
redrawForZoom
()
{
if
(
d3
.
event
.
sourceEvent
.
type
===
'mousemove'
&&
zoom
.
startDomain
)
{
x
.
domain
(
zoom
.
startDomain
);
zoom
.
x
(
x
);
return
;
}
redraw
({
withTransition
:
false
,
withY
:
false
,
...
...
c3.min.js
View file @
edc15c94
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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