Skip to content
pixi-silk
GitHub repository
Interface

MinimapOptions

import type { MinimapOptions } from 'pixi-silk/ui/minimap';

Options of Minimap.

Properties#

PropertyTypeDescriptionDefined in
background?booleanDraw a card behind the map. Off inside a panel, which has its own. Default true.ui/panels/Minimap.ts:96
cameraCameraThe camera whose world the minimap shows and moves.ui/panels/Minimap.ts:75
content?Container<ContainerChild>What to show. Default camera.content.ui/panels/Minimap.ts:77
height?numberMap height in local units. Default 130.ui/panels/Minimap.ts:81
interval?numberSeconds between thumbnail and bounds updates. Default 0.5.ui/panels/Minimap.ts:90
items?() => Iterable<WorldRect>The rectangles bounds draws. Default the bounds of the objects in content, up to three groups deep.ui/panels/Minimap.ts:92
mode?"texture" | "bounds"bounds (default) draws the outline of each top object, crisp and cheap. texture renders the content into a small texture now and then, for a real thumbnail. It needs renderer.ui/panels/Minimap.ts:86
padding?numberSpace around the content inside the map. Default 10.ui/panels/Minimap.ts:94
renderer?RendererThe renderer, for texture. Without it texture mode draws nothing for the content.ui/panels/Minimap.ts:88
theme?Partial<PanelTheme>Colours. Default the dark panel theme.ui/panels/Minimap.ts:98
ticker?Ticker | nullTicker driving updates and motion. Default Ticker.shared. null for manual Minimap.tick.ui/panels/Minimap.ts:100
width?numberMap width in local units. Default 200.ui/panels/Minimap.ts:79