我已经使用 asp.net mvc5 启动了一个项目,然后从 github https://github.com/jgraph/mxgraph的原始来源下载了 mxGraph 项目
我已经在我的 mvc 项目中加载了 mxgraph www 文件夹和 src 文件夹,并如下编辑了我的 Index.cshtml 文件
此页面加载正确。我的 init.js 如下:
// URLs for save and export
window.EXPORT_URL = window.EXPORT_URL || '/export';
window.SAVE_URL = window.SAVE_URL || 'save';
window.OPEN_URL = window.OPEN_URL || '/open.html';
window.RESOURCES_PATH = window.RESOURCES_PATH || '/resources';
window.RESOURCE_BASE = window.RESOURCE_BASE || window.RESOURCES_PATH + '/grapheditor';
window.STENCIL_PATH = window.STENCIL_PATH || '/stencils';
window.IMAGE_PATH = window.IMAGE_PATH || '/images';
window.STYLE_PATH = window.STYLE_PATH || '/styles';
window.CSS_PATH = window.CSS_PATH || '/styles';
window.OPEN_FORM = window.OPEN_FORM || '/open.html';
window.mxBasePath = window.mxBasePath || '/src';
window.mxLanguage = window.mxLanguage || urlParams['lang'];
window.mxLanguages = window.mxLanguages || ['de'];
现在我想在绘制图表并单击文件/保存后将生成的 xml 传递给我的操作。
至尊宝的传说
相关分类