@reside-ic/skadi-chart 1.1.15 → 1.1.16

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.
@@ -206,7 +206,7 @@ declare module "layers/AxesLayer" {
206
206
  }
207
207
  declare module "layers/ZoomLayer" {
208
208
  import { LayerType, OptionalLayer } from "layers/Layer";
209
- import { D3Selection, LayerArgs } from "types";
209
+ import { D3Selection, LayerArgs, ZoomProperties } from "types";
210
210
  export type ZoomOptions = {
211
211
  lockAxis: "x" | "y" | null;
212
212
  };
@@ -216,9 +216,9 @@ declare module "layers/ZoomLayer" {
216
216
  zooming: boolean;
217
217
  selectionMask: D3Selection<SVGRectElement> | null;
218
218
  overlay: D3Selection<SVGRectElement> | null;
219
+ handleZoom: (zoomProperties: ZoomProperties) => Promise<void>;
219
220
  constructor(options: ZoomOptions);
220
221
  private processSelection;
221
- private handleZoom;
222
222
  private handleBrushEnd;
223
223
  private handleBrushMove;
224
224
  draw: (layerArgs: LayerArgs) => void;
@@ -285,7 +285,7 @@ declare module "Chart" {
285
285
  import { TracesOptions } from "layers/TracesLayer";
286
286
  import { ZoomOptions } from "layers/ZoomLayer";
287
287
  import { TooltipHtmlCallback } from "layers/TooltipsLayer";
288
- import { AllOptionalLayers, Bounds, LayerArgs, Lines, PartialScales, Scales, ScatterPoints, XY, ClipPathBounds, TickConfig } from "types";
288
+ import { AllOptionalLayers, Bounds, LayerArgs, Lines, PartialScales, Scales, ScatterPoints, XY, ClipPathBounds, TickConfig, ZoomProperties } from "types";
289
289
  import { LifecycleHooks, OptionalLayer } from "layers/Layer";
290
290
  import { GridOptions } from "layers/GridLayer";
291
291
  export type ChartOptions = {
@@ -319,6 +319,7 @@ declare module "Chart" {
319
319
  exportToPng: ((name?: string) => void) | null;
320
320
  options: ChartOptions;
321
321
  autoscaledMaxExtents: Scales;
322
+ handleZoom: (zoomProperties: ZoomProperties) => Promise<void>;
322
323
  constructor(options?: PartialChartOptions);
323
324
  addAxes: (labels?: Partial<XY<string>>, labelPositions?: Partial<XY<number>>, includeZeroLine?: Partial<XY<boolean>>) => this;
324
325
  addGridLines: (options?: Partial<XY<Partial<GridOptions>>>) => this;