IslandFrameOptions
import type { IslandFrameOptions } from 'pixi-silk/ui/island';
Options of IslandFrame.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
bands? | number | IslandInsets | Thickness of each band, local units, or one number for all four. Default 0. | packages/pixi-silk/src/ui/island/frame.ts:38 |
color? | ColorSource | Fill colour. Default black. Keep it opaque: the bands overlap at the corners. | packages/pixi-silk/src/ui/island/frame.ts:42 |
radius? | number | Radius of the inner corners, where the content window is rounded. Default 24. | packages/pixi-silk/src/ui/island/frame.ts:40 |
rail? | IslandRailOptions | Items in one band. | packages/pixi-silk/src/ui/island/frame.ts:44 |
spring? | { damping?: number; stiffness?: number; } | Spring of the bands. Default 240 stiffness, 28 damping. | packages/pixi-silk/src/ui/island/frame.ts:46 |
spring.damping? | number | - | packages/pixi-silk/src/ui/island/frame.ts:46 |
spring.stiffness? | number | - | packages/pixi-silk/src/ui/island/frame.ts:46 |
ticker? | Ticker | null | null to step it by hand with IslandFrame.tick. Default Ticker.shared. | packages/pixi-silk/src/ui/island/frame.ts:48 |
viewport? | IslandViewport | What it frames: an Application (follows its resize) or a rectangle. | packages/pixi-silk/src/ui/island/frame.ts:36 |