@reside-ic/skadi-chart 1.1.7 → 1.1.9-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,7 @@ declare module "types" {
43
43
  padding?: number;
44
44
  size?: number;
45
45
  formatter?: (domainValue: Domain, index: number) => string;
46
+ enableMathJax?: boolean;
46
47
  } & (Domain extends number ? {
47
48
  count?: number;
48
49
  specifier?: string;
@@ -137,6 +138,18 @@ declare module "layers/Layer" {
137
138
  }
138
139
  export type LifecycleHooks = Omit<OptionalLayer, "type" | "properties" | "draw">;
139
140
  }
141
+ declare module "helpers" {
142
+ import { LayerArgs, ScaleNumeric, XY, Point, Scales, AxisType, D3Selection } from "types";
143
+ export const customLineGen: (lineSC: Point[], layerArgs: LayerArgs) => string[];
144
+ export const numScales: (bands: Partial<XY<string>> | undefined, layerArgs: LayerArgs) => XY<ScaleNumeric>;
145
+ export const getXYMinMax: (points: Point[]) => Scales;
146
+ export const getSvgRectPath: (xStart: number, xEnd: number, yStart: number, yEnd: number) => string;
147
+ export const mapScales: <T>(layerArgs: LayerArgs, callback: (scale: ScaleNumeric, axis: AxisType) => T) => [Record<string, T>, Record<string, Record<string, T>>];
148
+ export const drawLine: (baseLayer: D3Selection<SVGGElement>, coordsSC: XY<{
149
+ start: number;
150
+ end: number;
151
+ }>, color: string) => import("d3-selection").Selection<SVGLineElement, Point, null, undefined>;
152
+ }
140
153
  declare module "layers/AxesLayer" {
141
154
  import { LayerType, OptionalLayer } from "layers/Layer";
142
155
  import { LayerArgs, XY, XYLabel } from "types";
@@ -153,14 +166,6 @@ declare module "layers/AxesLayer" {
153
166
  private axisConfig;
154
167
  }
155
168
  }
156
- declare module "helpers" {
157
- import { LayerArgs, ScaleNumeric, XY, Point, Scales, AxisType } from "types";
158
- export const customLineGen: (lineSC: Point[], layerArgs: LayerArgs) => string[];
159
- export const numScales: (bands: Partial<XY<string>> | undefined, layerArgs: LayerArgs) => XY<ScaleNumeric>;
160
- export const getXYMinMax: (points: Point[]) => Scales;
161
- export const getSvgRectPath: (xStart: number, xEnd: number, yStart: number, yEnd: number) => string;
162
- export const mapScales: <T>(layerArgs: LayerArgs, callback: (scale: ScaleNumeric, axis: AxisType) => T) => [Record<string, T>, Record<string, Record<string, T>>];
163
- }
164
169
  declare module "layers/TracesLayer" {
165
170
  import { LayerArgs, Lines, Point, ZoomExtents } from "types";
166
171
  import { LayerType, OptionalLayer } from "layers/Layer";