Skip to content
pixi-silk
GitHub repository
Interface

IslandShape

import type { IslandShape } from 'pixi-silk/ui/island';

The pieces of an island outline, in the parent space.

Properties#

PropertyTypeDescriptionDefined in
bodyIslandRect & { 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
boxIslandRectThe 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