欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

draw.io二次开发(2)文件解读

发布时间:2025/5/22 编程问答 29 豆豆
生活随笔 收集整理的这篇文章主要介绍了 draw.io二次开发(2)文件解读 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

最先加载了:
drawio/src/main/webapp/js/grapheditor/Dialogs.js
L289 : ColorDialog.prototype.createApplyFunction()
这个文件中的函数没有进入

然后加载了:
drawio/src/main/webapp/js/diagramly/sidebar/Sidebar.js
这个文件中的函数没有进入

然后加载了一堆:
drawio/src/main/webapp/js/diagramly/sidebar/Sidebar-*
这个文件中的函数没有进入

然后加载了:
drawio/src/main/webapp/js/diagramly/util/mxJsCanvas.js
这个文件中的函数没有进入

首页:drawio/src/main/webapp/index.html

跳转后加载了:
drawio/src/main/webapp/js/diagramly/Dialogs.js
drawio/src/main/webapp/js/diagramly/EditorUi.js
在其中定义了模板文件路径:

//文件名:Dialogs.js //函数名:NewDialog templateFile = (templateFile != null) ? templateFile : EditorUi.templateFile;// 文件名:EditorUi.js EditorUi.templateFile = TEMPLATE_PATH + '/index.xml';

即模板文件:drawio/src/main/webapp/templates/index.xml

总结

以上是生活随笔为你收集整理的draw.io二次开发(2)文件解读的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。