new SelectorBuilder(prefix, mode)
Parameters:
| Name |
Type |
Description |
prefix |
string
|
distinguish between different, is used in the id of the html element |
mode |
window.definitions.mode
|
defines paths for the created CircuitMaps |
- Source:
Members
circuitSets :Array.<CircuitSet>
Type:
- Source:
id :string
Type:
- Source:
Methods
buildAccordionSelectors(accordionId, circuitSets)
Parameters:
| Name |
Type |
Description |
accordionId |
string
|
id of the html element that is appended to the document |
circuitSets |
Array.<CircuitSet>
|
based on the circuit sets the accordion items are generated
the set is saved in this.circuitSets and used later on for updates of the accordion |
- Source:
sets the circuitMap passed as the current in the state object and starts the according simplifier page (
stepwise, wheatstone, kirchhoff ...
Parameters:
- Source:
generateOverviewGrid(circuitSet)
Parameters:
- Source:
(async) setupSelector(circuitSet)
Parameters:
| Name |
Type |
Description |
circuitSet |
CircuitSet
|
each map of the circuit set gets an overview svg and a start button overlay |
- Source:
(async) setupSpecificCircuitSelector(circuitMap) → {string}
[bar description]
Parameters:
- Source:
Returns:
svg-data
-
Type
-
string