如何构建draw.io以具有Lightbox Viewer [英] How to build draw.io to have lightbox viewer

查看:117
本文介绍了如何构建draw.io以具有Lightbox Viewer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自克隆存储库并将其发布到例如GitHub页面不允许我使用 lightbox .
我假设该存储库仅包含客户端Java代码,而灯箱是服务器端的.

I'm intending to build draw.io since cloning the repository and publish it to e.g. GitHub pages does not allow me to make use of the lightbox.
I assume that this repository only includes the client-side Java code but the lightbox is server-sided.

我想使用 lightbox ,它允许使用 draw.io/?p = ex& lightbox = 1& ...(已启用浏览器插件),我想通过 mydomain.io/drawio .../?p = ex& lightbox =1& ... .
当我克隆存储库时,我只能访问编辑器vai mydomain.io/drawio/src/main/webapp/index.html ,就像( jgraph.github.io上的公共克隆/drawio/src/main/webapp/index.html ).

I want to make use of the lightbox, which allows making use of the plugins in view mode.
Instead of draw.io/?p=ex&lightbox=1&...(explorer plugin enabled), I would like to make it accessible via mydomain.io/drawio.../?p=ex&lightbox=1&....
When I clone the repository I have only access to the editor vai mydomain.io/drawio/src/main/webapp/index.html, like the public clone on (jgraph.github.io/drawio/src/main/webapp/index.html).

这里的任何人,谁能给我一些指导,以在构建中包括正确的功能?
draw.io生成文档 mxgraph存储库 YouTube ,但是没有任何丝毫提示我如何继续.

Anyone here, who could give me some guidance to include the right features in the build?
Neither draw.io build documentation nor Embed Diagrams tell anything about such details.
I find some more details on the mxgraph repository, Facebook and YouTube but nothing gives me the slightest clue how to continue.

推荐答案

您需要克隆 drawio 从Github存储库,并从目录 drawio/src/main/webapp/.例如.为了进行测试,您可以在本地计算机上运行 python -m SimpleHTTPServer .

You need to clone the drawio repository from Github and launch a webserver from the directory drawio/src/main/webapp/. E.g. for testing you can run python -m SimpleHTTPServer on your local machine.

现在,可以在 http://localhost:8000/上获取draw.io/diagrams.net编辑器的本地版本.您要查找的灯箱查看器可以通过以下结构的网址使用: http://localhost:8000/?lightbox = 1& p = ex&#R7V3rc ... (请注意URL参数)以及网址中的编码图.

Now, a local version of the draw.io/diagrams.net editor is available at http://localhost:8000/. The lightbox viewer you are looking for can be used via urls with this structure: http://localhost:8000/?lightbox=1&p=ex&#R7V3rc... (note the URL parameters and the encoded diagram within the URL).

这篇关于如何构建draw.io以具有Lightbox Viewer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆