From 3e89d2998588f8e35c524e523ba2ee853f0f6475 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 20 Apr 2026 11:31:17 +0200 Subject: refactor: restructure files to their domains, new preview overlay system, and dep graph --- apps/web/src/lib/params.ts | 50 ---------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 apps/web/src/lib/params.ts (limited to 'apps/web/src/lib/params.ts') diff --git a/apps/web/src/lib/params.ts b/apps/web/src/lib/params.ts deleted file mode 100644 index 633bfbd0..00000000 --- a/apps/web/src/lib/params.ts +++ /dev/null @@ -1,50 +0,0 @@ -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