maxGraph/docs/api/classes/StylesheetCodec.html

279 lines
94 KiB
HTML

<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>StylesheetCodec | @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="StylesheetCodec.html">StylesheetCodec</a></li></ul><h1>Class StylesheetCodec</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>Codec for <a href="Stylesheet.html">Stylesheet</a>s. This class is created and registered
dynamically at load time and used implicitly via <Codec>
and the <CodecRegistry>.</p>
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="ObjectCodec.html" class="tsd-signature-type" data-tsd-kind="Class">ObjectCodec</a><ul class="tsd-hierarchy"><li><span class="target">StylesheetCodec</span></li></ul></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 tsd-is-overwrite"><a href="StylesheetCodec.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-inherited"><a href="StylesheetCodec.html#exclude" class="tsd-kind-icon">exclude</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#idrefs" class="tsd-kind-icon">idrefs</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#mapping" class="tsd-kind-icon">mapping</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#reverse" class="tsd-kind-icon">reverse</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#template" class="tsd-kind-icon">template</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-static"><a href="StylesheetCodec.html#allowEval" class="tsd-kind-icon">allow<wbr/>Eval</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-inherited"><a href="StylesheetCodec.html#addObjectValue" class="tsd-kind-icon">add<wbr/>Object<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#afterDecode" class="tsd-kind-icon">after<wbr/>Decode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#afterEncode" class="tsd-kind-icon">after<wbr/>Encode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#beforeDecode" class="tsd-kind-icon">before<wbr/>Decode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#beforeEncode" class="tsd-kind-icon">before<wbr/>Encode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#cloneTemplate" class="tsd-kind-icon">clone<wbr/>Template</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#convertAttributeFromXml" class="tsd-kind-icon">convert<wbr/>Attribute<wbr/>From<wbr/>Xml</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#convertAttributeToXml" class="tsd-kind-icon">convert<wbr/>Attribute<wbr/>To<wbr/>Xml</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="StylesheetCodec.html#decode" class="tsd-kind-icon">decode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeAttribute" class="tsd-kind-icon">decode<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeAttributes" class="tsd-kind-icon">decode<wbr/>Attributes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeChild" class="tsd-kind-icon">decode<wbr/>Child</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeChildren" class="tsd-kind-icon">decode<wbr/>Children</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeNode" class="tsd-kind-icon">decode<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="StylesheetCodec.html#encode" class="tsd-kind-icon">encode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#encodeObject" class="tsd-kind-icon">encode<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#encodeValue" class="tsd-kind-icon">encode<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getAttributeName" class="tsd-kind-icon">get<wbr/>Attribute<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getFieldName" class="tsd-kind-icon">get<wbr/>Field<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getFieldTemplate" class="tsd-kind-icon">get<wbr/>Field<wbr/>Template</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getName" class="tsd-kind-icon">get<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StylesheetCodec.html#getStringValue" class="tsd-kind-icon">get<wbr/>String<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isBooleanAttribute" class="tsd-kind-icon">is<wbr/>Boolean<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isExcluded" class="tsd-kind-icon">is<wbr/>Excluded</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isIgnoredAttribute" class="tsd-kind-icon">is<wbr/>Ignored<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isNumericAttribute" class="tsd-kind-icon">is<wbr/>Numeric<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isReference" class="tsd-kind-icon">is<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#processInclude" class="tsd-kind-icon">process<wbr/>Include</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#writeAttribute" class="tsd-kind-icon">write<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#writeComplexAttribute" class="tsd-kind-icon">write<wbr/>Complex<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#writePrimitiveAttribute" class="tsd-kind-icon">write<wbr/>Primitive<wbr/>Attribute</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 tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Stylesheet<wbr/>Codec<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="StylesheetCodec.html" class="tsd-signature-type" data-tsd-kind="Class">StylesheetCodec</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/style/Stylesheet.ts#L245">view/style/Stylesheet.ts:245</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="StylesheetCodec.html" class="tsd-signature-type" data-tsd-kind="Class">StylesheetCodec</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-inherited"><a id="exclude" class="tsd-anchor"></a><h3>exclude</h3><div class="tsd-signature tsd-kind-icon">exclude<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#exclude">exclude</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L226">serialization/ObjectCodec.ts:226</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Array containing the variable names that should be
ignored by the codec.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="idrefs" class="tsd-anchor"></a><h3>idrefs</h3><div class="tsd-signature tsd-kind-icon">idrefs<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#idrefs">idrefs</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L233">serialization/ObjectCodec.ts:233</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Array containing the variable names that should be
turned into or converted from references. See
<a href="Codec.html#getId">Codec.getId</a> and <a href="Codec.html#getObject">Codec.getObject</a>.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="mapping" class="tsd-anchor"></a><h3>mapping</h3><div class="tsd-signature tsd-kind-icon">mapping<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#mapping">mapping</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L238">serialization/ObjectCodec.ts:238</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Maps from from fieldnames to XML attribute names.</p>
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="reverse" class="tsd-anchor"></a><h3>reverse</h3><div class="tsd-signature tsd-kind-icon">reverse<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#reverse">reverse</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L243">serialization/ObjectCodec.ts:243</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Maps from from XML attribute names to fieldnames.</p>
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="template" class="tsd-anchor"></a><h3>template</h3><div class="tsd-signature tsd-kind-icon">template<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#template">template</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L220">serialization/ObjectCodec.ts:220</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the template object associated with this codec.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-static"><a id="allowEval" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagStatic">Static</span> allow<wbr/>Eval</h3><div class="tsd-signature tsd-kind-icon">allow<wbr/>Eval<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"><p>Overrides <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#allowEval">allowEval</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/style/Stylesheet.ts#L254">view/style/Stylesheet.ts:254</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Static global switch that specifies if the use of eval is allowed for
evaluating text content. Default is true. Set this to false if stylesheets
may contain user input.</p>
</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-inherited"><a id="addObjectValue" class="tsd-anchor"></a><h3>add<wbr/>Object<wbr/>Value</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">add<wbr/>Object<wbr/>Value<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, fieldname<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, template<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#addObjectValue">addObjectValue</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L823">serialization/ObjectCodec.ts:823</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets the decoded child node as a value of the given object. If the
object is a map, then the value is added with the given fieldname as a
key. If the fieldname is not empty, then setFieldValue is called or
else, if the object is a collection, the value is added to the
collection. For strongly typed languages it may be required to
override this with the correct code to add an entry to an object.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li><li><h5>fieldname: <span class="tsd-signature-type">string</span></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li><li><h5>template: <span class="tsd-signature-type">any</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-inherited"><a id="afterDecode" class="tsd-anchor"></a><h3>after<wbr/>Decode</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">after<wbr/>Decode<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span>, obj<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#afterDecode">afterDecode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L889">serialization/ObjectCodec.ts:889</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Hook for subclassers to post-process the object after
decoding. This implementation returns the given object
without any changes. The return value of this method
is returned to the decoder from <a href="StylesheetCodec.html#decode">decode</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5></li><li><h5>node: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to be decoded.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object that represents the default decoding.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="afterEncode" class="tsd-anchor"></a><h3>after<wbr/>Encode</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">after<wbr/>Encode<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#afterEncode">afterEncode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L591">serialization/ObjectCodec.ts:591</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Hook for subclassers to post-process the node
for the given object after encoding and return the
post-processed node. This implementation returns
the input node. The return value of this method
is returned to the encoder from <a href="StylesheetCodec.html#encode">encode</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding process.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object to be encoded.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node that represents the default encoding.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Element</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="beforeDecode" class="tsd-anchor"></a><h3>before<wbr/>Decode</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">before<wbr/>Decode<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</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">Element</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#beforeDecode">beforeDecode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L875">serialization/ObjectCodec.ts:875</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Hook for subclassers to pre-process the node for
the specified object and return the node to be
used for further processing by <a href="StylesheetCodec.html#decode">decode</a>.
The object is created based on the template in the
calling method and is never null. This implementation
returns the input node. The return value of this
function is used in <a href="StylesheetCodec.html#decode">decode</a> to perform
the default decoding into the given object.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to be decoded.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object to encode the node into.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="beforeEncode" class="tsd-anchor"></a><h3>before<wbr/>Encode</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">before<wbr/>Encode<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#beforeEncode">beforeEncode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L576">serialization/ObjectCodec.ts:576</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Hook for subclassers to pre-process the object before
encoding. This returns the input object. The return
value of this function is used in <a href="StylesheetCodec.html#encode">encode</a> to perform
the default encoding into the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding process.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object to be encoded.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to encode the object into.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="cloneTemplate" class="tsd-anchor"></a><h3>clone<wbr/>Template</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">clone<wbr/>Template<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#cloneTemplate">cloneTemplate</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L259">serialization/ObjectCodec.ts:259</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns a new instance of the template for this codec.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="convertAttributeFromXml" class="tsd-anchor"></a><h3>convert<wbr/>Attribute<wbr/>From<wbr/>Xml</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">convert<wbr/>Attribute<wbr/>From<wbr/>Xml<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, attr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#convertAttributeFromXml">convertAttributeFromXml</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L531">serialization/ObjectCodec.ts:531</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Converts booleans and numeric values to the respective types. Values are
numeric if <a href="StylesheetCodec.html#isNumericAttribute">isNumericAttribute</a> returns true.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>attr: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML attribute to be converted.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to convert the attribute for.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="convertAttributeToXml" class="tsd-anchor"></a><h3>convert<wbr/>Attribute<wbr/>To<wbr/>Xml</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">convert<wbr/>Attribute<wbr/>To<wbr/>Xml<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, name<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>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#convertAttributeToXml">convertAttributeToXml</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L501">serialization/ObjectCodec.ts:501</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Converts true to &quot;1&quot; and false to &quot;0&quot; is <a href="StylesheetCodec.html#isBooleanAttribute">isBooleanAttribute</a> returns true.
All other values are not converted.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding process.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to convert the attribute for.</p>
</div></div></li><li><h5>name: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Name of the attribute to be converted.</p>
</div></div></li><li><h5>value: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Value to be converted.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="decode" class="tsd-anchor"></a><h3>decode</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">decode<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, _node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, into<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#decode">decode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/style/Stylesheet.ts#L342">view/style/Stylesheet.ts:342</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Reads a sequence of the following child nodes
and attributes:</p>
</div><div><p>Child Nodes:</p>
<p>add - Adds a new style.</p>
<p>Attributes:</p>
<p>as - Name of the style.
extend - Name of the style to inherit from.</p>
<p>Each node contains another sequence of add and remove nodes with the following
attributes:</p>
<p>as - Name of the style (see {@link Constants}).
value - Value for the style.</p>
<p>Instead of the value-attribute, one can put Javascript expressions into
the node as follows if &lt;StylesheetCodec.allowEval&gt; is true:
<add as="perimeter">mxPerimeter.RectanglePerimeter</add></p>
<p>A remove node will remove the entry with the name given in the as-attribute
from the style.</p>
<p>Example:</p>
<pre><code class="language-javascript"><span class="hl-11">&lt;</span><span class="hl-10">mxStylesheet</span><span class="hl-1"> </span><span class="hl-13">as</span><span class="hl-1">=</span><span class="hl-6">&quot;stylesheet&quot;</span><span class="hl-11">&gt;</span><br/><span class="hl-1"> </span><span class="hl-11">&lt;</span><span class="hl-12">add</span><span class="hl-1"> </span><span class="hl-13">as</span><span class="hl-1">=</span><span class="hl-6">&quot;text&quot;</span><span class="hl-11">&gt;</span><br/><span class="hl-1"> </span><span class="hl-11">&lt;</span><span class="hl-12">add</span><span class="hl-1"> </span><span class="hl-13">as</span><span class="hl-1">=</span><span class="hl-6">&quot;fontSize&quot;</span><span class="hl-1"> </span><span class="hl-13">value</span><span class="hl-1">=</span><span class="hl-6">&quot;12&quot;</span><span class="hl-11">/&gt;</span><br/><span class="hl-1"> </span><span class="hl-11">&lt;/</span><span class="hl-12">add</span><span class="hl-11">&gt;</span><br/><span class="hl-1"> </span><span class="hl-11">&lt;</span><span class="hl-12">add</span><span class="hl-1"> </span><span class="hl-13">as</span><span class="hl-1">=</span><span class="hl-6">&quot;defaultVertex&quot;</span><span class="hl-1"> </span><span class="hl-13">extend</span><span class="hl-1">=</span><span class="hl-6">&quot;text&quot;</span><span class="hl-11">&gt;</span><br/><span class="hl-1"> </span><span class="hl-11">&lt;</span><span class="hl-12">add</span><span class="hl-1"> </span><span class="hl-13">as</span><span class="hl-1">=</span><span class="hl-6">&quot;shape&quot;</span><span class="hl-1"> </span><span class="hl-13">value</span><span class="hl-1">=</span><span class="hl-6">&quot;rectangle&quot;</span><span class="hl-11">/&gt;</span><br/><span class="hl-1"> </span><span class="hl-11">&lt;/</span><span class="hl-12">add</span><span class="hl-11">&gt;</span><br/><span class="hl-11">&lt;/</span><span class="hl-10">mxStylesheet</span><span class="hl-11">&gt;</span>
</code></pre>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5></li><li><h5>_node: <span class="tsd-signature-type">Element</span></h5></li><li><h5>into: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="decodeAttribute" class="tsd-anchor"></a><h3>decode<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">decode<wbr/>Attribute<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, attr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, obj<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#decodeAttribute">decodeAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L712">serialization/ObjectCodec.ts:712</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Reads the given attribute into the specified object.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>attr: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML attribute to be decoded.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to encode the attribute into.</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-inherited"><a id="decodeAttributes" class="tsd-anchor"></a><h3>decode<wbr/>Attributes</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">decode<wbr/>Attributes<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#decodeAttributes">decodeAttributes</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L683">serialization/ObjectCodec.ts:683</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Decodes all attributes of the given node using <a href="StylesheetCodec.html#decodeAttribute">decodeAttribute</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to be decoded.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to encode the node into.</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-inherited"><a id="decodeChild" class="tsd-anchor"></a><h3>decode<wbr/>Child</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">decode<wbr/>Child<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, child<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#decodeChild">decodeChild</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L771">serialization/ObjectCodec.ts:771</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Reads the specified child into the given object.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>child: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML child element to be decoded.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to encode the node into.</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-inherited"><a id="decodeChildren" class="tsd-anchor"></a><h3>decode<wbr/>Children</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">decode<wbr/>Children<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, obj<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#decodeChildren">decodeChildren</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L750">serialization/ObjectCodec.ts:750</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Decodes all children of the given node using <a href="StylesheetCodec.html#decodeChild">decodeChild</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to be decoded.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to encode the node into.</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-inherited"><a id="decodeNode" class="tsd-anchor"></a><h3>decode<wbr/>Node</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">decode<wbr/>Node<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#decodeNode">decodeNode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L669">serialization/ObjectCodec.ts:669</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Calls <a href="StylesheetCodec.html#decodeAttributes">decodeAttributes</a> and <a href="StylesheetCodec.html#decodeChildren">decodeChildren</a> for the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to be decoded.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to encode the node into.</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-overwrite"><a id="encode" class="tsd-anchor"></a><h3>encode</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">encode<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#encode">encode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/style/Stylesheet.ts#L260">view/style/Stylesheet.ts:260</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Encodes a stylesheet. See <decode> for a description of the
format.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Element</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="encodeObject" class="tsd-anchor"></a><h3>encode<wbr/>Object</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">encode<wbr/>Object<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#encodeObject">encodeObject</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L383">serialization/ObjectCodec.ts:383</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Encodes the value of each member in then given obj into the given node using
<a href="StylesheetCodec.html#encodeValue">encodeValue</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding process.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object to be encoded.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node that contains the encoded object.</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-inherited"><a id="encodeValue" class="tsd-anchor"></a><h3>encode<wbr/>Value</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">encode<wbr/>Value<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, name<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>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#encodeValue">encodeValue</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L411">serialization/ObjectCodec.ts:411</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Converts the given value according to the mappings
and id-refs in this codec and uses <a href="StylesheetCodec.html#writeAttribute">writeAttribute</a>
to write the attribute into the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding process.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object whose property is going to be encoded.</p>
</div></div></li><li><h5>name: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node that contains the encoded object.</p>
</div></div></li><li><h5>value: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Value of the property to be encoded.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node that contains the encoded object.</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-inherited"><a id="getAttributeName" class="tsd-anchor"></a><h3>get<wbr/>Attribute<wbr/>Name</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Attribute<wbr/>Name<span class="tsd-signature-symbol">(</span>fieldname<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">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#getAttributeName">getAttributeName</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L287">serialization/ObjectCodec.ts:287</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the attributename for the given fieldname.
Looks up the value in the <a href="StylesheetCodec.html#mapping">mapping</a> or returns
the input if there is no mapping for the
given name.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>fieldname: <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">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getFieldName" class="tsd-anchor"></a><h3>get<wbr/>Field<wbr/>Name</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Field<wbr/>Name<span class="tsd-signature-symbol">(</span>attributename<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">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#getFieldName">getFieldName</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L269">serialization/ObjectCodec.ts:269</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the fieldname for the given attributename.
Looks up the value in the <a href="StylesheetCodec.html#reverse">reverse</a> mapping or returns
the input if there is no reverse mapping for the
given name.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>attributename: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getFieldTemplate" class="tsd-anchor"></a><h3>get<wbr/>Field<wbr/>Template</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Field<wbr/>Template<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, fieldname<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, child<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#getFieldTemplate">getFieldTemplate</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L804">serialization/ObjectCodec.ts:804</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the template instance for the given field. This returns the
value of the field, null if the value is an array or an empty collection
if the value is a collection. The value is then used to populate the
field for a new instance. For strongly typed languages it may be
required to override this to return the correct collection instance
based on the encoded child.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li><li><h5>fieldname: <span class="tsd-signature-type">string</span></h5></li><li><h5>child: <span class="tsd-signature-type">Element</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getName" class="tsd-anchor"></a><h3>get<wbr/>Name</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Name<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#getName">getName</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L252">serialization/ObjectCodec.ts:252</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the name used for the nodenames and lookup of the codec when
classes are encoded and nodes are decoded. For classes to work with
this the codec registry automatically adds an alias for the classname
if that is different than what this returns. The default implementation
returns the classname of the template class.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getStringValue" class="tsd-anchor"></a><h3>get<wbr/>String<wbr/>Value</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>String<wbr/>Value<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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/view/style/Stylesheet.ts#L292">view/style/Stylesheet.ts:292</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the string for encoding the given value.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>key: <span class="tsd-signature-type">string</span></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isBooleanAttribute" class="tsd-anchor"></a><h3>is<wbr/>Boolean<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Boolean<wbr/>Attribute<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, name<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>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#isBooleanAttribute">isBooleanAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L519">serialization/ObjectCodec.ts:519</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given object attribute is a boolean value.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding process.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to convert the attribute for.</p>
</div></div></li><li><h5>name: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Name of the attribute to be converted.</p>
</div></div></li><li><h5>value: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Value of the attribute to be converted.</p>
</div></div></li></ul><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-inherited"><a id="isExcluded" class="tsd-anchor"></a><h3>is<wbr/>Excluded</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Excluded<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, attr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, write<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">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#isExcluded">isExcluded</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L309">serialization/ObjectCodec.ts:309</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given attribute is to be ignored by the codec. This
implementation returns true if the given fieldname is in <a href="StylesheetCodec.html#exclude">exclude</a> or
if the fieldname equals <a href="ObjectIdentity.html#FIELD_NAME">ObjectIdentity.FIELD_NAME</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object instance that contains the field.</p>
</div></div></li><li><h5>attr: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Fieldname of the field.</p>
</div></div></li><li><h5>value: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Value of the field.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> write: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Boolean indicating if the field is being encoded or decoded.
Write is true if the field is being encoded, else it is being decoded.</p>
</div></div></li></ul><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-inherited"><a id="isIgnoredAttribute" class="tsd-anchor"></a><h3>is<wbr/>Ignored<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Ignored<wbr/>Attribute<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, attr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, obj<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#isIgnoredAttribute">isIgnoredAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L701">serialization/ObjectCodec.ts:701</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given attribute should be ignored. This implementation
returns true if the attribute name is &quot;as&quot; or &quot;id&quot;.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>attr: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML attribute to be decoded.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to encode the attribute into.</p>
</div></div></li></ul><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-inherited"><a id="isNumericAttribute" class="tsd-anchor"></a><h3>is<wbr/>Numeric<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Numeric<wbr/>Attribute<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, attr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#isNumericAttribute">isNumericAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L552">serialization/ObjectCodec.ts:552</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given XML attribute is or should be a numeric value.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the decoding process.</p>
</div></div></li><li><h5>attr: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML attribute to be converted.</p>
</div></div></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Objec to convert the attribute for.</p>
</div></div></li></ul><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-inherited"><a id="isReference" class="tsd-anchor"></a><h3>is<wbr/>Reference</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Reference<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, attr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, write<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">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#isReference">isReference</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L324">serialization/ObjectCodec.ts:324</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given fieldname is to be treated
as a textual reference (ID). This implementation returns
true if the given fieldname is in <a href="StylesheetCodec.html#idrefs">idrefs</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Object instance that contains the field.</p>
</div></div></li><li><h5>attr: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Fieldname of the field.</p>
</div></div></li><li><h5>value: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Value of the field.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> write: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Boolean indicating if the field is being encoded or decoded.
Write is true if the field is being encoded, else it is being decoded.</p>
</div></div></li></ul><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-inherited"><a id="processInclude" class="tsd-anchor"></a><h3>process<wbr/>Include</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">process<wbr/>Include<span class="tsd-signature-symbol">(</span>dec<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span>, into<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#processInclude">processInclude</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L843">serialization/ObjectCodec.ts:843</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given node is an include directive and
executes the include by decoding the XML document. Returns
false if the given node is not an include directive.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dec: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p><a href="Codec.html">Codec</a> that controls the encoding/decoding process.</p>
</div></div></li><li><h5>node: <span class="tsd-signature-type">Element</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>XML node to be checked.</p>
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> into: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Optional object to pass-thru to the codec.</p>
</div></div></li></ul><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-inherited"><a id="writeAttribute" class="tsd-anchor"></a><h3>write<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">write<wbr/>Attribute<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, name<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>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#writeAttribute">writeAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L440">serialization/ObjectCodec.ts:440</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Writes the given value into node using <a href="StylesheetCodec.html#writePrimitiveAttribute">writePrimitiveAttribute</a>
or <a href="StylesheetCodec.html#writeComplexAttribute">writeComplexAttribute</a> depending on the type of the value.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li><li><h5>name: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li><li><h5>node: <span class="tsd-signature-type">Element</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-inherited"><a id="writeComplexAttribute" class="tsd-anchor"></a><h3>write<wbr/>Complex<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">write<wbr/>Complex<wbr/>Attribute<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, name<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>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#writeComplexAttribute">writeComplexAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L478">serialization/ObjectCodec.ts:478</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Writes the given value as a child node of the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li><li><h5>name: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li><li><h5>node: <span class="tsd-signature-type">Element</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-inherited"><a id="writePrimitiveAttribute" class="tsd-anchor"></a><h3>write<wbr/>Primitive<wbr/>Attribute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">write<wbr/>Primitive<wbr/>Attribute<span class="tsd-signature-symbol">(</span>enc<span class="tsd-signature-symbol">: </span><a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a>, obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, name<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>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</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"><p>Inherited from <a href="ObjectCodec.html">ObjectCodec</a>.<a href="ObjectCodec.html#writePrimitiveAttribute">writePrimitiveAttribute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/serialization/ObjectCodec.ts#L451">serialization/ObjectCodec.ts:451</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Writes the given value as an attribute of the given node.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>enc: <a href="Codec.html" class="tsd-signature-type" data-tsd-kind="Class">Codec</a></h5></li><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li><li><h5>name: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li><li><h5>node: <span class="tsd-signature-type">Element</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="StylesheetCodec.html" class="tsd-kind-icon">Stylesheet<wbr/>Codec</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="StylesheetCodec.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#exclude" class="tsd-kind-icon">exclude</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#idrefs" class="tsd-kind-icon">idrefs</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#mapping" class="tsd-kind-icon">mapping</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#reverse" class="tsd-kind-icon">reverse</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#template" class="tsd-kind-icon">template</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite tsd-is-static"><a href="StylesheetCodec.html#allowEval" class="tsd-kind-icon">allow<wbr/>Eval</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#addObjectValue" class="tsd-kind-icon">add<wbr/>Object<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#afterDecode" class="tsd-kind-icon">after<wbr/>Decode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#afterEncode" class="tsd-kind-icon">after<wbr/>Encode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#beforeDecode" class="tsd-kind-icon">before<wbr/>Decode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#beforeEncode" class="tsd-kind-icon">before<wbr/>Encode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#cloneTemplate" class="tsd-kind-icon">clone<wbr/>Template</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#convertAttributeFromXml" class="tsd-kind-icon">convert<wbr/>Attribute<wbr/>From<wbr/>Xml</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#convertAttributeToXml" class="tsd-kind-icon">convert<wbr/>Attribute<wbr/>To<wbr/>Xml</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="StylesheetCodec.html#decode" class="tsd-kind-icon">decode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeAttribute" class="tsd-kind-icon">decode<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeAttributes" class="tsd-kind-icon">decode<wbr/>Attributes</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeChild" class="tsd-kind-icon">decode<wbr/>Child</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeChildren" class="tsd-kind-icon">decode<wbr/>Children</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#decodeNode" class="tsd-kind-icon">decode<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="StylesheetCodec.html#encode" class="tsd-kind-icon">encode</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#encodeObject" class="tsd-kind-icon">encode<wbr/>Object</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#encodeValue" class="tsd-kind-icon">encode<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getAttributeName" class="tsd-kind-icon">get<wbr/>Attribute<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getFieldName" class="tsd-kind-icon">get<wbr/>Field<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getFieldTemplate" class="tsd-kind-icon">get<wbr/>Field<wbr/>Template</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#getName" class="tsd-kind-icon">get<wbr/>Name</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="StylesheetCodec.html#getStringValue" class="tsd-kind-icon">get<wbr/>String<wbr/>Value</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isBooleanAttribute" class="tsd-kind-icon">is<wbr/>Boolean<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isExcluded" class="tsd-kind-icon">is<wbr/>Excluded</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isIgnoredAttribute" class="tsd-kind-icon">is<wbr/>Ignored<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isNumericAttribute" class="tsd-kind-icon">is<wbr/>Numeric<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#isReference" class="tsd-kind-icon">is<wbr/>Reference</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#processInclude" class="tsd-kind-icon">process<wbr/>Include</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#writeAttribute" class="tsd-kind-icon">write<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#writeComplexAttribute" class="tsd-kind-icon">write<wbr/>Complex<wbr/>Attribute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="StylesheetCodec.html#writePrimitiveAttribute" class="tsd-kind-icon">write<wbr/>Primitive<wbr/>Attribute</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>