API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceAutoTileOptions
@codexo/exojs-tilemap / tilemap / stable
Options for autoTile and refreshCell.
2
props
0
methods
0
events
Import
import { AutoTileOptions } from '@codexo/exojs-tilemap'Options for autoTile and refreshCell.
Properties2
matchFn?: (localTileId: number, tilesetIndex: number, x: number, y: number) => booleanWhen provided, only cells for which matchFn returns true are treated as part of the Wang group. The function receives the cell's localTileId, tilesetIndex, and tile coordinates (x, y). If omitted, group membership defaults to WangSet.isMember on the cell's localTileId (and a matching tilesetIndex). That default is *variant-stable* - every autotiled variant counts as a member - which is what makes refreshCell correct. If you supply a matchFn for use with refreshCell, it MUST likewise be variant-stable (independent of the currently-rendered variant), e.g. keyed on a separate logical-terrain grid or a tile property.
wrapBorder?: booleanWhen true (default), out-of-bounds neighbors are treated as though they belong to the Wang group, so border tiles fill correctly to the layer edge. Set to false to leave border tiles visually open.
Source