weasel API - v0.8.0
    Preparing search index...

    Interface CellHighlightLayerOpts

    Options for createCellHighlightLayer.

    interface CellHighlightLayerOpts {
        fill?: FillStyle;
        getCell: () => { col: number; row: number } | null;
        origin?: () => { x: number; y: number };
        spacing: UnitValue;
        unitSystem?: UnitSystem;
    }
    Index

    Properties

    fill?: FillStyle

    FillStyle strategy for the filled cell. Defaults to a soft green.

    getCell: () => { col: number; row: number } | null

    Cell to highlight, or null to skip drawing.

    origin?: () => { x: number; y: number }

    Origin the cell grid is anchored to, in world units. Defaults to (0,0).

    spacing: UnitValue

    Cell size in world units (matches the grid's spacing).

    unitSystem?: UnitSystem

    Optional unit system for resolving tagged spacing values.