客户端:1.支持打开空文件;2.支持设置默认的主题和结构;

This commit is contained in:
街角小林 2024-08-27 17:06:03 +08:00
commit b438385cd6
504 changed files with 1494 additions and 36744 deletions

View File

@ -13,7 +13,7 @@
1.一个 js 思维导图库,不依赖任何框架,可以使用它来快速完成 Web 思维导图产品的开发。
开发文档:[https://wanglin2.github.io/mind-map/#/doc/zh/](https://wanglin2.github.io/mind-map/#/doc/zh/)。
开发文档:[https://wanglin2.github.io/mind-map-docs/](https://wanglin2.github.io/mind-map-docs/)。
2.一个 Web 思维导图基于思维导图库、Vue2.x、ElementUI 开发,可以操作电脑本地文件,可以当做一个在线版思维导图应用使用,也可以自部署和二次开发。
@ -44,7 +44,7 @@ Github[releases](https://github.com/wanglin2/mind-map/releases)。百度云
官方提供了如下插件,可根据需求按需引入(某个功能不生效大概率是因为你没有引入对应的插件),具体使用方式请查看文档:
> RichText节点富文本插件、Select鼠标多选节点插件、Drag节点拖拽插件、AssociativeLine关联线插件、Export导出插件、KeyboardNavigation键盘导航插件、MiniMap小地图插件、Watermark水印插件、TouchEvent移动端触摸事件支持插件、NodeImgAdjust拖拽调整节点图片大小插件、Search搜索插件、Painter节点格式刷插件、Scrollbar滚动条插件、Formula数学公式插件、Cooperate协同编辑插件、RainbowLines彩虹线条插件、Demonstrate演示模式插件、OuterFrame外框插件、HandDrawnLikeStyle手绘风格插件[收费]、Notation节点标记插件[收费]
> RichText节点富文本插件、Select鼠标多选节点插件、Drag节点拖拽插件、AssociativeLine关联线插件、Export导出插件、KeyboardNavigation键盘导航插件、MiniMap小地图插件、Watermark水印插件、TouchEvent移动端触摸事件支持插件、NodeImgAdjust拖拽调整节点图片大小插件、Search搜索插件、Painter节点格式刷插件、Scrollbar滚动条插件、Formula数学公式插件、Cooperate协同编辑插件、RainbowLines彩虹线条插件、Demonstrate演示模式插件、OuterFrame外框插件、HandDrawnLikeStyle手绘风格插件[收费]、Notation节点标记插件[收费]、Numbers节点编号插件[收费]
本项目不会实现的特性:
@ -95,7 +95,7 @@ const mindMap = new MindMap({
即可得到一个思维导图。
想要实现更多功能?可以查看[开发文档](https://wanglin2.github.io/mind-map/#/doc/zh/)。
想要实现更多功能?可以查看[开发文档](https://wanglin2.github.io/mind-map-docs/)。
# License
@ -449,4 +449,12 @@ const mindMap = new MindMap({
<img src="./web/src/assets/avatar/Jeffrey.jpg" style="width: 50px;height: 50px;" />
<span>Jeffrey</span>
</span>
<span>
<img src="./web/src/assets/avatar/张文建.jpg" style="width: 50px;height: 50px;" />
<span>张文建</span>
</span>
<span>
<img src="./web/src/assets/avatar/炫.jpg" style="width: 50px;height: 50px;" />
<span></span>
</span>
</p>

View File

@ -13,4 +13,4 @@ if (fs.existsSync(src)) {
fs.unlinkSync(src)
}
console.warn('请检查手绘风格、标记插件是否启用!!!')
console.warn('请检查手绘风格、标记插件、编号插件是否启用!!!')

2
dist/css/app.css vendored

File diff suppressed because one or more lines are too long

1
dist/css/chunk-3222d6ee.css vendored Normal file
View File

@ -0,0 +1 @@
.doc[data-v-d024f2fc]{position:fixed;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:20px}.doc a[data-v-d024f2fc]{color:#1ea59a}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
dist/img/Alex.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
dist/img/Chris.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
dist/img/HaHN.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

BIN
dist/img/Jeffrey.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

BIN
dist/img/Kyle.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

BIN
dist/img/L.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

BIN
dist/img/Think.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
dist/img/Tobin.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
dist/img/ZX.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
dist/img/ZXR.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
dist/img/alipay.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

BIN
dist/img/block1.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

BIN
dist/img/block3.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

BIN
dist/img/block4.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

BIN
dist/img/buddy.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
dist/img/ccccs.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

BIN
dist/img/default.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
dist/img/iconList.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
dist/img/moom.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

BIN
dist/img/pluvet.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

BIN
dist/img/qp.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

BIN
dist/img/qrcode.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

BIN
dist/img/suka.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
dist/img/wechat.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

BIN
dist/img/。.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

BIN
dist/img/乙.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

BIN
dist/img/仓鼠.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

BIN
dist/img/俊奇.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

BIN
dist/img/千帆.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

BIN
dist/img/南风.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

BIN
dist/img/国发.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

BIN
dist/img/好名字.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

BIN
dist/img/子豪.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

BIN
dist/img/宏涛.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

BIN
dist/img/小米.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

BIN
dist/img/峰.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

BIN
dist/img/布林.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/img/庆国.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

BIN
dist/img/张扬.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
dist/img/志斌.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

BIN
dist/img/才镇.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

BIN
dist/img/敏.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
dist/img/敬明朗.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

BIN
dist/img/晴空.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/img/有希.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

BIN
dist/img/木木.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

BIN
dist/img/标记.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

BIN
dist/img/樊笼.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

BIN
dist/img/橘半.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
dist/img/欣.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

BIN
dist/img/水车.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/img/汪津合.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

BIN
dist/img/皇登攀.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

BIN
dist/img/继龙.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

BIN
dist/img/错误.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

BIN
dist/img/阿晨.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
dist/img/雨馨.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

BIN
dist/img/风格.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a34fb"],{"0247":function(n,e,i){"use strict";i.r(e);var t=function(){var n=this;n._self._c;return n._m(0)},s=[function(){var n=this,e=n._self._c;return e("div",[e("h1",[n._v("Client")]),e("p",[n._v("This project also provides a client version using "),e("a",{attrs:{href:"https://www.electronjs.org/"}},[n._v("Electron")]),n._v(" Development. Supports 'Windows', 'Mac', and 'Linux'.")]),e("p",[n._v("Currently, the function is relatively simple:")]),e("ol",[e("li",[e("p",[n._v("Support creating and opening files for editing;")])]),e("li",[e("p",[n._v("Support viewing the list of recently edited files;")])]),e("li",[e("p",[n._v("Support the copying, deletion, and renaming of files;")])])]),e("h2",[n._v("Download")]),e("blockquote",[e("p",[n._v("The client version may lag behind the online version. To try new features, please prioritize using the online version.")])]),e("p",[n._v("You can directly download the corresponding client for installation and use, and two download addresses are provided:")]),e("p",[n._v("Github"),e("a",{attrs:{href:"https://github.com/wanglin2/mind-map/releases"}},[n._v("releases")]),n._v("。")]),e("p",[n._v("Baidu cloud disk"),e("a",{attrs:{href:"https://pan.baidu.com/s/1huasEbKsGNH2Af68dvWiOg?pwd=3bp3"}},[n._v("地址")]),n._v("。")]),e("h2",[n._v("Development")]),e("p",[n._v("If necessary, you can also conduct secondary development.")]),e("h3",[n._v("clone")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("git "),e("span",{staticClass:"hljs-built_in"},[n._v("clone")]),n._v(" https://github.com/wanglin2/mind-map.git\n"),e("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" mind-map\ngit checkout electron\n")])]),e("h3",[n._v("Start serve")]),e("p",[n._v("Execute in the project root directory:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" simple-mind-map\nnpm i\nnpm link\n"),e("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" ..\n"),e("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" web\nnpm i\nnpm link simple-mind-map\nnpm run electron:serve\n")])]),e("h3",[n._v("Packaging client")]),e("p",[n._v("You need at least two computers, one 'Windows' and one 'Mac'.")]),e("p",[n._v("Packaging 'Windows' application:")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("npm run electron:build-win\n")])]),e("p",[n._v("Packaging 'Mac' application:")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("npm run electron:build-mac\n")])]),e("p",[n._v("Packaging 'Linux' application:")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("npm run electron:build-linux\n")])]),e("p",[n._v("Packaging all applications:")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("npm run electron:build-all\n")])]),e("p",[n._v("Automatically pack according to your computer system:")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("npm run electron:build\n")])])])}],a={},l=a,o=i("2877"),p=Object(o["a"])(l,t,s,!1,null,null,null);e["default"]=p.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3fbe"],{"0503":function(e,s,a){"use strict";a.r(s);var _=function(){var e=this;e._self._c;return e._m(0)},c=[function(){var e=this,s=e._self._c;return s("div",[s("h1",[e._v("Search 插件")]),s("blockquote",[s("p",[e._v("v0.6.9+")])]),s("p",[e._v("该插件提供搜索和替换节点内容的功能。")]),s("h2",[e._v("注册")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),s("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),s("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),s("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" Search "),s("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),s("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/Search.js'")]),e._v("\nMindMap.usePlugin(Search)\n")])]),s("p",[e._v("注册完且实例化"),s("code",[e._v("MindMap")]),e._v("后可通过"),s("code",[e._v("mindMap.search")]),e._v("获取到该实例。")]),s("h2",[e._v("事件")]),s("h3",[e._v("search_info_change")]),s("p",[e._v("可以通过监听"),s("code",[e._v("search_info_change")]),e._v("事件来获取当前搜索结果的数量和当前定位到的索引。")]),s("pre",{staticClass:"hljs"},[s("code",[e._v("mindMap.on("),s("span",{staticClass:"hljs-string"},[e._v("'search_info_change'")]),e._v(", "),s("span",{staticClass:"hljs-function"},[e._v("("),s("span",{staticClass:"hljs-params"},[e._v("data")]),e._v(") =>")]),e._v(" {\n "),s("span",{staticClass:"hljs-comment"},[e._v("/*\n data: {\n currentIndex,// 索引从0开始\n total\n }\n */")]),e._v("\n})\n")])]),s("h2",[e._v("方法")]),s("h3",[e._v("search(searchText, callback)")]),s("ul",[s("li",[s("p",[s("code",[e._v("searchText")]),e._v(":要进行搜索的文本")])]),s("li",[s("p",[s("code",[e._v("callback")]),e._v(":本次搜索完成的回调函数,会在跳转到节点后触发")])])]),s("p",[e._v("搜索节点内容,可以重复调用,每调一次,会搜索和定位到下一个匹配的节点。如果搜索文本改变了,那么会重新搜索。")]),s("h3",[e._v("endSearch()")]),s("p",[e._v("结束搜索。")]),s("h3",[e._v("replace(replaceText, jumpNext = false)")]),s("ul",[s("li",[s("p",[s("code",[e._v("replaceText")]),e._v(":要进行替换的文本")])]),s("li",[s("p",[s("code",[e._v("jumpNext")]),e._v("v0.6.12+,是否自动跳转到下一个匹配节点")])])]),s("p",[e._v("替换当前节点内容,要在调用了"),s("code",[e._v("search")]),e._v("方法之后调用,会替换当前定位到的匹配节点内容。")]),s("h3",[e._v("replaceAll(replaceText)")]),s("ul",[s("li",[s("code",[e._v("replaceText")]),e._v(":要进行替换的文本")])]),s("p",[e._v("替换所有匹配的节点内容,要在调用了"),s("code",[e._v("search")]),e._v("方法之后调用。")]),s("h3",[e._v("getReplacedText(node, searchText, replaceText)")]),s("ul",[s("li",[s("p",[s("code",[e._v("node")]),e._v(":节点实例")])]),s("li",[s("p",[s("code",[e._v("searchText")]),e._v(":要进行搜索的文本")])]),s("li",[s("p",[s("code",[e._v("replaceText")]),e._v(":要进行替换的文本")])])]),s("p",[e._v("返回该节点搜索和替换后的文本内容,注意,不会实际改变节点内容,只是用来计算一个节点替换后的内容。")])])}],v={},l=v,n=a("2877"),t=Object(n["a"])(l,_,c,!1,null,null,null);s["default"]=t.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a4659"],{"05ec":function(n,t,u){"use strict";u.r(t);var _=function(){var n=this;n._self._c;return n._m(0)},c=[function(){var n=this,t=n._self._c;return t("div",[t("h1",[n._v("概要/关联线")]),t("h2",[n._v("概要")]),t("p",[n._v("可以选中一个节点添加概要,如果想给多个节点添加一个概要,只能通过给它们的父节点添加来实现。")]),t("p",[n._v("概要节点后面无法再添加节点,后续该特性大概率也不会支持。")]),t("h2",[n._v("关联线")]),t("p",[n._v("添加关联线:先激活某个节点,然后点击上方工具栏的【关联线】按钮,最后点击要关联到的节点即可创建完成。")]),t("p",[n._v("删除关联线:需要先点击选中关联线,然后按删除键即可。")])])}],e={},v=e,p=u("2877"),r=Object(p["a"])(v,_,c,!1,null,null,null);t["default"]=r.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a4b03"],{"0805":function(t,s,_){"use strict";_.r(s);var a=function(){var t=this;t._self._c;return t._m(0)},v=[function(){var t=this,s=t._self._c;return s("div",[s("h1",[t._v("快捷键操作如何传递自定义参数")]),s("p",[t._v("库提供了很多命令,比如插入子节点的"),s("code",[t._v("INSERT_CHILD_NODE")]),t._v("等这些命令大多可以接收一定参数比如在插入节点时我想指定初始文本和节点uid那么可以这样调用")]),s("pre",{staticClass:"hljs"},[s("code",[t._v("mindMap.execCommand("),s("span",{staticClass:"hljs-string"},[t._v("'INSERT_CHILD_NODE'")]),t._v(", "),s("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", [], {\n "),s("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),s("span",{staticClass:"hljs-string"},[t._v("'初始文本'")]),t._v(",\n "),s("span",{staticClass:"hljs-attr"},[t._v("uid")]),t._v(": "),s("span",{staticClass:"hljs-string"},[t._v("'xxx'")]),t._v("\n})\n")])]),s("p",[t._v("但是同时库内部也默认注册了很多快捷键,比如插入下级节点的"),s("code",[t._v("Tab")]),t._v("快捷键,很遗憾,目前快捷键操作无法让你传入自定义的参数,那么该怎么办呢,可以这样处理,首先确定你要给什么快捷键传入参数,比如"),s("code",[t._v("Tab")]),t._v(",那么首先可以调用如下方法删除库默认注册的快捷键:")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" keyName = "),s("span",{staticClass:"hljs-string"},[t._v("'Tab'")]),t._v("\nmindMap.keyCommand.removeShortcut(keyName)\n")])]),s("p",[t._v("然后再重新注册即可:")]),s("pre",{staticClass:"hljs"},[s("code",[t._v("mindMap.keyCommand.addShortcut(keyName, "),s("span",{staticClass:"hljs-function"},[t._v("() =>")]),t._v(" {\n mindMap.execCommand("),s("span",{staticClass:"hljs-string"},[t._v("'INSERT_CHILD_NODE'")]),t._v(", "),s("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", [], {\n "),s("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),s("span",{staticClass:"hljs-string"},[t._v("'初始文本'")]),t._v(",\n "),s("span",{staticClass:"hljs-attr"},[t._v("uid")]),t._v(": "),s("span",{staticClass:"hljs-string"},[t._v("'xxx'")]),t._v("\n })\n})\n")])]),s("p",[t._v("库内部默认注册的快捷键对应的命令一览:")]),s("table",[s("thead",[s("tr",[s("th",[t._v("快捷键")]),s("th",[t._v("命令")])])]),s("tbody",[s("tr",[s("td",[t._v("Control+z")]),s("td",[t._v("BACK")])]),s("tr",[s("td",[t._v("Control+y")]),s("td",[t._v("FORWARD")])]),s("tr",[s("td",[t._v("Tab")]),s("td",[t._v("INSERT_CHILD_NODE")])]),s("tr",[s("td",[t._v("Insert")]),s("td",[t._v("INSERT_CHILD_NODE")])]),s("tr",[s("td",[t._v("Enter")]),s("td",[t._v("INSERT_NODE")])]),s("tr",[s("td",[t._v("Shift+Tab")]),s("td",[t._v("INSERT_PARENT_NODE")])]),s("tr",[s("td",[t._v("Control+g")]),s("td",[t._v("ADD_GENERALIZATION")])]),s("tr",[s("td",[t._v("Del或Backspace")]),s("td",[t._v("REMOVE_NODE")])]),s("tr",[s("td",[t._v("Shift+Backspace")]),s("td",[t._v("REMOVE_CURRENT_NODE")])]),s("tr",[s("td",[t._v("Control+a")]),s("td",[t._v("SELECT_ALL")])]),s("tr",[s("td",[t._v("Control+l")]),s("td",[t._v("RESET_LAYOUT")])]),s("tr",[s("td",[t._v("Control+Up")]),s("td",[t._v("UP_NODE")])]),s("tr",[s("td",[t._v("Control+Down")]),s("td",[t._v("DOWN_NODE")])])])])])}],n={},l=n,r=_("2877"),d=Object(r["a"])(l,a,v,!1,null,null,null);s["default"]=d.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a514a"],{"08d0":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Markdown解析")]),a("blockquote",[a("p",[s._v("v0.4.7+")])]),a("p",[s._v("提供导入和导出"),a("code",[s._v("Markdown")]),s._v("文件的方法。")]),a("h2",[s._v("引入")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" markdown "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/parse/markdown.js'")]),s._v("\n")])]),a("p",[s._v("如果使用的是"),a("code",[s._v("umd")]),s._v("格式的文件,那么可以通过如下方式获取:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-tag"},[s._v("<"),a("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(" "),a("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),a("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map/dist/simpleMindMap.umd.min.js"')]),s._v(">")]),a("span",{staticClass:"hljs-tag"},[s._v("</"),a("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),s._v("\n")])]),a("pre",{staticClass:"hljs"},[a("code",[s._v("simpleMindMap.markdown\n")])]),a("h2",[s._v("方法")]),a("h3",[s._v("transformToMarkdown(data)")]),a("ul",[a("li",[a("code",[s._v("data")]),s._v(":思维导图数据,可以通过"),a("code",[s._v("mindMap.getData()")]),s._v("方法获取。")])]),a("p",[s._v("将思维导图数据转换成"),a("code",[s._v("Markdown")]),s._v("格式数据,返回的是字符串。")]),a("h3",[s._v("transformMarkdownTo(mdContent)")]),a("ul",[a("li",[a("code",[s._v("mdContent")]),s._v(":要转换的"),a("code",[s._v("Markdown")]),s._v("数据,字符串类型。")])]),a("p",[s._v("将"),a("code",[s._v("Markdown")]),s._v("字符串转换成节点树数据,返回一个"),a("code",[s._v("Promise")]),s._v("实例。可以使用"),a("code",[s._v("mindMap.setData()")]),s._v("方法将转换后的数据渲染到画布上。")])])}],_={},d=_,o=t("2877"),l=Object(o["a"])(d,n,v,!1,null,null,null);a["default"]=l.exports}}]);

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa579"],{1136:function(v,_,e){"use strict";e.r(_);var c=function(){var v=this;v._self._c;return v._m(0)},o=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("贡献")]),_("h2",[v._v("参与开发")]),_("p",[v._v("如果你想贡献代码的话可以"),_("code",[v._v("fork")]),v._v("本项目,然后切换到"),_("code",[v._v("feature")]),v._v("分支下进行开发,开发并测试完后可以提交"),_("code",[v._v("pr")]),v._v("到本项目的"),_("code",[v._v("feature")]),v._v("分支,提交时请尽量提交功能相关的文件,非必要的文件请勿提交。")]),_("p",[v._v("在开发前最好通过新建一个"),_("code",[v._v("issue")]),v._v("来描述你想要新增的功能,我们可以先进行充分的沟通,在提交"),_("code",[v._v("pr")]),v._v("时请详细描述你开发的功能。")]),_("h2",[v._v("参与翻译")]),_("blockquote",[_("p",[v._v("感谢"),_("a",{attrs:{href:"https://github.com/emircanerkul"}},[v._v("Emircan ERKUL")]),v._v("提供的第一版英文翻译。")]),_("p",[v._v("因为精力有限,目前大部分翻译都是使用机翻的,所以准确度难免有问题。")]),_("p",[v._v("目前【教程】部分是没有进行翻译的,如果你有兴趣,欢迎加入我们。")])]),_("p",[v._v("如果你也想参与翻译本文档的话,可以先克隆本仓库。")]),_("p",[v._v("翻译的文档在"),_("code",[v._v("/web/src/pages/Doc/")]),v._v("目录下,目前支持英文("),_("code",[v._v("en")]),v._v(")、简体中文("),_("code",[v._v("zh")]),v._v(")两种语言。")]),_("p",[v._v("如果是新增一种语言类型,那么可以在"),_("code",[v._v("/web/src/pages/Doc/")]),v._v("目录下创建一个新目录,然后给每个章节创建一个文件夹,你也可以直接复制已存在的语言目录下的所有章节目录进行翻译,注意,你只需要编写"),_("code",[v._v("index.md")]),v._v("文件,章节目录下的"),_("code",[v._v("index.vue")]),v._v("文件是脚本根据"),_("code",[v._v("index.md")]),v._v("自动生成的。")]),_("p",[v._v("如果是给已存在的语言类型新增翻译章节,可以在目标语言目录下创建新的章节目录,目录下只需要创建"),_("code",[v._v("index.md")]),v._v("文件即可。")]),_("p",[v._v("当你完成翻译后,可以直接提交"),_("code",[v._v("Pull requests")]),v._v("。")]),_("p",[v._v("如果你是前端程序员,想运行服务,查看文档页面的效果,如果新增章节,需要修改"),_("code",[v._v("/web/src/pages/Doc/catalogList.js")]),v._v("文件,在"),_("code",[v._v("StartList")]),v._v("或者"),_("code",[v._v("APIList")]),v._v("数组里选择合适的位置插入新章节的"),_("code",[v._v("path")]),v._v("。然后需要在"),_("code",[v._v("web")]),v._v("目录下运行"),_("code",[v._v("npm run buildDoc")]),v._v("编译目录和路由,最后"),_("code",[v._v("npm run serve")]),v._v("启动本地服务,打开以下路径即可查看文档:")]),_("p",[_("code",[v._v("ip:port/#/doc/zh/introduction")])])])}],d={},t=d,r=e("2877"),n=Object(r["a"])(t,c,o,!1,null,null,null);_["default"]=n.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0abe0f"],{"16c7":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("View instance")]),t("p",[e._v("The "),t("code",[e._v("view")]),e._v(" instance is responsible for view operations, and can be obtained through "),t("code",[e._v("mindMap.view")])]),t("h2",[e._v("Methods")]),t("h3",[e._v("fit()")]),t("blockquote",[t("p",[e._v("v0.6.0+")])]),t("p",[e._v("Zoom the mind map to fit the canvas.")]),t("p",[e._v("Note that this method cannot be called immediately after calling the 'setData' and 'setFullData' methods, and needs to listen to the 'node_tree_render_end' event calls 'fit'.")]),t("h3",[e._v("translateX(step)")]),t("p",[e._v("Translate in the "),t("code",[e._v("x")]),e._v(" direction, "),t("code",[e._v("step")]),e._v(": number of pixels to translate")]),t("h3",[e._v("translateY(step)")]),t("p",[e._v("Translate in the "),t("code",[e._v("y")]),e._v(" direction, "),t("code",[e._v("step")]),e._v(": number of pixels to translate")]),t("h3",[e._v("translateXTo(x)")]),t("blockquote",[t("p",[e._v("v0.2.11+")])]),t("p",[e._v("Translate the "),t("code",[e._v("x")]),e._v(" direction to a specific position")]),t("h3",[e._v("translateYTo(y)")]),t("blockquote",[t("p",[e._v("v0.2.11+")])]),t("p",[e._v("Translate the "),t("code",[e._v("y")]),e._v(" direction to a specific position")]),t("h3",[e._v("reset()")]),t("p",[e._v("Revert to the default transformation")]),t("h3",[e._v("narrow(cx, cy)")]),t("ul",[t("li",[t("p",[t("code",[e._v("cx")]),e._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])]),t("li",[t("p",[t("code",[e._v("cy")]),e._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])])]),t("p",[e._v("Zoom out")]),t("h3",[e._v("enlarge(cx, cy)")]),t("ul",[t("li",[t("p",[t("code",[e._v("cx")]),e._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])]),t("li",[t("p",[t("code",[e._v("cy")]),e._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])])]),t("p",[e._v("Zoom in")]),t("h3",[e._v("getTransformData()")]),t("blockquote",[t("p",[e._v("v0.1.1+")])]),t("p",[e._v("Get the current transform data, can be used for display")]),t("h3",[e._v("setTransformData(data)")]),t("blockquote",[t("p",[e._v("v0.1.1+")])]),t("p",[e._v('Dynamically set transform data, transform data can be obtained through the getTransformData method"')]),t("h3",[e._v("setScale(scale, cx, cy)")]),t("blockquote",[t("p",[e._v("v0.2.17+")])]),t("ul",[t("li",[t("p",[t("code",[e._v("scale")]),e._v(": Scaling values, not scaled to '1', scaled to '1' for values less than, scaled to '1' for values greater than, scaled to '1' for values greater than")])]),t("li",[t("p",[t("code",[e._v("cx")]),e._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])]),t("li",[t("p",[t("code",[e._v("cy")]),e._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])])]),t("p",[e._v("Setting Zoom")])])}],v={},c=v,s=o("2877"),i=Object(s["a"])(c,a,n,!1,null,null,null);t["default"]=i.exports}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More