Restore whitespace removed during npmpackage

development
Brendon Boshell 2017-03-09 15:40:57 +00:00
parent 214d5ca503
commit cf01961363
2 changed files with 47 additions and 47 deletions

View File

@ -59,8 +59,8 @@ individual features of the library.</p>
<p>Developers integrating the library in their application should <p>Developers integrating the library in their application should
read the section read the section
&ldquo;Pre-requisites&rdquo; below. Given that mxGraph is a component &ldquo;Pre-requisites&rdquo; below. Given that mxGraph is a component
part of your application, you must understand how JavaScript web part of your application, you must understand how JavaScript web
applications are constructed at an architectural level, and how to program applications are constructed at an architectural level, and how to program
both in JavaScript, as well as any server-side languages used.</p> both in JavaScript, as well as any server-side languages used.</p>
<p>mxGraph mainly comprises one JavaScript <p>mxGraph mainly comprises one JavaScript
@ -117,7 +117,7 @@ application to invoke the library's functionality.</p>
<p>mxGraph uses JavaScript for the client-side functionality on the <p>mxGraph uses JavaScript for the client-side functionality on the
browser. The JavaScript code in turn uses the underlying vector graphics browser. The JavaScript code in turn uses the underlying vector graphics
language on the active browser to render the displayed diagram, currently SVG language on the active browser to render the displayed diagram, currently SVG
for all supported browsers. mxGraph also includes the feature to render entirely for all supported browsers. mxGraph also includes the feature to render entirely
using html, this limits the range of functionality available, but is using html, this limits the range of functionality available, but is
suitable for more simple diagrams.</p> suitable for more simple diagrams.</p>
@ -131,8 +131,8 @@ browsers and adapts to the inconsistencies behind the scenes.</p>
<h2><a name="mxgraph_licensing"></a>mxGraph Licensing</h2> <h2><a name="mxgraph_licensing"></a>mxGraph Licensing</h2>
<p>The JavaScript client of mxGraph is licensed under the <p>The JavaScript client of mxGraph is licensed under the
<a href="https://www.apache.org/licenses/LICENSE-2.0"> Apache <a href="https://www.apache.org/licenses/LICENSE-2.0"> Apache
2.0 license</a> For detailed licensing questions you are always advised to 2.0 license</a> For detailed licensing questions you are always advised to
consult a legal professional.</p> consult a legal professional.</p>
@ -272,8 +272,8 @@ abstracts the description of the visual component into one API.</p>
<li>Navigate to the <a <li>Navigate to the <a
href="http://www.jgraph.com/mxdownload.html">evaluation download href="http://www.jgraph.com/mxdownload.html">evaluation download
request page</a>.</li> request page</a>.</li>
<li>Please note that we require a commercial or organizational email <li>Please note that we require a commercial or organizational email
address to process your request. We're not able to sell mxGraph to address to process your request. We're not able to sell mxGraph to
individuals.</li> individuals.</li>
<li>When you receive the download details, unzip to your preferred <li>When you receive the download details, unzip to your preferred
location.</li> location.</li>
@ -1676,4 +1676,4 @@ operation.</p>
<hr size="1"> <hr size="1">
&copy; 2006-2016 by JGraph Ltd. &copy; 2006-2016 by JGraph Ltd.
</body> </body>
</html> </html>

View File

@ -12,14 +12,14 @@ var mxClient =
* well as global constants to identify the browser and operating system in * well as global constants to identify the browser and operating system in
* use. You may have to load chrome://global/content/contentAreaUtils.js in * use. You may have to load chrome://global/content/contentAreaUtils.js in
* your page to disable certain security restrictions in Mozilla. * your page to disable certain security restrictions in Mozilla.
* *
* Variable: VERSION * Variable: VERSION
* *
* Contains the current version of the mxGraph library. The strings that * Contains the current version of the mxGraph library. The strings that
* communicate versions of mxGraph use the following format. * communicate versions of mxGraph use the following format.
* *
* versionMajor.versionMinor.buildNumber.revisionNumber * versionMajor.versionMinor.buildNumber.revisionNumber
* *
* Current version is 3.7.1. * Current version is 3.7.1.
*/ */
VERSION: '3.7.1', VERSION: '3.7.1',
@ -62,21 +62,21 @@ var mxClient =
/** /**
* Variable: IS_EM * Variable: IS_EM
* *
* True if the browser is IE11 in enterprise mode (IE8 standards mode). * True if the browser is IE11 in enterprise mode (IE8 standards mode).
*/ */
IS_EM: 'spellcheck' in document.createElement('textarea') && document.documentMode == 8, IS_EM: 'spellcheck' in document.createElement('textarea') && document.documentMode == 8,
/** /**
* Variable: VML_PREFIX * Variable: VML_PREFIX
* *
* Prefix for VML namespace in node names. Default is 'v'. * Prefix for VML namespace in node names. Default is 'v'.
*/ */
VML_PREFIX: 'v', VML_PREFIX: 'v',
/** /**
* Variable: OFFICE_PREFIX * Variable: OFFICE_PREFIX
* *
* Prefix for VML office namespace in node names. Default is 'o'. * Prefix for VML office namespace in node names. Default is 'o'.
*/ */
OFFICE_PREFIX: 'o', OFFICE_PREFIX: 'o',
@ -111,7 +111,7 @@ var mxClient =
navigator.userAgent.indexOf('Presto/2.1.') < 0 && navigator.userAgent.indexOf('Presto/2.1.') < 0 &&
navigator.userAgent.indexOf('Presto/2.0.') < 0 && navigator.userAgent.indexOf('Presto/2.0.') < 0 &&
navigator.userAgent.indexOf('Presto/1.') < 0, navigator.userAgent.indexOf('Presto/1.') < 0,
/** /**
* Variable: IS_SF * Variable: IS_SF
* *
@ -120,14 +120,14 @@ var mxClient =
IS_SF: navigator.userAgent.indexOf('AppleWebKit/') >= 0 && IS_SF: navigator.userAgent.indexOf('AppleWebKit/') >= 0 &&
navigator.userAgent.indexOf('Chrome/') < 0 && navigator.userAgent.indexOf('Chrome/') < 0 &&
navigator.userAgent.indexOf('Edge/') < 0, navigator.userAgent.indexOf('Edge/') < 0,
/** /**
* Variable: IS_IOS * Variable: IS_IOS
* *
* Returns true if the user agent is an iPad, iPhone or iPod. * Returns true if the user agent is an iPad, iPhone or iPod.
*/ */
IS_IOS: (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false), IS_IOS: (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false),
/** /**
* Variable: IS_GC * Variable: IS_GC
* *
@ -135,21 +135,21 @@ var mxClient =
*/ */
IS_GC: navigator.userAgent.indexOf('Chrome/') >= 0 && IS_GC: navigator.userAgent.indexOf('Chrome/') >= 0 &&
navigator.userAgent.indexOf('Edge/') < 0, navigator.userAgent.indexOf('Edge/') < 0,
/** /**
* Variable: IS_CHROMEAPP * Variable: IS_CHROMEAPP
* *
* True if the this is running inside a Chrome App. * True if the this is running inside a Chrome App.
*/ */
IS_CHROMEAPP: window.chrome != null && chrome.app != null && chrome.app.runtime != null, IS_CHROMEAPP: window.chrome != null && chrome.app != null && chrome.app.runtime != null,
/** /**
* Variable: IS_FF * Variable: IS_FF
* *
* True if the current browser is Firefox. * True if the current browser is Firefox.
*/ */
IS_FF: navigator.userAgent.indexOf('Firefox/') >= 0, IS_FF: navigator.userAgent.indexOf('Firefox/') >= 0,
/** /**
* Variable: IS_MT * Variable: IS_MT
* *
@ -216,7 +216,7 @@ var mxClient =
/** /**
* Variable: IS_TOUCH * Variable: IS_TOUCH
* *
* True if this device supports touchstart/-move/-end events (Apple iOS, * True if this device supports touchstart/-move/-end events (Apple iOS,
* Android, Chromebook and Chrome Browser on touch-enabled devices). * Android, Chromebook and Chrome Browser on touch-enabled devices).
*/ */
@ -224,7 +224,7 @@ var mxClient =
/** /**
* Variable: IS_POINTER * Variable: IS_POINTER
* *
* True if this device supports Microsoft pointer events (always false on Macs). * True if this device supports Microsoft pointer events (always false on Macs).
*/ */
IS_POINTER: window.PointerEvent != null && !(navigator.appVersion.indexOf('Mac') > 0), IS_POINTER: window.PointerEvent != null && !(navigator.appVersion.indexOf('Mac') > 0),
@ -242,9 +242,9 @@ var mxClient =
* *
* Returns true if the current browser is supported, that is, if * Returns true if the current browser is supported, that is, if
* <mxClient.IS_VML> or <mxClient.IS_SVG> is true. * <mxClient.IS_VML> or <mxClient.IS_SVG> is true.
* *
* Example: * Example:
* *
* (code) * (code)
* if (!mxClient.isBrowserSupported()) * if (!mxClient.isBrowserSupported())
* { * {
@ -269,9 +269,9 @@ var mxClient =
* *
* where filename is the (relative) URL of the stylesheet. The charset * where filename is the (relative) URL of the stylesheet. The charset
* is hardcoded to ISO-8859-1 and the type is text/css. * is hardcoded to ISO-8859-1 and the type is text/css.
* *
* Parameters: * Parameters:
* *
* rel - String that represents the rel attribute of the link node. * rel - String that represents the rel attribute of the link node.
* href - String that represents the href attribute of the link node. * href - String that represents the href attribute of the link node.
* doc - Optional parent document of the link node. * doc - Optional parent document of the link node.
@ -286,24 +286,24 @@ var mxClient =
doc.write('<link rel="' + rel + '" href="' + href + '" charset="UTF-8" type="text/css"/>'); doc.write('<link rel="' + rel + '" href="' + href + '" charset="UTF-8" type="text/css"/>');
} }
else else
{ {
var link = doc.createElement('link'); var link = doc.createElement('link');
link.setAttribute('rel', rel); link.setAttribute('rel', rel);
link.setAttribute('href', href); link.setAttribute('href', href);
link.setAttribute('charset', 'UTF-8'); link.setAttribute('charset', 'UTF-8');
link.setAttribute('type', 'text/css'); link.setAttribute('type', 'text/css');
var head = doc.getElementsByTagName('head')[0]; var head = doc.getElementsByTagName('head')[0];
head.appendChild(link); head.appendChild(link);
} }
}, },
/** /**
* Function: include * Function: include
* *
* Dynamically adds a script node to the document header. * Dynamically adds a script node to the document header.
* *
* In production environments, the includes are resolved in the mxClient.js * In production environments, the includes are resolved in the mxClient.js
* file to reduce the number of requests required for client startup. This * file to reduce the number of requests required for client startup. This
* function should only be used in development environments, but not in * function should only be used in development environments, but not in
@ -313,10 +313,10 @@ var mxClient =
{ {
document.write('<script src="'+src+'"></script>'); document.write('<script src="'+src+'"></script>');
}, },
/** /**
* Function: dispose * Function: dispose
* *
* Frees up memory in IE by resolving cyclic dependencies between the DOM * Frees up memory in IE by resolving cyclic dependencies between the DOM
* and the JavaScript objects. * and the JavaScript objects.
*/ */
@ -336,7 +336,7 @@ var mxClient =
/** /**
* Variable: mxLoadResources * Variable: mxLoadResources
* *
* Optional global config variable to toggle loading of the two resource files * Optional global config variable to toggle loading of the two resource files
* in <mxGraph> and <mxEditor>. Default is true. NOTE: This is a global variable, * in <mxGraph> and <mxEditor>. Default is true. NOTE: This is a global variable,
* not a variable of mxClient. * not a variable of mxClient.
@ -355,7 +355,7 @@ if (typeof(mxLoadResources) == 'undefined')
/** /**
* Variable: mxResourceExtension * Variable: mxResourceExtension
* *
* Optional global config variable to specify the extension of resource files. * Optional global config variable to specify the extension of resource files.
* Default is true. NOTE: This is a global variable, not a variable of mxClient. * Default is true. NOTE: This is a global variable, not a variable of mxClient.
* *
@ -373,7 +373,7 @@ if (typeof(mxResourceExtension) == 'undefined')
/** /**
* Variable: mxLoadStylesheets * Variable: mxLoadStylesheets
* *
* Optional global config variable to toggle loading of the CSS files when * Optional global config variable to toggle loading of the CSS files when
* the library is initialized. Default is true. NOTE: This is a global variable, * the library is initialized. Default is true. NOTE: This is a global variable,
* not a variable of mxClient. * not a variable of mxClient.
@ -403,7 +403,7 @@ if (typeof(mxLoadStylesheets) == 'undefined')
* </script> * </script>
* <script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script> * <script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script>
* (end) * (end)
* *
* When using a relative path, the path is relative to the URL of the page that * When using a relative path, the path is relative to the URL of the page that
* contains the assignment. Trailing slashes are automatically removed. * contains the assignment. Trailing slashes are automatically removed.
*/ */
@ -435,7 +435,7 @@ else
* </script> * </script>
* <script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script> * <script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script>
* (end) * (end)
* *
* When using a relative path, the path is relative to the URL of the page that * When using a relative path, the path is relative to the URL of the page that
* contains the assignment. Trailing slashes are automatically removed. * contains the assignment. Trailing slashes are automatically removed.
*/ */
@ -451,7 +451,7 @@ if (typeof(mxImageBasePath) != 'undefined' && mxImageBasePath.length > 0)
} }
else else
{ {
mxClient.imageBasePath = mxClient.basePath + '/images'; mxClient.imageBasePath = mxClient.basePath + '/images';
} }
/** /**
@ -461,7 +461,7 @@ else
* The special value 'none' will disable all built-in internationalization and * The special value 'none' will disable all built-in internationalization and
* resource loading. See <mxResources.getSpecialBundle> for handling identifiers * resource loading. See <mxResources.getSpecialBundle> for handling identifiers
* with and without a dash. * with and without a dash.
* *
* Set mxLanguage prior to loading the mxClient library as follows to override * Set mxLanguage prior to loading the mxClient library as follows to override
* this setting: * this setting:
* *
@ -471,7 +471,7 @@ else
* </script> * </script>
* <script type="text/javascript" src="js/mxClient.js"></script> * <script type="text/javascript" src="js/mxClient.js"></script>
* (end) * (end)
* *
* If internationalization is disabled, then the following variables should be * If internationalization is disabled, then the following variables should be
* overridden to reflect the current language of the system. These variables are * overridden to reflect the current language of the system. These variables are
* cleared when i18n is disabled. * cleared when i18n is disabled.
@ -496,11 +496,11 @@ else
/** /**
* Variable: defaultLanguage * Variable: defaultLanguage
* *
* Defines the default language which is used in the common resource files. Any * Defines the default language which is used in the common resource files. Any
* resources for this language will only load the common resource file, but not * resources for this language will only load the common resource file, but not
* the language-specific resource file. Default is 'en'. * the language-specific resource file. Default is 'en'.
* *
* Set mxDefaultLanguage prior to loading the mxClient library as follows to override * Set mxDefaultLanguage prior to loading the mxClient library as follows to override
* this setting: * this setting:
* *
@ -539,7 +539,7 @@ if (mxLoadStylesheets)
* </script> * </script>
* <script type="text/javascript" src="js/mxClient.js"></script> * <script type="text/javascript" src="js/mxClient.js"></script>
* (end) * (end)
* *
* This is used to avoid unnecessary requests to language files, ie. if a 404 * This is used to avoid unnecessary requests to language files, ie. if a 404
* will be returned. * will be returned.
*/ */
@ -588,12 +588,12 @@ if (mxClient.IS_VML)
document.createStyleSheet().cssText = mxClient.VML_PREFIX + '\\:*{behavior:url(#default#VML)}' + document.createStyleSheet().cssText = mxClient.VML_PREFIX + '\\:*{behavior:url(#default#VML)}' +
mxClient.OFFICE_PREFIX + '\\:*{behavior:url(#default#VML)}'; mxClient.OFFICE_PREFIX + '\\:*{behavior:url(#default#VML)}';
} }
if (mxLoadStylesheets) if (mxLoadStylesheets)
{ {
mxClient.link('stylesheet', mxClient.basePath + '/css/explorer.css'); mxClient.link('stylesheet', mxClient.basePath + '/css/explorer.css');
} }
// Cleans up resources when the application terminates // Cleans up resources when the application terminates
window.attachEvent('onunload', mxClient.dispose); window.attachEvent('onunload', mxClient.dispose);
} }