Giter Club home page Giter Club logo

Comments (7)

Geo123abc avatar Geo123abc commented on May 25, 2024 1

我找到了,试了一下可以: 隐藏配置面板Format: 在这个文件 // src\main\webapp\js\grapheditor\Format.js 搜 this.immediateRefresh(); 在后面增加:this.editorUi.toggleFormatPanel(false); image

隐藏minmal主题默认打开的shapes控件: 在src\main\webapp\js\diagramly\Minimal.js 搜 toggleShapes(this, true); 注释掉就可以 image

感觉这种设置可以加到默认的里面,方便大家

from widget-drawio.

Zuoqiu-Yingyi avatar Zuoqiu-Yingyi commented on May 25, 2024 1

@crendy @Geo123abc 我知道了, 当 iframe 尺寸大于 1001px 时默认关闭这两个面板
还找到了直接关闭的方法

window.sb.editorUi.toggleFormatPanel(false);
window.sb.editorUi.sidebarWindow.window.setVisible(false);

from widget-drawio.

crendy avatar crendy commented on May 25, 2024

大佬,下图红框部分在打开文档时 可以默认不展开吗? image

我使用的主题是Minimal:
image

from widget-drawio.

Zuoqiu-Yingyi avatar Zuoqiu-Yingyi commented on May 25, 2024

你是想默认显示没有控件的类似<只读>模式吗

from widget-drawio.

crendy avatar crendy commented on May 25, 2024

嗯是的,目前使用 minimal 主题,如果默认打开 不展示那两个控件 ,并且页面缩放改成「适应页面大小」就太完美了。基本类似浏览模式,还可以很方便的直接进行编辑。

from widget-drawio.

Zuoqiu-Yingyi avatar Zuoqiu-Yingyi commented on May 25, 2024

嗯是的,目前使用 minimal 主题,如果默认打开 不展示那两个控件 ,并且页面缩放改成「适应页面大小」就太完美了。基本类似浏览模式,还可以很方便的直接进行编辑。

我试了一下, 我这里就是默认不显示控件的, 我也不知道在哪里设置Σ(⊙▽⊙"a

from widget-drawio.

crendy avatar crendy commented on May 25, 2024

我找到了,试了一下可以:
隐藏配置面板Format:
在这个文件 // src\main\webapp\js\grapheditor\Format.js 搜 this.immediateRefresh(); 在后面增加:this.editorUi.toggleFormatPanel(false);
image

隐藏minmal主题默认打开的shapes控件:
在src\main\webapp\js\diagramly\Minimal.js 搜 toggleShapes(this, true); 注释掉就可以
image

from widget-drawio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.