Class: SelectorBuilder

SelectorBuilder(prefix, mode)

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:
  • string
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:

(async) circuitSelectorStartButtonPressed(circuitMap)

sets the circuitMap passed as the current in the state object and starts the according simplifier page ( stepwise, wheatstone, kirchhoff ...
Parameters:
Name Type Description
circuitMap CircuitMap
Source:

generateOverviewGrid(circuitSet)

Parameters:
Name Type Description
circuitSet CircuitSet
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:
Name Type Description
circuitMap CircuitMap
Source:
Returns:
svg-data
Type
string