PreConfig.js 1.07 KB
/**
 * Copyright (c) 2006-2020, JGraph Ltd
 * Copyright (c) 2006-2020, draw.io AG
 */
// Overrides of global vars need to be pre-loaded
window.DRAW_MATH_URL = "math";
window.DRAWIO_CONFIG = null; // Replace with your custom draw.io configurations. For more details, https://www.diagrams.net/doc/faq/configure-diagram-editor

window.EXPORT_URL = "REPLACE_WITH_YOUR_IMAGE_SERVER";
window.PLANT_URL = "REPLACE_WITH_YOUR_PLANTUML_SERVER";
window.DRAWIO_BASE_URL = window.location.protocol + "//" + window.location.host; // Replace with path to base of deployment, e.g. https://www.example.com/folder
window.DRAWIO_VIEWER_URL =
  window.location.protocol + "//" + window.location.host + "/js/viewer.min.js"; // Replace your path to the viewer js, e.g. https://www.example.com/js/viewer.min.js
window.DRAWIO_LIGHTBOX_URL =null; // Replace with your lightbox URL, eg. https://www.example.com
urlParams["sync"] = "manual";
urlParams["lang"] = "zh";
urlParams["mode"] = "device";
urlParams['gapi'] = 0;
// urlParams['ui'] = 'min';//使用简约ui主题
urlParams['dark'] = 0; //是否使用深色模式