Comments (7)
我找到了,试了一下可以: 隐藏配置面板Format: 在这个文件 // src\main\webapp\js\grapheditor\Format.js 搜 this.immediateRefresh(); 在后面增加:this.editorUi.toggleFormatPanel(false);
隐藏minmal主题默认打开的shapes控件: 在src\main\webapp\js\diagramly\Minimal.js 搜 toggleShapes(this, true); 注释掉就可以
感觉这种设置可以加到默认的里面,方便大家
from widget-drawio.
@crendy @Geo123abc 我知道了, 当 iframe 尺寸大于 1001px
时默认关闭这两个面板
还找到了直接关闭的方法
window.sb.editorUi.toggleFormatPanel(false);
window.sb.editorUi.sidebarWindow.window.setVisible(false);
from widget-drawio.
from widget-drawio.
你是想默认显示没有控件的类似<只读>模式吗
from widget-drawio.
嗯是的,目前使用 minimal 主题,如果默认打开 不展示那两个控件 ,并且页面缩放改成「适应页面大小」就太完美了。基本类似浏览模式,还可以很方便的直接进行编辑。
from widget-drawio.
嗯是的,目前使用 minimal 主题,如果默认打开 不展示那两个控件 ,并且页面缩放改成「适应页面大小」就太完美了。基本类似浏览模式,还可以很方便的直接进行编辑。
我试了一下, 我这里就是默认不显示控件的, 我也不知道在哪里设置Σ(⊙▽⊙"a
from widget-drawio.
我找到了,试了一下可以:
隐藏配置面板Format:
在这个文件 // src\main\webapp\js\grapheditor\Format.js 搜 this.immediateRefresh(); 在后面增加:this.editorUi.toggleFormatPanel(false);
隐藏minmal主题默认打开的shapes控件:
在src\main\webapp\js\diagramly\Minimal.js 搜 toggleShapes(this, true); 注释掉就可以
from widget-drawio.
Related Issues (20)
- 保存为 svg 格式,引用的资源未写入 data-assets 属性中,导致思源清理资源时,勿删资源文件 HOT 1
- 希望能提供,修改保存后变成只读模式,只读模式提供编辑按钮。
- 通过自定义块属性 `custom-lightbox="1"` 设置为只读模式
- 大佬考虑整个excalidraw挂件吗 HOT 2
- edge99 创建时会弹窗选择文件,没有与siyuan关联起来 HOT 2
- 又出现无法和思源关联的情况了 #14 HOT 3
- 刷新页面后,没有绑定到资源文件
- 保存的时候能不弹框 直接保存到思源内部吗? HOT 13
- 默认的展示比例可以是整页展示(适应窗口大小)吗? HOT 4
- 没有找到存储到思源笔记 HOT 1
- 插入挂件-可以自动弹出新建对话框吗 HOT 4
- 挂件默认大小和默认居左如何调整? HOT 9
- 资源文件误删,向前兼容 HOT 4
- 0.1.1 加载出错 HOT 2
- 本地数据可以同步至云端但是其他设备无法找到同步后的文件 HOT 1
- 下载超时,尝试了N次,可以离线加载么? HOT 1
- 新建流程图 无法保存到设备,即使读取后修改也无法自动、手动保存 HOT 3
- 重命名 ctrl+s 保存思源 旧名流程图仍然存在 HOT 6
- 建议将编辑好的文件显示为SVG HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from widget-drawio.