@tetacom/svg-charts 1.7.3 → 1.7.6
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/chart/chart-container/chart-container.component.d.ts +2 -3
- package/chart/chart-container/series-controls/series-controls.component.d.ts +12 -1
- package/chart/chart-container/series-host/series-host.component.d.ts +4 -4
- package/chart/chart-container/x-axis/x-axis.component.d.ts +8 -18
- package/chart/chart-container/y-axis/y-axis.component.d.ts +7 -14
- package/chart/service/chart.service.d.ts +2 -0
- package/fesm2022/tetacom-svg-charts.mjs +101 -95
- package/fesm2022/tetacom-svg-charts.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Axis } from '../core/axis/axis';
|
|
4
4
|
import { ZoomType } from '../model/enum/zoom-type';
|
|
@@ -16,7 +16,6 @@ export declare class ChartContainerComponent implements AfterViewInit, OnDestroy
|
|
|
16
16
|
private _svc;
|
|
17
17
|
private _scaleService;
|
|
18
18
|
private _elementRef;
|
|
19
|
-
private _zone;
|
|
20
19
|
config: Observable<IChartConfig>;
|
|
21
20
|
scales: Observable<IScalesMap>;
|
|
22
21
|
size: Observable<DOMRect>;
|
|
@@ -26,7 +25,7 @@ export declare class ChartContainerComponent implements AfterViewInit, OnDestroy
|
|
|
26
25
|
plotBands: Observable<DisplayPlotBand[]>;
|
|
27
26
|
private _observer;
|
|
28
27
|
private filterPositionMap;
|
|
29
|
-
constructor(_svc: ChartService, _scaleService: ScaleService, _elementRef: ElementRef
|
|
28
|
+
constructor(_svc: ChartService, _scaleService: ScaleService, _elementRef: ElementRef);
|
|
30
29
|
ngAfterViewInit(): void;
|
|
31
30
|
ngOnDestroy(): void;
|
|
32
31
|
private sumSize;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { Align } from '@tetacom/ng-components';
|
|
1
|
+
import { Align, TetaSize } from '@tetacom/ng-components';
|
|
2
2
|
import { Series } from '../../model/series';
|
|
3
3
|
import { BasePoint } from '../../model/base-point';
|
|
4
|
+
import { SeriesType } from '../../model/enum/series-type';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SeriesControlsComponent {
|
|
6
7
|
private chartService;
|
|
7
8
|
protected readonly Align: typeof Align;
|
|
8
9
|
series: import("@angular/core").InputSignal<Series<BasePoint>[]>;
|
|
10
|
+
enabledSeries: import("@angular/core").Signal<Series<BasePoint>[]>;
|
|
11
|
+
disabledSeries: import("@angular/core").Signal<Series<BasePoint>[]>;
|
|
9
12
|
strokeWidth: {
|
|
10
13
|
id: number;
|
|
11
14
|
value: number;
|
|
@@ -14,10 +17,18 @@ export declare class SeriesControlsComponent {
|
|
|
14
17
|
id: string;
|
|
15
18
|
value: string;
|
|
16
19
|
}[];
|
|
20
|
+
seriesType: {
|
|
21
|
+
id: SeriesType;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
17
24
|
setSeriesEnabled(series: Series<BasePoint>, value: boolean): void;
|
|
18
25
|
setSeriesColor(series: Series<BasePoint>, value: string): void;
|
|
19
26
|
setSeriesStrokeWidth(series: Series<BasePoint>, value: number): void;
|
|
20
27
|
setSeriesStrokeDasharray(series: Series<BasePoint>, value: string): void;
|
|
28
|
+
setSeriesType(series: Series<BasePoint>, value: SeriesType): void;
|
|
29
|
+
clear(): void;
|
|
30
|
+
protected readonly TetaSize: typeof TetaSize;
|
|
31
|
+
protected readonly SeriesType: typeof SeriesType;
|
|
21
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesControlsComponent, never>;
|
|
22
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesControlsComponent, "teta-series-controls", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
34
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { OnDestroy
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Series } from '../../model/series';
|
|
3
3
|
import { BasePoint } from '../../model/base-point';
|
|
4
4
|
import { IChartConfig } from '../../model/i-chart-config';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SeriesHostComponent<T extends BasePoint> implements
|
|
6
|
+
export declare class SeriesHostComponent<T extends BasePoint> implements OnDestroy {
|
|
7
7
|
private viewContainerRef;
|
|
8
8
|
config: import("@angular/core").InputSignal<IChartConfig>;
|
|
9
9
|
series: import("@angular/core").InputSignal<Series<T>>;
|
|
10
|
-
private _init;
|
|
11
10
|
private _componentRef;
|
|
11
|
+
private count;
|
|
12
|
+
private seriesComponent;
|
|
12
13
|
constructor();
|
|
13
|
-
ngOnInit(): void;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesHostComponent<any>, never>;
|
|
16
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesHostComponent<any>, "[teta-series-host]", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { Axis } from '../../core/axis/axis';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ScaleService } from '../../service/scale.service';
|
|
5
|
-
import { ChartService } from '../../service/chart.service';
|
|
6
2
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class XAxisComponent
|
|
3
|
+
export declare class XAxisComponent {
|
|
8
4
|
private scaleService;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private _alive;
|
|
16
|
-
constructor(scaleService: ScaleService, _svc: ChartService);
|
|
17
|
-
getLabelTransform(): string;
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
5
|
+
xScales: import("@angular/core").Signal<Map<number, Axis>>;
|
|
6
|
+
axis: import("@angular/core").InputSignal<Axis>;
|
|
7
|
+
size: import("@angular/core").InputSignal<DOMRect>;
|
|
8
|
+
x: import("@angular/core").Signal<any>;
|
|
9
|
+
ticks: import("@angular/core").Signal<any>;
|
|
10
|
+
getLabelTransform: import("@angular/core").Signal<string>;
|
|
21
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<XAxisComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisComponent, "[teta-x-axis]", never, { "axis": { "alias": "axis"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisComponent, "[teta-x-axis]", never, { "axis": { "alias": "axis"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
13
|
}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
1
|
import { Axis } from '../../core/axis/axis';
|
|
3
|
-
import { ScaleService } from '../../service/scale.service';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
2
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class YAxisComponent
|
|
3
|
+
export declare class YAxisComponent {
|
|
7
4
|
private scaleService;
|
|
8
|
-
|
|
9
|
-
axis: Axis
|
|
10
|
-
size: DOMRect
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
ngAfterViewInit(): void;
|
|
16
|
-
getLabelTransform(): string;
|
|
5
|
+
yScales: import("@angular/core").Signal<Map<number, Axis>>;
|
|
6
|
+
axis: import("@angular/core").InputSignal<Axis>;
|
|
7
|
+
size: import("@angular/core").InputSignal<DOMRect>;
|
|
8
|
+
y: import("@angular/core").Signal<any>;
|
|
9
|
+
getLabelTransform: import("@angular/core").Signal<string>;
|
|
17
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<YAxisComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YAxisComponent, "[teta-y-axis]", never, { "axis": { "alias": "axis"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YAxisComponent, "[teta-y-axis]", never, { "axis": { "alias": "axis"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
12
|
}
|
|
@@ -12,6 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class ChartService {
|
|
13
13
|
id: Observable<string>;
|
|
14
14
|
config: Observable<IChartConfig>;
|
|
15
|
+
initialConfig: Observable<IChartConfig>;
|
|
15
16
|
size: Observable<DOMRect>;
|
|
16
17
|
pointerMove: Observable<PointerEvent>;
|
|
17
18
|
tooltips: Observable<Map<Series<BasePoint>, IDisplayTooltip>>;
|
|
@@ -45,6 +46,7 @@ export declare class ChartService {
|
|
|
45
46
|
setTooltip(tooltip: IDisplayTooltip): void;
|
|
46
47
|
clearTooltips(): void;
|
|
47
48
|
updateSeries(series: Series<BasePoint>, visible?: boolean): Promise<void>;
|
|
49
|
+
clearSeriesSettings(): Promise<void>;
|
|
48
50
|
emitMoveAnnotation(event: IChartEvent<Annotation>): void;
|
|
49
51
|
emitAnnotation(event: IChartEvent<Annotation>): void;
|
|
50
52
|
emitPlotBand(event: IChartEvent<PlotBand>): void;
|