Skip to content

Type Alias: HoverConfig

ts
type HoverConfig = object;

Visual configuration for the per-tile hover overlay (fill + border ring), consumed by TileOverlayMesh when rendering the hovered hex.

Properties

fillColor

ts
fillColor: number;

Fill overlay color (hex integer, e.g. 0xffffff).


fillOpacity

ts
fillOpacity: number;

Fill overlay opacity — uses additive blending, keep low (0.05 – 0.3).


borderColor

ts
borderColor: number;

Border quad-strip color.


borderOpacity

ts
borderOpacity: number;

Border opacity.


borderWidth

ts
borderWidth: number;

Border width as a fraction of the tile's average boundary radius. 0.08 ≈ 8% of the tile radius — visible but not overwhelming.


surfaceOffset

ts
surfaceOffset: number;

Z-offset added on top of the tile height to avoid z-fighting. Expressed as a scale delta on the sphere radius (≈ world units at r=1).


ringExpand

ts
ringExpand: number;

Outward expansion of the ring beyond the boundary vertices, as a fraction of the tile average boundary radius.

Distribué sous la licence indiquée dans le dépôt.