Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InfiniteRoll

Hierarchy

  • InfiniteRoll

Index

Constructors

constructor

Properties

Private DOMEventHandlers

DOMEventHandlers: Record<string, function>

Private displayedCellsIndices

displayedCellsIndices: object

Type declaration

  • maxIndex: number
  • minIndex: number

Private head

head: Selection<HTMLDivElement, unknown, HTMLElement, any>

Private internalEventsHandlers

internalEventsHandlers: Record<EventID, EventHandler<Event>>

Private origin

origin: number

Private stepMovement

stepMovement: number

Private tape

tape: Selection<HTMLDivElement, unknown, HTMLElement, any>

Private tapeHolder

tapeHolder: Selection<HTMLDivElement, unknown, HTMLElement, any>

Private turingMachine

turingMachine: TuringMachine

Static Private marginCell

marginCell: number = 2

Static Private minLength

minLength: number = 10

Static Private sizeCell

sizeCell: number = 90

Methods

Private addActionButtons

  • addActionButtons(): void

Private addCell

  • addCell(index: number): Selection<HTMLDivElement, any, any, any>
  • Parameters

    • index: number

    Returns Selection<HTMLDivElement, any, any, any>

    return the added cell

Private addCellAtTheBeginning

  • addCellAtTheBeginning(): void

Private addCellAtTheEnd

  • addCellAtTheEnd(): void

addEventListeners

  • addEventListeners(): void

Private createEventListeners

  • createEventListeners(): void

Private init

  • init(): void

move

moveTapeBy

  • moveTapeBy(n: number): void

moveTapeByNCell

  • moveTapeByNCell(n: number): void

moveToCell

  • moveToCell(index: number): void

Private removeCell

  • removeCell(index: number): void

Private removeCellAtTheBeginning

  • removeCellAtTheBeginning(): void

Private removeCellAtTheEnd

  • removeCellAtTheEnd(): void

removeEventListeners

  • removeEventListeners(): void

resize

  • resize(): void

Private setupUI

  • setupUI(): void

updateCell

  • updateCell(symbol: TapeSymbol, index: number): void

updateContent

  • updateContent(): void

updateCurrentCell

  • updateCurrentCell(): void

Private updateDisplayedCell

  • updateDisplayedCell(l: number): void

Generated using TypeDoc