Header menu logo Mibo

LayoutHelpers Module

Functions and values

Function or value Description

createSection grid

Full Usage: createSection grid

Parameters:
Returns: GridSection2D<'T>

Wraps a raw grid in a root-level section.

grid : CellGrid2D<'T>
Returns: GridSection2D<'T>

setLocal lx ly content section

Full Usage: setLocal lx ly content section

Parameters:
Modifiers: inline
Type parameters: 'T

Internal helper to set a cell using section-relative coordinates. Handles translation to absolute grid coordinates and bounds checking.

lx : int
ly : int
content : 'T
section : GridSection2D<'T>

Type something to start searching.