Constructor
new LadderDiagram(circuit, box_styleopt, _subgraphopt)
Constructor
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
circuit |
Circuit | Circuit to generate diagram of | ||
box_style |
"Corners" | "Sides" |
<optional> |
"Corners" | Select which box styling to use |
_subgraph |
boolean |
<optional> |
false | Internal use |
- Source:
Methods
attach(dom_parent) → {LadderDiagram}
Attaches itself into a parent node
Parameters:
Name | Type | Description |
---|---|---|
dom_parent |
HTMLElement | DOM element where the diagram will be made a child of |
- Source:
Returns:
- Updated ladder diagram
- Type
- LadderDiagram
detach() → {void}
Removes itself from its parent node.
- Source:
Returns:
- Type
- void
get_truth_path() → {null|TruthPath}
Returns a TruthPath if `circuit` evaluates to a True value.
Otherwise it returns a null
- Source:
Returns:
Path to take across the diagram
- Type
- null | TruthPath
has_truth_path() → {Boolean}
Returns if `circuit` evaluates to a True value
- Source:
Returns:
If `circuit` evaluates to a True value
- Type
- Boolean