An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:recycle: Simplify mind map fullscreen interaction https://github.com/siyuan-note/siyuan/issues/20694
Danielea1a2666a939
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex 8f4584662e..e073d52574 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "إغلاق النافذة الجديدة عند إغلاق آخر علامة تبويب فيها أو سحبها إلى نافذة أخرى","tabToMainWindow": "نقل إلى النافذة الرئيسية","workspaceStorageView": "عرض",- "listMindmapDocumentLayout": "تخطيط المستند","livePhoto": "صورة حية","livePhotoPreviewUnavailable": "تعذرت معاينة هذه الصورة الحية. تم الاحتفاظ بالملفات الأصلية","livePhotoPairUnavailable": "لم يكتمل رفع الصورة الحية. يرجى استيرادها مجددًا",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex 43d1291d67..a989264e26 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Das neue Fenster schließen, wenn sein letzter Tab geschlossen oder in ein anderes Fenster gezogen wird","tabToMainWindow": "In das Hauptfenster verschieben","workspaceStorageView": "Anzeigen",- "listMindmapDocumentLayout": "Dokumentlayout","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Dieses Live Photo kann nicht wiedergegeben werden. Die Originaldateien bleiben erhalten","livePhotoPairUnavailable": "Das Live Photo wurde nicht vollständig hochgeladen. Bitte erneut importieren",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex 54f0462928..c462c39ebe 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Close the new window when its last tab is closed or dragged to another window","tabToMainWindow": "Move to main window","workspaceStorageView": "View",- "listMindmapDocumentLayout": "Document layout","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "This Live Photo cannot be previewed. The original files are preserved","livePhotoPairUnavailable": "The Live Photo was not fully uploaded. Please import it again",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex c0be7a7219..ea4206aaa4 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Cerrar la nueva ventana al cerrar su última pestaña o arrastrarla a otra ventana","tabToMainWindow": "Mover a la ventana principal","workspaceStorageView": "Ver",- "listMindmapDocumentLayout": "Diseño del documento","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "No se puede reproducir esta Live Photo. Se conservan los archivos originales","livePhotoPairUnavailable": "La Live Photo no se ha subido por completo. Vuelve a importarla",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex be0b049c56..485e6f9ec5 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Fermer la nouvelle fenêtre lorsque son dernier onglet est fermé ou déplacé vers une autre fenêtre","tabToMainWindow": "Déplacer vers la fenêtre principale","workspaceStorageView": "Afficher",- "listMindmapDocumentLayout": "Disposition du document","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Impossible de lire cette Live Photo. Les fichiers originaux sont conservés","livePhotoPairUnavailable": "La Live Photo n’a pas été entièrement envoyée. Veuillez la réimporter",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex ca1e829eb1..8bf6515e57 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "סגירת החלון החדש כאשר הלשונית האחרונה בו נסגרת או נגררת לחלון אחר","tabToMainWindow": "העברה לחלון הראשי","workspaceStorageView": "הצג",- "listMindmapDocumentLayout": "פריסת המסמך","livePhoto": "תמונה חיה","livePhotoPreviewUnavailable": "לא ניתן להציג תצוגה מקדימה של התמונה החיה. הקבצים המקוריים נשמרו","livePhotoPairUnavailable": "העלאת התמונה החיה לא הושלמה. יש לייבא אותה שוב",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex 6099e2b591..5ad14b624c 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "अंतिम टैब बंद होने या दूसरी विंडो में खींचे जाने पर नई विंडो बंद करें","tabToMainWindow": "मुख्य विंडो में ले जाएँ","workspaceStorageView": "देखें",- "listMindmapDocumentLayout": "दस्तावेज़ लेआउट","livePhoto": "लाइव फ़ोटो","livePhotoPreviewUnavailable": "इस लाइव फ़ोटो का पूर्वावलोकन नहीं हो सका। मूल फ़ाइलें सुरक्षित हैं","livePhotoPairUnavailable": "लाइव फ़ोटो पूरी तरह अपलोड नहीं हुई। कृपया इसे फिर से आयात करें",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex 045b7a070f..2d0386b40e 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Tutup jendela baru saat tab terakhirnya ditutup atau diseret ke jendela lain","tabToMainWindow": "Pindahkan ke jendela utama","workspaceStorageView": "Lihat",- "listMindmapDocumentLayout": "Tata letak dokumen","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Live Photo ini tidak dapat dipratinjau. File asli tetap tersimpan","livePhotoPairUnavailable": "Live Photo belum terunggah sepenuhnya. Silakan impor kembali",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex acd9756edb..cc890ce8e0 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Chiudi la nuova finestra quando l'ultima scheda viene chiusa o trascinata in un'altra finestra","tabToMainWindow": "Sposta nella finestra principale","workspaceStorageView": "Visualizza",- "listMindmapDocumentLayout": "Layout del documento","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Impossibile riprodurre questa Live Photo. I file originali sono conservati","livePhotoPairUnavailable": "La Live Photo non è stata caricata completamente. Importala di nuovo",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex 330af58800..1d70b5bf29 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "新しいウィンドウの最後のタブを閉じるか別のウィンドウへドラッグしたときに、そのウィンドウを閉じます","tabToMainWindow": "メインウィンドウに移動","workspaceStorageView": "表示",- "listMindmapDocumentLayout": "文書内のレイアウト","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "この Live Photo を再生できません。元のファイルは保持されています","livePhotoPairUnavailable": "Live Photo のアップロードが完了していません。もう一度インポートしてください",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex d7c0473c36..45d23bb8cc 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "새 창의 마지막 탭을 닫거나 다른 창으로 드래그하면 해당 창 닫기","tabToMainWindow": "기본 창으로 이동","workspaceStorageView": "보기",- "listMindmapDocumentLayout": "문서 레이아웃","livePhoto": "라이브 포토","livePhotoPreviewUnavailable": "이 라이브 포토를 미리 볼 수 없습니다. 원본 파일은 보존됩니다","livePhotoPairUnavailable": "라이브 포토가 완전히 업로드되지 않았습니다. 다시 가져와 주세요",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex db60011804..afc72b8a13 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Sluit het nieuwe venster wanneer het laatste tabblad wordt gesloten of naar een ander venster wordt gesleept","tabToMainWindow": "Naar hoofdvenster verplaatsen","workspaceStorageView": "Bekijken",- "listMindmapDocumentLayout": "Documentindeling","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Deze Live Photo kan niet worden afgespeeld. De oorspronkelijke bestanden blijven behouden","livePhotoPairUnavailable": "De Live Photo is niet volledig geüpload. Importeer deze opnieuw",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex b0d846162d..dc004d99e9 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Zamknij nowe okno po zamknięciu jego ostatniej karty lub przeciągnięciu jej do innego okna","tabToMainWindow": "Przenieś do głównego okna","workspaceStorageView": "Pokaż",- "listMindmapDocumentLayout": "Układ dokumentu","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Nie można odtworzyć tego zdjęcia Live Photo. Oryginalne pliki zostały zachowane","livePhotoPairUnavailable": "Zdjęcie Live Photo nie zostało w pełni przesłane. Zaimportuj je ponownie",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex b758d34b7e..bf2507dc47 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Fechar a nova janela quando sua última aba for fechada ou arrastada para outra janela","tabToMainWindow": "Mover para a janela principal","workspaceStorageView": "Ver",- "listMindmapDocumentLayout": "Layout do documento","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Não foi possível reproduzir esta Live Photo. Os arquivos originais foram preservados","livePhotoPairUnavailable": "A Live Photo não foi enviada por completo. Importe-a novamente",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex 35a91ab975..19b0c7678a 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Закрывать новое окно при закрытии его последней вкладки или её перетаскивании в другое окно","tabToMainWindow": "Переместить в главное окно","workspaceStorageView": "Показать",- "listMindmapDocumentLayout": "Макет документа","livePhoto": "Живое фото","livePhotoPreviewUnavailable": "Не удалось воспроизвести это живое фото. Исходные файлы сохранены","livePhotoPairUnavailable": "Живое фото загружено не полностью. Импортируйте его ещё раз",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex e4fcda3286..e36948d8b0 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Zavrieť nové okno po zatvorení jeho poslednej karty alebo jej presunutí do iného okna","tabToMainWindow": "Presunúť do hlavného okna","workspaceStorageView": "Zobraziť",- "listMindmapDocumentLayout": "Rozloženie dokumentu","livePhoto": "Live Photo","livePhotoPreviewUnavailable": "Túto fotografiu Live Photo sa nepodarilo prehrať. Pôvodné súbory zostali zachované","livePhotoPairUnavailable": "Fotografia Live Photo sa nenahrala úplne. Importujte ju znova",diff --git a/app/appearance/langs/sr.json b/app/appearance/langs/sr.jsonindex 54bc01c9db..ed8b000259 100644--- a/app/appearance/langs/sr.json+++ b/app/appearance/langs/sr.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Затвори нови прозор када се његова последња картица затвори или превуче у други прозор","tabToMainWindow": "Премести у главни прозор","workspaceStorageView": "Прикажи",- "listMindmapDocumentLayout": "Распоред документа","livePhoto": "Жива фотографија","livePhotoPreviewUnavailable": "Није могуће приказати ову живу фотографију. Оригиналне датотеке су сачуване","livePhotoPairUnavailable": "Жива фотографија није у потпуности отпремљена. Увезите је поново",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex 98eabf1580..e50742cd7f 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "ปิดหน้าต่างใหม่เมื่อปิดแท็บสุดท้ายหรือลากแท็บนั้นไปยังหน้าต่างอื่น","tabToMainWindow": "ย้ายไปยังหน้าต่างหลัก","workspaceStorageView": "ดู",- "listMindmapDocumentLayout": "เค้าโครงเอกสาร","livePhoto": "ภาพถ่าย Live Photo","livePhotoPreviewUnavailable": "ไม่สามารถแสดงตัวอย่าง Live Photo นี้ได้ ไฟล์ต้นฉบับยังคงอยู่","livePhotoPairUnavailable": "อัปโหลด Live Photo ไม่ครบถ้วน โปรดนำเข้าอีกครั้ง",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex 458766a59a..133f0a269d 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Son sekmesi kapatıldığında veya başka bir pencereye sürüklendiğinde yeni pencereyi kapat","tabToMainWindow": "Ana pencereye taşı","workspaceStorageView": "Görüntüle",- "listMindmapDocumentLayout": "Belge düzeni","livePhoto": "Canlı Fotoğraf","livePhotoPreviewUnavailable": "Bu Canlı Fotoğraf önizlenemiyor. Özgün dosyalar korunuyor","livePhotoPairUnavailable": "Canlı Fotoğraf tamamen yüklenemedi. Lütfen yeniden içe aktarın",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex f6b924ad1d..8062833153 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "Закривати нове вікно після закриття його останньої вкладки або перетягування її до іншого вікна","tabToMainWindow": "Перемістити до головного вікна","workspaceStorageView": "Переглянути",- "listMindmapDocumentLayout": "Макет документа","livePhoto": "Живе фото","livePhotoPreviewUnavailable": "Не вдалося відтворити це живе фото. Оригінальні файли збережено","livePhotoPairUnavailable": "Живе фото завантажено не повністю. Імпортуйте його ще раз",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex d3d47199ea..812ffe14fc 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "把新窗口的最后一个页签关闭或拖拽到其他窗口之后,关闭该窗口","tabToMainWindow": "移动到主窗口","workspaceStorageView": "查看",- "listMindmapDocumentLayout": "文档布局","livePhoto": "实况照片","livePhotoPreviewUnavailable": "暂时无法播放这张实况照片,原始文件已保留","livePhotoPairUnavailable": "实况照片未完整上传,请重新导入",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex 0e912ea7a0..2e878faf1d 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -18,7 +18,6 @@"closeWindowOnLastTabClosedTip": "將新視窗的最後一個頁籤關閉或拖曳到其他視窗後,關閉該視窗","tabToMainWindow": "移動到主視窗","workspaceStorageView": "查看",- "listMindmapDocumentLayout": "文件版面","livePhoto": "原況照片","livePhotoPreviewUnavailable": "暫時無法播放這張原況照片,原始檔案已保留","livePhotoPairUnavailable": "原況照片未完整上傳,請重新匯入",diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-h361q1i/20200924093441-ft2rhps.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-h361q1i/20200924093441-ft2rhps.syindex 4f38fbb9c1..4fe7b6f98e 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-h361q1i/20200924093441-ft2rhps.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-h361q1i/20200924093441-ft2rhps.sy@@ -8,7 +8,7 @@"title": "Formatting elements","title-img": "background-color:#269;background-image: linear-gradient(white 2px, transparent 2px),linear-gradient(90deg, white 2px, transparent 2px),linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;","type": "doc",- "updated": "20261020165811"+ "updated": "20261021132218"},"Children": [{@@ -1961,7 +1961,7 @@"HeadingLevel": 2,"Properties": {"id": "20210104091509-v1x69oc",- "updated": "20261020165811"+ "updated": "20261021132218"},"Children": [{@@ -2014,30 +2014,12 @@"Type": "NodeParagraph","Properties": {"id": "20261019142953-4rt40w7",- "updated": "20261019142953"+ "updated": "20261021132218"},"Children": [{"Type": "NodeText",- "Data": "Switching between the document and full screen preserves the map's center and zoom. Use "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Toggle Fullscreen"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "Document layout"- },- {- "Type": "NodeText",- "Data": " in the toolbar to show a centered frame matching the map viewport in the document. Pan and zoom while viewing this frame to preview the area that will appear after leaving full screen. Click the button again to hide the frame. The frame does not change the block's width or height."+ "Data": "Entering full screen preserves the mind map's current center and zoom. Panning and zooming in full screen affect only that full-screen view. Exiting full screen restores the document view's previous center and zoom. Node edits still take effect."}]},diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-abz7w6k/20200825162036-4dx365o.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-abz7w6k/20200825162036-4dx365o.syindex aec1cc8fc3..f5d5c09f96 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-abz7w6k/20200825162036-4dx365o.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180320-abz7w6k/20200825162036-4dx365o.sy@@ -8,7 +8,7 @@"title": "排版元素","title-img": "background-color: hsl(2, 57%, 40%);background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(270deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(125deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba(0,0,0,.2) 5px);","type": "doc",- "updated": "20261020165811"+ "updated": "20261021132218"},"Children": [{@@ -1964,7 +1964,7 @@"HeadingLevel": 2,"Properties": {"id": "20210104091228-wdpx6ev",- "updated": "20261020165811"+ "updated": "20261021132218"},"Children": [{@@ -2017,30 +2017,12 @@"Type": "NodeParagraph","Properties": {"id": "20261019142953-m439ybs",- "updated": "20261019142953"+ "updated": "20261021132218"},"Children": [{"Type": "NodeText",- "Data": "文档与全屏之间切换时会保留脑图中心点和缩放比例。点击工具栏中的 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "全屏切换"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "文档布局"- },- {- "Type": "NodeText",- "Data": " 可显示居中的指示框,其大小与文档内脑图的可视区域相同。参照指示框平移、缩放画布,即可预览退出全屏后显示的范围;再次点击按钮可隐藏指示框。指示框不会改变脑图块的宽度或高度。"+ "Data": "进入全屏时会保留脑图当前的中心点和缩放比例。全屏中的平移和缩放仅影响本次全屏浏览,退出全屏后恢复进入前的文档视角。节点内容编辑仍正常生效。"}]},diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226120854-dr1jfx2/20211226121319-emrk2yy.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226120854-dr1jfx2/20211226121319-emrk2yy.syindex 6c0f7d8f29..2f2e1e5c67 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226120854-dr1jfx2/20211226121319-emrk2yy.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226120854-dr1jfx2/20211226121319-emrk2yy.sy@@ -8,7 +8,7 @@"title": "排版元素","title-img": "background-color: hsl(2, 57%, 40%);background-image: repeating-linear-gradient(transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(270deg, transparent, transparent 50px, rgba(0,0,0,.4) 50px, rgba(0,0,0,.4) 53px, transparent 53px, transparent 63px, rgba(0,0,0,.4) 63px, rgba(0,0,0,.4) 66px, transparent 66px, transparent 116px, rgba(0,0,0,.5) 116px, rgba(0,0,0,.5) 166px, rgba(255,255,255,.2) 166px, rgba(255,255,255,.2) 169px, rgba(0,0,0,.5) 169px, rgba(0,0,0,.5) 179px, rgba(255,255,255,.2) 179px, rgba(255,255,255,.2) 182px, rgba(0,0,0,.5) 182px, rgba(0,0,0,.5) 232px, transparent 232px),repeating-linear-gradient(125deg, transparent, transparent 2px, rgba(0,0,0,.2) 2px, rgba(0,0,0,.2) 3px, transparent 3px, transparent 5px, rgba(0,0,0,.2) 5px);","type": "doc",- "updated": "20261020165811"+ "updated": "20261021132218"},"Children": [{@@ -1962,7 +1962,7 @@"HeadingLevel": 2,"Properties": {"id": "20211226122008-731sqd6",- "updated": "20261020165811"+ "updated": "20261021132218"},"Children": [{@@ -2015,30 +2015,12 @@"Type": "NodeParagraph","Properties": {"id": "20261019142953-9ypjmtz",- "updated": "20261019142953"+ "updated": "20261021132218"},"Children": [{"Type": "NodeText",- "Data": "在文件與全螢幕之間切換時,會保留心智圖的中心點和縮放比例。點擊工具列中的 "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "全螢幕切換"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "文件版面"- },- {- "Type": "NodeText",- "Data": " 可顯示置中的指示框,大小與文件內心智圖的可視區域相同。參照指示框平移、縮放畫布,即可預覽離開全螢幕後顯示的範圍;再次點擊按鈕可隱藏指示框。指示框不會變更心智圖區塊的寬度或高度。"+ "Data": "進入全螢幕時會保留心智圖目前的中心點和縮放比例。全螢幕中的平移和縮放僅影響本次全螢幕瀏覽,離開全螢幕後恢復進入前的文件視角。節點內容編輯仍正常生效。"}]},diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-hnu6o79/20240530101000-3qhz7br.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-hnu6o79/20240530101000-3qhz7br.syindex 78033c16cf..828fcf8f39 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-hnu6o79/20240530101000-3qhz7br.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-hnu6o79/20240530101000-3qhz7br.sy@@ -9,7 +9,7 @@"title": "書式要素","title-img": "background-color:#269;background-image: linear-gradient(white 2px, transparent 2px),linear-gradient(90deg, white 2px, transparent 2px),linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;","type": "doc",- "updated": "20261020181700"+ "updated": "20261021132218"},"Children": [{@@ -2090,7 +2090,7 @@"Properties": {"ID": "20240530101000-ch5e4vh","id": "20240530101000-1ev7xub",- "updated": "20261020181700"+ "updated": "20261021132218"},"Children": [{@@ -2161,30 +2161,12 @@"Type": "NodeParagraph","Properties": {"id": "20261019142953-j4zhvo2",- "updated": "20261019142953"+ "updated": "20261021132218"},"Children": [{"Type": "NodeText",- "Data": "文書と全画面表示を切り替えても、マインドマップの中心と拡大率は維持されます。ツールバーの "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "禅モードの切り替え"- },- {- "Type": "NodeText",- "Data": " - "- },- {- "Type": "NodeTextMark",- "TextMarkType": "kbd",- "TextMarkTextContent": "文書内のレイアウト"- },- {- "Type": "NodeText",- "Data": " を押すと、文書内のマインドマップ表示領域と同じ大きさの枠が中央に表示されます。枠を目安にキャンバスを移動・拡大縮小すると、全画面表示を終了した後の表示範囲を確認できます。もう一度押すと枠を非表示にします。この枠でブロックの幅や高さは変わりません。"+ "Data": "全画面表示に切り替えると、マインドマップの現在の中心と拡大率が維持されます。全画面表示中の移動と拡大・縮小は、その全画面表示にのみ適用されます。全画面表示を終了すると、文書内の表示は切り替え前の中心と拡大率に戻ります。ノードの編集内容は引き続き反映されます。"}]},diff --git a/app/src/assets/scss/protyle/_mindmap-view.scss b/app/src/assets/scss/protyle/_mindmap-view.scssindex cc347af9b4..700302afc0 100644--- a/app/src/assets/scss/protyle/_mindmap-view.scss+++ b/app/src/assets/scss/protyle/_mindmap-view.scss@@ -246,18 +246,6 @@pointer-events: none;}- &__document-frame {- position: absolute;- left: 50%;- top: 50%;- transform: translate(-50%, -50%);- box-sizing: border-box;- border: 2px dashed var(--b3-theme-primary);- color: var(--b3-theme-primary);- pointer-events: none;- z-index: 4;- }-&__viewport--summary {cursor: crosshair;}@@ -956,7 +944,6 @@min-height: 0;&__toolbar,- &__document-frame,&__resize,&__inspector,&__tooltip,diff --git a/app/src/protyle/render/listMindmap/fullscreen.test.ts b/app/src/protyle/render/listMindmap/fullscreen.test.tsindex 01cc998b39..718359c9a9 100644--- a/app/src/protyle/render/listMindmap/fullscreen.test.ts+++ b/app/src/protyle/render/listMindmap/fullscreen.test.ts@@ -37,49 +37,37 @@ const browserCases = async (source: string, css: string) => {const view = new api.ListMindmapView({host, model: api.readListMindmap(list), onExit: () => {}});await settle();const viewport = host.querySelector<HTMLElement>(".mindmap-view__viewport");- const guide = host.querySelector<HTMLElement>(".mindmap-view__document-frame");const center = () => [(viewport.clientWidth / 2 - view.offsetX) / view.scale,(viewport.clientHeight / 2 - view.offsetY) / view.scale];const equalCenter = (expected: number[]) => center().forEach((value, index) =>check.ok(Math.abs(value - expected[index]) < 1e-8, "mode changes preserve the logical center"));const button = (label: string) => host.querySelector<HTMLButtonElement>(`[aria-label="${label}"]`);const initialStyle = host.style.cssText;- const size = [viewport.clientWidth, viewport.clientHeight];- check.equal(button("listMindmapDocumentLayout").hidden, true);for (const scale of [.75, 1.25]) {view.zoomAt(scale);const documentCenter = center();const documentTransform = [view.scale, view.offsetX, view.offsetY];+ const root = host.querySelector<HTMLElement>(".mindmap-view__node");+ const documentPosition = root.getBoundingClientRect();+ const equalDocumentView = () => {+ equalCenter(documentCenter);+ [view.scale, view.offsetX, view.offsetY].forEach((value, index) => {+ check.ok(Math.abs(value - documentTransform[index]) < 1e-8,+ "leaving fullscreen restores the document transform");+ });+ };button("fullscreen").click();await settle();equalCenter(documentCenter);check.equal(view.scale, scale);check.equal(host.parentElement, document.body);- check.equal(guide.hidden, true);- button("listMindmapDocumentLayout").click();- check.equal(button("listMindmapDocumentLayout").getAttribute("aria-pressed"), "true");- check.equal(getComputedStyle(guide).pointerEvents, "none");- const bounds = guide.getBoundingClientRect();- const full = viewport.getBoundingClientRect();- check.deepEqual([bounds.width, bounds.height], size);- check.ok(Math.abs(bounds.left + bounds.width / 2 - full.left - full.width / 2) < 1);- check.ok(Math.abs(bounds.top + bounds.height / 2 - full.top - full.height / 2) < 1);- check.equal(getComputedStyle(guide).borderTopStyle, "dashed");- button("listMindmapDocumentLayout").click();- check.equal(guide.hidden, true);- button("listMindmapDocumentLayout").click();button("exitFullscreen").click();await settle();- equalCenter(documentCenter);- [view.scale, view.offsetX, view.offsetY].forEach((value, index) => {- check.ok(Math.abs(value - documentTransform[index]) < 1e-8,- "an unchanged round trip restores the document transform");- });- check.equal(guide.hidden, true);+ equalDocumentView();button("fullscreen").click();await settle();- button("listMindmapDocumentLayout").click();+ const full = viewport.getBoundingClientRect();if (mobile) {const touches = (distance: number) => [0, 1].map(index => new Touch({identifier: index,target: viewport, clientX: full.left + full.width / 2 + (index ? distance : -distance),@@ -87,7 +75,7 @@ const browserCases = async (source: string, css: string) => {viewport.dispatchEvent(new TouchEvent("touchstart", {touches: touches(50), cancelable: true}));viewport.dispatchEvent(new TouchEvent("touchmove", {touches: touches(60), cancelable: true}));viewport.dispatchEvent(new TouchEvent("touchend", {touches: [], cancelable: true}));- check.ok(view.scale > scale, "two fingers can zoom through the document frame");+ check.ok(view.scale > scale, "two fingers can zoom the fullscreen view");} else {viewport.dispatchEvent(new WheelEvent("wheel", {deltaX: 12, deltaY: 8,bubbles: true, cancelable: true}));@@ -96,62 +84,108 @@ const browserCases = async (source: string, css: string) => {slider.dispatchEvent(new Event("input", {bubbles: true}));check.equal(view.scale, 1.5);}- const adjusted = center();- const adjustedScale = view.scale;- const root = host.querySelector<HTMLElement>(".mindmap-view__node");- const preview = root.getBoundingClientRect();- const previewPosition = [preview.left - bounds.left, preview.top - bounds.top];+ check.notEqual(view.scale, scale);+ viewport.dispatchEvent(new WheelEvent("wheel", {deltaX: 60, deltaY: 40,+ bubbles: true, cancelable: true}));+ check.notDeepEqual(center(), documentCenter, "fullscreen panning changes the current center");view.setReadOnly(true);- check.equal(guide.hidden, false, "control refresh preserves the preview");- check.equal(button("listMindmapDocumentLayout").getAttribute("aria-pressed"), "true");host.dispatchEvent(new KeyboardEvent("keydown", {key: "Escape", bubbles: true}));await settle();- equalCenter(adjusted);- check.equal(view.scale, adjustedScale);+ equalDocumentView();check.equal(host.parentElement, parent);check.equal(host.style.cssText, initialStyle);- check.equal(guide.hidden, true);const restored = root.getBoundingClientRect();- const documentBounds = viewport.getBoundingClientRect();- check.ok(Math.abs(restored.left - documentBounds.left - previewPosition[0]) < 1 &&- Math.abs(restored.top - documentBounds.top - previewPosition[1]) < 1,- "the document matches the frame preview after pan and zoom");+ check.ok(Math.abs(restored.left - documentPosition.left) < 1 &&+ Math.abs(restored.top - documentPosition.top) < 1,+ "fullscreen pan and zoom leave the document reading position unchanged");check.equal(list.outerHTML, originalSource);view.setReadOnly(false);+ button("fullscreen").click();+ await settle();+ equalCenter(documentCenter);+ check.equal(view.scale, scale, "reentering starts from the document, not the discarded fullscreen view");+ button("exitFullscreen").click();+ await settle();+ equalDocumentView();}const rapid = center();button("fullscreen").click();button("exitFullscreen").click();+ button("fullscreen").click();+ button("exitFullscreen").click();await settle();equalCenter(rapid);button("fullscreen").click();await settle();- button("listMindmapDocumentLayout").click();viewport.dispatchEvent(new WheelEvent("wheel", {deltaX: -100000, bubbles: true, cancelable: true}));- const croppedCenter = center();+ check.notDeepEqual(center(), rapid);button("exitFullscreen").click();await settle();- equalCenter(croppedCenter);+ equalCenter(rapid);view.refreshLayout();await settle();- equalCenter(croppedCenter);+ equalCenter(rapid);++ const beforeResize = center();+ const beforeResizeScale = view.scale;+ button("fullscreen").click();+ await settle();+ parent.style.width = `${mobile ? 360 : 680}px`;+ view.zoomAt(1.8);+ button("exitFullscreen").click();+ await settle();+ equalCenter(beforeResize);+ check.equal(view.scale, beforeResizeScale, "resizing the document restores its logical center and zoom");++ const beforeEdit = center();+ const beforeEditScale = view.scale;+ button("fullscreen").click();+ await settle();+ view.zoomAt(1.8);+ const content = view.model.root.contentBlocks[0].querySelector('[contenteditable="true"]');+ content.textContent = "Edited root";+ const editedSource = list.outerHTML;+ view.update(api.readListMindmap(list));+ await settle();+ button("exitFullscreen").click();+ await settle();+ equalCenter(beforeEdit);+ check.equal(view.scale, beforeEditScale);+ check.equal(view.getContentHost(view.model.root.id).textContent, "Edited root",+ "restoring the document viewport keeps content updates made in fullscreen");+ check.equal(list.outerHTML, editedSource);++ const beforeLock = center();+ const beforeLockScale = view.scale;button("fullscreen").click();await settle();- button("listMindmapDocumentLayout").click();+ view.zoomAt(1.8);view.setLocked(true);- check.equal(guide.hidden, true, "locked maps hide the layout preview");- check.equal(button("listMindmapDocumentLayout"), null);+ button("exitFullscreen").click();+ await settle();+ equalCenter(beforeLock);+ check.equal(view.scale, beforeLockScale, "locking in fullscreen does not replace the saved document view");+ button("fullscreen").click();+ await settle();view.destroy();check.equal(host.parentElement, parent);check.equal(host.classList.contains("fullscreen"), false);check.equal(Array.from(parent.childNodes).some(node => node.nodeType === Node.COMMENT_NODE), false);+ const initializing = new api.ListMindmapView({host, model: api.readListMindmap(list), onExit: () => {}});+ button("fullscreen").click();+ button("exitFullscreen").click();+ await settle();+ check.equal(initializing.initialFit, false, "an early round trip still completes the initial document layout");+ check.equal(host.parentElement, parent);+ check.ok(Number.isFinite(initializing.offsetX) && Number.isFinite(initializing.offsetY));+ initializing.destroy();parent.remove();}}return "Mindmap fullscreen cases passed";};-test("fullscreen preserves the viewport and previews the document layout on desktop and touch screens", {+test("fullscreen preserves entry focus and restores the document viewport without reverting content updates", {skip: process.platform === "linux" && !process.env.DISPLAY && !process.env.WAYLAND_DISPLAY,timeout: 30000,}, async () => {diff --git a/app/src/protyle/render/listMindmap/view.ts b/app/src/protyle/render/listMindmap/view.tsindex 226725d5a3..b9ec670874 100644--- a/app/src/protyle/render/listMindmap/view.ts+++ b/app/src/protyle/render/listMindmap/view.ts@@ -199,9 +199,8 @@ export class ListMindmapView {private destroyed = false;private readonly resizeObserver: ResizeObserver;private fullscreenMarker?: Comment;- private documentViewport?: {width: number, height: number};+ private documentView?: {scale: number, center: {x: number, y: number}};private viewportCenter?: {x: number, y: number};- private readonly documentFrame = createElement("div", "mindmap-view__document-frame");private readonly disposers: (() => void)[] = [];private printTransform?: {scale: number, offsetX: number, offsetY: number};@@ -229,9 +228,6 @@ export class ListMindmapView {this.inspector.hidden = true;this.zoomLabel = createElement("span", "mindmap-view__zoom");this.viewport.append(this.canvas, this.world);- this.documentFrame.hidden = true;- this.documentFrame.setAttribute("aria-hidden", "true");- this.viewport.append(this.documentFrame);this.tooltip.hidden = true;this.tooltip.setAttribute("role", "tooltip");this.colorProbe.setAttribute("aria-hidden", "true");@@ -666,14 +662,6 @@ export class ListMindmapView {zoomActions.append(this.zoomSlider, reset, fit);zoomControl.append(this.zoomLabel, zoomActions);controls.append(zoomControl);- add("documentLayout", "listMindmapDocumentLayout", "iconLayout", () => {- this.documentFrame.hidden = !this.documentFrame.hidden;- const button = this.buttons.get("documentLayout");- button.classList.toggle("block__icon--active", !this.documentFrame.hidden);- button.setAttribute("aria-pressed", String(!this.documentFrame.hidden));- });- this.buttons.get("documentLayout").hidden = !this.fullscreenMarker;- this.buttons.get("documentLayout").setAttribute("aria-pressed", String(!this.documentFrame.hidden));add("fullscreen", "fullscreen", "iconFullscreen", () => this.toggleFullscreen());if (this.options.onSettingsMenu) {add("settings", "more", "iconMore", () => {@@ -3647,8 +3635,11 @@ export class ListMindmapView {if (this.destroyed || this.fullscreenMarker) {return;}- this.documentViewport = {width: this.viewport.clientWidth, height: this.viewport.clientHeight};this.captureViewportCenter();+ if (this.viewportCenter) {+ // 文档视角只在本次全屏期间暂存,全屏内的平移和缩放独立生效。+ this.documentView = {scale: this.scale, center: this.viewportCenter};+ }// 移到独立容器,避免编辑器祖先的变换和裁剪改变全屏覆盖范围。this.fullscreenMarker = document.createComment("mindmap-view");this.options.host.before(this.fullscreenMarker);@@ -3664,7 +3655,11 @@ export class ListMindmapView {if (!this.fullscreenMarker) {return;}- this.captureViewportCenter();+ if (this.documentView) {+ this.scale = this.documentView.scale;+ this.viewportCenter = this.documentView.center;+ this.documentView = undefined;+ }this.options.onFullscreen?.(false, this.buttons.get("fullscreen"));this.options.host.classList.remove("fullscreen");this.fullscreenMarker.replaceWith(this.options.host);@@ -3682,19 +3677,6 @@ export class ListMindmapView {const button = this.buttons.get("fullscreen");button.setAttribute("aria-label", this.label(active ? "exitFullscreen" : "fullscreen"));button.querySelector("use").setAttribute("xlink:href", active ? "#iconFullscreenExit" : "#iconFullscreen");- const layout = this.buttons.get("documentLayout");- if (layout) {- layout.hidden = !active;- layout.classList.toggle("block__icon--active", !this.documentFrame.hidden && active);- layout.setAttribute("aria-pressed", String(!this.documentFrame.hidden && active));- }- if (!active || this.locked) {- this.documentFrame.hidden = true;- }- if (active && this.documentViewport) {- this.documentFrame.style.width = `${this.documentViewport.width}px`;- this.documentFrame.style.height = `${this.documentViewport.height}px`;- }this.refreshLayout();};