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
6b489696
Commit
6b489696
authored
May 19, 2014
by
Mike Bostock
Browse files
Style tweak.
parent
58af5194
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
d3.js
d3.js
+1
-3
src/layout/hierarchy.js
src/layout/hierarchy.js
+1
-3
No files found.
d3.js
View file @
6b489696
...
...
@@ -6383,9 +6383,7 @@
});
d3_layout_hierarchyVisitAfter
(
root
,
function
(
node
)
{
var
parent
;
if
(
!
node
.
children
)
{
node
.
value
=
+
value
.
call
(
hierarchy
,
node
,
node
.
depth
)
||
0
;
}
if
(
!
node
.
children
)
node
.
value
=
+
value
.
call
(
hierarchy
,
node
,
node
.
depth
)
||
0
;
if
(
parent
=
node
.
parent
)
parent
.
value
+=
node
.
value
;
});
}
...
...
src/layout/hierarchy.js
View file @
6b489696
...
...
@@ -66,9 +66,7 @@ d3.layout.hierarchy = function() {
});
d3_layout_hierarchyVisitAfter
(
root
,
function
(
node
)
{
var
parent
;
if
(
!
node
.
children
)
{
node
.
value
=
+
value
.
call
(
hierarchy
,
node
,
node
.
depth
)
||
0
;
}
if
(
!
node
.
children
)
node
.
value
=
+
value
.
call
(
hierarchy
,
node
,
node
.
depth
)
||
0
;
if
(
parent
=
node
.
parent
)
parent
.
value
+=
node
.
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