Root static functions of Smithchart Component
Get epsilon value
Returns number
Method to calculate the width and height of the smithchart
Parameter | Type | Description |
---|---|---|
smithchart | Smithchart |
smithchart instance |
Returns void
Get element from label
Parameter | Type | Description |
---|---|---|
element | Element |
element |
labelId | string |
label id |
data | object |
chart data |
Returns HTMLElement
To create the svg element.
Parameter | Type | Description |
---|---|---|
smithchart | Smithchart |
smithchart instance |
Returns void
To get the html element from DOM.
Parameter | Type | Description |
---|---|---|
id | string |
id of the html element |
Returns Element
Method for calculate width and height of given string.
Parameter | Type | Description |
---|---|---|
text | string |
text value |
font | SmithchartFontModel |
text font style |
Returns SmithchartSize
Remove html element from DOM
Parameter | Type | Description |
---|---|---|
id | string |
element id |
Returns void
Reverse linear calculation
Parameter | Type | Description |
---|---|---|
currentTime | number |
current time |
startValue | number |
start value of the animation |
endValue | number |
end value of the animation |
duration | number |
animation duration |
Returns number
Convert string to number
Parameter | Type | Description |
---|---|---|
value | string |
string type value |
containerSize | number |
size of the container |
Returns number
Method for template animation
Parameter | Type | Description |
---|---|---|
smithchart | Smithchart |
smithchart |
element | Element |
html element |
delay | number |
animation delay |
duration | number |
animation duration |
name | Effect |
animation name |
Returns void
To trim the text by given width.
Parameter | Type | Description |
---|---|---|
maximumWidth | number |
max width of the text |
text | string |
text |
font | SmithchartFontModel |
text style |
Returns string