Skip to content
pixi-silk
GitHub repository
Interface

BlockOptions

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

Size of a block, in the surface’s design units.

Extended by#

Properties#

PropertyTypeDescriptionDefined in
height?numberHeight. Default 0 (set by the layout through onSize).packages/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.packages/pixi-silk/src/ui/blocks.ts:49
width?numberWidth. Default 0 (set by the layout through onSize).packages/pixi-silk/src/ui/blocks.ts:40