Search results

Static Functions API in JavaScript Smith Chart API control

Root static functions of Smithchart Component

_getEpsilonValue

Get epsilon value

Returns number

calculateSize

Method to calculate the width and height of the smithchart

Parameter Type Description
smithchart Smithchart smithchart instance

Returns void

convertElementFromLabel

Get element from label

Parameter Type Description
element Element element
labelId string label id
data object chart data

Returns HTMLElement

createSvg

To create the svg element.

Parameter Type Description
smithchart Smithchart smithchart instance

Returns void

getElement

To get the html element from DOM.

Parameter Type Description
id string id of the html element

Returns Element

measureText

Method for calculate width and height of given string.

Returns SmithchartSize

removeElement

Remove html element from DOM

Parameter Type Description
id string element id

Returns void

reverselinear

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

stringToNumber

Convert string to number

Parameter Type Description
value string string type value
containerSize number size of the container

Returns number

templateAnimate

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

textTrim

To trim the text by given width.

Returns string