import type { Vec2 } from '../math'; import type { CompUnit, PseudoBinaryMetadata, SpecialPoint, TempUnit } from './types'; export type DiagramPoint = Vec2; type TempRange = Vec2; export type BoundElement = string | DiagramPoint; interface DiagramInputMeta { components: [string, string]; temp_range: TempRange; temp_unit?: TempUnit; comp_unit?: CompUnit; title?: string; pseudo_binary?: PseudoBinaryMetadata; x_axis_label?: string; y_axis_label?: string; } export interface RegionInput { id: string; name: string; color?: string; bounds: BoundElement[]; label_position?: DiagramPoint; } export interface DiagramInput { meta: DiagramInputMeta; curves: Record; regions: RegionInput[]; special_points?: SpecialPoint[]; } export {};