Skip to content
techird edited this page Dec 9, 2014 · 8 revisions

KityMinder is a powerful brain map visualization/editing tool developed and maintained by Baidu FEX team.

KityMinder Core is its core implementation part:

  • Including visual display of brain map data (Json format)
  • It includes simple editing functions (node creation, editing, and deletion). If you need rich editing functions, please go to KityMinder Editor
  • It does not include support for third-party formats (FreeMind, XMind, MindManager, plain text, Markdown, etc.) and can be loaded kityminder-protocol To extend third-party format support.
  • It does not include file storage support, so you need to store it yourself. Reference Baidu Brain Map The open source fio+baidu netdisk solution in.

Basic use

After introducing kityminder core, use kityminder. Minder structure Minder example:

 var  minder  =  new  kityminder . Minder ( {
	 renderTo : 'minder-container'
 } ) ;

among renderTo Option to specify the ID of the rendered container or container.

Command call

After constructing Minder, you can execute a series of command

 minder . execCommand ( 'camera' ,  minder . getRoot ( ) ) ;

For details, please refer to command Section.

Interfaces and Events

Minder instance has rich interfaces and events, which can be used for effective secondary development:

 minder . on ( 'selectionchange' ,  function ( )  {
	 var  node  =  minder . getSelectedNode ( ) ;
	 if  ( node )  {
		 console ( 'You selected: "%s"' ,  node . getText ( ) ) ;
	 }
 } ) ;

Please refer to Interfaces and Events Section.