Coder Social home page Coder Social logo

wanglin2 / mind-map Goto Github PK

View Code? Open in Web Editor NEW
3.8K 27.0 519.0 28.99 MB

一个还算强大的Web思维导图。A relatively powerful web mind map.

Home Page: https://wanglin2.github.io/mind-map/#/index

License: MIT License

JavaScript 41.70% HTML 0.31% Vue 57.63% CSS 0.27% Less 0.08% Dockerfile 0.01%
mind-map mindmap mind-mapping graph svg jsmind mindmapping xmind

mind-map's Introduction

Simple mind map

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

中文名:思绪思维导图。一个简单&强大的 Web 思维导图。

本项目包含两部分:

1.一个 js 思维导图库,不依赖任何框架,可以使用它来快速完成 Web 思维导图产品的开发。

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

2.一个 Web 思维导图,基于思维导图库、Vue2.x、ElementUI 开发,可以操作电脑本地文件,可以当做一个在线版思维导图应用使用,也可以自部署和二次开发。

在线地址:https://wanglin2.github.io/mind-map/

此外也提供了客户端可供下载使用,支持WindowsMacLinux,下载地址:

Github:releases。百度云盘:地址

客户端版本会落后于在线版本,尝试最新功能请优先使用在线版。

特性

  • 插件化架构,除核心功能外,其他功能作为插件提供,按需使用,减小打包体积
  • 支持逻辑结构图、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构
  • 内置多种主题,允许高度自定义样式,支持注册新主题
  • 节点内容支持文本(普通文本、富文本)、图片、图标、超链接、备注、标签、概要、数学公式
  • 节点支持拖拽(拖拽移动、自由调整)、多种节点形状,支持使用 DDM 完全自定义节点内容
  • 支持画布拖动、缩放
  • 支持鼠标按键拖动选择和 Ctrl+左键两种多选节点方式
  • 支持导出为jsonpngsvgpdfmarkdownxmind,支持从jsonxmindmarkdown导入
  • 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条
  • 提供丰富的配置,满足各种场景各种使用习惯
  • 支持协同编辑
  • 支持演示模式

安装

npm i simple-mind-map

使用

提供一个宽高不为 0 的容器元素:

<div id="mindMapContainer"></div>

另外再设置一下css样式:

#mindMapContainer * {
  margin: 0;
  padding: 0;
}

然后创建一个实例:

import MindMap from "simple-mind-map";

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

即可得到一个思维导图。

想要实现更多功能?可以查看开发文档

License

MIT。保留mind-map版权声明的情况下可随意商用。

微信交流群

群聊人数较多,无法通过二维码入群,可以微信添加wanglinguanfang拉你入群。

star

如果喜欢本项目,欢迎点个 star,这对我们很重要。

Star History Chart

请作者喝杯咖啡

开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~

推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。

Think 志斌 小土渣的宇宙 qp ZXR 花儿朵朵 suka Chris 水车 仓鼠 千帆 才镇 小米bbᯤ²ᴳ *棐 Luke 布林 南风 蜉蝣撼大叔 沐风牧草 有希 樊笼 达仁科技 小逗比 天清如愿 敬明朗 飞箭 戚永峰 moom 张扬 长沙利奥软件 HaHN 继龙 易空小易 国发 建明 汪津合 博文 慕智打印-兰兰 锦冰 旭东 俊奇 橘半 pluvet 皇登攀 风格 SR 逆水行舟 LiuJL L sunniberg 在下青铜五 木星二号

mind-map's People

Contributors

clh021 avatar doyouhaobaby avatar emircanerkul avatar esky-wh avatar f-star avatar happyyang233 avatar harris2012 avatar huangyuanyin avatar hyfree avatar kalcaddle avatar lxr-cel avatar maxchang3 avatar suka233 avatar wanghao1993 avatar wanglin2 avatar xbs233 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mind-map's Issues

Unable to add Hyperlink

Hi sir, @wanglin2 , while adding a hyperlink ( with http:// ) in the node, unable to add // (Slash) in the hyperlink text area sir. even i tried copying and pasting hyperlinks in the hyperlink text area. but can't do it sir
is there any other way to add a hyperlink in the node?

Let's do not use these comments

If would you use the right tools (vscode & gitlens (FREE)) you can quickly see who made changes and when.

image

So you don't need to place the author and date all around. I'm not sure how these descriptions are useful (setMode, as it written, should set the mode. No need to repeat again and again) but it might make sense if you automatically generate documentation.

In this setMode example, there are enum types that are read-only, and edit should be in the documentation as its written. BTW this is why Typescript is useful.

来自匿名用户的反馈

bug反馈:
1、导出时只传递后缀,名称没有传过去(好像固定了是思维导图)。
2、增加备注后,显示备注时无法选择复制文本。(不知道是不是禁用了)
能否增加新功能:
备注能否支持markdown,比如增加tui.editor这类编辑器。
建议:
快捷键 Enter 和 backspace 估计很多人打字时习惯用到。快捷键占用后,输入字时,按了回车键,结果增加了节点。

Cannot add Capital Letters

Hi there, i tried this code.. it's really good.. 👍
But is there some limitations i faced such as using capital letters by using SHIFT and keys, trying to add different colours for each connections, and user defined connection style (like straight line, curved line, boxed line...)

Is there any way to do it?

cdn的引入方式

作者你好,我修改了一下代码,但是想以cdn的形式引入,如何打包放入呢?

建议:浮动节点,翻译优化

对不起,我正在使用翻译器可能造成的误解。

非常感谢您提供如此丰富而复杂的免费工具,喜欢它。

作为可能的实现要建议浮动节点。能够将它们从树中分离出来,这使得开发思维导图非常有用。

此外,正在努力翻译它。如果 div 中的所有文本都在标签中而不是空的,那将非常有帮助。< span > 或者也许将所有单词包装到单独的字典中。如果您打算使其翻译友好。

非常感谢。

Is it possible to Move connectors Lines in user preferred manner?

Hi, @wanglin2 is it possible to add a menu item while editing the nodes as mentioned in the first image? [it will be handy for the users to use or edit URLs/image/text styling in the nodes]
image
image

Suggestion: moving the connector lines for the nodes in user preferred location, [this will improve the users to adjust the look/style of the mind map]
image

URLs in the nodes not accessible in pdf export
image

Suggestion: Adding sub-nodes at the top and bottom of the root nodes [this will helps the user to build the mind map more compactly]
image

Suggestion: Adding node editing option in 大纲 section
image

is it possible to inport content from excel file?

Hi @wanglin2 sir, is it possible to import the mindmap data using an excel file?
it will be useful to edit data in the user-preferred method (most users will use excel files to collect mindmap data). so if there is an option to import data using an excel file it will be useful for most users

image

禁用状态仍然可用

不选择节点,工具栏显示的灰色的,鼠标悬浮显示禁止点击。但是事实上仍然可以点击打开对应的弹窗。

可否支持多人共享

我看到目前的数据只是存档到localstorage中,可否考虑将数据存放到服务端或者本地文件中,这样就可以支持多人共享了。

Is it possible to keep nods in the user defiend position?

I came across your project. it's very cool.. but when I try to include more than 20 nodes in the root node the mind map cannot fit into the page. I am trying to export it as png and include it in the PowerPoint presentation but it is difficult to do it with auto position.. is it possible to mode nodes freely to rearrange the nodes so that I could use this code in my project?

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.