Create new DisplayRows instance
The settings for Display size (regular or large)
The settings for Display size (regular or large)
Returns the segments for a row given a display size (large or regular)
Decouples the injected separator
Returns a string for a single row in the output for all digits
ALl segments for for one row
Boolean to represent if it is the bottom row or not
ALl digits in that row
Returns a string for every row in the output for all digits
ALl the digits for the entire row
Generated using TypeDoc
The DisplayRow Class It represents a single row of the display output for the digits
import { DisplayRow, Separator, StringConverter } from '@maximva/examenopdracht-maximva' interface DisplaySettings { frame: boolean, size: DisplaySize } let settings: DisplaySettings = { frame: true, size: large } const separator: Separator = new Separator(this.settings.size) const stringConverter: StringConverter = new StringConverter() const digits: Digit[] = stringToDigits.getDigits("42.42 °C") const rowSegments: number[][] = this.getSegments(this.settings.size) const displayRows: string[] = this.getRows(rowSegments, digits) console.log(displayRows)