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
Evgeny
c3-closed
Commits
d3c00681
Commit
d3c00681
authored
Jun 04, 2014
by
Masayuki Tanaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename onenter/onleave to onmouseover/onmouseout
parent
9d86a148
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
c3.js
c3.js
+10
-10
c3.min.js
c3.min.js
+0
-0
chart_bar.html
htdocs/samples/chart_bar.html
+2
-2
custom_x_scale.html
htdocs/samples/custom_x_scale.html
+2
-2
custom_xs_scale.html
htdocs/samples/custom_xs_scale.html
+2
-2
simple.html
htdocs/samples/simple.html
+2
-2
No files found.
c3.js
View file @
d3c00681
...
...
@@ -129,8 +129,8 @@
var
__interaction_enabled
=
getConfig
([
'interaction'
,
'enabled'
],
true
);
var
__on
enter
=
getConfig
([
'onent
er'
],
function
()
{}),
__on
leave
=
getConfig
([
'onleave
'
],
function
()
{}),
var
__on
mouseover
=
getConfig
([
'onmouseov
er'
],
function
()
{}),
__on
mouseout
=
getConfig
([
'onmouseout
'
],
function
()
{}),
__onresize
=
getConfig
([
'onresize'
],
function
()
{}),
__onresized
=
getConfig
([
'onresized'
],
function
()
{});
...
...
@@ -161,8 +161,8 @@
__data_selection_isselectable
=
getConfig
([
'data'
,
'selection'
,
'isselectable'
],
function
()
{
return
true
;
}),
__data_selection_multiple
=
getConfig
([
'data'
,
'selection'
,
'multiple'
],
true
),
__data_onclick
=
getConfig
([
'data'
,
'onclick'
],
function
()
{}),
__data_on
enter
=
getConfig
([
'data'
,
'onent
er'
],
function
()
{}),
__data_on
leave
=
getConfig
([
'data'
,
'onleave
'
],
function
()
{}),
__data_on
mouseover
=
getConfig
([
'data'
,
'onmouseov
er'
],
function
()
{}),
__data_on
mouseout
=
getConfig
([
'data'
,
'onmouseout
'
],
function
()
{}),
__data_onselected
=
getConfig
([
'data'
,
'onselected'
],
function
()
{}),
__data_onunselected
=
getConfig
([
'data'
,
'onunselected'
],
function
()
{}),
__data_ondragstart
=
getConfig
([
'data'
,
'ondragstart'
],
function
()
{}),
...
...
@@ -2863,8 +2863,8 @@
// Define svgs
svg
=
selectChart
.
append
(
"svg"
)
.
style
(
"overflow"
,
"hidden"
)
.
on
(
'mouseenter'
,
__on
ent
er
)
.
on
(
'mouseleave'
,
__on
leave
);
.
on
(
'mouseenter'
,
__on
mouseov
er
)
.
on
(
'mouseleave'
,
__on
mouseout
);
// Define defs
defs
=
svg
.
append
(
"defs"
);
...
...
@@ -3147,7 +3147,7 @@
// Call event handler
main
.
selectAll
(
'.'
+
CLASS
.
shape
+
'-'
+
index
).
each
(
function
(
d
)
{
__data_on
ent
er
(
d
);
__data_on
mouseov
er
(
d
);
});
})
.
on
(
'mouseout'
,
function
(
d
)
{
...
...
@@ -3160,7 +3160,7 @@
unexpandBars
();
// Call event handler
main
.
selectAll
(
'.'
+
CLASS
.
shape
+
'-'
+
index
).
each
(
function
(
d
)
{
__data_on
leave
(
d
);
__data_on
mouseout
(
d
);
});
})
.
on
(
'mousemove'
,
function
(
d
)
{
...
...
@@ -3286,12 +3286,12 @@
if
(
dist
(
closest
,
mouse
)
<
100
)
{
svg
.
select
(
'.'
+
CLASS
.
eventRect
).
style
(
'cursor'
,
'pointer'
);
if
(
!
mouseover
)
{
__data_on
ent
er
(
closest
);
__data_on
mouseov
er
(
closest
);
mouseover
=
true
;
}
}
else
{
svg
.
select
(
'.'
+
CLASS
.
eventRect
).
style
(
'cursor'
,
null
);
__data_on
leave
(
closest
);
__data_on
mouseout
(
closest
);
mouseover
=
false
;
}
})
...
...
c3.min.js
View file @
d3c00681
This diff is collapsed.
Click to expand it.
htdocs/samples/chart_bar.html
View file @
d3c00681
...
...
@@ -16,8 +16,8 @@
],
type
:
'bar'
,
onclick
:
function
(
d
,
element
)
{
console
.
log
(
"onclick"
,
d
,
element
);
},
on
enter
:
function
(
d
)
{
console
.
log
(
"onent
er"
,
d
);
},
on
leave
:
function
(
d
)
{
console
.
log
(
"onleave
"
,
d
);
}
on
mouseover
:
function
(
d
)
{
console
.
log
(
"onmouseov
er"
,
d
);
},
on
mouseout
:
function
(
d
)
{
console
.
log
(
"onmouseout
"
,
d
);
}
},
axis
:
{
x
:
{
...
...
htdocs/samples/custom_x_scale.html
View file @
d3c00681
...
...
@@ -20,8 +20,8 @@
selection
:
{
enabled
:
true
},
on
enter
:
function
(
d
)
{
console
.
log
(
"onent
er"
,
d
);
},
on
leave
:
function
(
d
)
{
console
.
log
(
"onleave
"
,
d
);
}
on
mouseover
:
function
(
d
)
{
console
.
log
(
"onmouseov
er"
,
d
);
},
on
mouseout
:
function
(
d
)
{
console
.
log
(
"onmouseout
"
,
d
);
}
},
});
...
...
htdocs/samples/custom_xs_scale.html
View file @
d3c00681
...
...
@@ -24,8 +24,8 @@
selection
:
{
enabled
:
true
},
on
enter
:
function
(
d
)
{
console
.
log
(
"onent
er"
,
d
);
},
on
leave
:
function
(
d
)
{
console
.
log
(
"onleave
"
,
d
);
}
on
mouseover
:
function
(
d
)
{
console
.
log
(
"onmouseov
er"
,
d
);
},
on
mouseout
:
function
(
d
)
{
console
.
log
(
"onmouseout
"
,
d
);
}
}
});
...
...
htdocs/samples/simple.html
View file @
d3c00681
...
...
@@ -15,8 +15,8 @@
[
'data2'
,
50
,
20
,
10
,
40
,
15
,
25
]
],
onclick
:
function
(
d
,
element
)
{
console
.
log
(
"onclick"
,
d
,
element
);
},
on
enter
:
function
(
d
)
{
console
.
log
(
"onent
er"
,
d
);
},
on
leave
:
function
(
d
)
{
console
.
log
(
"onleave
"
,
d
);
},
on
mouseover
:
function
(
d
)
{
console
.
log
(
"onmouseov
er"
,
d
);
},
on
mouseout
:
function
(
d
)
{
console
.
log
(
"onmouseout
"
,
d
);
},
}
});
</script>
...
...
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