Replies: 1 comment 2 replies
-
你好,你在 https://jsmind.online 上能复现这个问题吗?另外你用的浏览器是 chrome 还是其它的?如果方便的话,你可以在这个页面上 jsmind_container 之外添加一个 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
如图所示,
配置如下:
let options = {
container: "jsmind_container",// [必选] 容器的ID,或者为容器的对
editable: true,//是否启用编辑
theme: "greensea",//主题
mode: "side",//显示模式,full主要用于编辑,side主要用于展示
view: {
line_width: 2, // 思维导图线条的粗细
line_color: "#ccc", // 思维导图线条的颜色
draggable: true,
hide_scrollbars_when_draggable: true,
node_overflow: 'wrap',
zoom: { // 配置缩放
min: 0.5, // 最小的缩放比例
max: 2.5, // 最大的缩放比例
step: 0.2, // 缩放比例间隔
},
},
// mode: 'side',// 显示模式,子节点只分布在根节点右侧
shortcut: {
enable: true, // 是否启用快捷键
handles: {}, // 命名的快捷键事件处理器
mapping: { // 快捷键映射
addchild: [45, 4096 + 13, 9], // , +
addbrother: 13, //
editnode: 113, //
delnode: 46, //
toggle: 32, //
left: 37, //
up: 38, //
right: 39, //
down: 40, //
}
},
};
Beta Was this translation helpful? Give feedback.
All reactions