Builds a carousel like SelectorCarousel but does not wait for the circuits to load, sets up a placeholders and inserts data when loaded, used for the Tutorial on the learn page (in code SelectPage) in the TutorialSelector

Hierarchy (View Summary)

Constructors

  • Parameters

    • parent: any
    • circuitFiles: any
    • identifier: any
    • parentSelector: any

    Returns ScannerCarousel

Properties

bootstrapCarousel: Carousel
carousel: HTMLDivElement
circuitFiles: any
circuitNameContainer: HTMLDivElement
circuitSet: CircuitSet
idx: number = 0
imgOverlay: HTMLDivElement
indicatorsDiv: HTMLDivElement
initializationStarted: boolean = false
innerCarousel: HTMLDivElement
isInitialized: boolean = false
nextBtn: HTMLDivElement
overlayFkt: OverlayFactory = ...
overviewBtn: HTMLButtonElement
overviewBtnDiv: HTMLDivElement
overViewModalBody: HTMLDivElement
parent: Selector
parentDiv: HTMLDivElement
prevBtn: HTMLDivElement
scanInitialized: boolean = false
scanner: QRScanner
startBtn: HTMLButtonElement
startOrScan: Function = ...
stopBtn: HTMLButtonElement

Accessors

  • get circuitMaps(): CircuitMap[]

    Returns CircuitMap[]

  • get firstElementInInnerCarousel(): HTMLDivElement

    Returns HTMLDivElement

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

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

  • get indicatorContainerElement(): Element

    Returns Element

  • get lastElementInInnerCarousel(): HTMLDivElement

    Returns HTMLDivElement

  • get overviewBtnElement(): HTMLDivElement

    Returns HTMLDivElement

  • get overviewItemElement(): string

    Returns string

  • get scannerCloseBtn(): HTMLButtonElement

    Returns HTMLButtonElement

Methods

  • Parameters

    • circuitMap: any

    Returns any

  • Parameters

    • newParent: any
    • oldParent: any

    Returns void

  • Parameters

    • id: any
    • identifier: any

    Returns HTMLElement

  • Parameters

    • event: any
    • indicators: any

    Returns void

  • Parameters

    • idx: any

    Returns string

  • Parameters

    • event: any

    Returns any

  • Parameters

    • idx: any

    Returns Element

  • Initializes the carousel with placeholders, does not wait for the circuits to load, sets up a placeholder

    Returns void

  • Returns void

  • this replaces the last element in inner carousel, which should always be the placeholder, and then creates a new placeholder

    Parameters

    • circuitMap: any

    Returns Promise<void>

  • returns the last element of an array, or null if the array is empty

    Parameters

    • array: any

    Returns any

  • Parameters

    • qrCodeString: any

    Returns Promise<void>

  • Returns void

  • this replaces the last element in inner carousel, which should always be the placeholder

    Parameters

    • circuitMap: any

    Returns Promise<void>

  • Returns void

  • Parameters

    • event: Event

      {Event}

    Returns void

  • Parameters

    • index: any

    Returns void

  • Returns Promise<void>

  • Returns Element