mirror of
https://github.com/dolanmiu/docx.git
synced 2026-11-30 16:47:55 +01:00
Deploying to gh-pages from @ dolanmiu/docx@ea08b9677c 🚀
This commit is contained in:
@@ -19,23 +19,23 @@
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="tsd-tag-publicApi">
|
||||
<h4 class="tsd-anchor-link" id="public-api">Public Api<a href="#public-api" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><h2 id="xsd-schema" class="tsd-anchor-link">XSD Schema<a href="#xsd-schema" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2>
|
||||
<pre><code class="xml"><span class="hl-9"><</span><span class="hl-10">xsd:complexType</span><span class="hl-1"> </span><span class="hl-11">name</span><span class="hl-1">=</span><span class="hl-12">"CT_SSub"</span><span class="hl-9">></span><br/><span class="hl-1"> </span><span class="hl-9"><</span><span class="hl-10">xsd:sequence</span><span class="hl-9">></span><br/><span class="hl-1"> </span><span class="hl-9"><</span><span class="hl-10">xsd:element</span><span class="hl-1"> </span><span class="hl-11">name</span><span class="hl-1">=</span><span class="hl-12">"sSubPr"</span><span class="hl-1"> </span><span class="hl-11">type</span><span class="hl-1">=</span><span class="hl-12">"CT_SSubPr"</span><span class="hl-1"> </span><span class="hl-11">minOccurs</span><span class="hl-1">=</span><span class="hl-12">"0"</span><span class="hl-9">/></span><br/><span class="hl-1"> </span><span class="hl-9"><</span><span class="hl-10">xsd:element</span><span class="hl-1"> </span><span class="hl-11">name</span><span class="hl-1">=</span><span class="hl-12">"e"</span><span class="hl-1"> </span><span class="hl-11">type</span><span class="hl-1">=</span><span class="hl-12">"CT_OMathArg"</span><span class="hl-9">/></span><br/><span class="hl-1"> </span><span class="hl-9"><</span><span class="hl-10">xsd:element</span><span class="hl-1"> </span><span class="hl-11">name</span><span class="hl-1">=</span><span class="hl-12">"sub"</span><span class="hl-1"> </span><span class="hl-11">type</span><span class="hl-1">=</span><span class="hl-12">"CT_OMathArg"</span><span class="hl-9">/></span><br/><span class="hl-1"> </span><span class="hl-9"></</span><span class="hl-10">xsd:sequence</span><span class="hl-9">></span><br/><span class="hl-9"></</span><span class="hl-10">xsd:complexType</span><span class="hl-9">></span>
|
||||
<pre><code class="xml"><span class="hl-10"><</span><span class="hl-11">xsd:complexType</span><span class="hl-1"> </span><span class="hl-12">name</span><span class="hl-1">=</span><span class="hl-13">"CT_SSub"</span><span class="hl-10">></span><br/><span class="hl-1"> </span><span class="hl-10"><</span><span class="hl-11">xsd:sequence</span><span class="hl-10">></span><br/><span class="hl-1"> </span><span class="hl-10"><</span><span class="hl-11">xsd:element</span><span class="hl-1"> </span><span class="hl-12">name</span><span class="hl-1">=</span><span class="hl-13">"sSubPr"</span><span class="hl-1"> </span><span class="hl-12">type</span><span class="hl-1">=</span><span class="hl-13">"CT_SSubPr"</span><span class="hl-1"> </span><span class="hl-12">minOccurs</span><span class="hl-1">=</span><span class="hl-13">"0"</span><span class="hl-10">/></span><br/><span class="hl-1"> </span><span class="hl-10"><</span><span class="hl-11">xsd:element</span><span class="hl-1"> </span><span class="hl-12">name</span><span class="hl-1">=</span><span class="hl-13">"e"</span><span class="hl-1"> </span><span class="hl-12">type</span><span class="hl-1">=</span><span class="hl-13">"CT_OMathArg"</span><span class="hl-10">/></span><br/><span class="hl-1"> </span><span class="hl-10"><</span><span class="hl-11">xsd:element</span><span class="hl-1"> </span><span class="hl-12">name</span><span class="hl-1">=</span><span class="hl-13">"sub"</span><span class="hl-1"> </span><span class="hl-12">type</span><span class="hl-1">=</span><span class="hl-13">"CT_OMathArg"</span><span class="hl-10">/></span><br/><span class="hl-1"> </span><span class="hl-10"></</span><span class="hl-11">xsd:sequence</span><span class="hl-10">></span><br/><span class="hl-10"></</span><span class="hl-11">xsd:complexType</span><span class="hl-10">></span>
|
||||
</code><button type="button">Copy</button></pre>
|
||||
|
||||
</div>
|
||||
<div class="tsd-tag-example">
|
||||
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="typescript"><span class="hl-8">// x with subscript 1</span><br/><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MathSubScript</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-2">children:</span><span class="hl-1"> [</span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MathRun</span><span class="hl-1">(</span><span class="hl-3">"x"</span><span class="hl-1">)],</span><br/><span class="hl-1"> </span><span class="hl-2">subScript:</span><span class="hl-1"> [</span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MathRun</span><span class="hl-1">(</span><span class="hl-3">"1"</span><span class="hl-1">)],</span><br/><span class="hl-1">});</span>
|
||||
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="typescript"><span class="hl-9">// x with subscript 1</span><br/><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MathSubScript</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-2">children:</span><span class="hl-1"> [</span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MathRun</span><span class="hl-1">(</span><span class="hl-3">"x"</span><span class="hl-1">)],</span><br/><span class="hl-1"> </span><span class="hl-2">subScript:</span><span class="hl-1"> [</span><span class="hl-4">new</span><span class="hl-1"> </span><span class="hl-6">MathRun</span><span class="hl-1">(</span><span class="hl-3">"1"</span><span class="hl-1">)],</span><br/><span class="hl-1">});</span>
|
||||
</code><button type="button">Copy</button></pre>
|
||||
|
||||
</div></div></section>
|
||||
<section class="tsd-panel tsd-hierarchy" data-refl="1474">
|
||||
<section class="tsd-panel tsd-hierarchy" data-refl="1475">
|
||||
<h4>Hierarchy (<a href="../hierarchy.html#index.MathSubScript">View Summary</a>)</h4>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li class="tsd-hierarchy-item"><a href="index.XmlComponent.html" class="tsd-signature-type tsd-kind-class">XmlComponent</a>
|
||||
<ul class="tsd-hierarchy">
|
||||
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">MathSubScript</span></li></ul></li></ul></section><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/f12329161d05096ab8e30cdc9267ca040b76771d/src/file/paragraph/math/script/sub-script/math-sub-script-function.ts#L57">file/paragraph/math/script/sub-script/math-sub-script-function.ts:57</a></li></ul></aside>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/ea08b9677cde223ab983a361800d7d7f0b0a9c25/src/file/paragraph/math/script/sub-script/math-sub-script-function.ts#L57">file/paragraph/math/script/sub-script/math-sub-script-function.ts:57</a></li></ul></aside>
|
||||
<section class="tsd-panel-group tsd-index-group">
|
||||
<section class="tsd-panel tsd-index-panel">
|
||||
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
||||
@@ -70,7 +70,7 @@
|
||||
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">MathSubScript</a></h4><aside class="tsd-sources">
|
||||
<p>Overrides <a href="index.XmlComponent.html">XmlComponent</a>.<a href="index.XmlComponent.html#constructor">constructor</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/f12329161d05096ab8e30cdc9267ca040b76771d/src/file/paragraph/math/script/sub-script/math-sub-script-function.ts#L58">file/paragraph/math/script/sub-script/math-sub-script-function.ts:58</a></li></ul></aside></div></li></ul></section></section></details>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/ea08b9677cde223ab983a361800d7d7f0b0a9c25/src/file/paragraph/math/script/sub-script/math-sub-script-function.ts#L58">file/paragraph/math/script/sub-script/math-sub-script-function.ts:58</a></li></ul></aside></div></li></ul></section></section></details>
|
||||
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Accessors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
||||
<h2 class="tsd-anchor-link" id="accessors-1">Accessors<a href="#accessors-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
||||
<section>
|
||||
@@ -86,7 +86,7 @@ such as a run with another run in its children. Undefined when it is written as
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-keyword">readonly</span> <a href="index.BaseXmlComponent.html" class="tsd-signature-type tsd-kind-class">BaseXmlComponent</a><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">undefined</span></h4><aside class="tsd-sources">
|
||||
<p>Inherited from XmlComponent.writtenAs</p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/f12329161d05096ab8e30cdc9267ca040b76771d/src/file/xml-components/base.ts#L84">file/xml-components/base.ts:84</a></li></ul></aside></div></li></ul></section></section></details>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/ea08b9677cde223ab983a361800d7d7f0b0a9c25/src/file/xml-components/base.ts#L84">file/xml-components/base.ts:84</a></li></ul></aside></div></li></ul></section></section></details>
|
||||
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
||||
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
||||
<section>
|
||||
@@ -112,7 +112,7 @@ such as a run with another run in its children. Undefined when it is written as
|
||||
</div></div><aside class="tsd-sources">
|
||||
<p>Inherited from <a href="index.XmlComponent.html">XmlComponent</a>.<a href="index.XmlComponent.html#addchildelement">addChildElement</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/f12329161d05096ab8e30cdc9267ca040b76771d/src/file/xml-components/xml-component.ts#L132">file/xml-components/xml-component.ts:132</a></li></ul></aside></div></li></ul></section>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/ea08b9677cde223ab983a361800d7d7f0b0a9c25/src/file/xml-components/xml-component.ts#L132">file/xml-components/xml-component.ts:132</a></li></ul></aside></div></li></ul></section>
|
||||
<section class="tsd-panel tsd-member tsd-is-inherited">
|
||||
<h3 class="tsd-anchor-link" id="prepforxml"><span>prep<wbr/>For<wbr/>Xml</span><a href="#prepforxml" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
||||
<ul class="tsd-signatures tsd-is-inherited">
|
||||
@@ -137,13 +137,13 @@ or execute side effects during serialization (e.g., creating relationships).</p>
|
||||
|
||||
<div class="tsd-comment tsd-typography">
|
||||
<div class="tsd-tag-example">
|
||||
<h4 class="tsd-anchor-link" id="example-1">Example<a href="#example-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="typescript"><span class="hl-8">// Override to add custom serialization logic</span><br/><span class="hl-6">prepForXml</span><span class="hl-1">(</span><span class="hl-2">context</span><span class="hl-1">: </span><span class="hl-2">IContext</span><span class="hl-1">): </span><span class="hl-2">IXmlableObject</span><span class="hl-1"> | </span><span class="hl-4">undefined</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-8">// Custom logic here</span><br/><span class="hl-1"> </span><span class="hl-0">return</span><span class="hl-1"> </span><span class="hl-4">super</span><span class="hl-1">.</span><span class="hl-6">prepForXml</span><span class="hl-1">(</span><span class="hl-2">context</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
|
||||
<h4 class="tsd-anchor-link" id="example-1">Example<a href="#example-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="typescript"><span class="hl-9">// Override to add custom serialization logic</span><br/><span class="hl-6">prepForXml</span><span class="hl-1">(</span><span class="hl-2">context</span><span class="hl-1">: </span><span class="hl-2">IContext</span><span class="hl-1">): </span><span class="hl-2">IXmlableObject</span><span class="hl-1"> | </span><span class="hl-4">undefined</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-9">// Custom logic here</span><br/><span class="hl-1"> </span><span class="hl-0">return</span><span class="hl-1"> </span><span class="hl-4">super</span><span class="hl-1">.</span><span class="hl-6">prepForXml</span><span class="hl-1">(</span><span class="hl-2">context</span><span class="hl-1">);</span><br/><span class="hl-1">}</span>
|
||||
</code><button type="button">Copy</button></pre>
|
||||
|
||||
</div></div><aside class="tsd-sources">
|
||||
<p>Inherited from <a href="index.XmlComponent.html">XmlComponent</a>.<a href="index.XmlComponent.html#prepforxml">prepForXml</a></p>
|
||||
<ul>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/f12329161d05096ab8e30cdc9267ca040b76771d/src/file/xml-components/xml-component.ts#L88">file/xml-components/xml-component.ts:88</a></li></ul></aside></div></li></ul></section></section></details></div>
|
||||
<li>Defined in <a href="https://github.com/dolanmiu/docx/blob/ea08b9677cde223ab983a361800d7d7f0b0a9c25/src/file/xml-components/xml-component.ts#L88">file/xml-components/xml-component.ts:88</a></li></ul></aside></div></li></ul></section></section></details></div>
|
||||
<div class="col-sidebar">
|
||||
<div class="page-menu">
|
||||
<div class="tsd-navigation settings">
|
||||
|
||||
Reference in New Issue
Block a user