UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

24 lines (23 loc) 629 B
import { Dimensions } from '../interfaces'; /** x,y coordinate set */ export type Point = [number, number]; /** array of coordinates */ export type DataSeries = Point[]; /** Function that converts point from data space to pixels */ export type Translator = (p: Point) => Point; /** Min/Max from all values of a given data set */ export interface Extent { min: Point; max: Point; } export interface Graph extends Extent { data: DataSeries; t: Translator; } export interface TranslateOptions extends Dimensions, Extent { } export interface ColorStop { offset: number; color: string; opacity?: number; }