Global

Members

(constant) ADS_COMPONENTS_MAP :Map.<string, Component>

Maps an ABL component to a TikZ component stencil. The key is either just the cellName (e.g. "R"), or libraryName:cellName for specific components.

Type:
Source:

(constant) ADS_TIKZ_MAPPERS :Component

Enum/map-alike of mapper objects. These contain both an TikZ and an ADS component and are used for more complex transformations.

Type:
Properties:
Name Type Description
BJT Component
SIMPLE_FETN Component
Source:

(constant) TIKZ_COMPONENTS :Component

Enum/map-alike of all (supported) TikZ components.

Type:
Properties:
Name Type Description
ground Component
tlground Component
rground Component
sground Component
tground Component
nground Component
pground Component
cground Component
eground Component
eground2 Component
vcc Component
vee Component
R Component
vR Component
pR Component
sR Component
ldR Component
varistor Component
phR Component
thR Component
thRp Component
thRn Component
C Component
cC Component
eC Component
vC Component
sC Component
PZ Component
cpe Component
feC Component
L Component
vL Component
sL Component
sR Component
cuteChoke Component
cuteChokeTwoLine Component
Do Component
battery Component
batteryCell1 Component
batteryCell2 Component
vsource Component
vsourceAM Component
vsourceC Component
isource Component
isourceAM Component
isourceC Component
sV Component
sI Component
dcvsource Component
dcisource Component
sqV Component
iecConnector Component
amp Component
npn Component
pnp Component
nmos Component
pmos Component
nigfete Component
pigfete Component
"op amp" Component
Source:

Methods

atoLaTex(str, suggestedUnitopt, forceUnitopt) → {string}

Parses an string and converts it to siunitx syntax.

E.g. "1k1Ohm" --> "\si{1.1}{\kilo\ohm}}". If a value can't be parsed, its original value is returned.

Parameters:
Name Type Attributes Description
str string

the string to parse

suggestedUnit string <optional>

unit to use if str does not contain a unit

forceUnit string <optional>

overwrites any foud unit

Source:
Returns:
Type
string

closeFD(fd)

Closes an file descriptor ignoring any errors. This also works if a file is already closed. The stdin, stdout and stderr file descriptors won't be closed.

Parameters:
Name Type Description
fd number
Source:

getCellArrayForInputFD(fd) → {Promise.<Array.<Element>>}

Parses the opens file descriptor, closes the file and returns the array of cells.

Parameters:
Name Type Description
fd number

the input file descriptor

Source:
Returns:

the array of cells

Type
Promise.<Array.<Element>>

strToInFile(filename) → {number}

Opens a file for reading.

Parameters:
Name Type Description
filename string

the path to the file

Source:
Throws:
  • if the file does not exist or is not accessible
Type
Error
Returns:

the file descriptor

Type
number

strToOutFile(filename, overwriteopt) → {number}

Opens a file for reading.

Parameters:
Name Type Attributes Default Description
filename string

the path to the file

overwrite boolean <optional>
false

set to true to overwrite existing files

Source:
Throws:
  • if the file does not exist or is not accessible
Type
Error
Returns:

the file descriptor

Type
number

Type Definitions

distanceCoordStruct

Type:
  • Object
Source:

parameterParseSetting

settings for parsing of component parameters.

Type:
  • object
Properties:
Name Type Attributes Description
parse boolean

set to true to parse and "siunitx-ify"

suggestedUnit string <optional>

if no unit can be found while parsing, suggestedUnit will be used

forceUnit string <optional>

the unit will be replaced with forceUnit

Source:

tikzTripolOptions

Type:
  • object
Properties:
Name Type Attributes Default Description
pgfCircRlen number <optional>
1.4
width number <optional>
0.7
connHeight number <optional>
0.5
height number <optional>
1.1
Source: