IslandShape
import type { IslandShape } from 'pixi-silk/ui/island';
The pieces of an island outline, in the parent space.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
body | IslandRect & { radii: [number, number, number, number]; smoothing: number; } | Body: rounded on the far side, square where it meets the edge. radii is [tl, tr, br, bl]. | packages/pixi-silk/src/ui/island/geometry.ts:136 |
box | IslandRect | The visible body, from the edge line to the far side. | packages/pixi-silk/src/ui/island/geometry.ts:143 |
flares | { circle: { r: number; x: number; y: number; }; square: IslandRect; }[] | Concave pieces, each a square with a circle cut out: the flares where the body meets the edge, or for a full-length island the rounded corners of the window left above it. | packages/pixi-silk/src/ui/island/geometry.ts:141 |