Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build/bubbletree.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ var BubbleTree = function(config, onHover, onUnHover) {
else node.color = '#999999';
}
// lighten up the color if there are no children
if (node.children.length < 2 && node.color) {
if (node.children.length < 1 && node.color) {
node.color = vis4color.fromHex(node.color).saturation('*.86').x;
}

Expand Down Expand Up @@ -453,7 +453,7 @@ var BubbleTree = function(config, onHover, onUnHover) {
for (i in me.displayObjects) me.displayObjects[i].hideFlag = true;


if (node == root || node.parent == root && node.children.length < 2) {
if (node == root || node.parent == root && node.children.length < 1) {

t.$(me).bubbleScale = 1.0;

Expand Down Expand Up @@ -489,7 +489,7 @@ var BubbleTree = function(config, onHover, onUnHover) {

var origNode = node; // save the reference of the node..

if (node.children.length < 2) { // ..because if it has no children..
if (node.children.length < 1) { // ..because if it has no children..
node = node.parent; // ..we center on its parent
}

Expand Down
Loading