Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MUR Drupal
d3_sankey
Commits
6fa2e564
Commit
6fa2e564
authored
Aug 18, 2016
by
M Parker
Browse files
Explicitly convert ints, bools to the expected type in JavaScript.
parent
dc329a53
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/d3.sankey/sankey.js
View file @
6fa2e564
...
...
@@ -14,12 +14,12 @@
// Grab settings from the settings object passed to us by the D3 module. Use
// defaults if the settings we want do not exist in the settings object.
var
sankeyType
=
(
settings
.
sankeyType
||
'
Sankey
'
);
var
width
=
(
settings
.
width
||
700
);
var
height
=
(
settings
.
height
||
400
);
var
nodeWidth
=
(
settings
.
nodeWidth
||
24
);
var
nodePadding
=
(
settings
.
nodePadding
||
8
);
var
spread
=
(
settings
.
spread
||
true
);
var
iterations
=
(
settings
.
iterations
||
1
);
var
width
=
parseInt
(
settings
.
width
||
700
);
var
height
=
parseInt
(
settings
.
height
||
400
);
var
nodeWidth
=
parseInt
(
settings
.
nodeWidth
||
24
);
var
nodePadding
=
parseInt
(
settings
.
nodePadding
||
8
);
var
spread
=
Boolean
(
settings
.
spread
||
true
);
var
iterations
=
parseInt
(
settings
.
iterations
||
1
);
var
alignLabel
=
(
settings
.
alignLabel
||
'
auto
'
);
// Grab data for the chart if it exists in it's raw form; if not, use empty
...
...
Write
Preview
Supports
Markdown
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