BlockOptions
import type { BlockOptions } from 'pixi-silk/ui/blocks';
Size of a block, in the surface’s design units.
Extended by#
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
height? | number | Height. Default 0 (set by the layout through onSize). | 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. | packages/pixi-silk/src/ui/blocks.ts:49 |
width? | number | Width. Default 0 (set by the layout through onSize). | packages/pixi-silk/src/ui/blocks.ts:40 |