VectorFieldOptions
import type { VectorFieldOptions } from 'pixi-silk/ui/inspector';
Options of VectorField.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
axes | readonly [NumberFieldOptions, NumberFieldOptions] | One number field per axis. | ui/panels/fields.ts:838 |
lockable? | boolean | Shows a link button that keeps the ratio of the two values. Default false. | ui/panels/fields.ts:840 |
locked? | boolean | Start linked. Default false. | ui/panels/fields.ts:842 |
Methods#
onLock()?#
optional onLock(locked: boolean): void;
Called when the link button flips.
Parameters#
| Parameter | Type |
|---|---|
locked | boolean |
Returns#
void