@reside-ic/skadi-chart 1.1.8 → 1.1.9-alpha.1

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.
@@ -138,6 +138,18 @@ declare module "layers/Layer" {
138
138
  }
139
139
  export type LifecycleHooks = Omit<OptionalLayer, "type" | "properties" | "draw">;
140
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
+ }
141
153
  declare module "layers/AxesLayer" {
142
154
  import { LayerType, OptionalLayer } from "layers/Layer";
143
155
  import { LayerArgs, XY, XYLabel } from "types";
@@ -154,14 +166,6 @@ declare module "layers/AxesLayer" {
154
166
  private axisConfig;
155
167
  }
156
168
  }
157
- declare module "helpers" {
158
- import { LayerArgs, ScaleNumeric, XY, Point, Scales, AxisType } from "types";
159
- export const customLineGen: (lineSC: Point[], layerArgs: LayerArgs) => string[];
160
- export const numScales: (bands: Partial<XY<string>> | undefined, layerArgs: LayerArgs) => XY<ScaleNumeric>;
161
- export const getXYMinMax: (points: Point[]) => Scales;
162
- export const getSvgRectPath: (xStart: number, xEnd: number, yStart: number, yEnd: number) => string;
163
- export const mapScales: <T>(layerArgs: LayerArgs, callback: (scale: ScaleNumeric, axis: AxisType) => T) => [Record<string, T>, Record<string, Record<string, T>>];
164
- }
165
169
  declare module "layers/TracesLayer" {
166
170
  import { LayerArgs, Lines, Point, ZoomExtents } from "types";
167
171
  import { LayerType, OptionalLayer } from "layers/Layer";