PanelBlockOptions
import type { PanelBlockOptions } from 'pixi-silk/ui/blocks';
Options of a PanelBlock.
Extends#
Properties#
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
fill? | Value<FillInput> | Fill. Default a dark grey. | - | packages/pixi-silk/src/ui/blocks.ts:661 |
height? | number | Height. Default 0 (set by the layout through onSize). | BlockOptions.height | packages/pixi-silk/src/ui/blocks.ts:42 |
layer? | BlockLayer | Which 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.layer | packages/pixi-silk/src/ui/blocks.ts:49 |
radius? | number | Corner radius, design units. Default 24. | - | packages/pixi-silk/src/ui/blocks.ts:657 |
smoothing? | number | Squircle 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? | number | Width. Default 0 (set by the layout through onSize). | BlockOptions.width | packages/pixi-silk/src/ui/blocks.ts:40 |