Constructor
new Wire(net, coords)
Generates a wire.
Parameters:
Name | Type | Description |
---|---|---|
net |
Array.<Net> | the corresponding net/potential |
coords |
Array.<Coordinate> | positions of wire "edges" |
Methods
serialize(indentopt) → {string}
Serializes the wire. The TikZ "source code" is returned.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
indent |
number |
<optional> |
0 | the indention (= amount of tabs) to use |
Returns:
the serislized wire
- Type
- string