kennethkufluk / js-mindmap

JavaScript Mindmap
http://kenneth.kufluk.com/google/js-mindmap/
MIT License
606 stars 146 forks source link

Kevin's initial updates #1

Closed kevinkells closed 13 years ago

kevinkells commented 13 years ago

Hi Kenneth,

I've prepared my initial updates for pulling into the git repository.

These changes include:

  1. Root node is now treated as regular node
  2. Nodes are now <li></li> which can contain text, action areas, and <ul> of other nodes. This meant only the following changes:
    1. Root is now <li> instead of <a> (change to .html made)
    2. Sibling relationships are now defined through <li> and not <a> (change to .html made)
  3. The main struct is now <ul id=js-mindmap>. The struct parsed for initialization is
    . (change to .html made) Initialization from XML/JSON is next in mind.
  4. Added action area. Action area currently has only one action, add. Added boolean option to turn this off (default on)
  5. Cleaned up math, removed trig where it wasn't necessary, should now be faster.

Let me know what you think. I'd be delighted if my changes could be incorporated.

What I have in mind next is:

A) Improve "add" action. Now prompt, should be <form> B) Improve pseudo-3D navigation. Currently works ok, but should be smoother. C) Add "delete" D) Initialize from PHP/MySQL via JSON. E) Write to PHP/MySQL via JSON F) Expand actions to include agree/disagree scale, color coded green/red, extracted as overlay template.

Thanks! Kevin