Package Exports
- mind-elixir
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mind-elixir) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mind elixir is a free open source mind map core.
Use now
Use in your project
Install
NPM
npm i mind-elixir -S
import MindElixir, { E } from 'mind-elixir'
Script tag
<script src="https://cdn.jsdelivr.net/npm/mind-elixir/dist/mind-elixir.js"></script>
HTML structure
<div class="outer">
<div id="map"></div>
</div>
<style>
.outer {
position: relative;
margin: 50px;
}
#map {
height: 500px;
width: 100%;
overflow: auto;
}
</style>
Init
let mind = new MindElixir({
el: '#map',
direction: MindElixir.LEFT,
data: MindElixir.new('new topic'), // can also set data return from .getAllData()
draggable: true, // default true
contextMenu: true, // default true
toolBar: true, // default true
nodeMenu: true, // default true
keypress: true, // default true
})
mind.init()
// get a node
E('node-id')
Data Export
mind.getAllData()
// see src/example.js
Doc
https://inspiring-golick-3c01b9.netlify.com/