Skip to content
pixi-silk
GitHub repository
Interface

PanelBlockOptions

import type { PanelBlockOptions } from 'pixi-silk/ui/blocks';

Options of a PanelBlock.

Extends#

Properties#

PropertyTypeDescriptionInherited fromDefined in
fill?Value<FillInput>Fill. Default a dark grey.-packages/pixi-silk/src/ui/blocks.ts:661
height?numberHeight. Default 0 (set by the layout through onSize).BlockOptions.heightpackages/pixi-silk/src/ui/blocks.ts:42
layer?BlockLayerWhich layer of the surface paints the block. 'auto' (default) starts in the cached still layer and moves to the live layer the first time the block animates or changes. 'still' stays in the still layer: a change repaints and re-caches that layer, and the block keeps its place under live blocks. 'live' starts in the live layer.BlockOptions.layerpackages/pixi-silk/src/ui/blocks.ts:49
radius?numberCorner radius, design units. Default 24.-packages/pixi-silk/src/ui/blocks.ts:657
smoothing?numberSquircle smoothing, 0 to 1. Default 0.6, or 0 on a lowEnd surface (it costs more per pixel).-packages/pixi-silk/src/ui/blocks.ts:659
stroke?Value<StrokeInput>Optional border.-packages/pixi-silk/src/ui/blocks.ts:663
width?numberWidth. Default 0 (set by the layout through onSize).BlockOptions.widthpackages/pixi-silk/src/ui/blocks.ts:40