Giter VIP home page Giter VIP logo

mind-map's Introduction

Simple mind map

npm-version npm download GitHub stars GitHub issues GitHub forks license

一个简单&强大的Web思维导图库

Demo:https://wanglin2.github.io/mind-map/

文档:https://wanglin2.github.io/mind-map/#/doc/zh/

特性

  • 支持逻辑结构图、思维导图、组织结构图、目录组织图四种结构
  • 内置多种主题,允许高度自定义样式,支持注册新主题
  • 支持快捷键
  • 节点内容支持图片、图标、超链接、备注、标签、概要
  • 支持前进后退
  • 支持拖动、缩放
  • 支持右键和Ctrl+左键两种多选方式
  • 支持节点自由拖拽、拖拽调整
  • 支持多种节点形状
  • 支持导出为jsonpngsvgpdf,支持从jsonxmind导入
  • 支持小地图

安装

npm i simple-mind-map

使用

<div id="mindMapContainer"></div>
import MindMap from "simple-mind-map";

const mindMap = new MindMap({
  el: document.getElementById('mindMapContainer'),
  data: {
    "data": {
        "text": "根节点"
    },
    "children": []
  }
});

License

MIT

mind-map's People

Contributors

wanglin2 avatar harris2012 avatar huangyuanyin avatar emircanerkul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.