StylePreset Module
Preset file I/O (JSON format).
Functions and values
| Function or value |
Description
|
Full Usage:
applyToConfig preset config
Parameters:
StylePreset
config : VizConfig
Returns: VizConfig
|
Apply a StylePreset to a VizConfig, returning updated config. Unknown keys are silently skipped; missing keys retain current values.
|
|
Delete a preset by name. Returns Error if file does not exist.
|
Full Usage:
fromConfig name config
Parameters:
string
config : VizConfig
Returns: StylePreset
|
Convert current VizConfig to a StylePreset with the given name.
|
Full Usage:
isValidName name
Parameters:
string
Returns: bool
|
Returns true if `name` contains only filesystem-safe characters (alphanumeric, spaces, hyphens, underscores) and is non-empty.
|
Full Usage:
listNames ()
Parameters:
unit
Returns: string list
|
List all available preset names (derived from filenames in preset directory).
|
|
Load a preset by name. Returns Error if file missing or malformed.
|
Full Usage:
presetDirectory
Returns: string
|
Directory where presets are stored (`
|
|
Save a preset to disk. Overwrites if a preset with the same name exists. Returns Ok with the full file path, or Error with a descriptive message.
|
FSBarV1_Archived