Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MUR Drupal
d3-library
Commits
b86e4e4a
Commit
b86e4e4a
authored
Mar 23, 2014
by
Mike Bostock
Browse files
Getter support for transition.{delay,duration}.
Fixes #1773.
parent
28538c40
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletion
+5
-1
d3.js
d3.js
+2
-0
d3.min.js
d3.min.js
+1
-1
src/transition/delay.js
src/transition/delay.js
+1
-0
src/transition/duration.js
src/transition/duration.js
+1
-0
No files found.
d3.js
View file @
b86e4e4a
...
...
@@ -8578,6 +8578,7 @@
};
d3_transitionPrototype
.
delay
=
function
(
value
)
{
var
id
=
this
.
id
;
if
(
arguments
.
length
<
1
)
return
this
.
node
().
__transition__
[
id
].
delay
;
return
d3_selection_each
(
this
,
typeof
value
===
"
function
"
?
function
(
node
,
i
,
j
)
{
node
.
__transition__
[
id
].
delay
=
+
value
.
call
(
node
,
node
.
__data__
,
i
,
j
);
}
:
(
value
=
+
value
,
function
(
node
)
{
...
...
@@ -8586,6 +8587,7 @@
};
d3_transitionPrototype
.
duration
=
function
(
value
)
{
var
id
=
this
.
id
;
if
(
arguments
.
length
<
1
)
return
this
.
node
().
__transition__
[
id
].
duration
;
return
d3_selection_each
(
this
,
typeof
value
===
"
function
"
?
function
(
node
,
i
,
j
)
{
node
.
__transition__
[
id
].
duration
=
Math
.
max
(
1
,
value
.
call
(
node
,
node
.
__data__
,
i
,
j
));
}
:
(
value
=
Math
.
max
(
1
,
value
),
function
(
node
)
{
...
...
d3.min.js
View file @
b86e4e4a
This diff is collapsed.
Click to expand it.
src/transition/delay.js
View file @
b86e4e4a
...
...
@@ -3,6 +3,7 @@ import "transition";
d3_transitionPrototype
.
delay
=
function
(
value
)
{
var
id
=
this
.
id
;
if
(
arguments
.
length
<
1
)
return
this
.
node
().
__transition__
[
id
].
delay
;
return
d3_selection_each
(
this
,
typeof
value
===
"
function
"
?
function
(
node
,
i
,
j
)
{
node
.
__transition__
[
id
].
delay
=
+
value
.
call
(
node
,
node
.
__data__
,
i
,
j
);
}
:
(
value
=
+
value
,
function
(
node
)
{
node
.
__transition__
[
id
].
delay
=
value
;
}));
...
...
src/transition/duration.js
View file @
b86e4e4a
...
...
@@ -3,6 +3,7 @@ import "transition";
d3_transitionPrototype
.
duration
=
function
(
value
)
{
var
id
=
this
.
id
;
if
(
arguments
.
length
<
1
)
return
this
.
node
().
__transition__
[
id
].
duration
;
return
d3_selection_each
(
this
,
typeof
value
===
"
function
"
?
function
(
node
,
i
,
j
)
{
node
.
__transition__
[
id
].
duration
=
Math
.
max
(
1
,
value
.
call
(
node
,
node
.
__data__
,
i
,
j
));
}
:
(
value
=
Math
.
max
(
1
,
value
),
function
(
node
)
{
node
.
__transition__
[
id
].
duration
=
value
;
}));
...
...
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