Skip to content

Commit

Permalink
Specify generic image in javascript
Browse files Browse the repository at this point in the history
Also, had to turn off `avoidOverlap` for now. This option only has a
real impact when physics are turned off and new nodes are brought into
the graph visualization. They will now overlap. We can presumably turn
this option back on when this bug is fixed:
almende/vis#1625
  • Loading branch information
patrickmcelwee committed Aug 4, 2016
1 parent 55fc340 commit 763c40a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dist/ml-visjs-graph-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@
borderWidth: 2,
shadow: true,
borderWidthSelected: 6,
shape: 'circularImage',
image: 'bower_components/ml-visjs-graph-ng/dist/images/generic.png',
color: {
background: 'white'
},
Expand Down Expand Up @@ -285,7 +287,7 @@
springLength: 200,
springConstant: 0.04,
damping: 0.5,
avoidOverlap: 1
avoidOverlap: 0
},

// built-in default
Expand All @@ -304,7 +306,7 @@
springLength: 100,
springConstant: 0.08,
damping: 0.4,
avoidOverlap: 1
avoidOverlap: 0
},

// built-in default
Expand Down
2 changes: 1 addition & 1 deletion dist/ml-visjs-graph-ng.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/visjs-graph/visjs-graph.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@
borderWidth: 2,
shadow: true,
borderWidthSelected: 6,
shape: 'circularImage',
image: 'bower_components/ml-visjs-graph-ng/dist/images/generic.png',
color: {
background: 'white'
},
Expand Down Expand Up @@ -164,7 +166,7 @@
springLength: 200,
springConstant: 0.04,
damping: 0.5,
avoidOverlap: 1
avoidOverlap: 0
},

// built-in default
Expand All @@ -183,7 +185,7 @@
springLength: 100,
springConstant: 0.08,
damping: 0.4,
avoidOverlap: 1
avoidOverlap: 0
},

// built-in default
Expand Down

0 comments on commit 763c40a

Please sign in to comment.