UNPKG

psychart

Version:

View air conditions on a psychrometric chart

33 lines (32 loc) 1.13 kB
import { PsychartOptions, DataOptions, RegionName, Datum } from './types'; /** * Produce a deep copy of an object. * @param obj Any object. * @returns A deep copy of `obj`. */ export declare function deepCopy<T>(obj: T): T; /** * Take an object with all optional values, and set all unset values to their defaults. * @param optional An object with all parameters optional. * @param defaults An object with all parameters default. * @returns An object with all parameters that are unset as their default values. */ export declare function setDefaults<T extends object>(optional: Partial<T>, defaults: T): T; /** * Represents a set of default options for Psychart. */ export declare const defaultPsychartOptions: PsychartOptions; /** * Represents a set of default data options. */ export declare const defaultDataOptions: DataOptions; /** * Predefined regions source: 2021 Equipment Thermal Guidelines for Data Processing Environments * ASHRAE-55 source: https://comfort.cbe.berkeley.edu/ */ export declare const regions: { [K in RegionName]: { tooltip: string; data: Array<Datum>; }; };