nape-js API
    Preparing search index...

    Type Alias TilemapMergeMode

    TilemapMergeMode: "none" | "rows" | "greedy"

    Strategy for combining adjacent solid tiles into fewer rectangles.

    • "none" — every solid tile becomes its own 1x1 rectangle
    • "rows" — horizontally-adjacent solid tiles within a row are merged
    • "greedy" — runs are extended both horizontally and vertically using a greedy meshing pass (default — produces the fewest rectangles)