Compare commits

..

618 Commits

Author SHA1 Message Date
街角小林
2d0310f675 打包0.12.2 2024-12-17 09:12:52 +08:00
街角小林
4ef99958b6 Feat:去除richTextEditFakeInPlace实例化选项 2024-12-17 09:01:25 +08:00
街角小林
ec677c781e Feat:支持调整关联线控制点位置后激活状态不丢失,提升使用体验 2024-12-16 17:20:28 +08:00
街角小林
2822dcc99a Fix:修复关联线设置激活样式时控制线条颜色没同步更新的问题 2024-12-16 17:09:29 +08:00
wanglin2
46e3d85b5f update 2024-12-14 17:54:48 +08:00
wanglin2
024271ec54 update 2024-12-14 17:38:58 +08:00
街角小林
da9fd4c36d 打包0.12.2 2024-12-13 15:19:36 +08:00
街角小林
5a291b4a5f Fix:修复添加数学公式报错的问题 2024-12-12 16:33:24 +08:00
街角小林
3f002ce2ee Feat:增加节点宽度拖拽手柄的大小 2024-12-12 09:18:31 +08:00
街角小林
78a242faff Feat:新增扩展快捷键内部键值映射对象的方法 2024-12-11 18:19:47 +08:00
街角小林
be229a0c04 Demo:支持单独设置每条关联线的样式 2024-12-11 17:54:27 +08:00
街角小林
9a36cd4478 Fix:修复关联线文本编辑时按回车键无法结束编辑的问题 2024-12-11 17:53:47 +08:00
街角小林
732b6b50b0 Feat:1.支持单独定义每条关联线的样式;2.新增取消激活关联线的事件;3.修复关联线文本存在空行时编辑框渲染异常的问题 2024-12-11 17:53:08 +08:00
街角小林
ade7a95f3c Feat:转换富文本节点数据的逻辑由Render类移至RichText插件本身 2024-12-09 18:35:31 +08:00
街角小林
322975528e Feat:新增改变[思维导图]布局结构行为的插件,使之更符合目前主流思维导图的做法 2024-12-09 18:32:54 +08:00
街角小林
2a76f5a0bc Feat:新增抛出命令执行后的事件 2024-12-09 18:10:18 +08:00
街角小林
2a7eaefac5 Feat:updateData和setData方法新增抛出更新数据前的事件 2024-12-09 18:05:39 +08:00
街角小林
68784f3e4d Feat:升级quill版本;Fix:修复富文本模式下文本输入连续多个空格会压缩成一个的问题 2024-12-09 11:38:11 +08:00
街角小林
c29477ed55 Demo:支持双击节点备注图标进入备注编辑 2024-12-06 17:43:24 +08:00
街角小林
88a6442539 Feat:新增节点备注图标双击事件 2024-12-06 17:40:19 +08:00
街角小林
24363d55a4 Feat:非富文本模式支持输入和渲染空行;Fix:修复非富文本模式下节点存在图标时,进入文本编辑时文本编辑框位置不正确的问题 2024-12-06 16:41:27 +08:00
街角小林
7fd4c7504d Feat:去掉文本编辑框元素的某些样式,避免文本模糊的问题 2024-12-06 16:39:50 +08:00
街角小林
efb4dcf236 Fix:修复非富文本模式下文本编辑实时渲染功能在一些结构中会出现异常的问题 2024-12-06 15:17:59 +08:00
街角小林
53c2af0bc0 Fix:修复只读模式实例化后再切换为编辑模式时没有将当前数据入栈的问题 2024-12-06 09:45:07 +08:00
街角小林
74d302639a Feat:新增实例化时是否进行一次历史数据入栈操作的选项 2024-12-06 09:28:20 +08:00
街角小林
0a2e4e7c14 Feat:去除富文本插件中去除最后一行空行的逻辑 2024-12-05 09:56:52 +08:00
街角小林
7d399b436b Feat:上移、下移命令支持指定操作节点 2024-12-04 18:49:23 +08:00
街角小林
f02098f697 Demo:支持配置节点连线的流动效果 2024-12-03 18:35:45 +08:00
街角小林
fbb3b47b7d Feat:修改tryAddHtmlStyle方法的逻辑 2024-12-03 17:52:23 +08:00
街角小林
508d8fe357 Feat:1.优化节点样式设置,如果设置的是连线样式不触发节点重新创建;2.优化富文本模式下同时对大量节点调用setStyle方法修改文本样式非常慢的问题 2024-11-27 19:06:14 +08:00
街角小林
7258ed9ea7 Feat:新增自定义处理节点连线元素的实例化选项 2024-11-22 16:51:56 +08:00
街角小林
6ae5d244f1 Fix:修复http协议下可以在概要节点上粘贴下级节点的问题 2024-11-20 18:31:30 +08:00
街角小林
7213348c12 Feat:调整粘贴逻辑,如果支持操作剪贴板数据,那么以剪贴板数据为准,否则以画布内数据为准 2024-11-20 18:27:38 +08:00
街角小林
93092db49f Fix:修复直线风格连线圆角不为0时某些场景会存在不必要的凸起问题 2024-11-13 09:17:13 +08:00
街角小林
b8df51eb02 Fix:修复代码缺陷和优化代码 2024-11-12 18:44:35 +08:00
街角小林
6cdc2ff526 Merge pull request #1000 from Tarrency/switchtheme-fontcolor
fix: 解决切换主题前后,设置了部分字体样式的节点,其未设置的字体样式没有响应新主题样式的bug
2024-11-12 18:34:53 +08:00
街角小林
b1303ce7a5 Fix:修复搜索内容为全部替换内容的子串时连续点击全部替换搜索结果异常的问题 2024-11-12 17:53:42 +08:00
街角小林
ac5bb1d684 Fix:修复插件文件的类型定义文件没有生成的问题 2024-11-12 16:57:13 +08:00
wangqi01
ad8cf74bba fix: 解决切换主题前后,设置了部分字体样式的节点,其未设置的字体样式没有响应新主题样式的bug 2024-11-12 16:02:58 +08:00
街角小林
4e6688e4e0 Demo:节点右键菜单新增收起所有下级节点按钮 2024-11-08 17:19:05 +08:00
街角小林
15859e76b6 Merge pull request #985 from ZhangMingZhao1/fix-richtext-list
fix: 限定富文本节点的编辑态格式类型 , 避免富文本节点编辑态下会触发渲染问题和结束编辑后的不一致问题,如有序列表(数字加点符号加空格触发)和无序列表(-符号加空格触发)
2024-11-08 09:22:19 +08:00
ZhangMingZhao1
eb89bd71e1 fix: 明确支持的指定的富文本格式渲染,避免富文本节点输入时触发其他渲染错乱问题 2024-11-07 17:16:02 +08:00
街角小林
d8a88f94d7 Feat:阻止非富文本模式时的节点文本可被选中 2024-11-07 09:41:00 +08:00
街角小林
fa7761b5a3 Feat:1.只有当按键事件的事件目标为body或节点文本编辑框元素时才响应快捷键事件;2.新增自定义响应快捷键事件的实例化选项 2024-11-07 09:33:26 +08:00
街角小林
e769c9602b Feat:只有当按键事件的事件目标为body时才允许自动进入节点文本编辑模式 2024-11-07 09:27:18 +08:00
街角小林
2078d38092 update 2024-11-07 09:08:04 +08:00
街角小林
97834086d0 Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2024-11-07 09:07:15 +08:00
街角小林
8fe0a53ba1 Merge pull request #973 from ZhangMingZhao1/fix-scale-problem
feat: 解决缩放非整数时编辑浮层dom会出现锯齿问题
2024-11-07 09:07:08 +08:00
街角小林
20fb9c3067 update 2024-11-07 09:03:05 +08:00
街角小林
1573141f2c Merge pull request #941 from ZhangMingZhao1/fix-mousedown-style
fix: 解决设置mousedownEventPreventDefault下框选会选中节点文字闪动问题
2024-11-07 09:02:32 +08:00
街角小林
dba711c9ef Feat:mousedownEventPreventDefault选项默认值改为false、富文本模式节点文字禁止被选中 2024-11-06 19:08:21 +08:00
街角小林
be3faa0aef Feat:新增通过按键进入文本编辑时是否自动清空原有文本 2024-11-06 18:16:02 +08:00
街角小林
d93511eca4 Fix:修复富文本模式的一些情况下节点文本和编辑文本位置存在偏差的问题 2024-11-06 18:03:23 +08:00
街角小林
1d75e8519d update README 2024-11-04 17:08:41 +08:00
zhangmingzhao
02460c0642 feat: 解决缩放非整数时编辑浮层dom会出现锯齿问题 2024-11-01 19:47:05 +08:00
街角小林
a43ad7aa06 update README 2024-10-30 15:49:30 +08:00
街角小林
0041be9892 打包0.12.1 2024-10-25 10:02:17 +08:00
街角小林
7ebab0298b 打包Demo 2024-10-24 18:27:39 +08:00
街角小林
079b963ae3 Fix:修复拖拽调整节点宽度后回退操作时节点宽度没有回退的问题 2024-10-24 18:25:31 +08:00
街角小林
fb6fcd6bd3 Fix:修复当存在滚动条插件,且思维导图被限制在画布内时,演示模式中边缘节点无法正常显示的问题 2024-10-24 09:49:07 +08:00
街角小林
59950b2ba0 Demo:增加是否自动进入文本编辑的配置 2024-10-24 09:35:52 +08:00
街角小林
1f23257917 Demo:增加是否一直显示展开收起按钮的配置 2024-10-24 09:26:25 +08:00
街角小林
4e1db01f44 Demo:增加节点标签显示位置的配置 2024-10-24 09:20:34 +08:00
街角小林
38769c3b55 打包demo 2024-10-23 18:14:06 +08:00
街角小林
a4ef09779d Demo:将设置类的配置从基础样式移到单独的设置栏中 2024-10-23 18:11:48 +08:00
街角小林
4821dd6052 打包Demo 2024-10-23 09:30:19 +08:00
街角小林
f33c886d6a Feat:修复处于文本编辑中切换为只读模式时文本未保存的问题 2024-10-23 09:26:25 +08:00
街角小林
b5b8c2be60 Merge pull request #951 from ZhangMingZhao1/fix-exit-edit-pr
fix: 修复设置readonly如果处于编辑态还能编辑的问题
2024-10-23 09:18:18 +08:00
街角小林
4a7485c58e Demo:节点右键菜单新增添加待办按钮 2024-10-22 17:32:46 +08:00
街角小林
c097d20748 Feat:去除代码中对编号插件的硬编码,新增节点库前置内容的创建逻辑 2024-10-22 17:22:54 +08:00
ZhangMingZhao1
eeeae7d0e2 fix: 修复设置readonly如果处于编辑态还能编辑的问题 2024-10-22 10:49:29 +08:00
街角小林
dd3e169946 Fix:修复在节点文本编辑中调用destroy方法时setBackgroundStyle方法会报错的问题 2024-10-21 09:37:13 +08:00
街角小林
b895a58194 打包Demo 2024-10-17 18:02:25 +08:00
街角小林
2b42b9fafa Demo:支持设置节点文本编辑是否实时更新节点大小,默认开启 2024-10-17 17:56:03 +08:00
街角小林
c2125b07ca Feat:非富文本模式文本编辑框的样式同步节点样式 2024-10-17 17:54:41 +08:00
街角小林
eb342bf69b Feat:当开启openRealtimeRenderOnNodeTextEdit选项后,会去除文本编辑框的背景和阴影,达到类似原地编辑的效果 2024-10-17 13:51:17 +08:00
街角小林
a7eb66a6c9 Feat:after_update_config事件新增上一次配置的返回参数 2024-10-17 11:32:35 +08:00
街角小林
e24fd9bdbb Fix:修复开启maxImgResizeWidthInheritTheme选项后第一次上传图片拖动图片到最大值会导致后续调整按钮无法显示的问题 2024-10-17 09:34:17 +08:00
街角小林
34d7c6fed2 Fix:修复开启openRealtimeRenderOnNodeTextEdit选项后非富文本模式编辑文本时输入框会左右抖动的问题 2024-10-17 09:13:55 +08:00
街角小林
a0f88031c1 Demo:去除节点样式的行高配置 2024-10-16 18:42:38 +08:00
街角小林
889ec13dbf Feat:1.去除主题的行高配置;2.优化非富文本模式下的文本编辑效果 2024-10-16 18:40:47 +08:00
街角小林
4aa5a8c48b Fix:修复给Text文本设置的字号没有加单位导致在一些浏览器上不生效的问题 2024-10-16 17:39:25 +08:00
ZhangMingZhao1
c6a8ec257c fix: 解决设置mousedownEventPreventDefault下框选会选中节点文字闪动问题 2024-10-16 11:07:03 +08:00
街角小林
0ec20b8fa0 update 2024-10-16 10:09:46 +08:00
街角小林
f3285cf4e6 Doc update 2024-10-15 17:08:29 +08:00
街角小林
d7786cd449 update 2024-10-14 17:48:06 +08:00
街角小林
777a9d9047 打包0.12.0 2024-10-14 17:44:48 +08:00
街角小林
0dd7b0ed03 Feat:新增拦截关联线创建的实例化选项 2024-10-14 17:41:35 +08:00
街角小林
b661e8cc92 update 2024-10-14 17:30:01 +08:00
街角小林
1412fb5d09 打包0.12.0 2024-10-14 09:46:53 +08:00
街角小林
ec6a40e381 Feat:同时激活多个节点时编辑某个节点的文本只对该节点生效 2024-10-14 09:33:20 +08:00
街角小林
ca5075d50c 打包0.12.0 2024-10-12 17:35:44 +08:00
街角小林
fa1bf89e70 Feat:非富文本模式下节点文本编辑框增加类名,方便覆盖样式 2024-10-12 17:20:54 +08:00
街角小林
729533b3c1 Feat:mousedownEventPreventDefault选项支持控制节点的mousedown事件是否阻止默认事件 2024-10-12 11:12:03 +08:00
街角小林
6ffd26fd7f Feat:新增拖拽调整图片大小的最小值实例化选项 2024-10-12 10:09:59 +08:00
街角小林
48da6cb642 Feat:支持设置拖拽调整图片大小的最大值 2024-10-11 17:46:47 +08:00
街角小林
0055bbb39d Fix:修复缩放图片工具方法有误的问题;Feat:默认主题的最大图片宽度改为200;Feat:缩放节点图片按钮大小支持配置 2024-10-11 09:16:50 +08:00
街角小林
3349df2183 Fix:修复开启性能模式时拖动子节点在画布外的节点时报错的问题 2024-10-10 17:30:27 +08:00
街角小林
6c4800a6f0 update 2024-10-10 17:15:18 +08:00
街角小林
ca40204d43 Fix:修复某些场景(搜索全部替换等)下节点状态未更新的问题,节点实例新增了数据快照的属性 2024-10-10 11:16:24 +08:00
街角小林
cd28be4b01 Fix:修复非富文本模式下新建节点操作撤回也需要两次的问题 2024-10-10 10:27:40 +08:00
街角小林
af752ea761 Feat:新增添加和删除必要的css样式的方法;Fix:修复富文本模式下节点文本存在连续的数字或字母时导出图片换行失效的问题 2024-10-10 09:28:28 +08:00
街角小林
f2b72830b4 update 2024-10-09 19:14:53 +08:00
街角小林
f5cf7abd4f Feat:抽离库和demo中的主题文件为单独的包 2024-10-09 09:27:51 +08:00
街角小林
29695d1d7e Fix:修改派发节点激活事件的逻辑,去除不必要的判断,避免激活节点没有改变的情况下也会触发事件 2024-09-30 17:35:26 +08:00
街角小林
1510f7a135 打包Demo 2024-09-30 16:56:53 +08:00
街角小林
4b5a691713 Feat:支持拖拽调整节点宽度 2024-09-30 16:43:47 +08:00
街角小林
e9058ed67e Doc: 添加注释 2024-09-29 10:03:31 +08:00
街角小林
fc728ec018 Feat:剪贴板中同时存在文本和图片数据,默认只粘贴文本,可通过实例化选项修改 2024-09-27 17:34:13 +08:00
街角小林
7361df8697 Fix:修复搜索替换时搜索文本是替换文本的子串时搜索结果不正确的问题 2024-09-27 17:20:01 +08:00
街角小林
14e36aa699 Doc: update 2024-09-27 16:49:04 +08:00
街角小林
eff4cd0e77 打包0.11.2 2024-09-25 10:52:21 +08:00
街角小林
82c2d848a9 Feat:增加是否阻止mousedown事件默认事件的实例化选项 2024-09-25 10:31:39 +08:00
街角小林
0344599411 Fix:优化公式插件,适配创建多个实例的情况 2024-09-24 18:21:48 +08:00
街角小林
19fa0af6c0 Fix:修复创建多个思维导图实例时调用addPlugin添加同一个插件只有第一个实例会生效的问题 2024-09-24 17:55:52 +08:00
街角小林
bca1a073f7 Fix:修复创建多个思维导图实例时公式插件会多次扩展Quill的问题 2024-09-24 17:25:06 +08:00
街角小林
98fb23bf7c Feat:主题支持配置各个层级节点的内边距 2024-09-23 17:48:11 +08:00
街角小林
1c9c399b76 Feat:主题新增节点高亮框的圆角配置 2024-09-23 17:19:47 +08:00
wanglin2
bc43fedd87 Feat:新增自定义判断wheel事件是否来自触控板的实例化选项;优化代码 2024-09-21 19:54:43 +08:00
街角小林
156054ed93 Merge pull request #886 from Tarrency/feature-to-the-feature
feat: 配置平移步长和扩缩最值,解决触控板灵敏度问题
2024-09-21 15:24:58 +08:00
wangqi01
937f7d2969 fix: 限值平移步长比例生效只在鼠标/触控板滚动行为内 2024-09-20 18:03:18 +08:00
街角小林
e56a6d36cb Demo:优化节点图片添加了无法访问的图片的展示样式 2024-09-20 17:33:16 +08:00
街角小林
9f19061010 Fix:修复节点富文本编辑能粘贴图片的问题 2024-09-20 16:58:06 +08:00
街角小林
0d465f28f3 Feat:注释掉非https情况下的粘贴逻辑 2024-09-20 16:37:07 +08:00
街角小林
b4fdcd81b0 Fix:修复自定义主题节点渐变色方向无效的问题 2024-09-20 09:32:12 +08:00
Tarrency
38c0fe2e39 feat: 配置平移步长和扩缩最值,解决触控板灵敏度问题 2024-09-19 20:35:46 +08:00
街角小林
29ddbba9b9 Demo:新增一键展开某个节点所有下级节点的右键菜单 2024-09-19 19:52:34 +08:00
街角小林
9f9ed1e84f Fix:修复思维导图非常大的情况下导出图片失败的问题 2024-09-19 19:36:10 +08:00
街角小林
9ebc416167 Demo:修复右键菜单中的二级菜单会超出边界的问题 2024-09-19 18:19:57 +08:00
街角小林
5d49d985c0 优化代码 2024-09-19 18:14:52 +08:00
街角小林
c36338a794 Merge pull request #876 from BlackEyeBear/main
处理非https下navigator.clipboard方法无法获取,导致无法复制黏贴外部文本
2024-09-19 18:05:36 +08:00
wanglin2
c21ee4960e Fix:修复存在概要时切换主题会报错的问题 2024-09-18 21:52:11 +08:00
BlackEyeBear
5090f21b0e 处理非https下navigator.clipboard方法无法获取,导致无法复制黏贴外部文本 2024-09-16 22:08:55 +08:00
panda
3d9d172fa0 '处理非https下navigator.clipboard方法无法获取,导致无法复制黏贴外部文本' 2024-09-16 21:32:52 +08:00
街角小林
766ce310d0 打包0.11.1 2024-09-11 20:21:10 +08:00
街角小林
075bf54d28 Merge branch 'feature' into main 2024-09-11 20:02:17 +08:00
街角小林
14ebd7a239 Merge pull request #839 from PeterDaveHelloKitchen/zh_tw
Add Traditional Chinese(zh_TW) translation
2024-09-11 20:01:33 +08:00
街角小林
ac13aa8bc9 Doc: update 2024-09-11 19:59:59 +08:00
街角小林
f4d84aeb55 Demo:支持导入导出Excel 2024-09-11 17:41:57 +08:00
街角小林
9b7305de1e Demo:新增删除节点图片前的二次提示 2024-09-09 18:04:56 +08:00
街角小林
ef526fe302 Feat:新增拦截删除节点图片的实例化选项 2024-09-09 18:04:37 +08:00
街角小林
007a5f2815 Feat:组织结构图支持曲线连线 2024-09-09 17:47:17 +08:00
街角小林
e04b680cdc Feat:非富文本模式下文本编辑支持粘贴带换行的文本 2024-09-06 17:21:55 +08:00
街角小林
156c866bc1 Feat:1.去除highlightNodeBoxStyle选项;2.highlightNode方法新增参数;3.概要区间高亮框的颜色由主题的hoverRectColor选项和hoverRectColor实例化选项确定 2024-09-06 16:56:22 +08:00
街角小林
62b734890b Fix:修复切换主题时概要节点的样式没有更新的问题 2024-09-06 09:36:02 +08:00
街角小林
c7f3dd4d7e Feat:主题支持设置节点hover和激活时矩形框的颜色 2024-09-06 09:35:10 +08:00
街角小林
5014a2feb7 Feat:展开所有和收起所有的命令支持指定节点的uid 2024-09-05 19:14:18 +08:00
街角小林
8f8c6c9d95 Feat:expandBtnNumHandler选项新增节点实例的回调参数 2024-09-05 18:21:38 +08:00
街角小林
c8d5a34640 Demo:支持导入和导出FreeMind文件 2024-09-05 09:40:41 +08:00
街角小林
bd0fc37f03 Demo:删除无用文件 2024-09-04 09:07:21 +08:00
Peter Dave Hello
c05d947fa3 Add Traditional Chinese(zh_TW) translation 2024-09-03 21:44:43 +08:00
街角小林
1f303145c6 Fix:修复富文本模式下即使未修改文本也会添加历史记录的问题 2024-09-03 17:20:49 +08:00
街角小林
453e7311b8 Feat:公式插件:去除将公式富文本转换为公式源码时的特殊字符转义逻辑,避免双重转换导致报错 2024-08-30 17:38:39 +08:00
街角小林
c12b7f6dae Feat:更新节点非样式字段列表 2024-08-30 17:02:48 +08:00
街角小林
7ba11be42b Fix:修复公式中存在<>符号时导出svg报错的问题 2024-08-30 14:01:59 +08:00
wanglin2
ce49fcb511 Feat:修改更新节点当前应用样式的逻辑 2024-08-29 22:01:05 +08:00
街角小林
06fb6245b7 Demo:支持设置节点背景渐变方向 2024-08-29 18:29:04 +08:00
街角小林
fa8a80792d Feat:主题支持配置背景渐变的方向 2024-08-29 17:48:03 +08:00
街角小林
570bbb1b16 Feat:新增开启节点文本编辑实时更新节点大小和位置的实例化选项 2024-08-29 15:33:38 +08:00
街角小林
4e327c3a48 Feat:格式刷支持刷节点所有生效的样式,包括来自主题的和自定义的 2024-08-29 10:30:52 +08:00
街角小林
89d89f4dd8 update 2024-08-28 17:41:52 +08:00
街角小林
5ae998f304 Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2024-08-28 16:49:51 +08:00
街角小林
428c4fd93b Fix:修复默认主题配置中的normal单词拼写错误的问题 2024-08-28 16:41:59 +08:00
街角小林
2bcc4a7c18 Demo:支持点击画布取消缩放输入框的聚焦状态 2024-08-28 16:39:35 +08:00
街角小林
9229f13172 Fix:调整hide_text_edit事件触发时机,防止一些情况下的死循环问题 2024-08-28 16:20:49 +08:00
wanglin2
afdb557a49 打包demo 2024-08-26 21:16:02 +08:00
wanglin2
62e25cdf86 Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2024-08-26 21:10:09 +08:00
街角小林
9d64a508d6 '打包0.11.0' 2024-08-26 15:06:22 +08:00
街角小林
474bbbf0fc Feat:固定@svgdotjs/svg.js库的版本为3.2.0 2024-08-26 09:39:07 +08:00
wanglin2
d2562f35bd Feat:优化mac触控板双指拖动画布的体验 2024-08-26 07:33:04 +08:00
wanglin2
cc9d3a6707 Fix:修复搜索插件参数没有默认值导致报错的问题 2024-08-24 22:58:06 +08:00
wanglin2
8cd87890d3 Demo:修改搜索结果列表样式 2024-08-24 22:54:53 +08:00
街角小林
ab4cf28f9e Demo:缩放倍数输入框禁止输入非数字 2024-08-23 16:02:42 +08:00
街角小林
32ce3bce17 FiX:修复前进后退时data_change事件触发时渲染树数据还未更新的问题 2024-08-23 15:54:27 +08:00
街角小林
faa2b94bc8 Demo:只读模式下隐藏相关侧边栏 2024-08-23 15:34:50 +08:00
街角小林
834651d471 Demo:搜索新增搜索结果列表显示 2024-08-23 15:01:45 +08:00
街角小林
83c9d16d2b Feat:搜索插件增加跳转指定搜索结果索引节点的方法 2024-08-23 14:56:13 +08:00
wanglin2
b8765bdd99 Feat:减少一次在firefox浏览器上粘贴剪贴板内容时的提示 2024-08-22 22:32:28 +08:00
街角小林
9ef90a7057 Quill升级:修复shift+enter换行后的新行没有样式的问题 2024-08-22 18:43:02 +08:00
街角小林
dc27ca4ce8 Quill升级:修复粘贴文本时前后会出现换行多个换行,目前粘贴完还是会新开一行 2024-08-22 16:05:33 +08:00
街角小林
713d7b5844 Quill升级:拦截默认的回车事件 2024-08-22 14:39:45 +08:00
wanglin2
da49a0f58c Fix:修复进入演示模式出错的问题 2024-08-21 22:01:19 +08:00
街角小林
01b805a045 Dev:开发中 2024-08-21 12:03:29 +08:00
街角小林
8a36675b8d Demo:输入的标签数据为空不允许添加 2024-08-21 09:02:55 +08:00
街角小林
3c63d94d9c Feat:KeyCommand类:1.如果当前存在缓存数据,save方法不允许添加新缓存;2.缓存数据为空,restore方法不执行 2024-08-21 09:02:30 +08:00
街角小林
eb2e577219 Doc: update 2024-08-20 16:12:31 +08:00
街角小林
d01038e617 Feat:Node类改名为MindMapNode类,避免和HTML原生Node类冲突 2024-08-19 16:44:35 +08:00
街角小林
6bfac34368 Fix:修复富文本插件粘贴文本时没有去除默认样式的问题 2024-08-19 16:33:35 +08:00
wanglin2
0a6c8fb61c Demo:去除文档和首页,只保留思维导图 2024-08-18 15:05:17 +08:00
街角小林
dc4673b017 删除无用代码 2024-08-16 13:42:33 +08:00
街角小林
915d6e5f60 Doc: update 2024-08-16 13:40:39 +08:00
街角小林
8366357204 Demo:搜索框聚焦时禁止节点响应按键事件自动进入文本编辑状态 2024-08-16 09:16:07 +08:00
街角小林
0f305b9876 Doc: update 2024-08-15 18:34:39 +08:00
街角小林
ff22a652d5 打包0.10.6 2024-08-15 18:31:18 +08:00
街角小林
d1ade8204b Doc: update 2024-08-15 18:22:51 +08:00
街角小林
2a84a3cf16 Demo:修复更改基础样式后切换主题,选择覆盖,再修改基础样式时之前覆盖的样式会恢复的问题 2024-08-15 16:39:56 +08:00
街角小林
721cae8139 Demo:修复激活节点时在缩放备注输入框中输入会输入到节点文本中的问题 2024-08-15 16:29:18 +08:00
街角小林
8f8662f2df Fix:修复处于回退操作中激活节点后无法前进的问题 2024-08-15 16:25:39 +08:00
街角小林
bc56f90595 Fix:修复一些小问题 2024-08-15 15:49:33 +08:00
街角小林
0d1b9dfff4 Feat:全选操作支持选中概要节点 2024-08-15 15:41:58 +08:00
街角小林
ccb2a260b6 Feat:鼠标框选支持选中概要节点 2024-08-15 15:30:56 +08:00
街角小林
2c8b96582a Feat:1.优化概要渲染,减少不必要的重新渲染;2.修复同时选中概要节点和其所属节点,设置节点样式后概要节点会失去激活状态的问题 2024-08-15 15:19:26 +08:00
街角小林
161d9dd715 Feat:新增节点备注图标点击事件 2024-08-14 18:35:27 +08:00
街角小林
1033447b9c Feat:搜索插件支持搜索概要节点 2024-08-14 17:48:23 +08:00
街角小林
1dbcb71ec5 Fix:修复GO_TARGET_NODE命令对概要节点支持不全的问题 2024-08-14 17:35:32 +08:00
街角小林
c0733dda35 update 2024-08-14 16:59:37 +08:00
街角小林
4c5b2e7af2 Demo:备注里的超链接改为新窗口打开 2024-08-14 16:50:53 +08:00
街角小林
322f7a3e2a Fix:修复富文本模式下切换主题,概要节点的文本样式没有跟随改变的问题 2024-08-14 16:42:26 +08:00
街角小林
766e0e5fae Doc: update 2024-08-14 16:33:43 +08:00
街角小林
4335cbb713 Feat:render类新增手动激活和取消激活多个节点的方法 2024-08-14 16:33:28 +08:00
街角小林
82473027da Demo:右键菜单新增设置节点编号功能 2024-08-14 09:41:33 +08:00
街角小林
68bf2d361c Feat:新增对编号插件的支持 2024-08-14 09:21:30 +08:00
街角小林
1620a013ba Feat:walk方法增加祖先列表回调参数 2024-08-13 10:57:01 +08:00
街角小林
13a1f989c3 Feat:实例销毁时删除文本编辑框的元素 2024-08-12 14:06:30 +08:00
街角小林
8bbbc082c7 Doc: update 2024-08-12 13:50:38 +08:00
街角小林
f15bf8a8dc Demo:支持设置关联线的样式,即实线或虚线 2024-08-12 13:36:42 +08:00
街角小林
3801dc3ec4 Feat:主题配置支持设置关联线的样式,即实线或虚线 2024-08-12 13:36:14 +08:00
街角小林
182cdf5153 Feat:不阻止mousedown、mousemove事件的默认行为 2024-08-12 10:58:17 +08:00
街角小林
1cd4705ad8 Feat:支持不显示展开收起按钮的实例化选项 2024-08-12 10:36:05 +08:00
街角小林
d82cedcbdd Fix:1.修复点击鼠标右键菜单时关联线插件报错的问题;2.修复点击画布无法取消激活关联线的问题; 2024-08-12 09:55:05 +08:00
街角小林
f9c271e11b Demo:支持鼠标选中备注浮层的内容 2024-08-12 09:27:45 +08:00
街角小林
a26d6bc7cf 打包Demo 2024-08-08 12:01:39 +08:00
街角小林
dc522cd0be Doc: update 2024-08-08 11:57:47 +08:00
街角小林
43969af14b Fix:修复只读模式下搜索节点的高亮不会消失的问题 2024-08-08 11:52:02 +08:00
街角小林
79ccd9892c Feat:RichText插件新增扩展字体列表的方法 2024-08-06 09:56:37 +08:00
街角小林
5fb35d656f 打包0.10.5 2024-08-02 10:04:20 +08:00
街角小林
cec1f59189 Doc: update 2024-08-02 09:46:17 +08:00
街角小林
a6a890362e Dmoe:修复大纲里点击节点进行拖拽会触发页面的文件拖拽蒙层的问题 2024-08-01 10:36:03 +08:00
街角小林
83b6d5793b Fix:修复画布尺寸调整后第一次触发渲染画布会发生跳动的问题 2024-07-31 10:53:56 +08:00
街角小林
9b40a7bedd Doc: update 2024-07-30 09:19:10 +08:00
街角小林
11f2078ee0 Demo:编辑本地文件时如果未保存关闭页面增加拦截提示 2024-07-29 17:20:21 +08:00
街角小林
4fb9bd5135 Demo:打开本地文件编辑的情况下不再将数据写入浏览器缓存 2024-07-29 17:00:39 +08:00
街角小林
cf56b5db24 Demo:节点下级数量大于100收起时显示省略号 2024-07-29 15:39:51 +08:00
街角小林
40ea595e62 Feat:移动节点或复制节点到收起的节点上自动展开该节点 2024-07-29 15:13:11 +08:00
街角小林
91a9d7b556 Doc: update 2024-07-29 09:54:50 +08:00
街角小林
0669e73a5b Feat:支持点击画布取消创建关联线 2024-07-29 09:49:05 +08:00
街角小林
fde6fc2583 Fix:修复开启性能模式后,演示插件无法正常工作的问题 2024-07-29 09:28:51 +08:00
街角小林
f92146a1f4 Fix:修复跨层级复制节点时,节点的富文本样式没有更新的问题 2024-07-26 17:05:09 +08:00
街角小林
38c6966d13 Feat:移动节点且节点层级发生了改变,设置过自定义富文本样式的节点不需要更新样式 2024-07-26 16:39:19 +08:00
街角小林
4894d9e6e6 Fix:修复开启性能模式后拖动滚动条报错的问题 2024-07-26 15:51:30 +08:00
街角小林
9a64094f14 打包0.10.4 2024-07-26 10:32:39 +08:00
街角小林
95fdb35f7b Fix:优化性能模式的懒加载 2024-07-26 10:15:54 +08:00
街角小林
497c2606df Feat:懒加载节点树时增加触发渲染开始和结束事件的派发 2024-07-26 09:38:22 +08:00
街角小林
d735be1204 Doc: update 2024-07-25 18:33:36 +08:00
街角小林
45d2da1337 update package.json 2024-07-25 18:32:04 +08:00
街角小林
194571d5fe Fix:修复在@svgdotjs/svg.js库版本为3.0.16时报错的问题 2024-07-25 18:05:22 +08:00
街角小林
418b24b039 Doc: update 2024-07-25 17:38:01 +08:00
街角小林
b32a8b5a85 Demo:基础配置里增加开启性能模式的开关 2024-07-25 16:41:21 +08:00
街角小林
2dee415a64 Feat:新增性能模式 2024-07-25 16:40:47 +08:00
街角小林
4e7d59b328 Fix:删除无用代码,修复鼠标悬浮节点上报错不显示展开收起按钮的问题 2024-07-24 17:13:49 +08:00
街角小林
9bde9ffaf3 Doc: update 2024-07-22 09:25:22 +08:00
街角小林
1b4ca19ad8 打包0.10.3 2024-07-19 14:22:00 +08:00
街角小林
eb72e0eed3 Doc: update 2024-07-19 14:11:23 +08:00
街角小林
6dea1ef9b2 Demo:支持配置外框内边距 2024-07-18 15:18:44 +08:00
街角小林
c6c1ef2117 Feat:新增设置外框内边距的实例化选项 2024-07-18 13:45:50 +08:00
街角小林
4423fd562b Demo:去除引入公式库样式的逻辑 2024-07-18 10:10:23 +08:00
街角小林
7b1ea5e354 Feat:1.支持自定义katex库渲染模式的实例化选项;2.公式插件会默认引入katex库的样式,增加自定义字体文件路径的实例化选项 2024-07-18 10:09:39 +08:00
街角小林
5192753816 Feat:如果开启了公式插件并且存在公式,那么导出svg时需要传入katex库的样式 2024-07-18 10:05:48 +08:00
街角小林
6382e8acd8 Doc: update 2024-07-16 16:47:29 +08:00
街角小林
e293039b3c Doc: update 2024-07-12 17:05:55 +08:00
街角小林
f819cbc5b1 Demo:修复对象类型的标签数据在标签弹窗里回显错误的问题 2024-07-12 15:18:48 +08:00
街角小林
44a883c473 Feat:复制、剪切、移动多个节点时,按其在节点上的顺序进行操作 2024-07-11 09:53:54 +08:00
街角小林
c1f600dc1f Fix:修复同时选中多个节点,可以不停插入概要的问题 2024-07-11 09:34:14 +08:00
街角小林
4777ab3e58 Demo:支持点击节点标签进行文本和颜色的修改 2024-07-09 15:57:46 +08:00
街角小林
12c6479c0d Feat:node_tag_click事件新增两个回调参数 2024-07-09 15:54:06 +08:00
街角小林
f79918ec6f Feat:1.支持定义标签样式;2.新增标签显示位置的实例化选项; 2024-07-09 14:11:18 +08:00
街角小林
ba9a6e501a Doc: update 2024-07-09 10:35:28 +08:00
街角小林
9b55d051dc Fix:修复编辑过节点文本后,再使用滚轮或快捷键缩放画布时上次被编辑的节点会进入编辑状态,以及思维导图快捷键会失效的问题 2024-07-08 16:52:53 +08:00
街角小林
159a4a202c Fix:修复customCreateNodeContent、createNodePrefixContent等方法里获取到的节点的isRoot和parent等值都为null的问题 2024-07-08 16:27:18 +08:00
街角小林
ac72c0c1dc Demo:恢复误删的文件 2024-07-05 10:57:06 +08:00
街角小林
f54f92c303 update 2024-07-04 17:32:00 +08:00
街角小林
c2dbfb41d5 打包0.10.2-fix.1 2024-07-03 12:11:59 +08:00
街角小林
5867649429 Fix:修复修改了外框的线条样式,激活后再取消激活,样式会变成默认的样式的问题 2024-07-03 12:00:44 +08:00
街角小林
de29ec59c5 打包Demo 2024-07-03 11:34:16 +08:00
街角小林
bc1cf71eaa update 2024-07-03 11:21:24 +08:00
街角小林
d929792157 打包0.10.2 2024-07-03 11:18:29 +08:00
街角小林
658b47b72e Doc: update 2024-07-03 11:07:50 +08:00
街角小林
591e6a5b2a Demo:1.小地图支持拖拽视图框调整画布位置;2.鼠标移出小地图停止鼠标事件; 2024-07-03 09:18:18 +08:00
街角小林
58baf4c0aa Feat:小地图支持拖拽视图框调整画布位置 2024-07-03 09:17:26 +08:00
街角小林
00f86fe167 Demo:修复鼠标移出小地图再松开后事件没有结束的问题 2024-07-02 16:30:19 +08:00
街角小林
5c1e5f072c Demo:新增向左逻辑结构图 2024-07-02 11:46:42 +08:00
街角小林
b45674cf8f Feat:新增向左逻辑结构图 2024-07-02 11:46:03 +08:00
街角小林
c23a16e65a Doc: update 2024-07-02 10:33:13 +08:00
街角小林
b7722987b1 Demo:右键菜单新增复制到剪贴板功能 2024-07-02 10:30:54 +08:00
街角小林
1fc5b951a0 Demo:新增外框设置功能 2024-07-01 17:22:10 +08:00
街角小林
53eb608007 Demo:颜色选择支持选择透明度 2024-07-01 17:16:11 +08:00
街角小林
876afb2504 Feat:新增外框插件 2024-07-01 17:15:48 +08:00
街角小林
4d1608e8c4 Fix:修复拖动关联线端点移动时会选中节点文字的问题 2024-06-27 16:50:25 +08:00
街角小林
80f45e5e7d Doc: update 2024-06-27 09:26:04 +08:00
街角小林
f80317a449 Doc: update 2024-06-26 16:03:13 +08:00
街角小林
9bce6d3ded update 2024-06-25 16:33:08 +08:00
街角小林
16e40b4342 Fix:修复节点文本和createNodePrefixContent选项自定义的内容没有垂直居中的问题 2024-06-25 16:25:20 +08:00
街角小林
624203ea84 Feat:点击超链接图标时激活节点;新增自定义超链接跳转的实例化选项 2024-06-25 15:53:06 +08:00
街角小林
6ffa4570d4 Feat:hide_text_edit事件增加被编辑节点的回调参数 2024-06-25 09:45:59 +08:00
街角小林
d99a4dcc33 Feat:将Select插件的画布自动移动功能独立出来,解决没有注册Select插件的情况下Drag插件无法使用画布自动移动功能的问题 2024-06-25 09:35:34 +08:00
街角小林
e8c4aad690 Feat:新增禁止读取和写入用户剪贴板的实例化选项 2024-06-24 19:03:47 +08:00
街角小林
35c8e129f0 Feat:drag插件的beforeDragEnd选项新增当前被拖拽的节点列表的回调参数 2024-06-24 18:54:31 +08:00
街角小林
dc096fd535 Feat:阻止mousedown、mousemove、drag、node_mousedown事件的默认行为 2024-06-24 18:52:36 +08:00
街角小林
a047dabbd0 Feat:新增拦截节点开始拖拽的实例化选项 2024-06-24 18:42:14 +08:00
街角小林
1ec723db0e Doc: update 2024-06-24 18:29:14 +08:00
街角小林
d9fc209dac Doc: update 2024-06-20 09:53:23 +08:00
街角小林
8647cb5893 Demo update 2024-06-14 15:38:33 +08:00
街角小林
264875e14e 打包0.10.1 2024-06-14 15:23:07 +08:00
街角小林
de423f3bd3 Doc: update 2024-06-14 15:06:56 +08:00
街角小林
fcdcda929c Fix:修复/快捷键能收起根节点的子节点的问题 2024-06-14 14:03:35 +08:00
街角小林
1cfd50a42b update 2024-06-13 19:21:35 +08:00
街角小林
f794df4e6f Feat:新增限制TouchEvent插件双指缩放的最大值和最小值 2024-06-13 19:12:24 +08:00
街角小林
eea1109e43 Feat:新增拦截节点拖拽的实例化选项 2024-06-13 18:48:48 +08:00
街角小林
65004d08cd Feat:render.moveNodeToCenter方法新增第二个参数指定是否重直画布的缩放 2024-06-13 16:52:39 +08:00
街角小林
44d75ef7f4 Demo:移动端打开时不显示目录、新建、打开按钮 2024-06-13 16:29:16 +08:00
街角小林
1f473b79e9 Fix:修复TouchEvent插件两次点击位置不同时也会触发节点输入的问题 2024-06-13 16:26:51 +08:00
街角小林
8ad26da5d7 Demo:修复演示模式中右下角输入框无法输入的问题 2024-06-13 15:44:56 +08:00
街角小林
e7f1608605 Demo:新增节点标记功能 2024-06-13 15:01:22 +08:00
街角小林
d14fb0b666 Feat:新增单个节点内容布局完成事件 2024-06-13 14:43:17 +08:00
街角小林
a55401de23 Feat:新增修改拖拽节点时克隆的节点的实例化选项 2024-06-13 14:34:14 +08:00
街角小林
a9ad38e39b Demo: update 2024-06-13 09:33:58 +08:00
街角小林
4f5746680d Feat:新增处理导出前的svg对象的实例化选项 2024-06-13 09:32:32 +08:00
街角小林
b7d906d1ea Doc: update 2024-06-06 09:14:24 +08:00
街角小林
1181871772 update 2024-06-05 15:49:33 +08:00
街角小林
93df2d7950 update 2024-06-05 15:47:09 +08:00
街角小林
09633dda58 Feat:降级Formula插件中较新的js语法 2024-06-05 15:46:16 +08:00
街角小林
9ef789110b 打包0.10.0 2024-06-05 09:29:59 +08:00
街角小林
9294fc4e7b Doc: update 2024-06-05 09:20:12 +08:00
街角小林
abacff6ede Doc:整理实例化选项文档 2024-06-04 18:53:43 +08:00
街角小林
79755e80b9 Fix:修复节点前后自定义内容导出图片时显示空白的问题 2024-06-04 16:30:23 +08:00
街角小林
b8a23beba4 Feat:打包后的文件中增加演示插件 2024-06-04 11:47:34 +08:00
街角小林
f996ec9bae Feat:支持直接在富文本编辑框中编辑数学公式 2024-06-04 11:45:31 +08:00
街角小林
8152fab185 Demo:新建和打开按钮增加导出的提示,防止内容丢失 2024-06-03 09:25:35 +08:00
wanglin2
21b404a322 Demo:优化富文本工具条下拉选项列表高度问题 2024-06-01 23:01:30 +08:00
街角小林
c5ed48ad99 Merge pull request #620 from wallace-yang/main
Feat:快捷键提示支持mac与修复富文本选择字体大小列表文字重叠bug
2024-06-01 22:49:41 +08:00
街角小林
25f0668a44 Feat:插入新节点时去除延时开启节点编辑的逻辑 2024-05-31 16:55:02 +08:00
街角小林
67fec82c72 update 2024-05-31 15:57:09 +08:00
街角小林
0760500ceb Feat:去除移除富文本内容中ql-cursor类名的节点的逻辑,修复文本换行时新增空行不生效的问题 2024-05-31 15:56:01 +08:00
街角小林
3355900bd3 Fix:修复复制带换行符的节点文本粘贴后会出现多行换行的问题 2024-05-31 15:08:31 +08:00
街角小林
417376dcb6 Feat:defenseXSS方法作为工具方法提供 2024-05-31 15:00:36 +08:00
街角小林
6a45ff2221 Feat:取消调用defenseXSS函数,对性能影响太大 2024-05-31 14:52:07 +08:00
街角小林
c967be2bc2 Fix:修复拖拽画布和拖拽调整图片时会选中文字的问题 2024-05-31 14:46:21 +08:00
街角小林
12dae210ef Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2024-05-31 14:34:17 +08:00
街角小林
a75eb5f195 Feat:全新升级节点拖拽时的交互效果 2024-05-31 14:33:56 +08:00
wanglin2
9ad71c6627 update 2024-05-30 21:55:53 +08:00
wanglin2
2218e7bf12 Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2024-05-30 21:49:11 +08:00
街角小林
c4777fb17a Doc: update 2024-05-29 17:47:28 +08:00
街角小林
edc2097d14 Doc: update 2024-05-29 17:45:58 +08:00
街角小林
53bcabe3d0 Fix:修复移动端部分浏览器设置缩放时会进行页面缩放的问题 2024-05-28 17:47:49 +08:00
街角小林
27477e39de Demo:导入存在多个画布的xmind文件支持选择指定的画布进行导入 2024-05-28 17:28:17 +08:00
街角小林
f4800746a3 Feat:导入存在多个画布的xmind文件支持选择指定的画布进行导入 2024-05-28 17:27:19 +08:00
街角小林
7c82d16d66 Demo:支持配置水印显示在节点下方 2024-05-27 19:14:00 +08:00
街角小林
dccd1c9459 Feat:支持设置水印显示在节点下方 2024-05-27 19:13:29 +08:00
街角小林
1f8fad8fc5 Feat:新增渲染开始事件node_tree_render_start 2024-05-27 18:41:50 +08:00
街角小林
a3d5588cd6 Doc: update 2024-05-27 18:39:04 +08:00
街角小林
7c96daf6d0 Fix:修复只读模式仍可通过Ctrl+点击节点方式激活节点 2024-05-27 18:31:42 +08:00
街角小林
db03e74f0d Doc: update 2024-05-27 18:24:44 +08:00
街角小林
459044beb9 Fix:修改51统计配置,解决报错的问题 2024-05-17 17:46:10 +08:00
街角小林
2537fb858f Merge branch 'main' of https://github.com/wanglin2/mind-map into main 2024-05-14 16:01:36 +08:00
街角小林
5c6d460455 打包demo 2024-05-14 16:01:05 +08:00
街角小林
6c3790e20e Delete CNAME 2024-05-14 14:57:25 +08:00
街角小林
40de891695 Create CNAME 2024-05-14 14:57:07 +08:00
街角小林
98f0d5e0fc 打包0.9.12 2024-05-13 11:23:29 +08:00
街角小林
6f3a02d39e Doc: update 2024-05-13 10:44:21 +08:00
街角小林
5cfc313f8e Feat:支持解析md文件中带html格式的标题文本 2024-05-13 10:13:48 +08:00
街角小林
d93825dd57 Fix:修复导入md文件时存在加粗的标题文本会解析为undefined的问题 2024-05-13 10:01:53 +08:00
街角小林
85171db778 Doc: update 2024-05-11 10:53:15 +08:00
街角小林
7d7ab9291a Demo:修复全屏查看模式下节点备注浮层无法显示的问题 2024-05-11 10:17:13 +08:00
街角小林
bb2502501e Feat:1.演示模式中禁止画布的所有内容响应鼠标事件;2.节点的超链接和备注图标支持响应鼠标事件;3.支持填空模式 2024-05-11 10:05:46 +08:00
街角小林
d60f30d97e Feat:1.优化代码:提取各处获取节点概要数据的兼容代码;2.演示插件支持概要;3.expandToNodeUid方法支持概要节点;4.findNodeByUid方法支持概要节点 2024-05-10 09:51:58 +08:00
街角小林
706b2ee65d Feat:新增添加节点附加的前置和后置内容的实例化选项 2024-05-08 19:02:19 +08:00
街角小林
e939b6132f Feat:新增节点标签的点击事件 2024-05-08 17:42:29 +08:00
街角小林
b69a0b620d Fix:1.全选、删除节点激活相邻节点、多选节点等操作增加派发before_node_active事件;2.多选节点改为实时派发激活事件 2024-05-08 09:54:16 +08:00
街角小林
d3d92a6e70 Demo:修复备注浮层显示时点击收起按钮收起节点后,备注浮层未消失的问题 2024-05-07 18:59:53 +08:00
街角小林
6751897309 Fix:修复非富文本模式下同时存在图标和换行的文本时,被收起和展开时图标与文字距离会逐渐拉大的问题 2024-05-07 18:50:14 +08:00
街角小林
07a3f65911 Feat:移动指定节点到画布中心时默认不恢复缩放 2024-05-07 17:24:13 +08:00
街角小林
924b2660e1 打包Demo 2024-05-07 09:44:58 +08:00
街角小林
98d28a7b67 Doc: update 2024-05-07 09:33:21 +08:00
街角小林
a93518dee0 Merge branch 'feature' into main 2024-05-06 18:56:53 +08:00
街角小林
809c2c5666 Merge pull request #633 from Webb-L/hotfix
fix: 修复xss漏洞。
2024-05-06 18:27:06 +08:00
街角小林
cd90089b91 Doc: update 2024-05-06 18:11:10 +08:00
webb
4396c53d79 fix: 修复xss漏洞。 2024-04-28 23:26:04 +08:00
街角小林
4bea7d5e2b Doc: update 2024-04-24 09:51:32 +08:00
yanghongbo1
bc9d118efd Fix:修复富文本选择字体大小列表文字重叠bug 2024-04-22 18:58:18 +08:00
yanghongbo1
950b7ad57b Feat:快捷键提示支持mac 2024-04-22 15:12:48 +08:00
街角小林
cc62f98a9f 打包0.9.11 2024-04-19 14:34:56 +08:00
街角小林
244f2755a1 Doc: update 2024-04-19 14:18:59 +08:00
街角小林
23d38d9301 Doc: update 2024-04-19 14:18:24 +08:00
街角小林
73a61f81f8 Demo:新增演示模式 2024-04-19 09:30:32 +08:00
街角小林
6539a87cb2 Feat:新增演示插件 2024-04-19 09:29:48 +08:00
街角小林
75635ef2bb Doc: update 2024-04-17 17:50:18 +08:00
街角小林
20fae6270d Demo:优化鼠标在窗口边缘点击右键时菜单显示不全的问题 2024-04-17 09:14:58 +08:00
街角小林
6b40358f65 Demo:节点右键菜单新增导出为图片按钮 2024-04-16 19:02:57 +08:00
街角小林
e072dcb170 Feat:支持导出某个节点为图片 2024-04-16 19:02:35 +08:00
街角小林
6878d92ebe Fix:修复拖拽节点到边缘时画布自动移动无法停止的问题 2024-04-16 17:32:04 +08:00
街角小林
e9352a4f6c Fix:修复删除非当前激活的节点时,当前激活节点的激活状态无法取消的问题 2024-04-15 18:50:05 +08:00
wanglin2
6b9eee7fc6 Fix:修复删除当前激活的节点的所有子节点后,展开收起按钮没有消失的问题 2024-04-13 19:31:07 +08:00
wanglin2
c1217f1532 Feat:支持按住Command键和Win键多选节点 2024-04-13 15:28:56 +08:00
wanglin2
d73225f787 Doc: update 2024-04-13 14:17:59 +08:00
wanglin2
11b3270314 Doc: update 2024-04-12 23:08:33 +08:00
街角小林
5730a7aed5 Doc: update 2024-04-12 17:41:45 +08:00
街角小林
aeda3924a0 Fix:修复Dockerfile错误 2024-04-12 17:36:54 +08:00
街角小林
d9300395ff 新增docker文件及文档 2024-04-11 09:39:42 +08:00
街角小林
5bff885c00 Doc: update 2024-04-09 18:47:40 +08:00
街角小林
088fd398a9 Fix:修复同时创建多个实例时,文本编辑后节点宽高丢失的问题 2024-04-08 19:27:51 +08:00
街角小林
487aa38216 Fix:修复概要节点文本编辑中按回车结束时,相应的节点高亮框会错位显示 2024-04-08 18:20:23 +08:00
街角小林
e2403ae433 Fix:修复富文本插件转换节点数据时没有处理节点概要的问题 2024-04-08 18:07:37 +08:00
街角小林
7f0202e16e Fix:1.修复一键去除所有节点自定义样式命令不支持不为数组的概要的问题;2.修复富文本模式下创建的概要节点不是富文本的问题;Feat:插入概要时支持默认聚焦和进入编辑状态 2024-04-08 18:06:34 +08:00
街角小林
2b8d4ae225 Fix:修复点击概要会触发data_change_detail事件的问题 2024-04-08 18:02:59 +08:00
街角小林
513a1c342c Feat:复制知犀数据时,概要数据创建为数组形式 2024-04-08 18:01:59 +08:00
街角小林
d641b7e2ef Doc: update 2024-04-08 09:40:06 +08:00
街角小林
c769d4d203 Doc: update 2024-04-07 18:37:11 +08:00
街角小林
a36b9085bf 打包0.9.10 2024-04-02 18:14:01 +08:00
街角小林
42c934cb6d Doc: update 2024-04-02 13:57:57 +08:00
街角小林
728b1e1503 Doc: update 2024-04-02 11:53:30 +08:00
街角小林
1949d86abb Demo:支持拖拽文件到页面进行导入 2024-04-02 11:51:32 +08:00
街角小林
a7c68816f9 Doc: update 2024-04-02 09:01:45 +08:00
街角小林
ac3ad1681f Fix:修复节点文本存在svg不支持的实体字符时小地图无法渲染的问题 2024-04-02 09:00:09 +08:00
街角小林
92894d0341 Demo: update 2024-04-01 20:08:15 +08:00
街角小林
58dc232ebf Doc: update 2024-04-01 20:04:06 +08:00
街角小林
5abf09b560 Doc: update 2024-04-01 17:49:57 +08:00
街角小林
6694dffa06 update 2024-04-01 14:51:49 +08:00
街角小林
3673c6aafe Demo:支持添加附件内容(在线Demo不开放) 2024-04-01 13:53:09 +08:00
街角小林
979299f2e2 Feat:节点内容支持设置附件 2024-04-01 13:51:05 +08:00
街角小林
c0f69e038a Feat:节点内容支持设置附件 2024-04-01 13:50:20 +08:00
街角小林
80727b759d Fix:修复搜索时全部替换操作报错的问题 2024-03-29 18:02:02 +08:00
街角小林
57fe315345 打包0.9.9-fix.2 2024-03-29 16:16:08 +08:00
街角小林
231dbc00bc Demo:修复侧边栏大纲点击全屏编辑时打开的是源码编辑模式的问题 2024-03-29 16:02:09 +08:00
街角小林
02957e1fcf Fix:修复开启彩虹线条时切换结构会报错的问题 2024-03-29 15:51:32 +08:00
街角小林
38576a4860 Fix:修复插入父节点操作时原节点样式为更新的问题 2024-03-29 15:44:02 +08:00
街角小林
9b26ca9290 打包0.9.9-fix.1版本,修复搜索插件无法搜索的问题 2024-03-29 14:46:19 +08:00
街角小林
d36ff55335 打包0.9.9 2024-03-28 19:47:37 +08:00
街角小林
1ca6a34edf Doc: update 2024-03-28 19:31:49 +08:00
街角小林
c6f8f38648 Demo:导出png、pdf、svg支持设置底部自定义文字 2024-03-28 19:06:10 +08:00
街角小林
614aa1ec30 Feat:addContentToHeader方法支持返回空数据 2024-03-28 18:55:40 +08:00
街角小林
f0c08c7953 Feat:新增导出图片时添加自定义内容的实例化选项 2024-03-28 13:48:08 +08:00
街角小林
b2d5a626c7 Doc: update 2024-03-27 19:16:00 +08:00
街角小林
102cbeb821 Demo:新增源码编辑模式 2024-03-27 19:13:59 +08:00
街角小林
bff683cb5c Doc: update 2024-03-26 14:00:48 +08:00
街角小林
bf9cb99441 Fix:修复第一次创建关联线时,箭头颜色不正确的问题 2024-03-26 13:40:33 +08:00
街角小林
e966e5d57c Demo:update 2024-03-26 12:11:47 +08:00
街角小林
740c898bb1 Feat:实例化及setData方法支持传入空的data,画布空白显示 2024-03-26 12:08:20 +08:00
街角小林
3243e366b0 Doc: update 2024-03-26 10:43:26 +08:00
街角小林
7c6b67e8fb Feat:协同编辑时的人员头像增加鼠标事件 2024-03-25 18:08:59 +08:00
街角小林
3b4195acc5 Feat:节点实例新增getAncestorNodes方法用于获取祖先节点列表 2024-03-25 15:38:19 +08:00
街角小林
8b68b1fc48 Feat:节点中的图标添加鼠标移入和移出事件 2024-03-25 15:13:28 +08:00
街角小林
4614a87bdd Demo:支持配置彩虹线条 2024-03-25 15:03:53 +08:00
街角小林
c87c169dab Feat:新增彩虹线条插件 2024-03-25 15:03:38 +08:00
街角小林
bc6bf2f8f9 Feat:思维导图实例增加增量更新画布数据的方法 2024-03-22 09:30:37 +08:00
街角小林
2e5d17de16 update 2024-03-22 09:03:00 +08:00
街角小林
a12e72117e Doc: update 2024-03-22 08:58:15 +08:00
街角小林
b3d16a60b8 Doc: update 2024-03-21 09:29:08 +08:00
街角小林
2f91ea7199 Feat:增加beforeShortcutRun实例化选项用于拦截快捷键操作 2024-03-13 15:31:50 +08:00
街角小林
1085473463 Feat:支持insert键插入下级节点 2024-03-13 15:17:35 +08:00
街角小林
4c7dafe94e Doc: update 2024-03-13 15:10:17 +08:00
街角小林
f52e39eb16 打包demo 2024-03-12 18:01:10 +08:00
街角小林
27d3e977db 更新项目依赖 2024-03-12 18:00:58 +08:00
街角小林
3e59fa6ade 打包0.9.8 2024-03-08 14:01:11 +08:00
街角小林
c80916d0f2 Doc: update 2024-03-08 11:46:35 +08:00
街角小林
7bd73ba157 Fix:修复自由拖拽时,前进后退操作对节点位置不生效的问题 2024-03-08 11:44:29 +08:00
街角小林
6055a04ec5 代码优化 2024-03-08 11:15:02 +08:00
街角小林
a114631a66 Doc: update 2024-03-08 10:09:48 +08:00
街角小林
e22f67a831 Feat:修改协同编辑节点操作的更新逻辑 2024-03-08 10:06:15 +08:00
街角小林
792811f39e Doc: update 2024-03-07 11:36:05 +08:00
街角小林
ea29dad6fd Demo:新增txt文件的导出 2024-03-07 11:28:15 +08:00
街角小林
660ec00ca7 Feat:新增支持txt文件的导出 2024-03-07 11:27:52 +08:00
街角小林
2baa500c17 Fix:优化markdown的导出,修复概要丢失的问题 2024-03-07 11:27:09 +08:00
街角小林
70b6b0052f Demo:修复导入弹窗选择了一个文件后再把它删除实际上并没有删掉的问题 2024-03-07 10:40:21 +08:00
街角小林
798591f6f9 update 2024-03-07 10:36:39 +08:00
街角小林
f0b73d635e update 2024-03-07 10:34:15 +08:00
街角小林
0b049c5294 Doc: update 2024-03-07 09:40:50 +08:00
街角小林
4bf43ff338 Feat:概要节点增加uid字段 2024-03-06 16:43:45 +08:00
街角小林
58a3faae74 Fix:修复协同编辑插件:当选中一个节点时,再将该节点收起,该节点激活状态已消失,但其他客户端该节点的选中状态依旧存在的问题 2024-03-06 11:09:38 +08:00
街角小林
f3fe2dbc7b Feat:增加协同编辑节点操作同步前的生命周期函数配置信息 2024-03-06 10:05:00 +08:00
街角小林
a72d2e6748 Feat:增加协同编辑时同一节点不能多人选中的配置选项 2024-03-06 09:22:17 +08:00
街角小林
8c07209cea Fix:修复节点数据中根节点设置了expand:false时只渲染根节点的问题 2024-03-05 10:00:42 +08:00
街角小林
280afa6a73 Doc: update 2024-03-05 09:03:35 +08:00
街角小林
fd85085cb7 Demo: update 2024-02-28 14:39:55 +08:00
街角小林
95d7a3ac41 Demo: update 2024-02-28 14:13:41 +08:00
街角小林
a295d257d7 Demo:支持扫描电脑本地文件夹 2024-02-28 14:03:00 +08:00
街角小林
460d4ea558 Fix:修复删除正在编辑中的节点时实际上删除的是相邻节点的问题 2024-02-27 16:42:07 +08:00
街角小林
8b90557f70 Fix:修复某些情况下搜索时数据改变,搜索结果没有更新的问题 2024-02-27 10:15:09 +08:00
街角小林
c0fea992a9 update 2024-02-27 09:33:59 +08:00
街角小林
8bdb59c3ea 打包demo 2024-02-27 09:32:36 +08:00
街角小林
c4a846a195 Fix:修复某些情况下搜索时数据改变,搜索结果没有更新的问题 2024-02-27 09:17:00 +08:00
街角小林
7e3a1e405e '打包demo' 2024-02-26 18:25:57 +08:00
街角小林
952472a977 Feat:新增搜索所有节点(包含被收起的节点)的配置;搜索默认改为搜索所有节点; 2024-02-26 18:19:47 +08:00
街角小林
403aae4b3d Feat:1.节点实例新增高亮和取消高亮的方法;2.调整只读模式搜索高亮节点的方式;Fix:修复只读模式搜索高亮节点时收起节点高亮框未消失的问题; 2024-02-26 17:32:07 +08:00
街角小林
7999b5c260 Doc: update 2024-02-26 16:52:38 +08:00
街角小林
cdc5c7aa81 Demo:修改主题和暗色的关联逻辑 2024-02-26 16:50:00 +08:00
街角小林
9a8cd1dd24 Fix:修复导入某些旧版xmind文件时报错的问题 2024-02-23 15:06:07 +08:00
街角小林
c308cc7d44 update README 2024-02-22 16:03:33 +08:00
街角小林
1c0fe5ac8d 打包Demo 2024-02-22 10:51:35 +08:00
街角小林
44413b00fd Demo:修复打开标签弹窗、备注弹窗后点击遮罩关闭弹窗后快捷键会生效的问题 2024-02-22 10:39:40 +08:00
街角小林
8487e148ea Feat:INSERT_NODE、INSERT_MULIT_NODE、INSERT_CHILD_NODE、INSERT_MULIT_CHILD_NODE命令不会覆盖指定新插入节点数据的uid 2024-02-22 10:18:00 +08:00
街角小林
3effff95fa Fix:修复当画布大小改变后,限制思维导图在画布内和滚动条位置计算功能不正确的问题 2024-02-22 10:05:51 +08:00
街角小林
dd52873106 Doc: update 2024-02-21 11:48:22 +08:00
街角小林
a2cd6e0864 Doc: update 2024-02-21 09:55:37 +08:00
街角小林
4a5980f993 打包0.9.7 2024-02-02 17:08:03 +08:00
街角小林
fa8ad5c0d0 Doc: update 2024-02-02 17:02:36 +08:00
街角小林
a37fe66e60 Fix:修复激活概要节点,右侧设置文本样式,概要节点会失去焦点的问题 2024-01-31 18:10:22 +08:00
街角小林
af622793d8 Demo:优化主题设置弹窗 2024-01-31 17:50:28 +08:00
街角小林
679330663a Demo:新增去除节点自定义样式的右键菜单 2024-01-31 17:13:09 +08:00
街角小林
32e027529f Feat:新增两个去除节点自定义样式的命令 2024-01-31 17:12:38 +08:00
wanglin2
5be2f561e7 打包demo 2024-01-29 22:14:24 +08:00
街角小林
3da8070820 Fix:修复二级以下节点拖拽到根节点变成二级节点时样式没有更新的问题;修复上移一个层级命令移动节点时样式没有更新的问题 2024-01-26 13:51:44 +08:00
街角小林
12c89e6d37 打包demo 2024-01-26 12:00:32 +08:00
街角小林
fdb292d9b1 '打包' 2024-01-26 11:52:24 +08:00
街角小林
1083138d8c Doc: update 2024-01-26 11:41:34 +08:00
街角小林
6a4e87af7b 打包0.9.6 2024-01-26 11:33:26 +08:00
街角小林
7354bec8fd Doc: update 2024-01-26 11:19:27 +08:00
街角小林
3405fb7e8a Fix:修复添加了数学公式的节点,切换主题时文本样式没有改变的问题 2024-01-26 11:09:17 +08:00
街角小林
138cc4b3e8 Fix:修复切换主题时,换行的文本样式没有改变的问题 2024-01-26 09:44:09 +08:00
街角小林
e6ede72169 Fix:修复切换主题后,第一次进行文本换行后,新换行的文本样式会丢失的问题 2024-01-26 09:43:17 +08:00
街角小林
edddbbd1d6 Demo:修复大纲中文本换行不生效,显示br标签的问题 2024-01-26 09:05:34 +08:00
街角小林
304e76e4af 删除无用文件 2024-01-26 08:49:26 +08:00
街角小林
b4ceb88d18 Doc: update 2024-01-26 08:43:14 +08:00
街角小林
635fdf4806 Demo:新增两个主题 2024-01-26 08:40:31 +08:00
街角小林
77d376210e Doc: update 2024-01-25 18:25:36 +08:00
街角小林
12f9e03f63 Demo:大纲支持按Shift+Tab将节点上移一个层级 2024-01-25 15:24:41 +08:00
街角小林
a4f83437c9 Feat:新增MOVE_UP_ONE_LEVEL命令将节点上移一个层级 2024-01-25 15:19:11 +08:00
街角小林
a5b3efd272 Doc: update 2024-01-25 14:11:43 +08:00
街角小林
7bd467a330 Fix:修复切换主题时,被收起的节点样式没有变化的问题 2024-01-25 13:52:23 +08:00
街角小林
59b2506884 Feat:Mac双指触摸事件移动画布增加一点灵敏度 2024-01-25 08:58:33 +08:00
街角小林
cf87333910 Feat:直连风格根节点的连线起点统一为节点的边界 2024-01-24 18:51:39 +08:00
街角小林
95b957d37e Feat:主题新增字段用于设置曲线连接下根节点连线的起始位置 2024-01-24 18:28:04 +08:00
街角小林
7d18f98a33 Feat:支持设置节点连线箭头的显示位置,头部或者尾部 2024-01-24 17:52:48 +08:00
街角小林
6baf388d95 update 2024-01-22 19:59:17 +08:00
街角小林
d63d01647c 打包0.9.5 2024-01-22 19:56:20 +08:00
街角小林
70c6a26de0 Doc: update 2024-01-22 19:53:38 +08:00
街角小林
8241bcbbb4 Demo:优化代码 2024-01-19 17:45:48 +08:00
街角小林
89fd59adec Demo:支持开启手绘风格 2024-01-19 16:29:50 +08:00
街角小林
9b1f26f6e9 Feat:支持自定义创建节点形状的方法 2024-01-19 15:50:32 +08:00
街角小林
e590161f0a Doc: update 2024-01-17 18:19:48 +08:00
街角小林
2fe804880f Demo:优化移动端的使用体验 2024-01-16 18:30:41 +08:00
街角小林
bbb21d4e76 Feat:优化创建关联线时初始端点位置的计算逻辑 2024-01-16 10:10:32 +08:00
街角小林
3f9c3e9fb1 Doc: update 2024-01-16 08:41:25 +08:00
街角小林
925c5d6d3c Feat:增加禁止调整关联线端点位置的配置 2024-01-15 18:34:19 +08:00
街角小林
bb223b080c Feat:增加设置关联线创建时两个端点初始位置的配置 2024-01-15 18:31:40 +08:00
街角小林
c3652331ea Fix:修复新创建的关联线位置始终在节点的右侧没有根据相对位置调整的问题 2024-01-15 17:50:24 +08:00
街角小林
62c61b6e53 Fix:修复展开收起节点时区间概要会丢失的问题 2024-01-15 17:11:16 +08:00
街角小林
88db910c68 打包0.9.4 2024-01-12 11:12:43 +08:00
街角小林
7a8b83b9b4 Doc: update 2024-01-12 11:05:13 +08:00
街角小林
74b1a082fe Demo:1.基础样式中一些仅支持部分结构的配置根据当前结构进行显示和隐藏。2.导入文件时自动隐藏侧边栏。3.新增连线圆角的配置 2024-01-12 10:23:20 +08:00
街角小林
ac930daa11 Feat:主题配置增加lineRadius属性配置直线连接时的圆角大小 2024-01-12 09:04:33 +08:00
街角小林
836a335d75 Fix 2024-01-11 18:02:30 +08:00
街角小林
b5cfca848a Fix:修复删除含有子节点的节点时,data_change_detail事件报错 2024-01-11 17:55:10 +08:00
街角小林
cd7936a50b Fix:修复节点富文本编辑时清除样式后文字样式丢失并且切换主题也不会恢复的问题 2024-01-11 10:05:56 +08:00
街角小林
ecc15ea572 Demo:大纲里去掉节点的公式内容 2024-01-11 09:10:57 +08:00
街角小林
7c6c6341e8 Doc: update 2024-01-11 08:50:54 +08:00
wanglin2
d7bd57ffac Fix:修复mac上useLeftKeySelectionRightKeyDrag为true 时无法按住ctrl键多选节点的问题 2024-01-10 21:49:30 +08:00
街角小林
69264e3a9d Fix:修复被主题定义了加粗的节点切换主题后文本样式丢失的问题 2024-01-09 16:08:28 +08:00
街角小林
d8fdc37684 Fix:修复渐变色背景的节点富文本编辑时编辑框没有应用渐变的问题 2024-01-05 15:28:55 +08:00
街角小林
b52497b3f6 Fix:修复一些情况下,节点显示时的文本区域宽度和编辑时的宽度不一致导致的文本换行不一致的问题 2024-01-05 15:16:38 +08:00
街角小林
3593990f9b 打包0.9.3 2024-01-05 14:51:48 +08:00
街角小林
eec99c1c43 Doc: update 2024-01-05 14:47:05 +08:00
街角小林
06a777eb64 Merge branch 'feature' into main 2024-01-05 13:51:20 +08:00
街角小林
e3cb7b0a6b Fix:修复导出图片时节点连线的箭头、关联线的箭头、渐变背景丢失的问题 2024-01-05 13:50:05 +08:00
街角小林
163ae6caae Feat:优化节点渐变背景逻辑 2024-01-05 12:19:52 +08:00
街角小林
78d677a00c Merge pull request #510 from lxr-cel/main
Feature: 节点渐变色背景功能实现
2024-01-05 11:06:34 +08:00
街角小林
3a1615f041 Merge pull request #508 from HappyYang233/feature_compatible_qiankun
兼容微前端框架子应用使用此框架时,new MouseEvent函数,view字段取得proxyWindow导致构造失败的问题
2024-01-05 09:16:18 +08:00
街角小林
166f2e0a73 Doc: update 2024-01-05 09:14:30 +08:00
lxr-cel
c62089adb9 节点渐变色web示例更新 2024-01-04 23:37:27 +08:00
lxr-cel
130acff77c 节点渐变色功能实现 2024-01-04 23:36:22 +08:00
lxr-cel
c4713097a0 节点渐变色web示例更新 2024-01-04 23:28:19 +08:00
lxr-cel
c50f278ec1 Merge branch 'wanglin2:main' into main 2024-01-04 22:33:31 +08:00
lxr-cel
9af630e578 节点背景渐变色实现 2024-01-04 22:21:53 +08:00
街角小林
541606b2eb Feat:新增节点数据更新明细事件 2024-01-04 09:39:44 +08:00
HappyYang233
0784eab6d1 兼容微前端框架子应用使用此框架时,new MouseEvent函数,view字段取得proxyWindow导致构造失败的问题 2024-01-03 19:26:10 +08:00
街角小林
1ad1538699 库不再导入katex的css文件,由使用方导入 2024-01-03 18:04:19 +08:00
街角小林
a488b436ee 打包库时自动更新版本号 2024-01-03 17:56:35 +08:00
街角小林
3a6a2544b2 Doc: update 2024-01-03 17:29:22 +08:00
wanglin2
1bb7e431fb Demo:代码优化 2023-12-29 22:04:56 +08:00
wanglin2
0cfa21d4e6 Feat:增加对节点非富文本编辑时的粘贴的拦截操作 2023-12-29 22:02:15 +08:00
街角小林
1409b07fb3 Feat:节点富文本编辑中,如果粘贴的是smm格式的数据,那么取出第一个节点的纯文本进行粘贴 2023-12-29 17:46:58 +08:00
街角小林
c0fb1e8db8 Demo:公式katex库的配置从simple-mind-map库中获取 2023-12-29 16:48:23 +08:00
街角小林
eb50b70214 Fix:修复Chrome低版本公式无法渲染的问题 2023-12-29 16:47:30 +08:00
wanglin2
794d3e9a53 Fix:修复safari浏览器节点存在图标时文字位置错位的问题 2023-12-28 21:36:45 +08:00
街角小林
f087b7102e Fix:优化节点存在超链接、备注时在firefox浏览器中导出图片的宽高不之前的问题 2023-12-28 18:49:31 +08:00
街角小林
ee97731e18 Feat:设置节点文本命令的第二个参数如果没有传递,会使用之前的值 2023-12-28 17:30:58 +08:00
街角小林
7196c37e9a Doc: update 2023-12-28 09:27:43 +08:00
街角小林
2a85a03889 Feat:导出pdf从jspdf库改为pdf-lib库 2023-12-28 09:27:34 +08:00
街角小林
8b99a6c191 Doc: update 2023-12-27 09:57:25 +08:00
街角小林
6d378ca2e5 打包0.9.2 2023-12-26 18:33:29 +08:00
街角小林
5739fae4f7 Doc: update 2023-12-26 18:26:45 +08:00
街角小林
06ad8cfbf6 Feat:最大历史记录数量默认调整为500 2023-12-26 17:18:45 +08:00
街角小林
aed8e24afc Fix:修复节点数量过多,画布尺寸过大无法导出png和pdf的问题 2023-12-26 12:20:12 +08:00
街角小林
b7cb52b703 Fix:修复node_dragging事件回参里没有node实例的问题 2023-12-26 11:50:00 +08:00
街角小林
d4fc37fc98 Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2023-12-26 10:23:46 +08:00
街角小林
7b4bd6b0bb Demo:基础样式配置连线支持显示箭头 2023-12-26 10:23:37 +08:00
街角小林
80f8a357fe Feat:节点连线支持显示箭头 2023-12-26 10:23:15 +08:00
wanglin2
a66cced73c Feat:去除导出pdf的特别处理 2023-12-25 20:50:50 +08:00
街角小林
29c5075fa5 Feat:重构pdf的导出逻辑,导出的pdf尺寸不再是固定的a4,而是思维导图的尺寸,同时取出分页导出的配置 2023-12-25 19:16:44 +08:00
街角小林
5bea2606f6 Fix:修复节点富文本编辑时,文本选中范围为null时没有触发rich_text_selection_change事件的问题 2023-12-25 18:10:51 +08:00
街角小林
9db988e3ec Fix:修复节点文本编辑状态中鼠标选择文本时移除编辑框,文字选中状态会丢失的问题 2023-12-25 18:09:25 +08:00
街角小林
bac174c8df Feat:新增自定义节点粘贴图片时的处理函数选项 2023-12-25 17:39:51 +08:00
街角小林
c0db185ca6 Doc: update 2023-12-25 17:25:37 +08:00
街角小林
642f486841 Doc: update 2023-12-25 17:25:17 +08:00
街角小林
69a97d44bc Fix:修复插入格式报错的问题 2023-12-25 16:30:29 +08:00
街角小林
d19fd7e186 Demo:支持配置仅在导出时显示水印 2023-12-25 10:13:13 +08:00
街角小林
2bcf763ea2 Feat:支持仅在导出时显示水印的配置选项 2023-12-25 10:12:43 +08:00
街角小林
9ea36a852f Fix:修复当节点数量比较多时,导出的图片中水印没有完全覆盖整个图片的问题 2023-12-25 09:36:06 +08:00
街角小林
4d2665c98b 优化部分插件代码,增加解绑事件的逻辑 2023-12-21 17:06:40 +08:00
街角小林
33a2e20ee2 Doc: update 2023-12-21 16:27:48 +08:00
街角小林
7b8946bec4 Demo:显示和移除滚动条时同时进行滚动条插件的注册和移除 2023-12-21 12:09:10 +08:00
街角小林
88f2e60720 Feat:收起所有节点操作将思维导图移至画布中心 2023-12-21 12:03:30 +08:00
街角小林
b4e0ad6881 Feat:支持配置注册了滚动条插件的情况下是否限制将思维导图限制在画布内 2023-12-21 12:01:00 +08:00
街角小林
d80ee1e7c8 Fix:修复当画布容器距浏览器窗口左上角不为0时,fit方法计算出来的位置有误差的问题 2023-12-21 11:25:08 +08:00
街角小林
3d0b257325 Feat:新增将思维导图图形限制在画布内的配置选项 2023-12-21 11:24:24 +08:00
街角小林
4d9aa1d3c2 Fix:修复拖拽画布时鼠标在节点上面松开时拖拽无法停止的问题 2023-12-21 10:32:45 +08:00
街角小林
abc30da43b Fix:修复滚动条插件在initRootNodePosition配置不为默认的center,center时位置计算错误的问题 2023-12-19 09:41:43 +08:00
街角小林
f887b14d1f Doc: update 2023-12-18 10:47:14 +08:00
街角小林
346e5b4ac8 Feat:render实例的paste方法改为支持粘贴剪贴板的数据 2023-12-18 10:35:19 +08:00
街角小林
6f7bb40c49 Fix:修复节点被销毁时鼠标移入标志没有复位的问题 2023-12-18 09:20:03 +08:00
街角小林
f3694d0c00 Merge branch 'feature' of https://github.com/wanglin2/mind-map into feature 2023-12-18 09:12:24 +08:00
街角小林
f2fbde3763 Doc: update 2023-12-18 09:12:15 +08:00
街角小林
b950c2bfe9 textEdit类增加isShowTextEdit方法判断当前是否处在节点编辑状态 2023-12-18 09:12:04 +08:00
wanglin2
69a7deedd7 Feat:修改mousewheel事件,dir标志修改为dirs,支持存储多个方向,优化触控板的双指移动操作 2023-12-17 21:32:13 +08:00
wanglin2
63b04e5acc Fix:修复鼠标或触控板水平滚动时画布移动方向相反的问题 2023-12-17 20:56:41 +08:00
街角小林
4a2816fc75 Fix:修复当节点数量超出了缓存池的最大数量时,前进回退会导致节点重复渲染的问题 2023-12-15 11:46:41 +08:00
街角小林
42ffbd728c Feat:优化reRender方法 2023-12-15 09:29:41 +08:00
街角小林
0ec16bd136 Feat:修复导入含有和当前画布已有节点uid相同的文件时会重复绘制节点的问题 2023-12-14 17:17:25 +08:00
街角小林
d517ee338f Fix:修复节点文本含有连续的数字或字母时没有换行的问题 2023-12-14 08:49:13 +08:00
649 changed files with 22290 additions and 65511 deletions

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM nginx
RUN mkdir /app
COPY ./index.html /app/
COPY ./dist /app/dist/
COPY nginx.conf /etc/nginx/nginx.conf

423
README.md
View File

@@ -2,44 +2,57 @@
[![npm-version](https://img.shields.io/npm/v/simple-mind-map)](https://www.npmjs.com/package/simple-mind-map)
![npm download](https://img.shields.io/npm/dm/simple-mind-map)
[![GitHub stars](https://img.shields.io/github/stars/wanglin2/mind-map)](https://github.com/wanglin2/mind-map/stargazers)
[![GitHub issues](https://img.shields.io/github/issues/wanglin2/mind-map)](https://github.com/wanglin2/mind-map/issues)
[![GitHub forks](https://img.shields.io/github/forks/wanglin2/mind-map)](https://github.com/wanglin2/mind-map/network/members)
![license](https://img.shields.io/npm/l/express.svg)
[![GitHub stars](https://img.shields.io/github/stars/wanglin2/mind-map)](https://github.com/wanglin2/mind-map/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/wanglin2/mind-map)](https://github.com/wanglin2/mind-map/network/members)
> 一个简单&强大的Web思维导图
> 中文名:思绪思维导图。一个简单&强大的 Web 思维导图
本项目包含两部分:
1.一个 js 思维导图库,不依赖任何框架,可以使用它来快速完成 Web 思维导图产品的开发。
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 开发,可以操作电脑本地文件,所以你可以直接把它当做一个在线版思维导图应用使用,如果觉得 github 的响应速度慢,你也可以部署到你的服务器上
2.一个 Web 思维导图基于思维导图库、Vue2.x、ElementUI 开发,可以操作电脑本地文件,可以当做一个在线版思维导图应用使用,也可以部署和二次开发
在线地址:[https://wanglin2.github.io/mind-map/](https://wanglin2.github.io/mind-map/)。
外也提供了客户端可供下载使用,支持`Windows``Mac``Linux`,下载地址:
外也提供了客户端可供下载使用,支持`Windows``Mac``Linux`,下载地址:
Github[releases](https://github.com/wanglin2/mind-map/releases)。
百度云盘:[地址](https://pan.baidu.com/s/1huasEbKsGNH2Af68dvWiOg?pwd=3bp3)。
Github[releases](https://github.com/wanglin2/mind-map/releases)。百度云盘:[地址](https://pan.baidu.com/s/1huasEbKsGNH2Af68dvWiOg?pwd=3bp3)。
> 客户端版本会落后于在线版本,尝试最新功能请优先使用在线版。
【云存储版本】如果你需要带后端的云存储版本,可以尝试我们开发的另一个项目[理想文档](https://github.com/wanglin2/lx-doc)。
# 特性
- [x] 插件化架构,除核心功能外,其他功能作为插件提供,按需使用,减小打包体积
- [x] 支持逻辑结构图、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构
- [x] 支持逻辑结构图(向左、向右逻辑结构图)、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构
- [x] 内置多种主题,允许高度自定义样式,支持注册新主题
- [x] 节点内容支持文本(普通文本、富文本)、图片、图标、超链接、备注、标签、概要、数学公式
- [x] 节点支持拖拽(拖拽移动、自由调整)、多种节点形状支持使用 DDM 完全自定义节点内容
- [x] 节点支持拖拽(拖拽移动、自由调整)、多种节点形状;支持扩展节点内容、支持使用 DDM 完全自定义节点内容
- [x] 支持画布拖动、缩放
- [x] 支持鼠标按键拖动选择和Ctrl+左键两种多选节点方式
- [x] 支持导出为`json``png``svg``pdf``markdown``xmind`,支持从`json``xmind``markdown`导入
- [x] 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条
- [x] 支持鼠标按键拖动选择和 Ctrl+左键两种多选节点方式
- [x] 支持导出为`json``png``svg``pdf``markdown``xmind``txt`,支持从`json``xmind``markdown`导入
- [x] 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条、手绘风格、彩虹线条、标记、外框
- [x] 提供丰富的配置,满足各种场景各种使用习惯
- [x] 支持协同编辑
- [x] 支持演示模式
官方提供了如下插件,可根据需求按需引入(某个功能不生效大概率是因为你没有引入对应的插件),具体使用方式请查看文档:
> RichText节点富文本插件、Select鼠标多选节点插件、Drag节点拖拽插件、AssociativeLine关联线插件、Export导出插件、KeyboardNavigation键盘导航插件、MiniMap小地图插件、Watermark水印插件、TouchEvent移动端触摸事件支持插件、NodeImgAdjust拖拽调整节点图片大小插件、Search搜索插件、Painter节点格式刷插件、Scrollbar滚动条插件、Formula数学公式插件、Cooperate协同编辑插件、RainbowLines彩虹线条插件、Demonstrate演示模式插件、OuterFrame外框插件、MindMapLayoutPro思维导图布局插件、HandDrawnLikeStyle手绘风格插件[收费]、Notation节点标记插件[收费]、Numbers节点编号插件[收费]、FreemindFreemind格式导入导出插件[收费]、ExcelExcel格式导入导出插件[收费]、Checkbox待办插件[收费]、Lineflow节点连线流动插件[收费]
本项目不会实现的特性:
> 1.自由节点,即多个根节点;
>
> 2.概要节点后面继续添加节点;
>
> 如果你需要以上特性,那么本库可能无法满足你的需求。
# 安装
@@ -49,7 +62,7 @@ npm i simple-mind-map
# 使用
提供一个宽高不为0的容器元素:
提供一个宽高不为 0 的容器元素:
```html
<div id="mindMapContainer"></div>
@@ -70,41 +83,151 @@ npm i simple-mind-map
import MindMap from "simple-mind-map";
const mindMap = new MindMap({
el: document.getElementById('mindMapContainer'),
el: document.getElementById("mindMapContainer"),
data: {
"data": {
"text": "根节点"
data: {
text: "根节点",
},
"children": []
}
children: [],
},
});
```
即可得到一个思维导图。
想要实现更多功能?可以查看[开发文档](https://wanglin2.github.io/mind-map/#/doc/zh/)。
即可得到一个思维导图。想要实现更多功能?可以查看[开发文档](https://wanglin2.github.io/mind-map-docs/)。
# License
[MIT](./LICENSE)
[MIT](./LICENSE)。保留`mind-map`版权声明的情况下可随意商用,如不想保留可联系作者。
# 微信交流群
群聊人数较多,无法通过二维码入群,可以微信添加`wanglinguanfang`拉你入群。
微信添加`wanglinguanfang`拉你入群。根据过往的经验大部分问题都可以通过查看issue列表或文档解决所以提问前请确保你已经阅读完了所有文档文档里没有的可在群里提问不必私聊作者如果你一定要私聊请先发红包¥9.9+每次)。
# star
如果喜欢本项目,欢迎点个 star这对我们很重要。
[![Star History Chart](https://api.star-history.com/svg?repos=wanglin2/mind-map&type=Date)](https://star-history.com/#wanglin2/mind-map&Date)
# 关于定制
如果你有个性化的商用定制需求,可以联系我们,我们提供付费开发服务,无论前端、后端、还是部署,都可以帮你一站式搞定。
# 请作者喝杯咖啡
开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~
> 厚椰乳一盒 + 纯牛奶半盒 + 冰块 + 咖啡液 = 生椰拿铁 yyds
开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~你的赞助对项目的可持续发展非常重要,是作者持续维护的最大动力。
> 推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。
>
> 也可以通过购买付费插件来支持我们:[付费插件](https://wanglin2.github.io/mind-map-docs/plugins/about.html)。
>
> 赞助等级最强王者¥500+、星耀赞助¥300+、钻石赞助¥150+、黄金赞助¥50+)、青铜赞助
<p>
<img src="./web/src/assets/img/alipay.jpg" style="width: 300px" />
<img src="./web/src/assets/img/wechat.jpg" style="width: 300px" />
</p>
## 钻石赞助
<p>
<span>
<img src="./web/src/assets/avatar/黄智彪@一米一栗科技.png" style="width: 50px;height: 50px;" />
<span>黄智彪@一米一栗科技</span>
</span>
</p>
## 黄金赞助
<p>
<span>
<img src="./web/src/assets/avatar/小土渣的宇宙.jpeg" style="width: 50px;height: 50px;" />
<span>小土渣的宇宙</span>
</span>
<span>
<img src="./web/src/assets/avatar/Chris.jpg" style="width: 50px;height: 50px;" />
<span>Chris</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>LiuJL</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/秀树因馨雨.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/炫.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/布林.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/沐风牧草.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/庆国.jpg" style="width: 50px;height: 50px;" />
<span>庆国</span>
</span>
<span>
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
<span>Matt</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>
## 青铜赞助
<p>
<span>
<img src="./web/src/assets/avatar/Think.jpg" style="width: 50px;height: 50px;" />
@@ -114,10 +237,6 @@ 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/小土渣的宇宙.jpeg" style="width: 50px;height: 50px;" />
<span>小土渣的宇宙</span>
</span>
<span>
<img src="./web/src/assets/avatar/qp.jpg" style="width: 50px;height: 50px;" />
<span>qp</span>
@@ -134,22 +253,10 @@ const mindMap = new MindMap({
<img src="./web/src/assets/avatar/suka.jpg" style="width: 50px;height: 50px;" />
<span>suka</span>
</span>
<span>
<img src="./web/src/assets/avatar/Chris.jpg" style="width: 50px;height: 50px;" />
<span>Chris</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/千帆.jpg" style="width: 50px;height: 50px;" />
<span>千帆</span>
</span>
<span>
<img src="./web/src/assets/avatar/才镇.jpg" style="width: 50px;height: 50px;" />
<span>才镇</span>
@@ -166,10 +273,6 @@ const mindMap = new MindMap({
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
<span>Luke</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>
@@ -186,10 +289,6 @@ 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/沐风牧草.jpg" style="width: 50px;height: 50px;" />
<span>沐风牧草</span>
</span>
<span>
<img src="./web/src/assets/avatar/有希.jpg" style="width: 50px;height: 50px;" />
<span>有希</span>
@@ -198,10 +297,6 @@ 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/达仁科技.jpg" style="width: 50px;height: 50px;" />
<span>达仁科技</span>
</span>
<span>
<img src="./web/src/assets/avatar/小逗比.png" style="width: 50px;height: 50px;" />
<span>小逗比</span>
@@ -238,4 +333,216 @@ const mindMap = new MindMap({
<img src="./web/src/assets/avatar/HaHN.jpg" style="width: 50px;height: 50px;" />
<span>HaHN</span>
</span>
</p>
<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/国发.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/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/default.png" style="width: 50px;height: 50px;" />
<span>锦冰</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/橘半.jpg" style="width: 50px;height: 50px;" />
<span>橘半</span>
</span>
<span>
<img src="./web/src/assets/avatar/pluvet.jpg" style="width: 50px;height: 50px;" />
<span>pluvet</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>SR</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/L.jpg" style="width: 50px;height: 50px;" />
<span>L</span>
</span>
<span>
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
<span>sunniberg</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/阿晨.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/Alex.jpg" style="width: 50px;height: 50px;" />
<span>Alex</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/最多5个字.jpg" style="width: 50px;height: 50px;" />
<span>最多5个字</span>
</span>
<span>
<img src="./web/src/assets/avatar/ZX.jpg" style="width: 50px;height: 50px;" />
<span>ZX</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/lsytyrt.jpg" style="width: 50px;height: 50px;" />
<span>lsytyrt</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/。.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>
<span>
<img src="./web/src/assets/avatar/Lawliet.jpg" style="width: 50px;height: 50px;" />
<span>Lawliet</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>Eric</span>
</span>
<span>
<img src="./web/src/assets/avatar/Joe.jpg" style="width: 50px;height: 50px;" />
<span>Joe</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/h.r.w.jpg" style="width: 50px;height: 50px;" />
<span>h.r.w</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/广兴.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/xbkkjbs0246658.png" style="width: 50px;height: 50px;" />
<span>xbkkjbs0246658</span>
</span>
<span>
<img src="./web/src/assets/avatar/4399行星元帅.jpg" style="width: 50px;height: 50px;" />
<span>4399行星元帅</span>
</span>
<span>
<img src="./web/src/assets/avatar/Xavier.png" style="width: 50px;height: 50px;" />
<span>Xavier</span>
</span>
<span>
<img src="./web/src/assets/avatar/冒号括号.png" style="width: 50px;height: 50px;" />
<span>:)</span>
</span>
</p>

View File

@@ -13,3 +13,4 @@ if (fs.existsSync(src)) {
fs.unlinkSync(src)
}
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

Binary file not shown.

Binary file not shown.

Binary file not shown.

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/Think.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 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/classic10.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
dist/img/classic11.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
dist/img/classic12.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
dist/img/classic13.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
dist/img/classic14.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
dist/img/classic15.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
dist/img/classic6.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
dist/img/classic7.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
dist/img/classic8.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

BIN
dist/img/classic9.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
dist/img/dark5.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
dist/img/dark6.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

BIN
dist/img/dark7.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 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/logicalStructureLeft.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
dist/img/moom.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

BIN
dist/img/qp.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 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/乙.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: 75 KiB

BIN
dist/img/南风.jpg vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 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: 28 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

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: 80 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: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 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: 32 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

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-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(t,e,o){"use strict";o.r(e);var a=function(){var t=this;t._self._c;return t._m(0)},n=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("View instance")]),e("p",[t._v("The "),e("code",[t._v("view")]),t._v(" instance is responsible for view operations, and can be obtained through "),e("code",[t._v("mindMap.view")])]),e("h2",[t._v("Methods")]),e("h3",[t._v("fit()")]),e("blockquote",[e("p",[t._v("v0.6.0+")])]),e("p",[t._v("Zoom the mind map to fit the canvas.")]),e("h3",[t._v("translateX(step)")]),e("p",[t._v("Translate in the "),e("code",[t._v("x")]),t._v(" direction, "),e("code",[t._v("step")]),t._v(": number of pixels to translate")]),e("h3",[t._v("translateY(step)")]),e("p",[t._v("Translate in the "),e("code",[t._v("y")]),t._v(" direction, "),e("code",[t._v("step")]),t._v(": number of pixels to translate")]),e("h3",[t._v("translateXTo(x)")]),e("blockquote",[e("p",[t._v("v0.2.11+")])]),e("p",[t._v("Translate the "),e("code",[t._v("x")]),t._v(" direction to a specific position")]),e("h3",[t._v("translateYTo(y)")]),e("blockquote",[e("p",[t._v("v0.2.11+")])]),e("p",[t._v("Translate the "),e("code",[t._v("y")]),t._v(" direction to a specific position")]),e("h3",[t._v("reset()")]),e("p",[t._v("Revert to the default transformation")]),e("h3",[t._v("narrow(cx, cy)")]),e("ul",[e("li",[e("p",[e("code",[t._v("cx")]),t._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])]),e("li",[e("p",[e("code",[t._v("cy")]),t._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])])]),e("p",[t._v("Zoom out")]),e("h3",[t._v("enlarge(cx, cy)")]),e("ul",[e("li",[e("p",[e("code",[t._v("cx")]),t._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])]),e("li",[e("p",[e("code",[t._v("cy")]),t._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])])]),e("p",[t._v("Zoom in")]),e("h3",[t._v("getTransformData()")]),e("blockquote",[e("p",[t._v("v0.1.1+")])]),e("p",[t._v("Get the current transform data, can be used for display")]),e("h3",[t._v("setTransformData(data)")]),e("blockquote",[e("p",[t._v("v0.1.1+")])]),e("p",[t._v('Dynamically set transform data, transform data can be obtained through the getTransformData method"')]),e("h3",[t._v("setScale(scale, cx, cy)")]),e("blockquote",[e("p",[t._v("v0.2.17+")])]),e("ul",[e("li",[e("p",[e("code",[t._v("cx")]),t._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])]),e("li",[e("p",[e("code",[t._v("cy")]),t._v(":v0.6.4+Zoom to the specified position on the canvas, default to the center point of the canvas")])])]),e("p",[t._v("Setting Zoom")])])}],v={},c=v,i=o("2877"),s=Object(i["a"])(c,a,n,!1,null,null,null);e["default"]=s.exports}}]);

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-2d0b1c6f"],{"20fa":function(v,s,e){"use strict";e.r(s);var i=function(){var v=this;v._self._c;return v._m(0)},_=[function(){var v=this,s=v._self._c;return s("div",[s("h1",[v._v("AssociativeLine 插件")]),s("blockquote",[s("p",[v._v("v0.4.5+")])]),s("blockquote",[s("p",[v._v("调整关联线控制点的功能从v0.4.6+开始支持")])]),s("blockquote",[s("p",[v._v("关联性支持文本编辑从v0.5.11+开始支持")])]),s("p",[v._v("该插件用于支持添加关联线。")]),s("h2",[v._v("注册")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[v._v("import")]),v._v(" MindMap "),s("span",{staticClass:"hljs-keyword"},[v._v("from")]),v._v(" "),s("span",{staticClass:"hljs-string"},[v._v("'simple-mind-map'")]),v._v("\n"),s("span",{staticClass:"hljs-keyword"},[v._v("import")]),v._v(" AssociativeLine "),s("span",{staticClass:"hljs-keyword"},[v._v("from")]),v._v(" "),s("span",{staticClass:"hljs-string"},[v._v("'simple-mind-map/src/plugins/AssociativeLine.js'")]),v._v("\n"),s("span",{staticClass:"hljs-comment"},[v._v("// import AssociativeLine from 'simple-mind-map/src/AssociativeLine.js' v0.6.0以下版本使用该路径")]),v._v("\n\nMindMap.usePlugin(AssociativeLine)\n")])]),s("p",[v._v("注册完且实例化"),s("code",[v._v("MindMap")]),v._v("后可通过"),s("code",[v._v("mindMap.associativeLine")]),v._v("获取到该实例。")]),s("h2",[v._v("配置")]),s("p",[v._v("支持修改关联线的粗细和颜色,分为默认状态和激活状态。配置如下:")]),s("ul",[s("li",[s("p",[s("code",[v._v("associativeLineWidth")]),v._v(":关联线默认状态的粗细,默认值为"),s("code",[v._v("2")])])]),s("li",[s("p",[s("code",[v._v("associativeLineColor")]),v._v(":关联线默认状态的颜色,默认值为"),s("code",[v._v("rgb(51, 51, 51)")])])]),s("li",[s("p",[s("code",[v._v("associativeLineActiveWidth")]),v._v(":关联线激活状态的粗细,默认值为"),s("code",[v._v("8")])])]),s("li",[s("p",[s("code",[v._v("associativeLineActiveColor")]),v._v(":关联线激活状态的颜色,默认值为"),s("code",[v._v("rgba(2, 167, 240, 1)")])])])]),s("p",[v._v("配置以主题的方式提供,所以如果想要修改这四个属性,可以通过"),s("code",[v._v("mindMap.setThemeConfig(config)")]),v._v("方法进行修改。")]),s("h2",[v._v("属性")]),s("h3",[v._v("mindMap.associativeLine.lineList")]),s("p",[v._v("当前所有连接线数据,数组类型,数组的每一项也是一个数组:")]),s("pre",{staticClass:"hljs"},[s("code",[v._v("[\n path, "),s("span",{staticClass:"hljs-comment"},[v._v("// 连接线节点")]),v._v("\n clickPath, "),s("span",{staticClass:"hljs-comment"},[v._v("// 不可见的点击线节点")]),v._v("\n node, "),s("span",{staticClass:"hljs-comment"},[v._v("// 起始节点")]),v._v("\n toNode "),s("span",{staticClass:"hljs-comment"},[v._v("// 目标节点")]),v._v("\n]\n")])]),s("h3",[v._v("mindMap.associativeLine.activeLine")]),s("p",[v._v("当前激活的连接线,数组类型,同"),s("code",[v._v("lineList")]),v._v("数组的每一项的结构。")]),s("h2",[v._v("方法")]),s("h3",[v._v("renderAllLines()")]),s("p",[v._v("重新渲染所有关联线。")]),s("h3",[v._v("removeAllLines()")]),s("p",[v._v("移除所有关联线。")]),s("h3",[v._v("createLineFromActiveNode()")]),s("p",[v._v("从当前激活节点开始创建关联线,如果有多个激活节点,默认为第一个节点。")]),s("p",[v._v("调用该方法后,会从第一个激活节点到当前鼠标实时位置渲染一条关联线,当点击某个目标节点后则代表创建完成,会在第一个激活节点和点击节点之间渲染一条关联线。")]),s("h3",[v._v("createLine(fromNode)")]),s("p",[v._v("从指定节点开始创建关联线。")]),s("p",[v._v("调用该方法后,会从指定节点到当前鼠标实时位置渲染一条关联线,当点击某个目标节点后则代表创建完成,会在指定节点和点击节点之间渲染一条关联线。")]),s("h3",[v._v("addLine(fromNode, toNode)")]),s("p",[v._v("直接添加一条关联线。")]),s("p",[v._v("调用该方法,会直接创建一条从"),s("code",[v._v("fromNode")]),v._v("到"),s("code",[v._v("toNode")]),v._v("节点的关联线。")]),s("h3",[v._v("removeLine()")]),s("p",[v._v("删除当前激活的关联线。点击某条关联线则视为激活。")]),s("h3",[v._v("clearActiveLine()")]),s("p",[v._v("清除当前激活的关联线的激活状态。")]),s("h3",[v._v("front()")]),s("blockquote",[s("p",[v._v("v0.8.0+")])]),s("p",[v._v("关联线顶层显示。")]),s("h3",[v._v("back()")]),s("blockquote",[s("p",[v._v("v0.8.0+")])]),s("p",[v._v("关联线回到原有层级。")])])}],o={},n=o,a=e("2877"),t=Object(a["a"])(n,i,_,!1,null,null,null);s["default"]=t.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b361e"],{"27ad":function(s,a,t){"use strict";t.r(a);var e=function(){var s=this;s._self._c;return s._m(0)},n=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Watermark plugin")]),a("blockquote",[a("p",[s._v("0.2.24+")])]),a("p",[a("code",[s._v("Watermark")]),s._v(" instance is responsible for displaying the watermark.")]),a("p",[s._v("Please refer to the "),a("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("Instantiation Options")]),s._v(" of the "),a("code",[s._v("MindMap")]),s._v(" class for configuration.")]),a("h2",[s._v("Register")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Watermark "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Watermark.js'")]),s._v("\n"),a("span",{staticClass:"hljs-comment"},[s._v("// import Watermark from 'simple-mind-map/src/Watermark.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Watermark)\n")])]),a("p",[s._v("After registration and instantiation of "),a("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),a("code",[s._v("mindMap.watermark")]),s._v(".")]),a("h2",[s._v("Methods")]),a("h3",[s._v("draw()")]),a("p",[s._v("Redraw the watermark.")]),a("p",[s._v("Note: For imprecise rendering, some watermarks beyond the visible area will be drawn. If you have extreme performance requirements, it is recommended to develop the watermark function yourself.")]),a("h3",[s._v("updateWatermark(config)")]),a("p",[s._v("Update watermark config. Example:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.watermark.updateWatermark({\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Watermark text'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#000'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("20")]),s._v("\n }\n})\n")])]),a("h3",[s._v("hasWatermark()")]),a("blockquote",[a("p",[s._v("v0.3.2+")])]),a("p",[s._v("Gets whether the watermark exists.")])])}],r={},i=r,l=t("2877"),v=Object(l["a"])(i,e,n,!1,null,null,null);a["default"]=v.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b6d39"],{"1f8f":function(s,n,t){"use strict";t.r(n);var a=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("NodeImgAdjust插件")]),n("blockquote",[n("p",[s._v("v0.6.5+")])]),n("p",[s._v("该插件提供拖拽调整节点内图片大小的功能。")]),n("h2",[s._v("注册")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" NodeImgAdjust "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/NodeImgAdjust.js'")]),s._v("\n\nMindMap.usePlugin(NodeImgAdjust)\n")])]),n("p",[s._v("注册完且实例化"),n("code",[s._v("MindMap")]),s._v("后可通过"),n("code",[s._v("mindMap.nodeImgAdjust")]),s._v("获取到该实例。")])])}],d={},l=d,e=t("2877"),p=Object(e["a"])(l,a,i,!1,null,null,null);n["default"]=p.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b91e5"],{"321a":function(s,e,t){"use strict";t.r(e);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,e=s._self._c;return e("div",[e("h1",[s._v("Select 插件")]),e("p",[e("code",[s._v("Select")]),s._v("插件提供鼠标多选节点的功能。")]),e("h2",[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'")]),s._v("\n"),e("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Select "),e("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),e("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Select.js'")]),s._v("\n"),e("span",{staticClass:"hljs-comment"},[s._v("// import Select from 'simple-mind-map/src/Select.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(Select)\n")])]),e("p",[s._v("注册完且实例化"),e("code",[s._v("MindMap")]),s._v("后可通过"),e("code",[s._v("mindMap.select")]),s._v("获取到该实例。")]),e("h2",[s._v("方法")]),e("h3",[s._v("toPos(x, y)")]),e("p",[s._v("转换鼠标位置为相对于容器"),e("code",[s._v("el")]),s._v("的位置")])])}],a={},c=a,i=t("2877"),v=Object(i["a"])(c,n,l,!1,null,null,null);e["default"]=v.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b92c3"],{"328f":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("KeyboardNavigation plugin")]),t("blockquote",[t("p",[e._v("v0.2.17+")])]),t("p",[t("code",[e._v("KeyboardNavigation")]),e._v(" plugin provides keyboard navigation function, that is, when you press the direction key, it will automatically find the next node and activate it.")]),t("h2",[e._v("Register")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" KeyboardNavigation "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/KeyboardNavigation.js'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// import KeyboardNavigation from 'simple-mind-map/src/KeyboardNavigation.js' Use this path for versions below v0.6.0")]),e._v("\n\nMindMap.usePlugin(KeyboardNavigation)\n")])]),t("p",[e._v("After registration and instantiation of "),t("code",[e._v("MindMap")]),e._v(", the instance can be obtained through "),t("code",[e._v("mindMap.keyboardNavigation")]),e._v(".")]),t("h2",[e._v("Methods")]),t("h3",[e._v("focus(dir)")]),t("p",[t("code",[e._v("dir")]),e._v("Which direction to find the next nodeOptional value"),t("code",[e._v("Left")]),e._v("、 "),t("code",[e._v("Up")]),e._v("、 "),t("code",[e._v("Right")]),e._v("、 "),t("code",[e._v("Down")])]),t("p",[e._v("Focus on the next node")]),t("h3",[e._v("getNodeRect(node)")]),t("p",[t("code",[e._v("node")]),e._v("Node")]),t("p",[e._v("Get the location information of the node and return an object:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n left,\n top,\n right,\n bottom\n}\n")])]),t("h3",[e._v("getDistance(node1Rect, node2Rect)")]),t("p",[t("code",[e._v("node1Rect")]),e._v("、"),t("code",[e._v("node2Rect")]),e._v("The location data of nodes can be obtained through the "),t("code",[e._v("getNodeRect(node)")])]),t("p",[e._v("Get the distance between two nodes")]),t("h3",[e._v("getCenter(nodeRect)")]),t("p",[t("code",[e._v("nodeRect")]),e._v("The location data of nodes can be obtained through the "),t("code",[e._v("getNodeRect(node)")])]),t("p",[e._v("Get the center point of the node")])])}],i={},s=i,d=o("2877"),v=Object(d["a"])(s,n,a,!1,null,null,null);t["default"]=v.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b9b64"],{"33b0":function(t,s,a){"use strict";a.r(s);var n=function(){var t=this;t._self._c;return t._m(0)},i=[function(){var t=this,s=t._self._c;return s("div",[s("h1",[t._v("结构")]),s("p",[s("code",[t._v("simple-mind-map")]),t._v("目前支持四种结构logicalStructure逻辑结构图、mindMap思维导图、organizationStructure组织结构图、catalogOrganization目录组织图、timeline时间轴、timeline2时间轴2、fishbone鱼骨图、verticalTimelinev0.6.6+竖向时间轴)。")]),s("p",[t._v("可以在实例化"),s("code",[t._v("simple-mind-map")]),t._v("时通过选项指定使用的结构:")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),s("span",{staticClass:"hljs-comment"},[t._v("// ...")]),t._v("\n "),s("span",{staticClass:"hljs-attr"},[t._v("layout")]),t._v(": "),s("span",{staticClass:"hljs-string"},[t._v("'logicalStructure'")]),t._v("\n})\n")])]),s("p",[t._v("也可以动态切换结构:")]),s("pre",{staticClass:"hljs"},[s("code",[t._v("mindMap.setLayout("),s("span",{staticClass:"hljs-string"},[t._v("'organizationStructure'")]),t._v(")\n")])]),s("p",[t._v("获取当前使用的结构可以使用"),s("code",[t._v("getLayout")]),t._v("方法:")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" layout = mindMap.getLayout()\n")])]),s("h2",[t._v("完整示例")]),s("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVVtrFDEU/iuHiMxWtrNb8Gndlnp7EFqR+tgUSWfS3WgmGSaZXiwLUgrWS0Hpg6Ag6os++ChCW8Q/0+72Z3iymZkd2z745sIsk3P5vpOc72S2yc00DddzTjqka6JMpBYMt3k6R5VIUp1Z2IaMrzVBq0WdK8vjJpg+k1JvLPE1GMBaphMIECGoMhaFihdZ6l2UGDRLPp2gdTphKSVUAVAluQVnc5GzoHIpvb3VgtNfB6cv9oe/nw1/HI/e75693BntHJ7uvTv7/I2qSCtjgUVWrPP7OuYGsycVNZZXpqjyKHvPh/tfRscHw4+7ZVrUZ6rHF7aYzi3mNaZgdg62HXFRSoi7X2Bb6G4EOusxJZ4yK7R6aLM8snnGA4QfOIbqQBoXUdyG+EZ5EI2xC4DLDsQ6yhOubNjj9q7k7vXW1r24ERSZt7WyTCieBVNNnxUzyzoe3f0ocQZKaiZvtnzTOjMlw0+H/sj8UbvfoABzgVFfyDjjygUvTzDOwV3Kcp7p5Oj16OjrebK/CS8hXZn46nH/qYLytbCVeUIJu6S1dRp7oI1wKsDMQPI1GzQhiLB12KaVIlyORdOBQOqeiJicCMb5B1M3vLoBUJmjD29P33z3RXuVnxy9Ojn+WdehVo1AIfUjr3RkbLhlE9z/gjB2IjqoT0O4zmTOnQCLOE+PosWn2/IzjtONC8txMJnluALoxmIdIsmMmaWkKOIOTzQlY3cRIOKJt5IqhnRb6K0HlkhWa7nKXIh3Uttdza3VCuYjKaInGFKfSYyrj2235YNL5IqlfOu2apvApbFb0u9nvriMKAlb/gYqpjHkJgkjYyipWhLW9lse6YaIbb8DM+321XEcQFqJIOPIiAc+doz1454r58+lhJokslWjZW59ImoGpdSBdrGyOp0sLtL3uej1Mfx6u51ulsyX814rmROW9QTylqgpi2OheqWhKj0s2vSPFc+UFRRFV2sERImNe0CaxHfA3fnhY6MVfmLG8LRwYAeq4aYEvyB+osMWvoYZXq0i4a5Z06uZ3jA8QxBKimm75Kvicy+22mUVtQ3I4A+xm1Zg"}})])}],e={},l=e,o=a("2877"),r=Object(o["a"])(l,n,i,!1,null,null,null);s["default"]=r.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bd3f9"],{"2ad8":function(s,a,n){"use strict";n.r(a);var t=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("如何开发一个插件")]),a("p",[s._v("库本身提供了一些插件,如果满足不了你的需求,你也可以自己开发一个新插件。")]),a("p",[s._v("想要开发一个插件,你肯定需要对库的实现原理、模块划分、目录结构等等有一定了解,简而言之,需要你对库的源码有一定程度的熟悉,所以如果还没看过,现在就可以先去阅读一下,好消息是,本库的源码并不复杂,相信你一定能看懂。")]),a("p",[s._v("在你决定动手之前,最好先看一下内部插件是如何实现的。")]),a("p",[s._v("一个插件就是一个类:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-class"},[a("span",{staticClass:"hljs-keyword"},[s._v("class")]),s._v(" "),a("span",{staticClass:"hljs-title"},[s._v("YourPlugin")]),s._v(" ")]),s._v("{\n "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-title"},[s._v("constructor")]),s._v("("),a("span",{staticClass:"hljs-params"},[s._v("{ mindMap }")]),s._v(")")]),s._v(" {\n "),a("span",{staticClass:"hljs-built_in"},[s._v("this")]),s._v(".mindMap = mindMap\n }\n\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 插件被移除前做的事情")]),s._v("\n "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-title"},[s._v("beforePluginRemove")]),s._v("("),a("span",{staticClass:"hljs-params"}),s._v(")")]),s._v(" {\n \n }\n\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 插件被卸载前做的事情")]),s._v("\n "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-title"},[s._v("beforePluginDestroy")]),s._v("("),a("span",{staticClass:"hljs-params"}),s._v(")")]),s._v(" {\n \n }\n}\n\nScrollbar.instanceName = "),a("span",{staticClass:"hljs-string"},[s._v("'yourPlugin'")]),s._v("\n")])]),a("p",[s._v("实例化插件时会传入思维导图实例,你可以保存起来,后续可以通过它来监听方法或调用实例的方法,甚至是其他插件的方法。")]),a("p",[s._v("需要给插件类添加一个静态属性"),a("code",[s._v("instanceName")]),s._v(",会将你的插件实例通过该属性保存到思维导图实例上,外部或其他插件想要获取你的插件实例时都需要通过该属性:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.yourPlugin.xxx\n")])]),a("p",[s._v("插件存在两个生命周期函数:")]),a("p",[a("code",[s._v("beforePluginRemove")]),s._v("生命周期会在思维导图实例调用"),a("code",[s._v("removePlugin")]),s._v("方法时调用,代表思维导图实例并没有销毁,只是移除该插件。")]),a("p",[a("code",[s._v("beforePluginDestroy")]),s._v("生命周期会在销毁思维导图时调用,此时思维导图实例也会被销毁。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.removePlugin(YourPlugin)\n")])]),a("p",[s._v("你也可以继承内部的一些插件:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" ScrollbarPlugin "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Scrollbar.js'")]),s._v("\n\n"),a("span",{staticClass:"hljs-class"},[a("span",{staticClass:"hljs-keyword"},[s._v("class")]),s._v(" "),a("span",{staticClass:"hljs-title"},[s._v("YourPlugin")]),s._v(" "),a("span",{staticClass:"hljs-keyword"},[s._v("extends")]),s._v(" "),a("span",{staticClass:"hljs-title"},[s._v("ScrollbarPlugin")]),s._v(" ")]),s._v("{\n "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-title"},[s._v("constructor")]),s._v("("),a("span",{staticClass:"hljs-params"},[s._v("opt")]),s._v(")")]),s._v(" {\n "),a("span",{staticClass:"hljs-built_in"},[s._v("super")]),s._v("(opt)\n }\n}\n\nScrollbar.instanceName = "),a("span",{staticClass:"hljs-string"},[s._v("'yourPlugin'")]),s._v("\n")])]),a("p",[s._v("插件的原理无非是监听一些你需要的事件,然后调用一些你需要的方法来完成一些功能,其实没啥好多说的,建议看一下内部插件的实现。")]),a("p",[s._v("当你完成了一个插件后,你可以考虑发布到"),a("code",[s._v("npm")]),s._v(",提供给其他开发者使用。")])])}],i={},v=i,_=n("2877"),c=Object(_["a"])(v,t,l,!1,null,null,null);a["default"]=c.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bd54e"],{"2c18":function(e,o,v){"use strict";v.r(o);var t=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,o=e._self._c;return o("div",[o("h1",[e._v("KeyboardNavigation插件")]),o("blockquote",[o("p",[e._v("v0.2.17+")])]),o("p",[o("code",[e._v("KeyboardNavigation")]),e._v("插件提供键盘导航的功能,也就是当你按下方向键时会自动寻找下一个节点并激活")]),o("h2",[e._v("注册")]),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'")]),e._v("\n"),o("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" KeyboardNavigation "),o("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),o("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/KeyboardNavigation.js'")]),e._v("\n"),o("span",{staticClass:"hljs-comment"},[e._v("// import KeyboardNavigation from 'simple-mind-map/src/KeyboardNavigation.js' v0.6.0以下版本使用该路径")]),e._v("\n\nMindMap.usePlugin(KeyboardNavigation)\n")])]),o("p",[e._v("注册完且实例化"),o("code",[e._v("MindMap")]),e._v("后可通过"),o("code",[e._v("mindMap.keyboardNavigation")]),e._v("获取到该实例。")]),o("h2",[e._v("方法")]),o("h3",[e._v("focus(dir)")]),o("p",[o("code",[e._v("dir")]),e._v(":要寻找哪个方向的下一个节点,可选值:"),o("code",[e._v("Left")]),e._v("、 "),o("code",[e._v("Up")]),e._v("、 "),o("code",[e._v("Right")]),e._v("、 "),o("code",[e._v("Down")])]),o("p",[e._v("聚焦到下一个节点")]),o("h3",[e._v("getNodeRect(node)")]),o("p",[o("code",[e._v("node")]),e._v(":节点")]),o("p",[e._v("获取节点的位置信息,返回一个对象:")]),o("pre",{staticClass:"hljs"},[o("code",[e._v("{\n left,\n top,\n right,\n bottom\n}\n")])]),o("h3",[e._v("getDistance(node1Rect, node2Rect)")]),o("p",[o("code",[e._v("node1Rect")]),e._v("、"),o("code",[e._v("node2Rect")]),e._v(":节点的位置数据,可通过"),o("code",[e._v("getNodeRect(node)")]),e._v("方法获取")]),o("p",[e._v("获取两个节点的距离")]),o("h3",[e._v("getCenter(nodeRect)")]),o("p",[o("code",[e._v("nodeRect")]),e._v(":节点的位置数据,可通过"),o("code",[e._v("getNodeRect(node)")]),e._v("方法获取")]),o("p",[e._v("获取节点的中心点")])])}],s={},a=s,_=v("2877"),d=Object(_["a"])(a,t,n,!1,null,null,null);o["default"]=d.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bd5e6"],{"2c65":function(n,i,t){"use strict";t.r(i);var u=function(){var n=this;n._self._c;return n._m(0)},c=[function(){var n=this,i=n._self._c;return i("div",[i("h1",[n._v("导出")]),i("h2",[n._v("导出为xmind")]),i("p",[n._v("导出的xmind文件无法在xmind8及以下版本打开请使用最新版xmind软件。")])])}],e={},d=e,r=t("2877"),s=Object(r["a"])(d,u,c,!1,null,null,null);i["default"]=s.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0be174"],{"2f7a":function(e,t,s){"use strict";s.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("KeyCommand instance")]),t("p",[e._v("The "),t("code",[e._v("keyCommand")]),e._v(" instance is responsible for adding and triggering shortcuts. It includes some built-in shortcuts and can also be added manually. The "),t("code",[e._v("mindMap.keyCommand")]),e._v(" instance can be obtained through this.")]),t("h2",[e._v("Methods")]),t("h3",[e._v("addShortcut(key, fn)")]),t("p",[e._v("Add a shortcut")]),t("p",[t("code",[e._v("key")]),e._v(": Shortcut key, key values can be viewed at "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/command/keyMap.js"}},[e._v("keyMap.js")]),e._v(" Example:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-comment"},[e._v("// Single key")]),e._v("\nmindMap.keyCommand.addShortcut("),t("span",{staticClass:"hljs-string"},[e._v('"Enter"')]),e._v(", "),t("span",{staticClass:"hljs-function"},[e._v("() =>")]),e._v(" {});\n"),t("span",{staticClass:"hljs-comment"},[e._v("// Or")]),e._v("\nmindMap.keyCommand.addShortcut("),t("span",{staticClass:"hljs-string"},[e._v('"Del|Backspace"')]),e._v(", "),t("span",{staticClass:"hljs-function"},[e._v("() =>")]),e._v(" {});\n"),t("span",{staticClass:"hljs-comment"},[e._v("// Combination key")]),e._v("\nmindMap.keyCommand.addShortcut("),t("span",{staticClass:"hljs-string"},[e._v('"Control+Enter"')]),e._v(", "),t("span",{staticClass:"hljs-function"},[e._v("() =>")]),e._v(" {});\n")])]),t("p",[t("code",[e._v("fn")]),e._v(": Method to be executed")]),t("h3",[e._v("removeShortcut(key, fn)")]),t("p",[e._v("Remove a shortcut command, if "),t("code",[e._v("fn")]),e._v(" is not specified, all callback methods for the shortcut will be removed")]),t("h3",[e._v("getShortcutFn(key)")]),t("blockquote",[t("p",[e._v("v0.2.2+")])]),t("p",[e._v("Get the processing function for the specified shortcut")]),t("h3",[e._v("pause()")]),t("blockquote",[t("p",[e._v("v0.2.2+")])]),t("p",[e._v("Pause all shortcut responses")]),t("h3",[e._v("recovery()")]),t("blockquote",[t("p",[e._v("v0.2.2+")])]),t("p",[e._v("Restore shortcut responses")]),t("h3",[e._v("save()")]),t("blockquote",[t("p",[e._v("v0.2.3+")])]),t("p",[e._v("Save the current registered shortcut data, then clear the shortcut data")]),t("h3",[e._v("restore()")]),t("blockquote",[t("p",[e._v("v0.2.3+")])]),t("p",[e._v("Restore saved shortcut data, then clear the cache data")]),t("h3",[e._v("hasCombinationKey(e)")]),t("blockquote",[t("p",[e._v("v0.6.13+")])]),t("ul",[t("li",[t("code",[e._v("e")]),e._v(": Event object.")])]),t("p",[e._v("Determine if the combination key has been pressed.")])])}],o={},c=o,v=s("2877"),i=Object(v["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

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c14fc"],{4604:function(s,a,n){"use strict";n.r(a);var t=function(){var s=this;s._self._c;return s._m(0)},r=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Drag插件")]),a("p",[a("code",[s._v("Drag")]),s._v("插件提供节点拖拽的功能,包括:")]),a("p",[s._v("1.拖拽节点进行移动,改变节点在节点树中的位置,即作为其他节点的子节点、兄弟节点等等")]),a("p",[s._v("2.拖拽节点到自定义的画布位置")]),a("p",[s._v("配置请参考"),a("code",[s._v("MindMap")]),s._v("类的"),a("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("实例化选项")]),s._v("。")]),a("h2",[s._v("注册")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Drag "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Drag.js'")]),s._v("\n"),a("span",{staticClass:"hljs-comment"},[s._v("// import Drag from 'simple-mind-map/src/Drag.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(Drag)\n")])]),a("p",[s._v("注册完且实例化"),a("code",[s._v("MindMap")]),s._v("后可通过"),a("code",[s._v("mindMap.drag")]),s._v("获取到该实例。")])])}],i={},p=i,v=n("2877"),_=Object(v["a"])(p,t,r,!1,null,null,null);a["default"]=_.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c1a01"],{"479a":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},r=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Contribute")]),t("h2",[e._v("Participate in development")]),t("p",[e._v("If you want to contribute code, you can 'fork' this project and switch to the 'feature' branch for development. After development and testing, you can submit the 'pr' to the 'feature' branch of this project. When submitting, please try to submit functional files as much as possible. Do not submit unnecessary files.")]),t("p",[e._v("Before development, it is best to create a new 'issue' to describe the new features you want to add. We can have sufficient communication first, and when submitting a 'pr', please provide a detailed description of the features you are developing.")]),t("h2",[e._v("Participate in translation")]),t("blockquote",[t("p",[e._v("Thanks for the first version English translation provided by "),t("a",{attrs:{href:"https://github.com/emircanerkul"}},[e._v("Emircan ERKUL")]),e._v(".")]),t("p",[e._v("Due to limited energy, most translations currently use machine translation, so accuracy is inevitably problematic.")]),t("p",[e._v("At present, the 【Course】 section is not translated. If you are interested, please join us.")])]),t("p",[e._v("If you want to participate in the translation of this document, you can clone this repository first.")]),t("p",[e._v("The translated documents are in the "),t("code",[e._v("/web/src/pages/Doc/")]),e._v(" directory, and currently support English("),t("code",[e._v("en")]),e._v(") and Simplified Chinese("),t("code",[e._v("zh")]),e._v(").")]),t("p",[e._v("If you are adding a new language type, you can create a new directory under the "),t("code",[e._v("/web/src/pages/Doc/")]),e._v(" directory, Then create a folder for each chapter, You can also directly copy all chapter directories under the existing language directory for translation, Note that you only need to write the "),t("code",[e._v("index.md")]),e._v(" file, The "),t("code",[e._v("index.vue")]),e._v(" file under the chapter directory is automatically generated by the script according to "),t("code",[e._v("index.md")]),e._v(".")]),t("p",[e._v("If you are adding a translation chapter to an existing language type, You can create a new chapter directory under the target language directory, You only need to create a "),t("code",[e._v("index.md")]),e._v(" file under the directory.")]),t("p",[e._v("After you complete the translation, you can directly submit "),t("code",[e._v("Pull requests")]),e._v(".")]),t("p",[e._v("If you are a front-end programmer and want to run the service, check the effect of the document page, If a new chapter is added, the file "),t("code",[e._v("/web/src/pages/Doc/catalogList.js")]),e._v(" needs to be modified, Select the appropriate location in the "),t("code",[e._v("StartList")]),e._v(" or "),t("code",[e._v("APIList")]),e._v(" array to insert the "),t("code",[e._v("path")]),e._v(" of the new chapter. Then you need to run "),t("code",[e._v("npm run buildDoc")]),e._v(" under the "),t("code",[e._v("web")]),e._v(" directory to compile the directory and route. Finally, run "),t("code",[e._v("npm run serve")]),e._v(" starts the local service. Open the following path to view the document:")]),t("p",[t("code",[e._v("ip:port/#/doc/zh/introduction")])])])}],a={},i=a,c=o("2877"),s=Object(c["a"])(i,n,r,!1,null,null,null);t["default"]=s.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c226c"],{"48a3":function(s,n,t){"use strict";t.r(n);var i=function(){var s=this;s._self._c;return s._m(0)},a=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("NodeImgAdjust plugin")]),n("blockquote",[n("p",[s._v("v0.6.5+")])]),n("p",[s._v("This plugin provides the function of dragging and adjusting the size of images within nodes.")]),n("h2",[s._v("Register")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" NodeImgAdjust "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/NodeImgAdjust.js'")]),s._v("\n\nMindMap.usePlugin(NodeImgAdjust)\n")])]),n("p",[s._v("After registration and instantiation of "),n("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),n("code",[s._v("mindMap.nodeImgAdjust")]),s._v(".")])])}],e={},o=e,d=t("2877"),l=Object(d["a"])(o,i,a,!1,null,null,null);n["default"]=l.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c53b9"],{"3de7":function(n,e,v){"use strict";v.r(e);var _=function(){var n=this;n._self._c;return n._m(0)},c=[function(){var n=this,e=n._self._c;return e("div",[e("h1",[n._v("打开预览在线文件")]),e("p",[n._v("v0.7.0+版本支持打开url中携带的在线文件")]),e("pre",{staticClass:"hljs"},[e("code",[n._v("https://wanglin2.github.io/mind-map/#/?fileURL=http://xxx.com/xxx.xmind\n")])]),e("p",[n._v("在"),e("code",[n._v("fileURL")]),n._v("参数后带上你的在线文件url即可目前支持"),e("code",[n._v(".xmind")]),n._v("、"),e("code",[n._v(".smm")]),n._v("、"),e("code",[n._v(".json")]),n._v("、"),e("code",[n._v(".md")]),n._v("后缀的文件url。")]),e("p",[n._v("需要注意的是你在打开在线文件的情况下编辑并不会修改在线文件,改动会保存在你的浏览器本地,你可以选择导出文件。")])])}],t={},i=t,l=v("2877"),o=Object(l["a"])(i,_,c,!1,null,null,null);e["default"]=o.exports}}]);

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c53e8"],{"3def":function(s,t,a){"use strict";a.r(t);var l=function(){var s=this;s._self._c;return s._m(0)},n=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("Scrollbar 插件")]),t("blockquote",[t("p",[s._v("v0.7.0+")]),t("p",[s._v("v0.7.1+进行了重构,下面的文档为新文档。")])]),t("p",[s._v("该插件用于帮助开发水平和垂直滚动条的功能。详细使用方式请参考教程。")]),t("h2",[s._v("注册")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Scrollbar "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Scrollbar.js'")]),s._v("\nMindMap.usePlugin(Scrollbar)\n")])]),t("p",[s._v("注册完且实例化"),t("code",[s._v("MindMap")]),s._v("后可通过"),t("code",[s._v("mindMap.scrollbar")]),s._v("获取到该实例。")]),t("h2",[s._v("事件")]),t("h4",[s._v("scrollbar_change(data)")]),t("ul",[t("li",[t("code",[s._v("data")]),s._v(":滚动条数据,格式如下:")])]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 垂直滚动条")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("vertical")]),s._v(": {\n top,"),t("span",{staticClass:"hljs-comment"},[s._v("// 垂直滚动条的top值百分比数值")]),s._v("\n height"),t("span",{staticClass:"hljs-comment"},[s._v("// 垂直滚动条的高度,百分比数值")]),s._v("\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 水平滚动条")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("horizontal")]),s._v(": {\n left,"),t("span",{staticClass:"hljs-comment"},[s._v("// 水平滚动条的left值百分比数值")]),s._v("\n width"),t("span",{staticClass:"hljs-comment"},[s._v("// 水平滚动条的宽度,百分比数值")]),s._v("\n }\n}\n")])]),t("p",[s._v("当滚动条数据发生改变时触发,你可以监听该事件来更新滚动条位置和大小。接收一个参数,代表当前最新的滚动条位置和大小信息,你可以使用它来更新滚动条元素的样式。")]),t("h2",[s._v("方法")]),t("h3",[s._v("setScrollBarWrapSize(width, height)")]),t("ul",[t("li",[t("p",[t("code",[s._v("width")]),s._v("Number你的滚动条容器元素的宽度。")])]),t("li",[t("p",[t("code",[s._v("height")]),s._v(" Number你的滚动条容器元素的高度。")])])]),t("p",[s._v("设置滚动条容器的大小,对于水平滚动条,即容器的宽度,对于垂直滚动条,即容器的高度。当你的滚动条容器尺寸改变时需要再次调用该方法。")]),t("h3",[s._v("calculationScrollbar()")]),t("blockquote",[t("p",[s._v("通常你不需要调用该方法,如果初次渲染滚动条时滚动条没有更新,那么可以手动调用该方法获取滚动条数据。")]),t("p",[s._v("需要先调用setScrollBarWrapSize方法设置滚动条容器元素的宽高。")])]),t("p",[s._v("返回值:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 垂直滚动条")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("vertical")]),s._v(": {\n top,\n height\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 水平滚动条")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("horizontal")]),s._v(": {\n left,\n width\n }\n}\n")])]),t("p",[s._v("获取滚动条大小和位置。")]),t("h3",[s._v("onMousedown(e, type)")]),t("ul",[t("li",[t("p",[t("code",[s._v("e")]),s._v(":鼠标按下事件的事件对象。")])]),t("li",[t("p",[t("code",[s._v("type")]),s._v("按下的滚动条类型vertical垂直滚动条、horizontal水平滚动条。")])])]),t("p",[s._v("滚动条元素的鼠标按下事件时需要调用该方法。")]),t("h3",[s._v("onClick(e, type)")]),t("ul",[t("li",[t("p",[t("code",[s._v("e")]),s._v(":鼠标点击事件的事件对象。")])]),t("li",[t("p",[t("code",[s._v("type")]),s._v("鼠标点击的滚动条类型vertical垂直滚动条、horizontal水平滚动条。")])])]),t("p",[s._v("滚动条元素的的点击事件时需要调用该方法。")])])}],v={},_=v,c=a("2877"),e=Object(c["a"])(_,l,n,!1,null,null,null);t["default"]=e.exports}}]);

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d2ec3"],{"5b22":function(s,n,a){"use strict";a.r(n);var t=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("Painter 插件")]),n("blockquote",[n("p",[s._v("v0.6.12+")])]),n("p",[s._v("节点格式刷插件。")]),n("h2",[s._v("注册")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Painter "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Painter.js'")]),s._v("\nMindMap.usePlugin(Painter)\n")])]),n("p",[s._v("注册完且实例化"),n("code",[s._v("MindMap")]),s._v("后可通过"),n("code",[s._v("mindMap.painter")]),s._v("获取到该实例。")]),n("h2",[s._v("事件")]),n("blockquote",[n("p",[s._v("可以通过mindMap.on('事件名称', () => {})来监听事件。")])]),n("h3",[s._v("painter_start")]),n("p",[s._v("开始格式刷事件。")]),n("h3",[s._v("painter_end")]),n("p",[s._v("结束格式刷事件。")]),n("h2",[s._v("方法")]),n("h3",[s._v("startPainter()")]),n("p",[s._v("开始格式刷。")]),n("p",[s._v("当调用了该方法后,如果当前存在激活节点,那么会默认取第一个激活的节点为指定节点,点击其他节点后,会把该节点的样式应用到被点击的其他节点,当点击画布后本次格式刷操作结束。")])])}],_={},p=_,v=a("2877"),e=Object(v["a"])(p,t,i,!1,null,null,null);n["default"]=e.exports}}]);

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-2d0d7809"],{"76a5":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this;t._self._c;return t._m(0)},a=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("Painter plugin")]),e("blockquote",[e("p",[t._v("v0.6.12+")])]),e("p",[t._v("Node format brush plugin.")]),e("h2",[t._v("Register")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),e("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),e("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" Painter "),e("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),e("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map/src/plugins/Painter.js'")]),t._v("\nMindMap.usePlugin(Painter)\n")])]),e("p",[t._v("After registration and instantiation of "),e("code",[t._v("MindMap")]),t._v(", the instance can be obtained through "),e("code",[t._v("mindMap.painter")]),t._v(".")]),e("h2",[t._v("Event")]),e("blockquote",[e("p",[t._v("You can use mindMap.on('event name', () => {}) method to listen events.")])]),e("h3",[t._v("painter_start")]),e("p",[t._v("The event of painter start.")]),e("h3",[t._v("painter_end")]),e("p",[t._v("The event of painter end.")]),e("h2",[t._v("Method")]),e("h3",[t._v("startPainter()")]),e("p",[t._v("Start painter.")]),e("p",[t._v("After calling this method, if there is currently an active node, the first active node will be taken as the specified node by default. After clicking on other nodes, the style of that node will be applied to the other nodes being clicked. When clicking on the canvas, the format brushing operation ends.")])])}],i={},r=i,o=n("2877"),l=Object(o["a"])(r,s,a,!1,null,null,null);e["default"]=l.exports}}]);

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