buzzmap icon indicating copy to clipboard operation
buzzmap copied to clipboard

I would like to hide their children earlier and display only the parent before

Open fucore opened this issue 12 years ago • 4 comments

fucore avatar Jun 26 '13 19:06 fucore

This project is actually based upon keneth kufluk's js-mindmap (demo), which presumably does exactly what you need.

Alternatively, you could adjust buzzmap to hide the parent's other children if one node's children are being viewed. The relevant method to tweak would be Node#display

marcelklehr avatar Jun 27 '13 11:06 marcelklehr

I'll have to adjust the SVG and jQuery that makes mounting the father and the children right?

fucore avatar Jun 27 '13 18:06 fucore

You'd have to modify the part of the code I linked to, plus the initial definition of root nodes: https://github.com/marcelklehr/buzzmap/blob/master/buzzmap.js#L112

(there's a global root node, which is invisible, all normal root nodes are children of this one.)

the active class indicates if a node's children should be displayed.

marcelklehr avatar Jun 28 '13 14:06 marcelklehr

(You don't have to manipulate anything about raphael/svg (the connecting lines). they'll only appear if both nodes are visible.)

marcelklehr avatar Jun 28 '13 14:06 marcelklehr