# mind-elixir-core **Repository Path**: pengqqian/mind-elixir-core ## Basic Information - **Project Name**: mind-elixir-core - **Description**: Mind elixir is a free open source mind map core - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2020-04-14 - **Last Updated**: 2022-02-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![mindelixir logo](https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/logo.png)

version license

Mind elixir is a free open source mind map core. [中文](https://github.com/ssshooter/mind-elixir-core/blob/master/readme.cn.md) ## Use now ![mindelixir](https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/screenshot.png) https://mindelixir.ink/#/ ### Try it in codepen https://codepen.io/ssshooter/pen/GVQRYK ## Use in your project ### Install #### NPM ```bash npm i mind-elixir -S ``` ```javascript import MindElixir, { E } from 'mind-elixir' ``` #### Script tag ```html ``` ### HTML structure ```html
``` ### Init ```javascript let mind = new MindElixir({ el: '#map', direction: MindElixir.LEFT, // create new map data data: MindElixir.new('new topic'), // or set as data that is return from `.getAllData()` data: {...}, 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 ```javascript mind.getAllData() // see src/example.js ``` ## Doc https://doc.mindelixir.ink/ ## Dependency [hotkeys-js](https://www.npmjs.com/package/hotkeys-js)