From 4d127a038bf768eded68aae3cfa5c1b12241bdac Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 27 Mar 2026 00:55:15 +0100 Subject: chore: normalize line endings --- apps/web/src/lib/params.ts | 100 ++++++++++++++++++++++----------------------- 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'apps/web/src/lib/params.ts') diff --git a/apps/web/src/lib/params.ts b/apps/web/src/lib/params.ts index 23085407..633bfbd0 100644 --- a/apps/web/src/lib/params.ts +++ b/apps/web/src/lib/params.ts @@ -1,50 +1,50 @@ -export type ParamValues = Record; - -export type ParamGroup = "stroke"; - -interface BaseParamDefinition { - key: TKey; - label: string; - group?: ParamGroup; -} - -export interface NumberParamDefinition - extends BaseParamDefinition { - type: "number"; - default: number; - min: number; - max?: number; - step: number; - /** When set, min/max/step are in display space. display = stored * displayMultiplier. */ - displayMultiplier?: number; - /** Show as percentage of max. min/max/step/default stay in stored space. */ - unit?: "percent"; - /** Short label shown as the scrub handle icon in the number field (e.g. "W", "R"). */ - shortLabel?: string; -} - -export interface BooleanParamDefinition - extends BaseParamDefinition { - type: "boolean"; - default: boolean; -} - -export interface ColorParamDefinition - extends BaseParamDefinition { - type: "color"; - default: string; -} - -export interface SelectParamDefinition - extends BaseParamDefinition { - type: "select"; - default: string; - options: Array<{ value: string; label: string }>; -} - -export type ParamDefinition = - | NumberParamDefinition - | BooleanParamDefinition - | ColorParamDefinition - | SelectParamDefinition; - +export type ParamValues = Record; + +export type ParamGroup = "stroke"; + +interface BaseParamDefinition { + key: TKey; + label: string; + group?: ParamGroup; +} + +export interface NumberParamDefinition + extends BaseParamDefinition { + type: "number"; + default: number; + min: number; + max?: number; + step: number; + /** When set, min/max/step are in display space. display = stored * displayMultiplier. */ + displayMultiplier?: number; + /** Show as percentage of max. min/max/step/default stay in stored space. */ + unit?: "percent"; + /** Short label shown as the scrub handle icon in the number field (e.g. "W", "R"). */ + shortLabel?: string; +} + +export interface BooleanParamDefinition + extends BaseParamDefinition { + type: "boolean"; + default: boolean; +} + +export interface ColorParamDefinition + extends BaseParamDefinition { + type: "color"; + default: string; +} + +export interface SelectParamDefinition + extends BaseParamDefinition { + type: "select"; + default: string; + options: Array<{ value: string; label: string }>; +} + +export type ParamDefinition = + | NumberParamDefinition + | BooleanParamDefinition + | ColorParamDefinition + | SelectParamDefinition; + -- cgit v1.3.1