Compare commits
128 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff22a652d5 | ||
|
|
d1ade8204b | ||
|
|
2a84a3cf16 | ||
|
|
721cae8139 | ||
|
|
8f8662f2df | ||
|
|
bc56f90595 | ||
|
|
0d1b9dfff4 | ||
|
|
ccb2a260b6 | ||
|
|
2c8b96582a | ||
|
|
161d9dd715 | ||
|
|
1033447b9c | ||
|
|
1dbcb71ec5 | ||
|
|
c0733dda35 | ||
|
|
4c5b2e7af2 | ||
|
|
322f7a3e2a | ||
|
|
766e0e5fae | ||
|
|
4335cbb713 | ||
|
|
82473027da | ||
|
|
68bf2d361c | ||
|
|
1620a013ba | ||
|
|
13a1f989c3 | ||
|
|
8bbbc082c7 | ||
|
|
f15bf8a8dc | ||
|
|
3801dc3ec4 | ||
|
|
182cdf5153 | ||
|
|
1cd4705ad8 | ||
|
|
d82cedcbdd | ||
|
|
f9c271e11b | ||
|
|
a26d6bc7cf | ||
|
|
dc522cd0be | ||
|
|
43969af14b | ||
|
|
79ccd9892c | ||
|
|
5fb35d656f | ||
|
|
cec1f59189 | ||
|
|
a6a890362e | ||
|
|
83b6d5793b | ||
|
|
9b40a7bedd | ||
|
|
11f2078ee0 | ||
|
|
4fb9bd5135 | ||
|
|
cf56b5db24 | ||
|
|
40ea595e62 | ||
|
|
91a9d7b556 | ||
|
|
0669e73a5b | ||
|
|
fde6fc2583 | ||
|
|
f92146a1f4 | ||
|
|
38c6966d13 | ||
|
|
4894d9e6e6 | ||
|
|
9a64094f14 | ||
|
|
95fdb35f7b | ||
|
|
497c2606df | ||
|
|
d735be1204 | ||
|
|
45d2da1337 | ||
|
|
194571d5fe | ||
|
|
418b24b039 | ||
|
|
b32a8b5a85 | ||
|
|
2dee415a64 | ||
|
|
4e7d59b328 | ||
|
|
9bde9ffaf3 | ||
|
|
1b4ca19ad8 | ||
|
|
eb72e0eed3 | ||
|
|
6dea1ef9b2 | ||
|
|
c6c1ef2117 | ||
|
|
4423fd562b | ||
|
|
7b1ea5e354 | ||
|
|
5192753816 | ||
|
|
6382e8acd8 | ||
|
|
e293039b3c | ||
|
|
f819cbc5b1 | ||
|
|
44a883c473 | ||
|
|
c1f600dc1f | ||
|
|
4777ab3e58 | ||
|
|
12c6479c0d | ||
|
|
f79918ec6f | ||
|
|
ba9a6e501a | ||
|
|
9b55d051dc | ||
|
|
159a4a202c | ||
|
|
ac72c0c1dc | ||
|
|
f54f92c303 | ||
|
|
c2dbfb41d5 | ||
|
|
5867649429 | ||
|
|
de29ec59c5 | ||
|
|
bc1cf71eaa | ||
|
|
d929792157 | ||
|
|
658b47b72e | ||
|
|
591e6a5b2a | ||
|
|
58baf4c0aa | ||
|
|
00f86fe167 | ||
|
|
5c1e5f072c | ||
|
|
b45674cf8f | ||
|
|
c23a16e65a | ||
|
|
b7722987b1 | ||
|
|
1fc5b951a0 | ||
|
|
53eb608007 | ||
|
|
876afb2504 | ||
|
|
4d1608e8c4 | ||
|
|
80f45e5e7d | ||
|
|
f80317a449 | ||
|
|
9bce6d3ded | ||
|
|
16e40b4342 | ||
|
|
624203ea84 | ||
|
|
6ffa4570d4 | ||
|
|
d99a4dcc33 | ||
|
|
e8c4aad690 | ||
|
|
35c8e129f0 | ||
|
|
dc096fd535 | ||
|
|
a047dabbd0 | ||
|
|
1ec723db0e | ||
|
|
d9fc209dac | ||
|
|
8647cb5893 | ||
|
|
264875e14e | ||
|
|
de423f3bd3 | ||
|
|
fcdcda929c | ||
|
|
1cfd50a42b | ||
|
|
f794df4e6f | ||
|
|
eea1109e43 | ||
|
|
65004d08cd | ||
|
|
44d75ef7f4 | ||
|
|
1f473b79e9 | ||
|
|
8ad26da5d7 | ||
|
|
e7f1608605 | ||
|
|
d14fb0b666 | ||
|
|
a55401de23 | ||
|
|
a9ad38e39b | ||
|
|
4f5746680d | ||
|
|
b7d906d1ea | ||
|
|
1181871772 | ||
|
|
93df2d7950 | ||
|
|
09633dda58 |
80
README.md
@@ -25,24 +25,26 @@ Github:[releases](https://github.com/wanglin2/mind-map/releases)。百度云
|
||||
|
||||
> 客户端版本会落后于在线版本,尝试最新功能请优先使用在线版。
|
||||
|
||||
【云存储版本】如果你需要带后端的云存储版本,可以尝试我们开发的另一个项目[理想文档](https://github.com/wanglin2/lx-doc)。
|
||||
|
||||
# 特性
|
||||
|
||||
- [x] 插件化架构,除核心功能外,其他功能作为插件提供,按需使用,减小打包体积
|
||||
- [x] 支持逻辑结构图、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构
|
||||
- [x] 支持逻辑结构图(向左、向右逻辑结构图)、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构
|
||||
- [x] 内置多种主题,允许高度自定义样式,支持注册新主题
|
||||
- [x] 节点内容支持文本(普通文本、富文本)、图片、图标、超链接、备注、标签、概要、数学公式
|
||||
- [x] 节点支持拖拽(拖拽移动、自由调整)、多种节点形状;支持扩展节点内容、支持使用 DDM 完全自定义节点内容
|
||||
- [x] 支持画布拖动、缩放
|
||||
- [x] 支持鼠标按键拖动选择和 Ctrl+左键两种多选节点方式
|
||||
- [x] 支持导出为`json`、`png`、`svg`、`pdf`、`markdown`、`xmind`、`txt`,支持从`json`、`xmind`、`markdown`导入
|
||||
- [x] 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条、手绘风格、彩虹线条
|
||||
- [x] 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条、手绘风格、彩虹线条、标记、外框
|
||||
- [x] 提供丰富的配置,满足各种场景各种使用习惯
|
||||
- [x] 支持协同编辑
|
||||
- [x] 支持演示模式
|
||||
|
||||
官方提供了如下插件,可根据需求按需引入(某个功能不生效大概率是因为你没有引入对应的插件),具体使用方式请查看文档:
|
||||
|
||||
> RichText(节点富文本插件)、Select(鼠标多选节点插件)、Drag(节点拖拽插件)、AssociativeLine(关联线插件)、Export(导出插件)、KeyboardNavigation(键盘导航插件)、MiniMap(小地图插件)、Watermark(水印插件)、TouchEvent(移动端触摸事件支持插件)、NodeImgAdjust(拖拽调整节点图片大小插件)、Search(搜索插件)、Painter(节点格式刷插件)、Scrollbar(滚动条插件)、Formula(数学公式插件)、Cooperate(协同编辑插件)、RainbowLines(彩虹线条插件)、Demonstrate(演示模式插件)、HandDrawnLikeStyle(手绘风格插件)[收费]
|
||||
> RichText(节点富文本插件)、Select(鼠标多选节点插件)、Drag(节点拖拽插件)、AssociativeLine(关联线插件)、Export(导出插件)、KeyboardNavigation(键盘导航插件)、MiniMap(小地图插件)、Watermark(水印插件)、TouchEvent(移动端触摸事件支持插件)、NodeImgAdjust(拖拽调整节点图片大小插件)、Search(搜索插件)、Painter(节点格式刷插件)、Scrollbar(滚动条插件)、Formula(数学公式插件)、Cooperate(协同编辑插件)、RainbowLines(彩虹线条插件)、Demonstrate(演示模式插件)、OuterFrame(外框插件)、HandDrawnLikeStyle(手绘风格插件)[收费]、Notation(节点标记插件)[收费]
|
||||
|
||||
本项目不会实现的特性:
|
||||
|
||||
@@ -101,7 +103,9 @@ const mindMap = new MindMap({
|
||||
|
||||
# 微信交流群
|
||||
|
||||
群聊人数较多,无法通过二维码入群,可以微信添加`wanglinguanfang`拉你入群。思维导图相关问题皆可在群里提问,不必私聊作者。
|
||||
一群已满,可以扫描如下二维码进入二群,如已过期,可以微信添加`wanglinguanfang`拉你入群。思维导图相关问题皆可在群里提问,不必私聊作者。
|
||||
|
||||
<img src="./qrcode.jpg" style="width: 300px" />
|
||||
|
||||
# star
|
||||
|
||||
@@ -111,7 +115,7 @@ const mindMap = new MindMap({
|
||||
|
||||
# 关于定制
|
||||
|
||||
如果你有个性化的商用定制需求,可以联系我们,我们提供付费开发服务。
|
||||
如果你有个性化的商用定制需求,可以联系我们,我们提供付费开发服务,无论前端、后端、还是部署,都可以帮你一站式搞定。
|
||||
|
||||
# 请作者喝杯咖啡
|
||||
|
||||
@@ -358,7 +362,7 @@ const mindMap = new MindMap({
|
||||
<span>庆国</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/孟照星.jpg" style="width: 50px;height: 50px;" />
|
||||
<img src="./web/src/assets/avatar/Alex.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>Alex</span>
|
||||
</span>
|
||||
<span>
|
||||
@@ -385,4 +389,68 @@ const mindMap = new MindMap({
|
||||
<img src="./web/src/assets/avatar/峰.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>峰</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
|
||||
<span>协成</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>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/Kyle.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>Kyle</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/lsytyrt.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>lsytyrt</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/buddy.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>buddy</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
|
||||
<span>小川</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/Tobin.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>Tobin</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>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
|
||||
<span>黄泳</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/ccccs.jpg" style="width: 50px;height: 50px;" />
|
||||
<span>ccccs</span>
|
||||
</span>
|
||||
<span>
|
||||
<img src="./web/src/assets/avatar/。.png" style="width: 50px;height: 50px;" />
|
||||
<span>。</span>
|
||||
</span>
|
||||
<span>
|
||||
<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>
|
||||
</p>
|
||||
|
||||
2
copy.js
@@ -13,4 +13,4 @@ if (fs.existsSync(src)) {
|
||||
fs.unlinkSync(src)
|
||||
}
|
||||
|
||||
console.warn('请检查手绘风格选项是否开启!!!')
|
||||
console.warn('请检查手绘风格、标记插件是否启用!!!')
|
||||
2
dist/css/app.css
vendored
BIN
dist/fonts/KaTeX_AMS-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_AMS-Regular.woff
vendored
BIN
dist/fonts/KaTeX_AMS-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Caligraphic-Bold.ttf
vendored
BIN
dist/fonts/KaTeX_Caligraphic-Bold.woff
vendored
BIN
dist/fonts/KaTeX_Caligraphic-Bold.woff2
vendored
BIN
dist/fonts/KaTeX_Caligraphic-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Caligraphic-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Caligraphic-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Fraktur-Bold.ttf
vendored
BIN
dist/fonts/KaTeX_Fraktur-Bold.woff
vendored
BIN
dist/fonts/KaTeX_Fraktur-Bold.woff2
vendored
BIN
dist/fonts/KaTeX_Fraktur-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Fraktur-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Fraktur-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Main-Bold.ttf
vendored
BIN
dist/fonts/KaTeX_Main-Bold.woff
vendored
BIN
dist/fonts/KaTeX_Main-Bold.woff2
vendored
BIN
dist/fonts/KaTeX_Main-BoldItalic.ttf
vendored
BIN
dist/fonts/KaTeX_Main-BoldItalic.woff
vendored
BIN
dist/fonts/KaTeX_Main-BoldItalic.woff2
vendored
BIN
dist/fonts/KaTeX_Main-Italic.ttf
vendored
BIN
dist/fonts/KaTeX_Main-Italic.woff
vendored
BIN
dist/fonts/KaTeX_Main-Italic.woff2
vendored
BIN
dist/fonts/KaTeX_Main-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Main-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Main-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Math-BoldItalic.ttf
vendored
BIN
dist/fonts/KaTeX_Math-BoldItalic.woff
vendored
BIN
dist/fonts/KaTeX_Math-BoldItalic.woff2
vendored
BIN
dist/fonts/KaTeX_Math-Italic.ttf
vendored
BIN
dist/fonts/KaTeX_Math-Italic.woff
vendored
BIN
dist/fonts/KaTeX_Math-Italic.woff2
vendored
BIN
dist/fonts/KaTeX_SansSerif-Bold.ttf
vendored
BIN
dist/fonts/KaTeX_SansSerif-Bold.woff
vendored
BIN
dist/fonts/KaTeX_SansSerif-Bold.woff2
vendored
BIN
dist/fonts/KaTeX_SansSerif-Italic.ttf
vendored
BIN
dist/fonts/KaTeX_SansSerif-Italic.woff
vendored
BIN
dist/fonts/KaTeX_SansSerif-Italic.woff2
vendored
BIN
dist/fonts/KaTeX_SansSerif-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_SansSerif-Regular.woff
vendored
BIN
dist/fonts/KaTeX_SansSerif-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Script-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Script-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Script-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Size1-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Size1-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Size1-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Size2-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Size2-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Size2-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Size3-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Size3-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Size4-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Size4-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Size4-Regular.woff2
vendored
BIN
dist/fonts/KaTeX_Typewriter-Regular.ttf
vendored
BIN
dist/fonts/KaTeX_Typewriter-Regular.woff
vendored
BIN
dist/fonts/KaTeX_Typewriter-Regular.woff2
vendored
BIN
dist/fonts/iconfont.ttf
vendored
BIN
dist/fonts/iconfont.woff
vendored
BIN
dist/fonts/iconfont.woff2
vendored
0
dist/img/孟照星.jpg → dist/img/Alex.jpg
vendored
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
BIN
dist/img/Jeffrey.jpg
vendored
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
dist/img/Kyle.jpg
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
dist/img/Tobin.jpg
vendored
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
dist/img/buddy.jpg
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
dist/img/ccccs.jpg
vendored
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
dist/img/logicalStructureLeft.jpg
vendored
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
dist/img/qrcode.jpg
vendored
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
dist/img/。.png
vendored
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
dist/img/夏虫不语冰.jpg
vendored
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
dist/img/好名字.jpg
vendored
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
dist/img/张文建.jpg
vendored
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
dist/img/晴空.jpg
vendored
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
dist/img/木木.jpg
vendored
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
dist/img/标记.jpg
vendored
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
dist/img/秀树因馨雨.jpg
vendored
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
dist/img/编号1.jpg
vendored
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
dist/img/编号2.jpg
vendored
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
dist/img/编号3.jpg
vendored
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
dist/img/错误.jpg
vendored
Normal file
|
After Width: | Height: | Size: 60 KiB |
2
dist/js/app.js
vendored
1
dist/js/chunk-02087b0a.js
vendored
Normal file
76
dist/js/chunk-0b7770a8.js
vendored
Normal file
1
dist/js/chunk-0e53cbc6.js
vendored
Normal file
1
dist/js/chunk-1171703b.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1171703b"],{"8cc7":function(e,o,t){"use strict";t.r(o);var s=function(){var e=this;e._self._c;return e._m(0)},i=[function(){var e=this,o=e._self._c;return o("div",[o("h1",[e._v("Questions")]),o("h2",[e._v("1.Error when using in Vite, indicating xml-js dependency error")]),o("p",[e._v("Solution: use the following import method:")]),o("pre",{staticClass:"hljs"},[o("code",[o("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),o("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),o("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map/dist/simpleMindMap.umd.min"')]),e._v(";\n")])]),o("p",[e._v("The "),o("code",[e._v("simple-mind-map")]),e._v(" package provides the unpacked entry field "),o("code",[e._v("module")]),e._v(", and the "),o("code",[e._v("xml-js")]),e._v(" package dependency needs to import the package in the "),o("code",[e._v("node")]),e._v(" environment. Therefore, it cannot be obtained in "),o("code",[e._v("Vite")]),e._v(" and an error will be reported. Therefore, specify the import of the packed entry, and all relevant packages are packed into the product, so there will be no error.")]),o("p",[e._v("If you need to do further development, that is, you must use the unpacked code, and if you do not need to parse the "),o("code",[e._v("xmind")]),e._v(" file, you can remove the "),o("code",[e._v("xmind")]),e._v(" module. If you need it, you can try using other libraries to parse "),o("code",[e._v("xml")]),e._v(" to "),o("code",[e._v("json")]),e._v(".")]),o("h2",[e._v("2.Error "),o("code",[e._v("Getting bbox of element \"text\" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')")])]),o("p",[e._v("The reason is that the installed version of "),o("code",[e._v("@svgdotjs/svg.js")]),e._v(" is too high. You can manually reduce it to the version of "),o("code",[e._v("3.0.16")]),e._v(".")]),o("h2",[e._v("3.TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46")]),o("p",[e._v("The following configurations can be added to the packaging configuration file:")]),o("pre",{staticClass:"hljs"},[o("code",[e._v("resolve: { "),o("span",{staticClass:"hljs-attr"},[e._v("alias")]),e._v(": { "),o("span",{staticClass:"hljs-attr"},[e._v("stream")]),e._v(": "),o("span",{staticClass:"hljs-string"},[e._v('"stream-browserify"')]),e._v(" } }\n")])]),o("p",[e._v("Different packaging tools may have different specific configurations, with the principle of excluding 'stream' dependencies.")]),o("h2",[e._v("4.When clicking the [New], [Open], or [Save As] buttons, it will prompt that the browser does not support it or is not using the HTTPS protocol.")]),o("p",[e._v("The browser uses API "),o("a",{attrs:{href:"https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker"}},[e._v("window.showOpenFilePicker")]),e._v(" to operate local files on the computer. If it is not supported, either the browser does not support this API or the page is not using the HTTPS protocol, You can press F12, or open the browser console through the right-click menu on the page and enter 'window.showOpenFilePicker' in the 'Console' tab. If it returns 'undefined', it means it is not supported. If it does not return this message and the page still prompts that the browser does not support it or is not using the HTTPS protocol, you can submit an issue or contact the author.")]),o("h2",[e._v("5.Import simple-mind-map error message, the error message is as follows:")]),o("img",{staticStyle:{width:"850px"},attrs:{src:t("bff3")}}),o("p",[e._v("This is because your build environment does not support this JavaScript syntax, which comes from the '@svgdotjs/svg.js' library. The solution is as follows:")]),o("p",[e._v("1.Manually reduce the version of the '@svgdotjs/svg.js' library. You can manually install the lower version in your project, such as: "),o("code",[e._v("npm i @svgdotjs/svg.js@3.2.0")])]),o("p",[e._v("2.If you don't reduce the version, you can modify the relevant configuration of your build tool, modify the configuration of 'babel', and have it compile the 'simple-mind-map' library in 'node.modules' or the '@svgdotjs/svg.js' library. If you are using 'vue-cli' or 'vite', they also provide the relevant configuration directly. In addition, it is necessary to install the 'babel' plugin that compiles this syntax and configure it in the 'babel' configuration file:")]),o("p",[o("code",[e._v("@babel/plugin-proposal-nullish-coalescing-operator")]),e._v("、"),o("code",[e._v("@babel/plugin-proposal-optional-chaining")]),e._v("。")])])}],n={},r=n,a=t("2877"),l=Object(a["a"])(r,s,i,!1,null,null,null);o["default"]=l.exports},bff3:function(e,o,t){e.exports=t.p+"img/错误.jpg"}}]);
|
||||
1
dist/js/chunk-15396d69.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-15396d69"],{"57f5":function(s,e,v){"use strict";v.r(e);var o=function(){var s=this;s._self._c;return s._m(0)},_=[function(){var s=this,e=s._self._c;return e("div",[e("h1",[s._v("常见问题")]),e("h2",[s._v("1.在Vite中使用报错,提示xml-js依赖出错")]),e("p",[s._v("解决方法:使用如下引入方式:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),e("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map/dist/simpleMindMap.umd.min"')]),s._v("\n")])]),e("p",[e("code",[s._v("simple-mind-map")]),s._v("包提供未打包的入口字段"),e("code",[s._v("module")]),s._v(",依赖的"),e("code",[s._v("xml-js")]),s._v("包需要引入"),e("code",[s._v("node")]),s._v("环境下的包,所以在"),e("code",[s._v("Vite")]),s._v("中获取不到会报错,所以指定引入打包后的入口,相关包都已打包进产物,所以不会报错。")]),e("p",[s._v("如果需要二次开发,也就是必须要使用未打包代码的话,如果你不需要解析"),e("code",[s._v("xmind")]),s._v("文件的话,可以去除"),e("code",[s._v("xmind")]),s._v("模块,如果需要的话那么可以尝试换成其他的解析"),e("code",[s._v("xml")]),s._v("为"),e("code",[s._v("json")]),s._v("的库。")]),e("h2",[s._v("2.报错"),e("code",[s._v("Getting bbox of element \"text\" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')")])]),e("p",[s._v("原因为安装的"),e("code",[s._v("@svgdotjs/svg.js")]),s._v("版本太高,手动降到"),e("code",[s._v("3.0.16")]),s._v("版本即可。")]),e("h2",[s._v("3.TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46")]),e("p",[s._v("可以在打包配置文件中增加如下配置:")]),e("pre",{staticClass:"hljs"},[e("code",[s._v("resolve: { "),e("span",{staticClass:"hljs-attr"},[s._v("alias")]),s._v(": { "),e("span",{staticClass:"hljs-attr"},[s._v("stream")]),s._v(": "),e("span",{staticClass:"hljs-string"},[s._v('"stream-browserify"')]),s._v(" } }\n")])]),e("p",[s._v("不同的打包工具可能具体配置不一样,原理就是排除"),e("code",[s._v("stream")]),s._v("依赖。")]),e("h2",[s._v("4.点击【新建】、【打开】、【另存为】按钮时提示浏览器不支持,或者非https协议。")]),e("p",[s._v("浏览器上操作电脑本地文件使用的是"),e("a",{attrs:{href:"https://developer.mozilla.org/zh-CN/docs/Web/API/Window/showOpenFilePicker"}},[s._v("window.showOpenFilePicker")]),s._v("api,如果不支持,要么是浏览器不支持这个API,要么是因为页面非https协议,你可以按F12,或者在页面通过鼠标右键菜单中的【检查】打开浏览器控制台,在其中的【控制台】或【console】tab中输入"),e("code",[s._v("window.showOpenFilePicker")]),s._v("按回车,如果返回"),e("code",[s._v("undefined")]),s._v("则代表不支持,如果返回的不是这个,而页面依旧提示提示浏览器不支持,或者非https协议,那么可以提交issue,或者联系作者。")]),e("h2",[s._v("5.引入simple-mind-map报错,报错信息如下:")]),e("img",{staticStyle:{width:"850px"},attrs:{src:v("bff3")}}),e("p",[s._v("这是因为你的构建环境不支持该js语法,该语法出自"),e("code",[s._v("@svgdotjs/svg.js")]),s._v("库,解决方法如下:")]),e("p",[s._v("1.手动降低"),e("code",[s._v("@svgdotjs/svg.js")]),s._v("库的版本,你可以在你的项目中手动安装低版本,比如:"),e("code",[s._v("npm i @svgdotjs/svg.js@3.2.0")])]),e("p",[s._v("2.不降低版本的话,可以通过修改你的构建工具的相关配置,修改"),e("code",[s._v("babel")]),s._v("的配置,让它编译一下"),e("code",[s._v("node_modules")]),s._v("中的"),e("code",[s._v("simple-mind-map")]),s._v("库,或"),e("code",[s._v("@svgdotjs/svg.js")]),s._v("库,如果用的是"),e("code",[s._v("vue-cli")]),s._v("或"),e("code",[s._v("vite")]),s._v(",它们也直接提供了相关配置。另外需要安装编译该语法的"),e("code",[s._v("babel")]),s._v("插件,并且配置到"),e("code",[s._v("babel")]),s._v("的配置文件中:")]),e("p",[e("code",[s._v("@babel/plugin-proposal-nullish-coalescing-operator")]),s._v("、"),e("code",[s._v("@babel/plugin-proposal-optional-chaining")]),s._v("。")])])}],t={},i=t,d=v("2877"),n=Object(d["a"])(i,o,_,!1,null,null,null);e["default"]=n.exports},bff3:function(s,e,v){s.exports=v.p+"img/错误.jpg"}}]);
|
||||
2
dist/js/chunk-1c3bec15.js
vendored
2
dist/js/chunk-2d0a3179.js
vendored
2
dist/js/chunk-2d0ab10b.js
vendored
2
dist/js/chunk-2d0abe0f.js
vendored
@@ -1 +1 @@
|
||||
(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("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={},i=v,c=o("2877"),s=Object(c["a"])(i,a,n,!1,null,null,null);t["default"]=s.exports}}]);
|
||||
(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}}]);
|
||||