@pioneer-code/pioneer-charts 20.0.3 → 20.3.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/fesm2022/pioneer-code-pioneer-charts.mjs +818 -799
- package/fesm2022/pioneer-code-pioneer-charts.mjs.map +1 -1
- package/index.d.ts +118 -115
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Selection, BaseType } from 'd3-selection';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { ElementRef, SimpleChanges, OnChanges } from '@angular/core';
|
|
4
1
|
import * as rxjs from 'rxjs';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { Selection, BaseType } from 'd3-selection';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Base configuration for all charts.
|
|
@@ -28,6 +28,21 @@ declare enum PcacFormatEnum {
|
|
|
28
28
|
Fahrenheit = "fahrenheit"
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
declare class PcacBarHorizontalChartConfig extends PcacChartConfig {
|
|
32
|
+
domainMax: number;
|
|
33
|
+
numberOfTicks: number;
|
|
34
|
+
isStacked: boolean;
|
|
35
|
+
thresholds: PcacData[];
|
|
36
|
+
tickFormat: PcacFormatEnum;
|
|
37
|
+
hideGrid: boolean;
|
|
38
|
+
hideAxis: boolean;
|
|
39
|
+
spreadColorsPerGroup: boolean;
|
|
40
|
+
colorOverride: PcacBarHorizontalChartColorOverrideConfig;
|
|
41
|
+
}
|
|
42
|
+
declare class PcacBarHorizontalChartColorOverrideConfig {
|
|
43
|
+
colors: string[];
|
|
44
|
+
}
|
|
45
|
+
|
|
31
46
|
interface IPcacAxisBuilderConfig {
|
|
32
47
|
svg: Selection<BaseType, {}, HTMLElement, any>;
|
|
33
48
|
height: number;
|
|
@@ -100,13 +115,6 @@ declare class PcacColorService {
|
|
|
100
115
|
static ɵprov: i0.ɵɵInjectableDeclaration<PcacColorService>;
|
|
101
116
|
}
|
|
102
117
|
|
|
103
|
-
declare class PcacTransitionService {
|
|
104
|
-
private transitionDuration;
|
|
105
|
-
getTransitionDuration(): number;
|
|
106
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PcacTransitionService, never>;
|
|
107
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PcacTransitionService>;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
118
|
declare class PcacTooltipBuilder {
|
|
111
119
|
tooltip: any;
|
|
112
120
|
showBarTooltip(event: MouseEvent, data: PcacData, valueFormat?: PcacFormatEnum, keyFormat?: PcacFormatEnum): void;
|
|
@@ -116,6 +124,13 @@ declare class PcacTooltipBuilder {
|
|
|
116
124
|
static ɵprov: i0.ɵɵInjectableDeclaration<PcacTooltipBuilder>;
|
|
117
125
|
}
|
|
118
126
|
|
|
127
|
+
declare class PcacTransitionService {
|
|
128
|
+
private transitionDuration;
|
|
129
|
+
getTransitionDuration(): number;
|
|
130
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PcacTransitionService, never>;
|
|
131
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PcacTransitionService>;
|
|
132
|
+
}
|
|
133
|
+
|
|
119
134
|
declare class PcacChart {
|
|
120
135
|
axisBuilder: PcacAxisBuilder;
|
|
121
136
|
gridBuilder: PcacGridBuilder;
|
|
@@ -161,110 +176,6 @@ declare class PcacChart {
|
|
|
161
176
|
static ɵprov: i0.ɵɵInjectableDeclaration<PcacChart>;
|
|
162
177
|
}
|
|
163
178
|
|
|
164
|
-
declare class PcacLineAreaChartConfig extends PcacChartConfig {
|
|
165
|
-
isArea: boolean;
|
|
166
|
-
enableEffects: boolean;
|
|
167
|
-
numberOfTicks: number;
|
|
168
|
-
hideGrid: boolean;
|
|
169
|
-
hideAxis: boolean;
|
|
170
|
-
yFormat: PcacFormatEnum;
|
|
171
|
-
xFormat: PcacFormatEnum;
|
|
172
|
-
yDomainMax: number | string;
|
|
173
|
-
yDomainMin: number | string;
|
|
174
|
-
xDomainMin: number | string;
|
|
175
|
-
xDomainMax: number | string;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
declare class LineAreaChartBuilder extends PcacChart {
|
|
179
|
-
private line;
|
|
180
|
-
private area;
|
|
181
|
-
private xScale;
|
|
182
|
-
private yScale;
|
|
183
|
-
private dotClickedSource;
|
|
184
|
-
private config;
|
|
185
|
-
dotClicked$: rxjs.Observable<PcacData>;
|
|
186
|
-
buildChart(chartElm: ElementRef, config: PcacLineAreaChartConfig): void;
|
|
187
|
-
private adjustForHiddenAxis;
|
|
188
|
-
private buildScales;
|
|
189
|
-
private drawChart;
|
|
190
|
-
private drawLineArea;
|
|
191
|
-
private drawLine;
|
|
192
|
-
private drawArea;
|
|
193
|
-
private drawEffects;
|
|
194
|
-
private drawDots;
|
|
195
|
-
private getXFormat;
|
|
196
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LineAreaChartBuilder, never>;
|
|
197
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LineAreaChartBuilder>;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
declare class PcacLineAreaChartComponent {
|
|
201
|
-
private chartBuilder;
|
|
202
|
-
readonly config: i0.InputSignal<PcacLineAreaChartConfig>;
|
|
203
|
-
readonly chartElm: i0.Signal<ElementRef<any>>;
|
|
204
|
-
readonly dotClicked: i0.OutputEmitterRef<PcacData>;
|
|
205
|
-
private resizeWindowTimeout;
|
|
206
|
-
constructor();
|
|
207
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
208
|
-
buildChart(): void;
|
|
209
|
-
/**
|
|
210
|
-
* Opting against fromEvent due to incompatibility with rxjs 5 => 6
|
|
211
|
-
*/
|
|
212
|
-
onResize(): void;
|
|
213
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PcacLineAreaChartComponent, never>;
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PcacLineAreaChartComponent, "pcac-line-area-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, never, never, true, never>;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
declare class PcacPieChartConfig extends PcacChartConfig {
|
|
218
|
-
numberOfTicks: number;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
declare class PieChartBuilder extends PcacChart {
|
|
222
|
-
private radius;
|
|
223
|
-
private arcShape;
|
|
224
|
-
private arcOverShape;
|
|
225
|
-
private pieAngles;
|
|
226
|
-
private sliceClickedSource;
|
|
227
|
-
sliceClicked$: rxjs.Observable<PcacData>;
|
|
228
|
-
buildChart(chartElm: ElementRef, config: PcacPieChartConfig): void;
|
|
229
|
-
private buildShapes;
|
|
230
|
-
private drawChart;
|
|
231
|
-
private tweenChart;
|
|
232
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PieChartBuilder, never>;
|
|
233
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PieChartBuilder>;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
declare class PcacPieChartComponent implements OnChanges {
|
|
237
|
-
private chartBuilder;
|
|
238
|
-
readonly config: i0.InputSignal<PcacPieChartConfig>;
|
|
239
|
-
readonly chartElm: i0.Signal<ElementRef<any>>;
|
|
240
|
-
readonly sliceClicked: i0.OutputEmitterRef<PcacData>;
|
|
241
|
-
private resizeWindowTimeout;
|
|
242
|
-
constructor();
|
|
243
|
-
ngOnChanges(): void;
|
|
244
|
-
buildChart(): void;
|
|
245
|
-
/**
|
|
246
|
-
* Opting against fromEvent due to incompatibility with rxjs 5 => 6
|
|
247
|
-
*/
|
|
248
|
-
onResize(): void;
|
|
249
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PcacPieChartComponent, never>;
|
|
250
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PcacPieChartComponent, "pcac-pie-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, never, never, true, never>;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
declare class PcacBarHorizontalChartConfig extends PcacChartConfig {
|
|
254
|
-
domainMax: number;
|
|
255
|
-
numberOfTicks: number;
|
|
256
|
-
isStacked: boolean;
|
|
257
|
-
thresholds: PcacData[];
|
|
258
|
-
tickFormat: PcacFormatEnum;
|
|
259
|
-
hideGrid: boolean;
|
|
260
|
-
hideAxis: boolean;
|
|
261
|
-
spreadColorsPerGroup: boolean;
|
|
262
|
-
colorOverride: PcacBarHorizontalChartColorOverrideConfig;
|
|
263
|
-
}
|
|
264
|
-
declare class PcacBarHorizontalChartColorOverrideConfig {
|
|
265
|
-
colors: string[];
|
|
266
|
-
}
|
|
267
|
-
|
|
268
179
|
declare class BarHorizontalChartBuilder extends PcacChart {
|
|
269
180
|
private xScale;
|
|
270
181
|
private yScaleStacked;
|
|
@@ -361,5 +272,97 @@ declare class PcacBarVerticalChartComponent implements OnChanges {
|
|
|
361
272
|
static ɵcmp: i0.ɵɵComponentDeclaration<PcacBarVerticalChartComponent, "pcac-bar-vertical-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "barClicked": "barClicked"; }, never, never, true, never>;
|
|
362
273
|
}
|
|
363
274
|
|
|
364
|
-
|
|
275
|
+
declare class PcacLineAreaChartConfig extends PcacChartConfig {
|
|
276
|
+
isArea: boolean;
|
|
277
|
+
enableEffects: boolean;
|
|
278
|
+
numberOfTicks: number;
|
|
279
|
+
hideGrid: boolean;
|
|
280
|
+
hideAxis: boolean;
|
|
281
|
+
yFormat: PcacFormatEnum;
|
|
282
|
+
xFormat: PcacFormatEnum;
|
|
283
|
+
yDomainMax: number | string;
|
|
284
|
+
yDomainMin: number | string;
|
|
285
|
+
xDomainMin: number | string;
|
|
286
|
+
xDomainMax: number | string;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
declare class LineAreaChartBuilder extends PcacChart {
|
|
290
|
+
private line;
|
|
291
|
+
private area;
|
|
292
|
+
private xScale;
|
|
293
|
+
private yScale;
|
|
294
|
+
private dotClickedSource;
|
|
295
|
+
private config;
|
|
296
|
+
dotClicked$: rxjs.Observable<PcacData>;
|
|
297
|
+
buildChart(chartElm: ElementRef, config: PcacLineAreaChartConfig): void;
|
|
298
|
+
private adjustForHiddenAxis;
|
|
299
|
+
private buildScales;
|
|
300
|
+
private drawChart;
|
|
301
|
+
private drawLineArea;
|
|
302
|
+
private drawLine;
|
|
303
|
+
private drawArea;
|
|
304
|
+
private drawEffects;
|
|
305
|
+
private drawDots;
|
|
306
|
+
private getXFormat;
|
|
307
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LineAreaChartBuilder, never>;
|
|
308
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LineAreaChartBuilder>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare class PcacLineAreaChartComponent {
|
|
312
|
+
private chartBuilder;
|
|
313
|
+
readonly config: i0.InputSignal<PcacLineAreaChartConfig>;
|
|
314
|
+
readonly chartElm: i0.Signal<ElementRef<any>>;
|
|
315
|
+
readonly dotClicked: i0.OutputEmitterRef<PcacData>;
|
|
316
|
+
private resizeWindowTimeout;
|
|
317
|
+
constructor();
|
|
318
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
319
|
+
buildChart(): void;
|
|
320
|
+
/**
|
|
321
|
+
* Opting against fromEvent due to incompatibility with rxjs 5 => 6
|
|
322
|
+
*/
|
|
323
|
+
onResize(): void;
|
|
324
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PcacLineAreaChartComponent, never>;
|
|
325
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PcacLineAreaChartComponent, "pcac-line-area-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "dotClicked": "dotClicked"; }, never, never, true, never>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class PcacPieChartConfig extends PcacChartConfig {
|
|
329
|
+
numberOfTicks: number;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare class PieChartBuilder extends PcacChart {
|
|
333
|
+
private radius;
|
|
334
|
+
private arcShape;
|
|
335
|
+
private arcOverShape;
|
|
336
|
+
private pieAngles;
|
|
337
|
+
private sliceClickedSource;
|
|
338
|
+
sliceClicked$: rxjs.Observable<PcacData>;
|
|
339
|
+
buildChart(chartElm: ElementRef, config: PcacPieChartConfig): void;
|
|
340
|
+
private buildShapes;
|
|
341
|
+
private drawChart;
|
|
342
|
+
private tweenChart;
|
|
343
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PieChartBuilder, never>;
|
|
344
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PieChartBuilder>;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
declare class PcacPieChartComponent implements OnChanges {
|
|
348
|
+
private chartBuilder;
|
|
349
|
+
readonly config: i0.InputSignal<PcacPieChartConfig>;
|
|
350
|
+
readonly chartElm: i0.Signal<ElementRef<any>>;
|
|
351
|
+
readonly sliceClicked: i0.OutputEmitterRef<PcacData>;
|
|
352
|
+
private resizeWindowTimeout;
|
|
353
|
+
constructor();
|
|
354
|
+
ngOnChanges(): void;
|
|
355
|
+
buildChart(): void;
|
|
356
|
+
/**
|
|
357
|
+
* Opting against fromEvent due to incompatibility with rxjs 5 => 6
|
|
358
|
+
*/
|
|
359
|
+
onResize(): void;
|
|
360
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PcacPieChartComponent, never>;
|
|
361
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PcacPieChartComponent, "pcac-pie-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "sliceClicked": "sliceClicked"; }, never, never, true, never>;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
declare class PcacScatterPlotConfig extends PcacChartConfig {
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export { BarHorizontalChartBuilder, BarVerticalChartBuilder, LineAreaChartBuilder, PcacAxisBuilder, PcacBarHorizontalChartColorOverrideConfig, PcacBarHorizontalChartComponent, PcacBarHorizontalChartConfig, PcacBarVerticalChartColorOverrideConfig, PcacBarVerticalChartComponent, PcacBarVerticalChartConfig, PcacChart, PcacChartConfig, PcacColorService, PcacData, PcacFormatEnum, PcacGridBuilder, PcacLineAreaChartComponent, PcacLineAreaChartConfig, PcacPieChartComponent, PcacPieChartConfig, PcacScatterPlotConfig, PcacTooltipBuilder, PcacTransitionService, PieChartBuilder };
|
|
365
368
|
export type { IBarVerticalChartBuilder, IPcacAxisBuilderConfig, IPcacGridBuilderConfig };
|