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:
- Map.<string, Component>
- 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 |
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 |
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 |
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 |
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 |
Throws:
-
- if the file does not exist or is not accessible
- Type
- Error
Returns:
the file descriptor
- Type
- number
Type Definitions
distanceCoordStruct
Type:
- Object
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, |
forceUnit |
string |
<optional> |
the unit will be replaced with |
- 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: