@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.
- package/esm2020/lib/components/histogram-range/histogram-range.mjs +24 -10
- package/esm2020/lib/components/histogram-range/histogram-range.mock.mjs +3 -3
- package/fesm2015/net7-components.mjs +25 -11
- package/fesm2015/net7-components.mjs.map +1 -1
- package/fesm2020/net7-components.mjs +25 -11
- package/fesm2020/net7-components.mjs.map +1 -1
- package/lib/components/histogram-range/histogram-range.d.ts +11 -1
- package/package.json +1 -1
|
@@ -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]:
|
|
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>;
|