6 changed files with 165 additions and 9 deletions
@ -0,0 +1,27 @@ |
|||
#### Symbol state render function |
|||
|
|||
<div class="divider"></div> |
|||
<br/> |
|||
|
|||
*function (ctx, svg): void* |
|||
|
|||
A JavaScript function used to render SCADA symbol state. |
|||
|
|||
**Parameters:** |
|||
|
|||
<ul> |
|||
<li><b>ctx:</b> <code>ScadaSymbolContext</code> - Context of the SCADA symbol. |
|||
</li> |
|||
<li><b>svg:</b> <code><a href="https://svgjs.dev/docs/3.2/container-elements/#svg-svg">SVG.Svg</a></code> - A root svg node. Instance of <a href="https://svgjs.dev/docs/3.2/container-elements/#svg-svg">SVG.Svg</a>. |
|||
</li> |
|||
</ul> |
|||
|
|||
<div class="divider"></div> |
|||
|
|||
##### Examples |
|||
|
|||
<br> |
|||
|
|||
TODO |
|||
|
|||
|
|||
@ -0,0 +1,29 @@ |
|||
#### Symbol tag click action function |
|||
|
|||
<div class="divider"></div> |
|||
<br/> |
|||
|
|||
*function (ctx, element, event): void* |
|||
|
|||
A JavaScript function invoked when user clicks on SVG element with specific tag. |
|||
|
|||
**Parameters:** |
|||
|
|||
<ul> |
|||
<li><b>ctx:</b> <code>ScadaSymbolContext</code> - Context of the SCADA symbol. |
|||
</li> |
|||
<li><b>element:</b> <code>Element</code> - SVG element.<br> |
|||
See <a href="https://svgjs.dev/docs/3.2/manipulating/">Manipulating</a> section to manipulate the element.<br> |
|||
See <a href="https://svgjs.dev/docs/3.2/animating/">Animating</a> section to animate the element. |
|||
</li> |
|||
<li><b>event:</b> <code>Event</code> - DOM event. |
|||
</li> |
|||
</ul> |
|||
|
|||
<div class="divider"></div> |
|||
|
|||
##### Examples |
|||
|
|||
<br> |
|||
|
|||
TODO |
|||
@ -0,0 +1,27 @@ |
|||
#### Symbol tag state render function |
|||
|
|||
<div class="divider"></div> |
|||
<br/> |
|||
|
|||
*function (ctx, element): void* |
|||
|
|||
A JavaScript function used to render SCADA symbol element with specific tag. |
|||
|
|||
**Parameters:** |
|||
|
|||
<ul> |
|||
<li><b>ctx:</b> <code>ScadaSymbolContext</code> - Context of the SCADA symbol. |
|||
</li> |
|||
<li><b>element:</b> <code>Element</code> - SVG element.<br> |
|||
See <a href="https://svgjs.dev/docs/3.2/manipulating/">Manipulating</a> section to manipulate the element.<br> |
|||
See <a href="https://svgjs.dev/docs/3.2/animating/">Animating</a> section to animate the element. |
|||
</li> |
|||
</ul> |
|||
|
|||
<div class="divider"></div> |
|||
|
|||
##### Examples |
|||
|
|||
<br> |
|||
|
|||
TODO |
|||
Loading…
Reference in new issue