diff --git a/src/globals.ts b/src/globals.ts index 6547c9d..705fb35 100644 --- a/src/globals.ts +++ b/src/globals.ts @@ -2,7 +2,7 @@ import { hsl as d3Hsl, HSLColor } from 'd3-color' import { GraphTypeBuilder } from './graph-types/types' -type TGlobals = { +export type TGlobals = { COLORS: Array DEFAULT_WIDTH: number DEFAULT_HEIGHT: number diff --git a/src/index.ts b/src/index.ts index c5e59f7..3bbefd7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import './polyfills' import { FunctionPlotOptions } from './types' -import { Chart } from './chart' +import { Chart, ChartMeta, ChartMetaMargin } from './chart' import globals, { registerGraphType } from './globals' import { polyline, interval, scatter, text } from './graph-types' @@ -39,12 +39,14 @@ functionPlot.$eval = $eval functionPlot.graphTypes = { interval, polyline, scatter } export * from './types' -export { Chart } +export { Chart, ChartMeta, ChartMetaMargin } export { registerGraphType } export { builtIn as EvalBuiltIn, interval as EvalInterval } from './helpers/eval' +export { TGlobals } from './globals' export { interval as GraphTypeInterval, polyline as GraphTypePolyline, scatter as GraphTypeScatter } from './graph-types' +export { GraphTypePlotter, GraphTypeBuilder } from './graph-types/types' export * from './helpers'