1/** 2 * Copyright (c) 2006-2021, JGraph Ltd 3 * Copyright (c) 2006-2021, draw.io AG 4 */ 5 6 // urlParams is null when used for embedding 7window.urlParams = window.urlParams || {}; 8 9// Public global variables 10window.MAX_REQUEST_SIZE = window.MAX_REQUEST_SIZE || 10485760; 11window.MAX_AREA = window.MAX_AREA || 15000 * 15000; 12 13// URLs for save and export 14window.EXPORT_URL = window.EXPORT_URL || '/export'; 15window.SAVE_URL = window.SAVE_URL || '/save'; 16window.OPEN_URL = window.OPEN_URL || '/open'; 17window.RESOURCES_PATH = window.RESOURCES_PATH || 'resources'; 18window.RESOURCE_BASE = window.RESOURCE_BASE || window.RESOURCES_PATH + '/grapheditor'; 19window.STENCIL_PATH = window.STENCIL_PATH || 'stencils'; 20window.IMAGE_PATH = window.IMAGE_PATH || 'images'; 21window.STYLE_PATH = window.STYLE_PATH || 'styles'; 22window.CSS_PATH = window.CSS_PATH || 'styles'; 23window.OPEN_FORM = window.OPEN_FORM || 'open.html'; 24 25// Sets the base path, the UI language via URL param and configures the 26// supported languages to avoid 404s. The loading of all core language 27// resources is disabled as all required resources are in grapheditor. 28// properties. Note that in this example the loading of two resource 29// files (the special bundle and the default bundle) is disabled to 30// save a GET request. This requires that all resources be present in 31// each properties file since only one file is loaded. 32window.mxBasePath = window.mxBasePath || 'mxgraph'; 33window.mxImageBasePath = window.mxImageBasePath || 'mxgraph/images'; 34window.mxLanguage = window.mxLanguage || urlParams['lang']; 35window.mxLanguages = window.mxLanguages || ['de', 'se']; 36