Browse Source

add type for pan field

merge-requests/7/head
vargburz 3 years ago
parent
commit
993899c614
  1. 2
      dist/index.d.ts
  2. 2
      src/index.ts

2
dist/index.d.ts vendored

@ -14,7 +14,7 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
protected zoom?: any; protected zoom?: any;
protected svg?: d3.Selection<SVGElement, unknown, null, undefined>; protected svg?: d3.Selection<SVGElement, unknown, null, undefined>;
protected state: PodState<T, O>; protected state: PodState<T, O>;
protected pan?: any; protected pan?: d3.ZoomBehavior<Element, unknown>;
protected clipPath?: any; protected clipPath?: any;
protected isPanning: boolean; protected isPanning: boolean;
protected isBrushing: boolean; protected isBrushing: boolean;

2
src/index.ts

@ -113,7 +113,7 @@ abstract class ChartwerkPod<T extends TimeSerie, O extends Options> {
protected zoom?: any; protected zoom?: any;
protected svg?: d3.Selection<SVGElement, unknown, null, undefined>; protected svg?: d3.Selection<SVGElement, unknown, null, undefined>;
protected state: PodState<T, O>; protected state: PodState<T, O>;
protected pan?: any; // TODO: not any; protected pan?: d3.ZoomBehavior<Element, unknown>;
protected clipPath?: any; protected clipPath?: any;
protected isPanning = false; protected isPanning = false;
protected isBrushing = false; protected isBrushing = false;

Loading…
Cancel
Save