Skip to content
pixi-silk
GitHub repository
Interface

VectorFieldOptions

import type { VectorFieldOptions } from 'pixi-silk/ui/inspector';

Options of VectorField.

Properties#

PropertyTypeDescriptionDefined in
axesreadonly [NumberFieldOptions, NumberFieldOptions]One number field per axis.ui/panels/fields.ts:838
lockable?booleanShows a link button that keeps the ratio of the two values. Default false.ui/panels/fields.ts:840
locked?booleanStart linked. Default false.ui/panels/fields.ts:842

Methods#

onLock()?#

optional onLock(locked: boolean): void;

Called when the link button flips.

Parameters#

ParameterType
lockedboolean

Returns#

void