PortSets
PortSet<T>
Overview needed
Template Parameters
T extends Port
– *Description needed*
Constructor
public PortSet
new PortSet()
*Description needed*new PortSet(parent, count, positioner, type)
*Description needed*Parameters
parent: Component
– Description neededcount: ClampedValue
– Description neededpositioner: Positioner<T>
– Description neededtype: Component
– Description needed
Properties
No publicly accessible properties on PortSet
private oldPorts: T[]
Description needed
private currentPorts: T[]
Description needed
private count: ClampedValue
Description needed
private positioner: Positioner<T>
Description needed
Methods
public setPortCount
setPortCount(newVal) => void
Set the number of Ports of this set. The value will be clamped and positions of ports will be updated.
Parameters
-
newVal: number
– The new number of ports.
public updatePortPositions
updatePortPositions() => void
Updates the positions of the ports in the set. Allows for position updating even when the size does not change.
public get
get(i) => T
Description needed
Parameters
-
i: number
– Description needed
Returns
-
T
– Description needed
public getPositioner
getPositioner() => Positioner<T>
Description needed
Returns
-
Positioner<T>
– Description needed
public getCount
getCount() => ClampedValue
Description needed
Returns
-
ClampedValue
– Description needed
Static Methods
No static methods for PortSet