Skip to main content

Module canvas

Module canvas 

Source
Expand description

Port of src/render/canvas.ts: a sparse character grid where box-drawing characters merge by connectivity (│ crossing ─ becomes ┼).

Structs§

CharCanvas

Enums§

CanvasStyle

Constants§

DOWN
LEFT
RIGHT
UP

Functions§

char_to_mask
Which sides each box-drawing character connects to.

Type Aliases§

StyledRun
A styled run of consecutive characters on one canvas row.