<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxClient"></a>mxClient</h1><divclass=CBody><p>Bootstrapping mechanism for the mxGraph thin client. The production version of this file contains all code required to run the mxGraph thin client, as 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.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxClient">mxClient</a></td><tdclass=SDescription>Bootstrapping mechanism for the mxGraph thin client. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxClient.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.VERSION"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">VERSION</a></td><tdclass=SDescription>Contains the current version of the mxGraph library. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_IE"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">IS_IE</a></td><tdclass=SDescription>True if the current browser is Internet Explorer 10 or below. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_IE6"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">IS_IE6</a></td><tdclass=SDescription>True if the current browser is Internet Explorer 6.x.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_IE11"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">IS_IE11</a></td><tdclass=SDescription>True if the current browser is Internet Explorer 11.x.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_EDGE"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">IS_EDGE</a></td><tdclass=SDescription>True if the current browser is Microsoft Edge.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_QUIRKS"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">IS_QUIRKS</a></td><tdclass=SDescription>True if the current browser is Internet Explorer and it is in quirks mode.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_EM"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">IS_EM</a></td><tdclass=SDescription>True if the browser is IE11 in enterprise mode (IE8 standards mode).</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.VML_PREFIX"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">VML_PREFIX</a></td><tdclass=SDescription>Prefix for VML namespace in node names. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.OFFICE_PREFIX"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">OFFICE_PREFIX</a></td><tdclass=SDescription>Prefix for VML office namespace in node names. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_NS"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">IS_NS</a></td><tdclass=SDescription>True if the current browser is Netscape (including Firefox).</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_OP"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">IS_OP</a></td><tdclass=SDescription>True if the current browser is Opera.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_OT"id=link12onMouseOver="ShowTip(event, 'tt12', 'link12')"onMouseOut="HideTip('tt12')">IS_OT</a></td><tdclass=SDescription>True if -o-transf
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.VERSION"></a>VERSION</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">VERSION: '3.9.0'</td></tr></table></blockquote><p>Contains the current version of the mxGraph library. The strings that communicate versions of mxGraph use the following format.</p><p>versionMajor.versionMinor.buildNumber.revisionNumber</p><p>Current version is 3.9.0.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IE"></a>IS_IE</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IE: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'MSIE'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer 10 or below. Use <ahref="#mxClient.IS_IE11"class=LVariableid=link33onMouseOver="ShowTip(event, 'tt4', 'link33')"onMouseOut="HideTip('tt4')">mxClient.IS_IE11</a> to detect IE 11.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IE6"></a>IS_IE6</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IE6: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'MSIE 6'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer 6.x.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IE11"></a>IS_IE11</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IE11: !!navigator.userAgent.match(</td><tdclass="PParameter prettyprint "nowrap>/Trident\/7\./</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer 11.x.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_EDGE"></a>IS_EDGE</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_EDGE: !!navigator.userAgent.match(</td><tdclass="PParameter prettyprint "nowrap>/Edge\//</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>True if the current browser is Microsoft Edge.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_QUIRKS"></a>IS_QUIRKS</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_QUIRKS: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'MSIE'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer and it is in quirks mode.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_EM"></a>IS_EM</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "colspan=2>IS_EM: 'spellcheck' in document.createElement(</td></tr><tr><td> </td><tdclass="PParameter prettyprint "nowrapwidth=100%>'textarea'</td></tr><tr><tdclass="PAfterParameters prettyprint "colspan=2>) && document.documentMode</td></tr></table></td></tr></table></blockquote><p>True if the browser is IE11 in enterprise mode (IE8 standards mode).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.VML_PREFIX"></a>VML_PREFIX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">VML_PREFIX: 'v'</td></tr></table></blockquote><p>Prefix for VML namespace in node names. Default is ‘v’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.OFFICE_PREFIX"></a>OFFICE_PREFIX</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">OFFICE_PREFIX: 'o'</td></tr></table></blockquote><p>Prefix for VML office namespace in node names. Default is ‘o’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_NS"></a>IS_NS</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_NS: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Mozilla/'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Netscape (including Firefox).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_OP"></a>IS_OP</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_OP: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Opera/'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Opera.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_OT"></a>IS_OT</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_OT: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Presto/'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if -o-transform is available as a CSS style, ie for Opera browsers based on a Presto engine with version 2.5 or later.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_SF"></a>IS_SF</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_SF: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'AppleWebKit/'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Safari.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IOS"></a>IS_IOS</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IOS: (</td><tdclass="PTypePrefix prettyprint "nowrap>navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true </td><tdclass="PType prettyprint "nowrap>: </td><tdclass="PParameter prettyprint "nowrap>false</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the user agent is an iPad, iPhone or iPod.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_GC"></a>IS_GC</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_GC: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Chrome/'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Google Chrome.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_CHROMEAPP"></a>IS_CHROMEAPP</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">IS_CHROMEAPP: window.chrome !</td></tr></table></blockquote><p>True if the this is running inside a Chrome App.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_FF"></a>IS_FF</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_FF: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Firefox/'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Firefox.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_MT"></a>IS_MT</h3><divclass=CBody><p>True if -moz-transform is available as a CSS style. This is the case for all Firefox-based browsers newer than or equal 3, such as Camino, Iceweasel, Seamonkey and Iceape.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.NO_FO"></a>NO_FO</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "colspan=2>NO_FO: !document.createElementNS || document.createElementNS(</td></tr><tr><td> </td><tdclass="PParameter prettyprint "nowrapwidth=100%>'http://www.w3.org/2000/svg',</td></tr><tr><td> </td><tdclass="PParameter prettyprint "nowrapwidth=100%>'foreignObject'</td></tr><tr><tdclass="PAfterParameters prettyprint "colspan=2>) !</td></tr></table></td></tr></table></blockquote><p>True if foreignObject support is not available. This is the case for Opera, older SVG-based browsers and all versions of IE.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_VML"></a>IS_VML</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">IS_VML: navigator.appName.toUpperCase()</td></tr></table></blockquote><p>True if the browser supports VML.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_WIN"></a>IS_WIN</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_WIN: navigator.appVersion.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Win'</td><tdclass="PAfterParameters prettyprint "nowrap>) > 0</td></tr></table></td></tr></table></blockquote><p>True if the client is a Windows.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_MAC"></a>IS_MAC</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_MAC: navigator.appVersion.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'Mac'</td><tdclass="PAfterParameters prettyprint "nowrap>) > 0</td></tr></table></td></tr></table></blockquote><p>True if the client is a Mac.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_TOUCH"></a>IS_TOUCH</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">IS_TOUCH: 'ontouchstart' in document.documentElement</td></tr></table></blockquote><p>True if this device supports touchstart/-move/-end events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled devices).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_POINTER"></a>IS_POINTER</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">IS_POINTER: window.PointerEvent !</td></tr></table></blockquote><p>True if this device supports Microsoft pointer events (always false on Macs).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_LOCAL"></a>IS_LOCAL</h3><divclass=CBody><p>True if the documents location does not start with <ahref="http://"class=LURLtarget=_top>http://</a> or <ahref="https://"class=LURLtarget=_top>https://</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.isBrowserSupported"></a>isBrowserSupported</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">isBrowserSupported: function()</td></tr></table></blockquote><p>Returns true if the current browser is supported, that is, if <ahref="#mxClient.IS_VML"class=LVariableid=link34onMouseOver="ShowTip(event, 'tt20', 'link34')"onMouseOut="HideTip('tt20')">mxClient.IS_VML</a> or <ahref="#mxClient.IS_SVG"class=LVariableid=link35onMouseOver="ShowTip(event, 'tt18', 'link35')"onMouseOut="HideTip('tt18')">mxClient.IS_SVG</a> is true.</p><h4class=CHeading>Example</h4><blockquote><preclass="prettyprint">if (!mxClient.isBrowserSupported())
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.link"></a>link</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>link: function(</td><tdclass="PParameter prettyprint "nowrap>rel,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>href,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>doc</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a link node to the head of the document. Use this to add a stylesheet to the page as follows:</p><blockquote><preclass="prettyprint">mxClient.link('stylesheet', filename);</pre></blockquote><p>where filename is the (relative) URL of the stylesheet. The charset is hardcoded to ISO-8859-1 and the type is text/css.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>rel</td><tdclass=CDLDescription>String that represents the rel attribute of the link node.</td></tr><tr><tdclass=CDLEntry>href</td><tdclass=CDLDescription>String that represents the href attribute of the link node.</td></tr><tr><tdclass=CDLEntry>doc</td><tdclass=CDLDescription>Optional parent document of the link node.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.include"></a>include</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>include: function(</td><tdclass="PParameter prettyprint "nowrap>src</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Dynamically adds a script node to the document header.</p><p>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 production systems.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.dispose"></a>dispose</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">dispose: function()</td></tr></table></blockquote><p>Frees up memory in IE by resolving cyclic dependencies between the DOM and the JavaScript objects.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxLoadResources"></a>mxLoadResources</h3><divclass=CBody><p>Optional global config variable to toggle loading of the two resource files in <ahref="view/mxGraph-js.html#mxGraph"class=LClassid=link36onMouseOver="ShowTip(event, 'tt29', 'link36')"onMouseOut="HideTip('tt29')">mxGraph</a> and <ahref="editor/mxEditor-js.html#mxEditor"class=LClassid=link37onMouseOver="ShowTip(event, 'tt30', 'link37')"onMouseOut="HideTip('tt30')">mxEditor</a>. Default is true. NOTE: This is a global variable, not a variable of mxClient.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxForceIncludes"></a>mxForceIncludes</h3><divclass=CBody><p>Optional global config variable to force loading the JavaScript files in development mode. Default is undefined. NOTE: This is a global variable, not a variable of mxClient.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxResourceExtension"></a>mxResourceExtension</h3><divclass=CBody><p>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.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxLoadStylesheets"></a>mxLoadStylesheets</h3><divclass=CBody><p>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.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.basePath"></a>basePath</h3><divclass=CBody><p>Basepath for all URLs in the core without trailing slash. Default is ‘.’. Set mxBasePath prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
mxBasePath = '/path/to/core/directory';
</script>
<script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script></pre></blockquote><p>When using a relative path, the path is relative to the URL of the page that contains the assignment. Trailing slashes are automatically removed.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.imageBasePath"></a>imageBasePath</h3><divclass=CBody><p>Basepath for all images URLs in the core without trailing slash. Default is <ahref="#mxClient.basePath"class=LVariableid=link38onMouseOver="ShowTip(event, 'tt31', 'link38')"onMouseOut="HideTip('tt31')">mxClient.basePath</a> + ‘/images’. Set mxImageBasePath prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script></pre></blockquote><p>When using a relative path, the path is relative to the URL of the page that contains the assignment. Trailing slashes are automatically removed.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.language"></a>language</h3><divclass=CBody><p>Defines the language of the client, eg. en for english, de for german etc. The special value ‘none’ will disable all built-in internationalization and resource loading. See <ahref="util/mxResources-js.html#mxResources.getSpecialBundle"class=LFunctionid=link39onMouseOver="ShowTip(event, 'tt32', 'link39')"onMouseOut="HideTip('tt32')">mxResources.getSpecialBundle</a> for handling identifiers with and without a dash.</p><p>Set mxLanguage prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<script type="text/javascript" src="js/mxClient.js"></script></pre></blockquote><p>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. <ahref="editor/mxEditor-js.html#mxEditor.askZoomResource"class=LVariableid=link40onMouseOver="ShowTip(event, 'tt33', 'link40')"onMouseOut="HideTip('tt33')">mxEditor.askZoomResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.lastSavedResource"class=LVariableid=link41onMouseOver="ShowTip(event, 'tt34', 'link41')"onMouseOut="HideTip('tt34')">mxEditor.lastSavedResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.currentFileResource"class=LVariableid=link42onMouseOver="ShowTip(event, 'tt35', 'link42')"onMouseOut="HideTip('tt35')">mxEditor.currentFileResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.propertiesResource"class=LVariableid=link43onMouseOver="ShowTip(event, 'tt36', 'link43')"onMouseOut="HideTip('tt36')">mxEditor.propertiesResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.tasksResource"class=LVariableid=link44onMouseOver="ShowTip(event, 'tt37', 'link44')"onMouseOut="HideTip('tt37')">mxEditor.tasksResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.helpResource"class=LVariableid=link45onMouseOver="ShowTip(event, 'tt38', 'link45')"onMouseOut="HideTip('tt38')">mxEditor.helpResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.outlineResource"class=LVariableid=link46onMouseOver="ShowTip(event, 'tt39', 'link46')"onMouseOut="HideTip('tt39')">mxEditor.outlineResource</a>, <ahref="handler/mxElbowEdgeHandler-js.html#mxElbowEdgeHandler.doubleClickOrientationResource"class=LVariableid=link47onMouseOver="ShowTip(event, 'tt40', 'link47')"onMouseOut="HideTip('tt40')">mxElbowEdgeHandler.doubleClickOrientationResource</a>, <ahref="util/mxUtils-js.html#mxUtils.errorResource"class=LVariableid=link48onMouseOver="ShowTip(event, 'tt41', 'link48')"onMouseOut="HideTip('tt41')">mxUtils.errorResource</a>, <ahref="util/mxUtils-js.html#mxUtils.closeResource"class=LVariableid=link49onMouseOver="ShowTip(event, 'tt42', 'link49')"onMouseOut="HideTip('tt42')">mxUtils.closeResource</a>, <ahref="view/mxGraphSelectionModel-js.html#mxGraphSelectionModel.doneResource"class=LVariableid=link50onMouseOver="ShowTip(event, 'tt43', 'link50')"onMouseOut="HideTip('tt43')">mxGraphSelectionModel.doneResource</a>, <ahref="view/mxGraphSelectionModel-js.html#mxGraphSelectionModel.updatingSelectionResource"class=LVariableid=link51onMouseOver="ShowTip(event, 'tt44', 'link51')"onMouseOut="HideTip('tt44')">mxGraphSelectionModel.updatingSelectionResource</a>, <ahref="view/mxGraphView-js.html#mxGraphView.doneResource"class=LVariableid=link52onMouseOver="ShowTip(event, 'tt45', 'link52')"onMouseOut="HideTip('tt45')">mxGraphView.doneResource</a>, <ahref="view/mxGraphView-js.html#mxGraphView.updatingDocumentResource"class=LFunctionid=link53onMouseOver="ShowTip(event, 'tt46', 'link53')"onMouseOut="HideTip('tt46')">mxGraphView.updatingDocumentResource</a>, <mxCellRenderer.collapseExpandResource>, <ahref="view/mxGraph-js.html#mxGraph.containsValidationErrorsResource"class=LVariableid=link54onMouseOver="ShowTip(event, 'tt47', 'link54')"onMouseOut="HideTip('tt47')">mxGraph.containsValidationErrorsResource</a> and <ahref="view/mxGraph-js.html#mxGraph.alreadyConnectedResource"class=LVariableid=link55onMouseOver="ShowTip(event, 'tt48', 'link55')"onMouseOut="HideTip('tt48')">mxGraph.alreadyConnectedResource</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.defaultLanguage"></a>defaultLanguage</h3><divclass=CBody><p>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’.</p><p>Set mxDefaultLanguage prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.languages"></a>languages</h3><divclass=CBody><p>Defines the optional array of all supported language extensions. The default language does not have to be part of this list. See <ahref="util/mxResources-js.html#mxResources.isLanguageSupported"class=LFunctionid=link56onMouseOver="ShowTip(event, 'tt49', 'link56')"onMouseOut="HideTip('tt49')">mxResources.isLanguageSupported</a>.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<script type="text/javascript" src="js/mxClient.js"></script></pre></blockquote><p>This is used to avoid unnecessary requests to language files, ie. if a 404 will be returned.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">VERSION: '3.9.0'</td></tr></table></blockquote>Contains the current version of the mxGraph library. </div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IE: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'MSIE'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer 10 or below. </div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IE6: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'MSIE 6'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer 6.x.</div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_IE11: !!navigator.userAgent.match(</td><tdclass="PParameter prettyprint "nowrap>/Trident\/7\./</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer 11.x.</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_EDGE: !!navigator.userAgent.match(</td><tdclass="PParameter prettyprint "nowrap>/Edge\//</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>True if the current browser is Microsoft Edge.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>IS_QUIRKS: navigator.userAgent.indexOf(</td><tdclass="PParameter prettyprint "nowrap>'MSIE'</td><tdclass="PAfterParameters prettyprint "nowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer and it is in quirks mode.</div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "colspan=2>IS_EM: 'spellcheck' in document.createElement(</td></tr><tr><td> </td><tdclass="PParameter prettyprint "nowrapwidth=100%>'textarea'</td></tr><tr><tdclass="PAfterParameters prettyprint "colspan=2>) && document.documentMode</td></tr></table></td></tr></table></blockquote>True if the browser is IE11 in enterprise mode (IE8 standards mode).</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">VML_PREFIX: 'v'</td></tr></table></blockquote>Prefix for VML namespace in node names. </div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">OFFICE_PREFIX: 'o'</td></tr></table></blockquote>Prefix for VML office namespace in node names. </div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforePar