Object that combines multiple CircuitMap Objects into one set. A set represents a carousel on the learn page or the "Custom Circuit Collection" on the tools page. Used by CircuitFilesManager.

Constructors

Properties

circuitMaps: CircuitMap[]
identifier: {
    capacitor: string;
    inductor: string;
    kirchhoff: string;
    magnetic: string;
    mixed: string;
    quickstart: string;
    resistor: string;
    symbolic: string;
    wheatstone: string;
}
ids: any = window.definitions.selectorIDs

Methods

  • Parameters

    • circuitMaps: CircuitMap[]

      {Array}

    • identifier: {
          capacitor: string;
          inductor: string;
          kirchhoff: string;
          magnetic: string;
          mixed: string;
          quickstart: string;
          resistor: string;
          symbolic: string;
          wheatstone: string;
      }

      {window.definitions.selectorIDs}

    Returns CircuitSet

  • Parameters

    • files: string[]

      {Array} file names of the circuit files that belong to this set

    • dir: string

      {string} directory where the circuit files are located

    • mode: { custom: number; editor: number; learn: number; qr: number }

      {window.definitions.mode} where a circuit is started from (changes paths in circuit map)

    Returns Promise<CircuitSet>