import { ThermalRangeOrUndefined, ThermalRegistry } from "@labir/core"; import { createContext } from "@lit/context"; export type RegistryContext = ThermalRegistry; export const registryContext = createContext("registry-instance"); export type RegistryOpacityContext = number; export const registryOpacityContext = createContext( "registry-opacity" ); export type RegistryRangeFromContext = undefined| number; export const registryRangeFromContext = createContext( "registry-range-from" ); export type RegistryRangeToContext = undefined|number; export const registryRangeToContext = createContext( "registry-range-to" ); export type RegistryLoadingContext = boolean; export const registryLoadingContext = createContext( "registry-loading" ); export type RegistryMinContext = number|undefined; export const registryMinContext = createContext("registry-min"); export type RegistryMaxContext = number|undefined; export const registryMaxContext = createContext("registry-max"); export const registryHighlightContext = createContext("registry-highlight"); export const setRegistryHighlightContext = createContext<( value: ThermalRangeOrUndefined ) => void>( "registry-highlight-setter" );