Skip to content
pixi-silk
GitHub repository
Interface

IslandFrameOptions

import type { IslandFrameOptions } from 'pixi-silk/ui/island';

Options of IslandFrame.

Properties#

PropertyTypeDescriptionDefined in
bands?number | IslandInsetsThickness of each band, local units, or one number for all four. Default 0.packages/pixi-silk/src/ui/island/frame.ts:38
color?ColorSourceFill colour. Default black. Keep it opaque: the bands overlap at the corners.packages/pixi-silk/src/ui/island/frame.ts:42
radius?numberRadius of the inner corners, where the content window is rounded. Default 24.packages/pixi-silk/src/ui/island/frame.ts:40
rail?IslandRailOptionsItems 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 | nullnull to step it by hand with IslandFrame.tick. Default Ticker.shared.packages/pixi-silk/src/ui/island/frame.ts:48
viewport?IslandViewportWhat it frames: an Application (follows its resize) or a rectangle.packages/pixi-silk/src/ui/island/frame.ts:36