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
read the section
&ldquo;Pre-requisites&rdquo; below. Given that mxGraph is a component
part of your application, you must understand how JavaScript web
applications are constructed at an architectural level, and how to program
part of your application, you must understand how JavaScript web
applications are constructed at an architectural level, and how to program
both in JavaScript, as well as any server-side languages used.</p>
<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
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
using html, this limits the range of functionality available, but is
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>
<p>The JavaScript client of mxGraph is licensed under the
<a href="https://www.apache.org/licenses/LICENSE-2.0"> Apache
<p>The JavaScript client of mxGraph is licensed under the
<a href="https://www.apache.org/licenses/LICENSE-2.0"> Apache
2.0 license</a> For detailed licensing questions you are always advised to
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
href="http://www.jgraph.com/mxdownload.html">evaluation download
request page</a>.</li>
<li>Please note that we require a commercial or organizational email
address to process your request. We're not able to sell mxGraph to
<li>Please note that we require a commercial or organizational email
address to process your request. We're not able to sell mxGraph to
individuals.</li>
<li>When you receive the download details, unzip to your preferred
location.</li>
@ -1676,4 +1676,4 @@ operation.</p>
<hr size="1">
&copy; 2006-2016 by JGraph Ltd.
</body>
</html>
</html>

View File

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