marcelklehr / buzzmap

draw and edit mindmaps interactively, using force-directed layouts (jQuery plugin)
marcelklehr.github.com/buzzmap
Other
22 stars 17 forks source link

Display all nodes #6

Open rosecook opened 9 years ago

rosecook commented 9 years ago

Hi,

I'm new to jquery and attempting to integrate your minima into a website. Is there an easy way of changing the code so instead of only showing the next branches of mind map after clicking the parent, you can just see them all at once? It'd also be great to be responsive if you have any updates for that.

Thanks!

marcelklehr commented 9 years ago

There's no option for that, but you can manually activate all nodes:

$('#container').buzzmap()
$('#container.buzzmap .node').addClass('active');

This should do the trick :)

rosecook commented 9 years ago

Thanks so much for the help. That didn't seem to do anything for me though.. where abouts do you suggest adding it? for reference this is what I have: http://rogueskins.com/uquine/buzzmap-master/index.html

I'm wanting it within wordpress once I've got it built. Not sure on the best way to do it so that it is responsive with my wordpress theme - at the moment it seems to go off the page if you have different screen size. Do you have any suggestions? I've been fiddling around for a while but not having much luck.

Thanks :)

On 26 May 2015 at 11:15, Marcel Klehr notifications@github.com wrote:

There's no option for that, but you can manually activate all nodes:

$('#container').buzzmap() $('#container.buzzmap .node').addClass('active');

This should do the trick :)

— Reply to this email directly or view it on GitHub https://github.com/marcelklehr/buzzmap/issues/6#issuecomment-105477489.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

marcelklehr commented 9 years ago

You need to call it inside the $(document).ready callback, otherwise it won't work. Just put $('#container.buzzmap .node').addClass('active'); right after buzzmap = $('#container').buzzmap({ ... })

rosecook commented 9 years ago

thanks so much! I feel silly now :P.

On 26 May 2015 at 12:28, Marcel Klehr notifications@github.com wrote:

You need to call it inside the $(document).ready callback, otherwise it won't work. Just put $('#container.buzzmap .node').addClass('active'); right after buzzmap = $('#container').buzzmap({ ... })

— Reply to this email directly or view it on GitHub https://github.com/marcelklehr/buzzmap/issues/6#issuecomment-105494049.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

rosecook commented 9 years ago

How do I remove the function that hides the child nodes on click of parent? I've got them all showing but sometimes when you click the box and not the text the child nodes vanish until refresh

I'd really appreciate the help :)

On 26 May 2015 at 16:28, Rose Lawrence rose@cookingvinyl.com wrote:

thanks so much! I feel silly now :P.

On 26 May 2015 at 12:28, Marcel Klehr notifications@github.com wrote:

You need to call it inside the $(document).ready callback, otherwise it won't work. Just put $('#container.buzzmap .node').addClass('active'); right after buzzmap = $('#container').buzzmap({ ... })

— Reply to this email directly or view it on GitHub https://github.com/marcelklehr/buzzmap/issues/6#issuecomment-105494049.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

  • http://WWW.EMBRACE.CO.UK* E-mail non-disclosure: The information contained in this e-mail is confidential, may be privileged and is intended solely for the use of the named addressee. Access to this e-mail by any other person is not authorised. If you are not the intended recipient, you should not disclose, copy, distribute, take any action or rely on it and you should, please, notify the sender by reply.

Rose Lawrence Digital Assets Designer

Cooking Vinyl 12 & 13 Swainson Road Acton London W3 7XB

Office: +44 208 600 9243 Mobile: +44 7800 893 811 W: www.cookingvinyl.com Map: http://g http://goo.gl/maps/W7YgCoo.gl/maps/W7YgC http://goo.gl/maps/W7YgC

Check out our latest releases: http://po.st/LatestReleases

WEBSITE http://www.cookingvinyl.com/ | TWITTER https://twitter.com/cookingvinyl | FACEBOOK http://facebook.com/cookingvinylrecords | SPOTIFY http://open.spotify.com/user/cooking_vinyl | SOUNDCLOUD https://soundcloud.com/cookingvinyl | YOUTUBE https://www.youtube.com/user/CookingVinylRecords

marcelklehr commented 9 years ago

https://github.com/marcelklehr/buzzmap/blob/master/buzzmap.js#L129 This is the function you gotta change. Just add a return true before this line and you're good ;)

rosecook commented 9 years ago

thank you :)