Skip to content

Commit 3df57d0

Browse files
committed
chore. 杂项
1 parent c6a7e22 commit 3df57d0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ let zh_CN = {
264264
// 模式内部提示10
265265
mode10_allow_pan: "启用拖拽平移",
266266
mode10_allow_zoom: "启用滚轮缩放",
267-
mode10_hint: "折叠状态将被自动暂存,之后手动保存挂件设置才能持久化保存;<br/>在导图内右键暂存当前缩放和平移状态;之后手动保存挂件设置才能持久化保存。<br/>没有看到任何内容?点击“重置缩放、平移和折叠状态”按钮,然后手动保存挂件设置",
267+
mode10_hint: "折叠状态将被自动暂存,之后手动保存挂件设置才能持久化保存;<br/>在导图内右键暂存当前缩放和平移状态;之后手动保存挂件设置才能持久化保存。<br/>没有看到任何内容?点击“重置缩放、平移和折叠状态”按钮,然后手动刷新、手动保存挂件设置",
268268
mode10_reset: "重置缩放、平移和折叠状态",
269269
mode10_default_expand_level_hint: "默认展开层级数",
270270
// 模式内部提示12
@@ -415,7 +415,7 @@ let en_US = {//先当他不存在 We don't fully support English yet.
415415
// markmap
416416
mode10_allow_pan: "Enable Pan",
417417
mode10_allow_zoom: "Enable zoom",
418-
mode10_hint: "The collapse state will be temporarily saved automatically. To make it persistent, please manually save the widget settings.<br/>Right-click inside the mind map to temporarily save the current zoom and pan state. Then manually save the widget settings to persist it.<br/>Not seeing any content? Click the “Reset Zoom, Pan, and Collapse State” button, then manually save the widget settings",
418+
mode10_hint: "The collapse state will be temporarily saved automatically. To make it persistent, please manually save the widget settings.<br/>Right-click inside the mind map to temporarily save the current zoom and pan state. Then manually save the widget settings to persist it.<br/>Not seeing any content? Click the “Reset Zoom, Pan, and Collapse State” button, then manually refresh and save the widget settings",
419419
mode10_reset: "Reset Zoom, Pan, and Collapse State",
420420
mode10_default_expand_level_hint: "Default Expand Level",
421421
// hint text in mode

src/listChildDocsClass.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ class MarkmapPrinter extends MarkdownUrlUnorderListPrinter {
590590
this.markMapInstance?.fit();
591591
this.modeSettings.transform = null;
592592
this.modeSettings.foldStatus = {};
593+
$("#mode10_default_expand_level").val(999);
593594
}
594595
async doUpdate(textString, updateAttr) {
595596
this.observer.disconnect();
@@ -663,8 +664,8 @@ class MarkmapPrinter extends MarkdownUrlUnorderListPrinter {
663664
if (foreignObject) {
664665
const aElement = foreignObject.querySelector('a');
665666
if (aElement) {
666-
logPush('链接地址:', aElement.href);
667-
logPush('链接文本:', aElement.textContent);
667+
debugPush('链接地址:', aElement.href);
668+
debugPush('链接文本:', aElement.textContent);
668669
this.modeSettings.foldStatus[aElement.href.replace("siyuan://blocks/", "")] = foldFlag;
669670
}
670671
}
@@ -719,7 +720,7 @@ class MarkmapPrinter extends MarkdownUrlUnorderListPrinter {
719720
openRefLink(event);
720721
});
721722
// this.markMapInstance.fit().then(()=>{
722-
723+
logPush("window", window.markmap);
723724
// })
724725
setTimeout(()=>{
725726
if (this.modeSettings.transform != null && !resettedConfigFlag) {
@@ -734,7 +735,7 @@ class MarkmapPrinter extends MarkdownUrlUnorderListPrinter {
734735
} else {
735736
this.markMapInstance.fit();
736737
}
737-
}, 100);
738+
}, 10);
738739
// $("#markmap a").mousedown((event)=>{
739740
// if (event.buttons = 2) {
740741
// // event.preventDefault();

0 commit comments

Comments
 (0)