@net7/components 3.0.2-rc.2 → 3.1.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.
@@ -92,6 +92,8 @@ export declare class HistogramRangeComponent implements AfterContentChecked {
92
92
  emit: any;
93
93
  private d3;
94
94
  private sliders;
95
+ /** d3 selection svg root */
96
+ private svg;
95
97
  private _loaded;
96
98
  private colourBars;
97
99
  private getSelectedRange;
@@ -101,10 +103,18 @@ export declare class HistogramRangeComponent implements AfterContentChecked {
101
103
  textCollision: (sliders: Sliders) => void;
102
104
  /** Get x-axis position from label */
103
105
  labelToX(): any;
106
+ /**
107
+ * Get an event with viewBox coordinates and
108
+ * parse them in absolute coordinates
109
+ */
110
+ getEventCoords(event: any): {
111
+ x: number;
112
+ y: number;
113
+ };
104
114
  /** Public api that allows to dinamically change the bars */
105
115
  setBars: (newBars: any) => void;
106
116
  /** Public api that allows to dinamically change the slider position */
107
- setSliders: ([startLabel, endLabel]: [any, any]) => any;
117
+ setSliders: ([startLabel, endLabel]: LabelCouple, emit?: boolean) => any;
108
118
  /** Emits an event when the component has loaded */
109
119
  emitLoaded(payload: any): void;
110
120
  static ɵfac: i0.ɵɵFactoryDeclaration<HistogramRangeComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/components",
3
- "version": "3.0.2-rc.2",
3
+ "version": "3.1.0",
4
4
  "dependencies": {
5
5
  "apexcharts": "^3.8.5",
6
6
  "d3": "^7.1.1",