Create new instance of Frame
the number of digits that need to fit in the frame
the size to determine the width of a single digit
the number of digits that need to fit in the frame
the size to determine the width of a single digit
Returns the necessary padding to insert before or after the content
Return a string with a prefix or suffix to complete the frame along the side edges
To determine if it is a prefix or a suffix (comes before or after the content)
Return a string with a top or bottom edge with the width of the content + padding
To determine if it's the top or bottom edge
Generated using TypeDoc
Frame Class Provide the necessary string output to form a frame around any content
import { Frame } from '@maximva/examenopdracht-maximva' enum DisplaySize { regular, large } const numberOfDigits = 5 const frame: Frame = new Frame(numberOfDigits, DisplaySize.large) console.log(frame.getHorizontalEdge(EdgePosition.top)) // "__________"