Skip to content

textmode.js / TextmodeGrid / reset

Method: reset()

ts
reset(): void;

Recalculate columns and rows from the current canvas and cell dimensions.

If either cols or rows were manually set, this method does nothing. Make sure to call responsive() first to restore responsive sizing.

textmode.js handles calling this method automatically when the canvas is resized. You typically do not need to call this method directly.

Returns

void

Example