151 lines
65 KiB
HTML
151 lines
65 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Client | @maxgraph/core</title><meta name="description" content="Documentation for @maxgraph/core"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@maxgraph/core</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">@maxgraph/core</a></li><li><a href="Client.html">Client</a></li></ul><h1>Class Client</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Copyright (c) 2006-2017, JGraph Ltd
|
|
Copyright (c) 2006-2017, Gaudenz Alder</p>
|
|
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Client</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Client.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_ANDROID" class="tsd-kind-icon">IS_<wbr/>ANDROID</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_CHROMEAPP" class="tsd-kind-icon">IS_<wbr/>CHROMEAPP</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_CHROMEOS" class="tsd-kind-icon">IS_<wbr/>CHROMEOS</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_EDGE" class="tsd-kind-icon">IS_<wbr/>EDGE</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_FF" class="tsd-kind-icon">IS_<wbr/>FF</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_GC" class="tsd-kind-icon">IS_<wbr/>GC</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_IOS" class="tsd-kind-icon">IS_<wbr/>IOS</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_LOCAL" class="tsd-kind-icon">IS_<wbr/>LOCAL</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_MAC" class="tsd-kind-icon">IS_<wbr/>MAC</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_MT" class="tsd-kind-icon">IS_<wbr/>MT</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_NS" class="tsd-kind-icon">IS_<wbr/>NS</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_POINTER" class="tsd-kind-icon">IS_<wbr/>POINTER</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_SF" class="tsd-kind-icon">IS_<wbr/>SF</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_SVG" class="tsd-kind-icon">IS_<wbr/>SVG</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_TOUCH" class="tsd-kind-icon">IS_<wbr/>TOUCH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_WIN" class="tsd-kind-icon">IS_<wbr/>WIN</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#NO_FO" class="tsd-kind-icon">NO_<wbr/>FO</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#VERSION" class="tsd-kind-icon">VERSION</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#basePath" class="tsd-kind-icon">base<wbr/>Path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#defaultLanguage" class="tsd-kind-icon">default<wbr/>Language</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#imageBasePath" class="tsd-kind-icon">image<wbr/>Base<wbr/>Path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#language" class="tsd-kind-icon">language</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#languages" class="tsd-kind-icon">languages</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxForceIncludes" class="tsd-kind-icon">mx<wbr/>Force<wbr/>Includes</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxLoadResources" class="tsd-kind-icon">mx<wbr/>Load<wbr/>Resources</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxLoadStylesheets" class="tsd-kind-icon">mx<wbr/>Load<wbr/>Stylesheets</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxResourceExtension" class="tsd-kind-icon">mx<wbr/>Resource<wbr/>Extension</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#isBrowserSupported" class="tsd-kind-icon">is<wbr/>Browser<wbr/>Supported</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#link" class="tsd-kind-icon">link</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setBasePath" class="tsd-kind-icon">set<wbr/>Base<wbr/>Path</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setDefaultLanguage" class="tsd-kind-icon">set<wbr/>Default<wbr/>Language</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setForceIncludes" class="tsd-kind-icon">set<wbr/>Force<wbr/>Includes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setImageBasePath" class="tsd-kind-icon">set<wbr/>Image<wbr/>Base<wbr/>Path</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLanguage" class="tsd-kind-icon">set<wbr/>Language</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLanguages" class="tsd-kind-icon">set<wbr/>Languages</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLoadResources" class="tsd-kind-icon">set<wbr/>Load<wbr/>Resources</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLoadStylesheets" class="tsd-kind-icon">set<wbr/>Load<wbr/>Stylesheets</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setResourceExtension" class="tsd-kind-icon">set<wbr/>Resource<wbr/>Extension</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Client<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Client.html" class="tsd-signature-type" data-tsd-kind="Class">Client</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-returns-title">Returns <a href="Client.html" class="tsd-signature-type" data-tsd-kind="Class">Client</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_ANDROID" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>ANDROID</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>ANDROID<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L274">Client.ts:274</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the user agent contains Android.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_CHROMEAPP" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>CHROMEAPP</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>CHROMEAPP<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L292">Client.ts:292</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the this is running inside a Chrome App.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_CHROMEOS" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>CHROMEOS</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>CHROMEOS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L359">Client.ts:359</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the client is a Chrome OS.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_EDGE" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>EDGE</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>EDGE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L249">Client.ts:249</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the current browser is Microsoft Edge.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_FF" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>FF</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>FF<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L304">Client.ts:304</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the current browser is Firefox.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_GC" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>GC</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>GC<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L287">Client.ts:287</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the current browser is Google Chrome.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_IOS" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>IOS</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>IOS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L281">Client.ts:281</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the user agent is an iPad, iPhone or iPod.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_LOCAL" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>LOCAL</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>LOCAL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L380">Client.ts:380</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the documents location does not start with http:// or https://.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_MAC" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>MAC</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>MAC<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L353">Client.ts:353</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the client is a Mac.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_MT" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>MT</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>MT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L311">Client.ts:311</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_NS" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>NS</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>NS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L257">Client.ts:257</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the current browser is Netscape (including Firefox).</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_POINTER" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>POINTER</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>POINTER<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L372">Client.ts:372</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if this device supports Microsoft pointer events (always false on Macs).</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_SF" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>SF</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>SF<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L267">Client.ts:267</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the current browser is Safari.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_SVG" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>SVG</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>SVG<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L327">Client.ts:327</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the browser supports SVG.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_TOUCH" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>TOUCH</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>TOUCH<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L366">Client.ts:366</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if this device supports touchstart/-move/-end events (Apple iOS,
|
|
Android, Chromebook and Chrome Browser on touch-enabled devices).</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="IS_WIN" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> IS_<wbr/>WIN</h3><div class="tsd-signature tsd-kind-icon">IS_<wbr/>WIN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L347">Client.ts:347</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>True if the client is a Windows.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="NO_FO" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> NO_<wbr/>FO</h3><div class="tsd-signature tsd-kind-icon">NO_<wbr/>FO<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L335">Client.ts:335</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="VERSION" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> VERSION</h3><div class="tsd-signature tsd-kind-icon">VERSION<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = '4.2.2'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L23">Client.ts:23</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Class: Client</p>
|
|
</div><div><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>
|
|
<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 4.2.2.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="basePath" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> base<wbr/>Path</h3><div class="tsd-signature tsd-kind-icon">base<wbr/>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = '.'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L116">Client.ts:116</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Basepath for all URLs in the core without trailing slash. Default is '.'.
|
|
Set mxBasePath prior to loading the Client library as follows to override
|
|
this setting:</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> mxBasePath = '/path/to/core/directory';</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"/path/to/core/directory/js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
<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></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="defaultLanguage" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> default<wbr/>Language</h3><div class="tsd-signature tsd-kind-icon">default<wbr/>Language<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'en'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L213">Client.ts:213</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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>
|
|
</div><div><p>Set mxDefaultLanguage prior to loading the Client library as follows to override
|
|
this setting:</p>
|
|
<pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> mxDefaultLanguage = 'de';</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="imageBasePath" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> image<wbr/>Base<wbr/>Path</h3><div class="tsd-signature tsd-kind-icon">image<wbr/>Base<wbr/>Path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = '.'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L145">Client.ts:145</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Basepath for all images URLs in the core without trailing slash. Default is
|
|
<Client.basePath> + '/images'. Set mxImageBasePath prior to loading the
|
|
Client library as follows to override this setting:</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> mxImageBasePath = '/path/to/image/directory';</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"/path/to/core/directory/js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
<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></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="language" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> language</h3><div class="tsd-signature tsd-kind-icon">language<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L188">Client.ts:188</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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 {@link Resources#getSpecialBundle} for handling identifiers
|
|
with and without a dash.</p>
|
|
</div><div><p>Set mxLanguage prior to loading the Client library as follows to override
|
|
this setting:</p>
|
|
<pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> mxLanguage = 'en';</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
<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.
|
|
<Editor.askZoomResource>, <Editor.lastSavedResource>,
|
|
<Editor.currentFileResource>, <Editor.propertiesResource>,
|
|
<Editor.tasksResource>, <Editor.helpResource>, <Editor.outlineResource>,
|
|
{@link ElbowEdgeHandler#doubleClickOrientationResource}, {@link Utils#errorResource},
|
|
{@link Utils#closeResource}, {@link GraphSelectionModel#doneResource},
|
|
{@link GraphSelectionModel#updatingSelectionResource}, {@link GraphView#doneResource},
|
|
{@link GraphView#updatingDocumentResource}, {@link CellRenderer#collapseExpandResource},
|
|
{@link Graph#containsValidationErrorsResource} and
|
|
{@link Graph#alreadyConnectedResource}.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="languages" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> languages</h3><div class="tsd-signature tsd-kind-icon">languages<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L238">Client.ts:238</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Defines the optional array of all supported language extensions. The default
|
|
language does not have to be part of this list. See
|
|
{@link Resources#isLanguageSupported}.</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> mxLanguages = ['de', 'it', 'fr'];</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
<p>This is used to avoid unnecessary requests to language files, ie. if a 404
|
|
will be returned.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="mxForceIncludes" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> mx<wbr/>Force<wbr/>Includes</h3><div class="tsd-signature tsd-kind-icon">mx<wbr/>Force<wbr/>Includes<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L77">Client.ts:77</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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 Client.</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> let mxForceIncludes = false;</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"/path/to/core/directory/js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="mxLoadResources" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> mx<wbr/>Load<wbr/>Resources</h3><div class="tsd-signature tsd-kind-icon">mx<wbr/>Load<wbr/>Resources<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L59">Client.ts:59</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional global config variable to toggle loading of the two resource files
|
|
in <a href="Graph.html">Graph</a> and <Editor>. Default is true. NOTE: This is a global variable,
|
|
not a variable of Client. If this is false, you can use <Client.loadResources>
|
|
with its callback to load the default bundles asynchronously.</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> let mxLoadResources = false;</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"/path/to/core/directory/js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="mxLoadStylesheets" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> mx<wbr/>Load<wbr/>Stylesheets</h3><div class="tsd-signature tsd-kind-icon">mx<wbr/>Load<wbr/>Stylesheets<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L95">Client.ts:95</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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 Client.</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> let mxLoadStylesheets = false;</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"/path/to/core/directory/js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static"><a id="mxResourceExtension" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> mx<wbr/>Resource<wbr/>Extension</h3><div class="tsd-signature tsd-kind-icon">mx<wbr/>Resource<wbr/>Extension<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = '.txt'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L36">Client.ts:36</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<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 Client.</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-11">></span><br/><span class="hl-1"> let mxResourceExtension = '.txt';</span><br/><span class="hl-11"></</span><span class="hl-12">script</span><span class="hl-11">></span><br/><span class="hl-11"><</span><span class="hl-12">script</span><span class="hl-1"> </span><span class="hl-13">type</span><span class="hl-1">=</span><span class="hl-6">"text/javascript"</span><span class="hl-1"> </span><span class="hl-13">src</span><span class="hl-1">=</span><span class="hl-6">"/path/to/core/directory/js/Client.js"</span><span class="hl-11">></</span><span class="hl-12">script</span><span class="hl-11">></span>
|
|
</code></pre>
|
|
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="isBrowserSupported" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> is<wbr/>Browser<wbr/>Supported</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">is<wbr/>Browser<wbr/>Supported<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L398">Client.ts:398</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the current browser is supported, that is, if
|
|
<Client.IS_SVG> is true.</p>
|
|
</div><div><p>Example:</p>
|
|
<pre><code class="language-javascript"><span class="hl-5">if</span><span class="hl-1"> (!</span><span class="hl-0">Client</span><span class="hl-1">.</span><span class="hl-2">isBrowserSupported</span><span class="hl-1">())</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-0">mxUtils</span><span class="hl-1">.</span><span class="hl-2">error</span><span class="hl-1">(</span><span class="hl-6">'Browser is not supported!'</span><span class="hl-1">, </span><span class="hl-8">200</span><span class="hl-1">, </span><span class="hl-3">false</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
|
|
</code></pre>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="link" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> link</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">link<span class="tsd-signature-symbol">(</span>rel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, href<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, doc<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Document</span>, id<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L418">Client.ts:418</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Adds a link node to the head of the document. Use this
|
|
to add a stylesheet to the page as follows:</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-0">Client</span><span class="hl-1">.</span><span class="hl-2">link</span><span class="hl-1">(</span><span class="hl-6">'stylesheet'</span><span class="hl-1">, </span><span class="hl-0">filename</span><span class="hl-1">);</span>
|
|
</code></pre>
|
|
<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>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>rel: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the rel attribute of the link node.</p>
|
|
</div></div></li><li><h5>href: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>String that represents the href attribute of the link node.</p>
|
|
</div></div></li><li><h5>doc: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Document</span><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional parent document of the link node.</p>
|
|
</div></div></li><li><h5>id: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>unique id for the link element to check if it already exists</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setBasePath" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Base<wbr/>Path</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Base<wbr/>Path<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L118">Client.ts:118</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setDefaultLanguage" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Default<wbr/>Language</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Default<wbr/>Language<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L215">Client.ts:215</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setForceIncludes" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Force<wbr/>Includes</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Force<wbr/>Includes<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L79">Client.ts:79</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setImageBasePath" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Image<wbr/>Base<wbr/>Path</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Image<wbr/>Base<wbr/>Path<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L147">Client.ts:147</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setLanguage" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Language</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Language<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L190">Client.ts:190</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setLanguages" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Languages</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Languages<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L240">Client.ts:240</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setLoadResources" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Load<wbr/>Resources</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Load<wbr/>Resources<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L61">Client.ts:61</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setLoadStylesheets" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Load<wbr/>Stylesheets</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Load<wbr/>Stylesheets<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L97">Client.ts:97</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="setResourceExtension" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> set<wbr/>Resource<wbr/>Extension</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">set<wbr/>Resource<wbr/>Extension<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/Client.ts#L38">Client.ts:38</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/DomHelpers.html">Dom<wbr/>Helpers</a></li><li class=" tsd-kind-namespace"><a href="../modules/cloneUtils.html">clone<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/constants.html">constants</a></li><li class=" tsd-kind-namespace"><a href="../modules/domUtils.html">dom<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/eventUtils.html">event<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/gestureUtils.html">gesture<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/mathUtils.html">math<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/stringUtils.html">string<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/styleUtils.html">style<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/xmlUtils.html">xml<wbr/>Utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="Client.html" class="tsd-kind-icon">Client</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="Client.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_ANDROID" class="tsd-kind-icon">IS_<wbr/>ANDROID</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_CHROMEAPP" class="tsd-kind-icon">IS_<wbr/>CHROMEAPP</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_CHROMEOS" class="tsd-kind-icon">IS_<wbr/>CHROMEOS</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_EDGE" class="tsd-kind-icon">IS_<wbr/>EDGE</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_FF" class="tsd-kind-icon">IS_<wbr/>FF</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_GC" class="tsd-kind-icon">IS_<wbr/>GC</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_IOS" class="tsd-kind-icon">IS_<wbr/>IOS</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_LOCAL" class="tsd-kind-icon">IS_<wbr/>LOCAL</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_MAC" class="tsd-kind-icon">IS_<wbr/>MAC</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_MT" class="tsd-kind-icon">IS_<wbr/>MT</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_NS" class="tsd-kind-icon">IS_<wbr/>NS</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_POINTER" class="tsd-kind-icon">IS_<wbr/>POINTER</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_SF" class="tsd-kind-icon">IS_<wbr/>SF</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_SVG" class="tsd-kind-icon">IS_<wbr/>SVG</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_TOUCH" class="tsd-kind-icon">IS_<wbr/>TOUCH</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#IS_WIN" class="tsd-kind-icon">IS_<wbr/>WIN</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#NO_FO" class="tsd-kind-icon">NO_<wbr/>FO</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#VERSION" class="tsd-kind-icon">VERSION</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#basePath" class="tsd-kind-icon">base<wbr/>Path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#defaultLanguage" class="tsd-kind-icon">default<wbr/>Language</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#imageBasePath" class="tsd-kind-icon">image<wbr/>Base<wbr/>Path</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#language" class="tsd-kind-icon">language</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#languages" class="tsd-kind-icon">languages</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxForceIncludes" class="tsd-kind-icon">mx<wbr/>Force<wbr/>Includes</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxLoadResources" class="tsd-kind-icon">mx<wbr/>Load<wbr/>Resources</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxLoadStylesheets" class="tsd-kind-icon">mx<wbr/>Load<wbr/>Stylesheets</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="Client.html#mxResourceExtension" class="tsd-kind-icon">mx<wbr/>Resource<wbr/>Extension</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#isBrowserSupported" class="tsd-kind-icon">is<wbr/>Browser<wbr/>Supported</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#link" class="tsd-kind-icon">link</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setBasePath" class="tsd-kind-icon">set<wbr/>Base<wbr/>Path</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setDefaultLanguage" class="tsd-kind-icon">set<wbr/>Default<wbr/>Language</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setForceIncludes" class="tsd-kind-icon">set<wbr/>Force<wbr/>Includes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setImageBasePath" class="tsd-kind-icon">set<wbr/>Image<wbr/>Base<wbr/>Path</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLanguage" class="tsd-kind-icon">set<wbr/>Language</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLanguages" class="tsd-kind-icon">set<wbr/>Languages</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLoadResources" class="tsd-kind-icon">set<wbr/>Load<wbr/>Resources</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setLoadStylesheets" class="tsd-kind-icon">set<wbr/>Load<wbr/>Stylesheets</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="Client.html#setResourceExtension" class="tsd-kind-icon">set<wbr/>Resource<wbr/>Extension</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html> |