Defined in: packages/engine/src/stores/presets.ts:29
| Property |
Type |
Description |
applyPreset |
(options) => void |
Writes the preset’s props through setProp, each row taking those of its behaviour at its place among that behaviour’s rows; a row the preset has none for is skipped, and so is a read-only row, on which setProp throws. |
deletePreset |
(component, name) => void |
- |
presetsByComponent |
Record<string, Record<string, Record<string, unknown>>> |
Saved prop sets, by component name and then preset name. |
savePreset |
(options) => void |
Saves the selected entity’s behaviour rows’ props as they stand, each row’s edits over its props, as name for every entity of component. |