@tetacom/svg-charts 1.6.5 → 1.7.1
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/.eslintrc.json +3 -5
- package/chart/base/series-base.component.d.ts +9 -13
- package/chart/chart-container/chart-container.component.d.ts +0 -3
- package/chart/chart-container/series/area-series/area-series.component.d.ts +3 -13
- package/chart/chart-container/series/bar/bar-series.component.d.ts +7 -21
- package/chart/chart-container/series/block-area-series/block-area-series.component.d.ts +5 -21
- package/chart/chart-container/series/block-horizontal-series/block-horizontal-series.component.d.ts +5 -20
- package/chart/chart-container/series/block-series/block-series.component.d.ts +5 -20
- package/chart/chart-container/series/line/line-series.component.d.ts +3 -12
- package/chart/chart-container/series/linear-series-base.component.d.ts +22 -0
- package/chart/chart-container/series/public-api.d.ts +1 -1
- package/chart/chart-container/series/scatter-series/scatter-series.component.d.ts +3 -17
- package/chart/chart-container/series-controls/series-controls.component.d.ts +23 -0
- package/chart/chart-container/series-host/series-host.component.d.ts +5 -6
- package/chart/legend/legend.component.d.ts +3 -3
- package/chart/model/i-chart-config.d.ts +4 -1
- package/chart/model/series.d.ts +1 -0
- package/chart/service/chart.service.d.ts +4 -3
- package/fesm2022/tetacom-svg-charts.mjs +356 -414
- package/fesm2022/tetacom-svg-charts.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/package.json +4 -5
- package/chart/chart-container/series/linear-series-base.d.ts +0 -35
- package/esm2022/chart/base/series-base.component.mjs +0 -45
- package/esm2022/chart/chart/chart.component.mjs +0 -151
- package/esm2022/chart/chart-container/annotation/annotation.component.mjs +0 -101
- package/esm2022/chart/chart-container/chart-container.component.mjs +0 -191
- package/esm2022/chart/chart-container/crosshair/crosshair.component.mjs +0 -36
- package/esm2022/chart/chart-container/gridlines/gridlines.component.mjs +0 -42
- package/esm2022/chart/chart-container/plotband/plot-band.component.mjs +0 -153
- package/esm2022/chart/chart-container/plotline/plotline.component.mjs +0 -85
- package/esm2022/chart/chart-container/series/area-series/area-series.component.mjs +0 -67
- package/esm2022/chart/chart-container/series/bar/bar-series.component.mjs +0 -61
- package/esm2022/chart/chart-container/series/block-area-series/block-area-series.component.mjs +0 -56
- package/esm2022/chart/chart-container/series/block-horizontal-series/block-horizontal-series.component.mjs +0 -55
- package/esm2022/chart/chart-container/series/block-series/block-series.component.mjs +0 -55
- package/esm2022/chart/chart-container/series/line/line-series.component.mjs +0 -95
- package/esm2022/chart/chart-container/series/linear-series-base.mjs +0 -204
- package/esm2022/chart/chart-container/series/public-api.mjs +0 -9
- package/esm2022/chart/chart-container/series/scatter-series/scatter-series.component.mjs +0 -45
- package/esm2022/chart/chart-container/series-host/series-host.component.mjs +0 -46
- package/esm2022/chart/chart-container/tooltip/tooltip.component.mjs +0 -100
- package/esm2022/chart/chart-container/x-axis/x-axis.component.mjs +0 -52
- package/esm2022/chart/chart-container/y-axis/y-axis.component.mjs +0 -35
- package/esm2022/chart/core/axis/axis.mjs +0 -128
- package/esm2022/chart/core/axis/builders/axis-size-builder.mjs +0 -33
- package/esm2022/chart/core/axis/builders/extremes-builder.mjs +0 -43
- package/esm2022/chart/core/axis/builders/public-api.mjs +0 -3
- package/esm2022/chart/core/utils/generate-ticks.mjs +0 -8
- package/esm2022/chart/core/utils/get-text-width.mjs +0 -6
- package/esm2022/chart/core/utils/position-util.mjs +0 -136
- package/esm2022/chart/core/utils/public-api.mjs +0 -3
- package/esm2022/chart/default/default-axis-config.mjs +0 -10
- package/esm2022/chart/default/default-chart-config.mjs +0 -39
- package/esm2022/chart/default/default-series-config.mjs +0 -14
- package/esm2022/chart/default/defaultSeriesTypeMapping.mjs +0 -15
- package/esm2022/chart/directives/brushable.directive.mjs +0 -131
- package/esm2022/chart/directives/draggable-point.directive.mjs +0 -144
- package/esm2022/chart/directives/zoomable.directive.mjs +0 -246
- package/esm2022/chart/legend/legend.component.mjs +0 -36
- package/esm2022/chart/model/annotation.mjs +0 -2
- package/esm2022/chart/model/axis-options.mjs +0 -2
- package/esm2022/chart/model/base-point.mjs +0 -2
- package/esm2022/chart/model/chart-bounds.mjs +0 -13
- package/esm2022/chart/model/enum/align.enum.mjs +0 -13
- package/esm2022/chart/model/enum/axis-orientation.mjs +0 -6
- package/esm2022/chart/model/enum/brush-type.mjs +0 -7
- package/esm2022/chart/model/enum/clip-points-direction.mjs +0 -7
- package/esm2022/chart/model/enum/drag-point-type.mjs +0 -7
- package/esm2022/chart/model/enum/fill-type.mjs +0 -11
- package/esm2022/chart/model/enum/public-api.mjs +0 -11
- package/esm2022/chart/model/enum/scale-type.mjs +0 -11
- package/esm2022/chart/model/enum/series-type.mjs +0 -10
- package/esm2022/chart/model/enum/tooltip-tracking.mjs +0 -6
- package/esm2022/chart/model/enum/vertical-align.enum.mjs +0 -11
- package/esm2022/chart/model/enum/zoom-behavior-type.mjs +0 -6
- package/esm2022/chart/model/enum/zoom-type.mjs +0 -7
- package/esm2022/chart/model/i-broadcast-message.mjs +0 -18
- package/esm2022/chart/model/i-builder.mjs +0 -2
- package/esm2022/chart/model/i-chart-config.mjs +0 -2
- package/esm2022/chart/model/i-chart-event.mjs +0 -2
- package/esm2022/chart/model/i-display-tooltip.mjs +0 -2
- package/esm2022/chart/model/i-point-move.mjs +0 -2
- package/esm2022/chart/model/i-rect.mjs +0 -2
- package/esm2022/chart/model/i-scales-map.mjs +0 -2
- package/esm2022/chart/model/marker-options.mjs +0 -2
- package/esm2022/chart/model/plot-band.mjs +0 -18
- package/esm2022/chart/model/plot-line.mjs +0 -13
- package/esm2022/chart/model/public-api.mjs +0 -17
- package/esm2022/chart/model/series.mjs +0 -2
- package/esm2022/chart/model/svg-attributes.mjs +0 -2
- package/esm2022/chart/model/tooltip-options.mjs +0 -2
- package/esm2022/chart/service/broadcast.service.mjs +0 -23
- package/esm2022/chart/service/brush.service.mjs +0 -21
- package/esm2022/chart/service/chart.service.mjs +0 -224
- package/esm2022/chart/service/public-api.mjs +0 -6
- package/esm2022/chart/service/scale.service.mjs +0 -197
- package/esm2022/chart/service/zoom.service.mjs +0 -84
- package/esm2022/index.mjs +0 -13
- package/esm2022/observable/public-api.mjs +0 -2
- package/esm2022/observable/zoneObservable.mjs +0 -15
- package/esm2022/tetacom-svg-charts.mjs +0 -5
- package/observable/public-api.d.ts +0 -1
- package/observable/zoneObservable.d.ts +0 -5
package/.eslintrc.json
CHANGED
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
"overrides": [
|
|
5
5
|
{
|
|
6
6
|
"files": ["*.ts"],
|
|
7
|
-
"extends": [
|
|
8
|
-
"plugin:@nx/angular",
|
|
9
|
-
"plugin:@angular-eslint/template/process-inline-templates"
|
|
10
|
-
],
|
|
7
|
+
"extends": ["plugin:@nx/angular", "plugin:@angular-eslint/template/process-inline-templates"],
|
|
11
8
|
"rules": {
|
|
12
9
|
"@angular-eslint/directive-selector": [
|
|
13
10
|
"error",
|
|
@@ -24,7 +21,8 @@
|
|
|
24
21
|
"prefix": "teta",
|
|
25
22
|
"style": "kebab-case"
|
|
26
23
|
}
|
|
27
|
-
]
|
|
24
|
+
],
|
|
25
|
+
"@angular-eslint/prefer-standalone": "off"
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef
|
|
1
|
+
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { BasePoint } from '../model/base-point';
|
|
3
3
|
import { IChartConfig } from '../model/i-chart-config';
|
|
4
4
|
import { Series } from '../model/series';
|
|
@@ -6,21 +6,17 @@ import { ChartService } from '../service/chart.service';
|
|
|
6
6
|
import { ScaleService } from '../service/scale.service';
|
|
7
7
|
import { ZoomService } from '../service/zoom.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class SeriesBaseComponent<T extends BasePoint>
|
|
9
|
+
export declare class SeriesBaseComponent<T extends BasePoint> {
|
|
10
10
|
protected svc: ChartService;
|
|
11
11
|
protected cdr: ChangeDetectorRef;
|
|
12
12
|
protected scaleService: ScaleService;
|
|
13
13
|
protected zoomService: ZoomService;
|
|
14
|
-
protected element: ElementRef
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
protected _series: Series<T>;
|
|
21
|
-
protected _config: IChartConfig;
|
|
22
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef, zone?: NgZone);
|
|
23
|
-
ngOnInit(): void;
|
|
14
|
+
protected element: ElementRef<any>;
|
|
15
|
+
id: string;
|
|
16
|
+
config: import("@angular/core").InputSignal<IChartConfig>;
|
|
17
|
+
series: import("@angular/core").InputSignal<Series<T>>;
|
|
18
|
+
mouseenter(point: BasePoint): void;
|
|
19
|
+
mouseleave(point: BasePoint): void;
|
|
24
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesBaseComponent<any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesBaseComponent<any>, "ng-component", never, { "config": { "alias": "config"; "required": false; }; "series": { "alias": "series"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesBaseComponent<any>, "ng-component", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
22
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Axis } from '../core/axis/axis';
|
|
4
|
-
import { BasePoint } from '../model/base-point';
|
|
5
4
|
import { ZoomType } from '../model/enum/zoom-type';
|
|
6
5
|
import { IChartConfig } from '../model/i-chart-config';
|
|
7
6
|
import { IScalesMap } from '../model/i-scales-map';
|
|
8
7
|
import { PlotBand } from '../model/plot-band';
|
|
9
|
-
import { Series } from '../model/series';
|
|
10
8
|
import { ChartService } from '../service/chart.service';
|
|
11
9
|
import { ScaleService } from '../service/scale.service';
|
|
12
10
|
import * as i0 from "@angular/core";
|
|
@@ -37,7 +35,6 @@ export declare class ChartContainerComponent implements AfterViewInit, OnDestroy
|
|
|
37
35
|
contextMenu(event: MouseEvent, xScales: Map<number, Axis>, yScales: Map<number, Axis>): void;
|
|
38
36
|
mouseMove(event: any): void;
|
|
39
37
|
mouseLeave(event: any): void;
|
|
40
|
-
trackSerie(index: any, item: Series<BasePoint>): any;
|
|
41
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartContainerComponent, never>;
|
|
42
39
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChartContainerComponent, "teta-chart-container", never, {}, {}, never, never, true, never>;
|
|
43
40
|
}
|
|
@@ -1,23 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BasePoint } from '../../../model/base-point';
|
|
4
4
|
import { FillDirection, FillType } from '../../../model/enum/fill-type';
|
|
5
|
-
import {
|
|
6
|
-
import { ScaleService } from '../../../service/scale.service';
|
|
7
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
8
|
-
import { LinearSeriesBase } from '../linear-series-base';
|
|
5
|
+
import { LinearSeriesBaseComponent } from '../linear-series-base.component';
|
|
9
6
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class AreaSeriesComponent<T extends BasePoint> extends
|
|
11
|
-
protected svc: ChartService;
|
|
12
|
-
protected cdr: ChangeDetectorRef;
|
|
13
|
-
protected scaleService: ScaleService;
|
|
14
|
-
protected zoomService: ZoomService;
|
|
15
|
-
protected element: ElementRef;
|
|
7
|
+
export declare class AreaSeriesComponent<T extends BasePoint> extends LinearSeriesBaseComponent<T> implements OnInit, OnDestroy {
|
|
16
8
|
areaPath: Observable<string>;
|
|
17
9
|
fillDirection: typeof FillDirection;
|
|
18
10
|
fillType: typeof FillType;
|
|
19
|
-
id: string;
|
|
20
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
21
11
|
ngOnInit(): void;
|
|
22
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AreaSeriesComponent<any>, never>;
|
|
23
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<AreaSeriesComponent<any>, "svg:svg[teta-area-series]", never, {}, {}, never, never, true, never>;
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
1
|
import { SeriesBaseComponent } from '../../../base/series-base.component';
|
|
3
2
|
import { BasePoint } from '../../../model/base-point';
|
|
4
|
-
import { ChartService } from '../../../service/chart.service';
|
|
5
|
-
import { ScaleService } from '../../../service/scale.service';
|
|
6
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
8
3
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class BarSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
protected element: ElementRef;
|
|
15
|
-
x: Observable<any>;
|
|
16
|
-
x1: Observable<any>;
|
|
17
|
-
y: Observable<any>;
|
|
18
|
-
barSeriesCount: Observable<number>;
|
|
19
|
-
Math: any;
|
|
20
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
mouseenter(point: BasePoint): void;
|
|
23
|
-
mouseleave(point: BasePoint): void;
|
|
24
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
4
|
+
export declare class BarSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> {
|
|
5
|
+
x: import("rxjs").Observable<any>;
|
|
6
|
+
y: import("rxjs").Observable<any>;
|
|
7
|
+
x1: import("rxjs").Observable<any>;
|
|
8
|
+
barSeriesCount: import("rxjs").Observable<number>;
|
|
25
9
|
isNumber(value: any): value is number;
|
|
10
|
+
protected readonly Math: Math;
|
|
11
|
+
protected readonly Number: NumberConstructor;
|
|
26
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarSeriesComponent<any>, never>;
|
|
27
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<BarSeriesComponent<any>, "svg:svg[teta-bar-series]", never, {}, {}, never, never, true, never>;
|
|
28
14
|
}
|
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
1
|
import { SeriesBaseComponent } from '../../../base/series-base.component';
|
|
4
2
|
import { BasePoint } from '../../../model/base-point';
|
|
5
3
|
import { FillType } from '../../../model/enum/fill-type';
|
|
6
|
-
import { ChartService } from '../../../service/chart.service';
|
|
7
|
-
import { ScaleService } from '../../../service/scale.service';
|
|
8
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
9
4
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class BlockAreaSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
protected zoomService: ZoomService;
|
|
15
|
-
protected element: ElementRef;
|
|
16
|
-
x: Observable<any>;
|
|
17
|
-
y: Observable<any>;
|
|
18
|
-
displayPoints: Observable<BasePoint[]>;
|
|
5
|
+
export declare class BlockAreaSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> {
|
|
6
|
+
x: import("rxjs").Observable<any>;
|
|
7
|
+
y: import("rxjs").Observable<any>;
|
|
8
|
+
displayPoints: import("rxjs").Observable<T[]>;
|
|
19
9
|
fillType: typeof FillType;
|
|
20
|
-
|
|
21
|
-
Math: Math;
|
|
22
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
ngAfterViewInit(): void;
|
|
25
|
-
mouseenter(point: BasePoint): void;
|
|
26
|
-
mouseleave(point: BasePoint): void;
|
|
10
|
+
protected readonly Math: Math;
|
|
27
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockAreaSeriesComponent<any>, never>;
|
|
28
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<BlockAreaSeriesComponent<any>, "svg:svg[teta-block-area-series]", never, {}, {}, never, never, true, never>;
|
|
29
13
|
}
|
package/chart/chart-container/series/block-horizontal-series/block-horizontal-series.component.d.ts
CHANGED
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
1
|
import { SeriesBaseComponent } from '../../../base/series-base.component';
|
|
4
2
|
import { BasePoint } from '../../../model/base-point';
|
|
5
3
|
import { FillType } from '../../../model/enum/fill-type';
|
|
6
|
-
import { ChartService } from '../../../service/chart.service';
|
|
7
|
-
import { ScaleService } from '../../../service/scale.service';
|
|
8
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
9
4
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class BlockHorizontalSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
protected zoomService: ZoomService;
|
|
15
|
-
protected element: ElementRef;
|
|
16
|
-
x: Observable<any>;
|
|
17
|
-
y: Observable<any>;
|
|
18
|
-
displayPoints: Observable<BasePoint[]>;
|
|
5
|
+
export declare class BlockHorizontalSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> {
|
|
6
|
+
x: import("rxjs").Observable<any>;
|
|
7
|
+
y: import("rxjs").Observable<any>;
|
|
8
|
+
displayPoints: import("rxjs").Observable<T[]>;
|
|
19
9
|
fillType: typeof FillType;
|
|
20
|
-
|
|
21
|
-
Math: Math;
|
|
22
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
mouseenter(point: BasePoint): void;
|
|
25
|
-
mouseleave(point: BasePoint): void;
|
|
10
|
+
protected readonly Math: Math;
|
|
26
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockHorizontalSeriesComponent<any>, never>;
|
|
27
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<BlockHorizontalSeriesComponent<any>, "svg:svg[teta-block-horizontal-series]", never, {}, {}, never, never, true, never>;
|
|
28
13
|
}
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
1
|
import { SeriesBaseComponent } from '../../../base/series-base.component';
|
|
4
2
|
import { BasePoint } from '../../../model/base-point';
|
|
5
3
|
import { FillType } from '../../../model/enum/fill-type';
|
|
6
|
-
import { ChartService } from '../../../service/chart.service';
|
|
7
|
-
import { ScaleService } from '../../../service/scale.service';
|
|
8
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
9
4
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class BlockSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
protected zoomService: ZoomService;
|
|
15
|
-
protected element: ElementRef;
|
|
16
|
-
x: Observable<any>;
|
|
17
|
-
y: Observable<any>;
|
|
18
|
-
displayPoints: Observable<BasePoint[]>;
|
|
5
|
+
export declare class BlockSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> {
|
|
6
|
+
x: import("rxjs").Observable<any>;
|
|
7
|
+
y: import("rxjs").Observable<any>;
|
|
8
|
+
displayPoints: import("rxjs").Observable<T[]>;
|
|
19
9
|
fillType: typeof FillType;
|
|
20
|
-
|
|
21
|
-
Math: Math;
|
|
22
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
mouseenter(point: BasePoint): void;
|
|
25
|
-
mouseleave(point: BasePoint): void;
|
|
10
|
+
protected readonly Math: Math;
|
|
26
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockSeriesComponent<any>, never>;
|
|
27
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<BlockSeriesComponent<any>, "svg:svg[teta-block-series]", never, {}, {}, never, never, true, never>;
|
|
28
13
|
}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChartService } from '../../../service/chart.service';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
2
|
import { BasePoint } from '../../../model/base-point';
|
|
4
|
-
import {
|
|
5
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
6
|
-
import { LinearSeriesBase } from '../linear-series-base';
|
|
3
|
+
import { LinearSeriesBaseComponent } from '../linear-series-base.component';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class LineSeriesComponent<T extends BasePoint> extends
|
|
9
|
-
protected svc: ChartService;
|
|
10
|
-
protected cdr: ChangeDetectorRef;
|
|
11
|
-
protected scaleService: ScaleService;
|
|
12
|
-
protected zoomService: ZoomService;
|
|
13
|
-
protected element: ElementRef;
|
|
14
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
5
|
+
export declare class LineSeriesComponent<T extends BasePoint> extends LinearSeriesBaseComponent<T> implements OnInit, OnDestroy {
|
|
15
6
|
private start;
|
|
16
7
|
private labelStart;
|
|
17
8
|
moveStart(event: any, point: any): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { SeriesBaseComponent } from '../../base/series-base.component';
|
|
4
|
+
import { BasePoint } from '../../model/base-point';
|
|
5
|
+
import { ClipPointsDirection } from '../../model/enum/clip-points-direction';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class LinearSeriesBaseComponent<T extends BasePoint> extends SeriesBaseComponent<T> implements OnInit, OnDestroy {
|
|
8
|
+
defaultClipPointsMapping: Map<ClipPointsDirection, (min: number, max: number) => (point: BasePoint, idx: number, arr: Array<BasePoint>) => {}>;
|
|
9
|
+
transform: Observable<Pick<BasePoint, 'x' | 'y'>>;
|
|
10
|
+
display: Observable<number>;
|
|
11
|
+
path: Observable<string>;
|
|
12
|
+
x: any;
|
|
13
|
+
y: any;
|
|
14
|
+
markers: import("@angular/core").Signal<T[]>;
|
|
15
|
+
private __series;
|
|
16
|
+
protected _update: BehaviorSubject<void>;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
getTransform(event: any, scaleX: any, scaleY: any): Pick<BasePoint, 'x' | 'y'>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LinearSeriesBaseComponent<any>, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinearSeriesBaseComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -4,5 +4,5 @@ export * from './block-area-series/block-area-series.component';
|
|
|
4
4
|
export * from './block-horizontal-series/block-horizontal-series.component';
|
|
5
5
|
export * from './block-series/block-series.component';
|
|
6
6
|
export * from './line/line-series.component';
|
|
7
|
-
export * from './linear-series-base';
|
|
7
|
+
export * from './linear-series-base.component';
|
|
8
8
|
export * from './scatter-series/scatter-series.component';
|
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
1
|
import { BasePoint } from '../../../model/base-point';
|
|
3
2
|
import { SeriesBaseComponent } from '../../../base/series-base.component';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { ChartService } from '../../../service/chart.service';
|
|
6
|
-
import { ScaleService } from '../../../service/scale.service';
|
|
7
|
-
import { ZoomService } from '../../../service/zoom.service';
|
|
8
4
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ScatterSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
protected scaleService: ScaleService;
|
|
13
|
-
protected zoomService: ZoomService;
|
|
14
|
-
protected element: ElementRef;
|
|
5
|
+
export declare class ScatterSeriesComponent<T extends BasePoint> extends SeriesBaseComponent<T> {
|
|
6
|
+
x: Observable<any>;
|
|
7
|
+
y: Observable<any>;
|
|
15
8
|
transform: Observable<Pick<BasePoint, 'x' | 'y'>>;
|
|
16
9
|
display: Observable<number>;
|
|
17
10
|
path: Observable<string>;
|
|
18
|
-
x: Observable<any>;
|
|
19
|
-
y: Observable<any>;
|
|
20
|
-
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
ngAfterViewInit(): void;
|
|
23
|
-
mouseenter(point: BasePoint): void;
|
|
24
|
-
mouseleave(point: BasePoint): void;
|
|
25
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScatterSeriesComponent<any>, never>;
|
|
26
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScatterSeriesComponent<any>, "svg:svg[teta-scatter-series]", never, {}, {}, never, never, true, never>;
|
|
27
13
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Align } from '@tetacom/ng-components';
|
|
2
|
+
import { Series } from '../../model/series';
|
|
3
|
+
import { BasePoint } from '../../model/base-point';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SeriesControlsComponent {
|
|
6
|
+
private chartService;
|
|
7
|
+
protected readonly Align: typeof Align;
|
|
8
|
+
series: import("@angular/core").InputSignal<Series<BasePoint>[]>;
|
|
9
|
+
strokeWidth: {
|
|
10
|
+
id: number;
|
|
11
|
+
value: number;
|
|
12
|
+
}[];
|
|
13
|
+
strokeArray: {
|
|
14
|
+
id: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
setSeriesEnabled(series: Series<BasePoint>, value: boolean): void;
|
|
18
|
+
setSeriesColor(series: Series<BasePoint>, value: string): void;
|
|
19
|
+
setSeriesStrokeWidth(series: Series<BasePoint>, value: number): void;
|
|
20
|
+
setSeriesStrokeDasharray(series: Series<BasePoint>, value: string): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesControlsComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesControlsComponent, "teta-series-controls", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { OnDestroy, OnInit
|
|
1
|
+
import { OnDestroy, OnInit } 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
6
|
export declare class SeriesHostComponent<T extends BasePoint> implements OnInit, OnDestroy {
|
|
7
7
|
private viewContainerRef;
|
|
8
|
-
config: IChartConfig
|
|
9
|
-
series: Series<T
|
|
8
|
+
config: import("@angular/core").InputSignal<IChartConfig>;
|
|
9
|
+
series: import("@angular/core").InputSignal<Series<T>>;
|
|
10
10
|
private _init;
|
|
11
11
|
private _componentRef;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor();
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
16
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesHostComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesHostComponent<any>, "[teta-series-host]", never, { "config": { "alias": "config"; "required": false; }; "series": { "alias": "series"; "required": false; }; }, {}, never, never, true, never>;
|
|
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>;
|
|
18
17
|
}
|
|
@@ -5,11 +5,11 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class LegendComponent {
|
|
6
6
|
private chartService;
|
|
7
7
|
private sizeMapping;
|
|
8
|
-
series:
|
|
8
|
+
series: import("@angular/core").InputSignal<Series<BasePoint>[]>;
|
|
9
9
|
classLegend: boolean;
|
|
10
10
|
constructor(chartService: ChartService);
|
|
11
11
|
getHeight(serie: Series<BasePoint>): number;
|
|
12
|
-
click(
|
|
12
|
+
click(series: Series<BasePoint>, visible?: boolean): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "teta-legend", never, { "series": { "alias": "series"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "teta-legend", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
15
|
}
|
|
@@ -10,7 +10,7 @@ import { ZoomBehaviorType } from './enum/zoom-behavior-type';
|
|
|
10
10
|
export interface IChartConfig {
|
|
11
11
|
name?: string;
|
|
12
12
|
id?: string;
|
|
13
|
-
series
|
|
13
|
+
series: Series<BasePoint>[];
|
|
14
14
|
noDataText?: 'No data';
|
|
15
15
|
zoom?: {
|
|
16
16
|
enable: boolean;
|
|
@@ -39,6 +39,9 @@ export interface IChartConfig {
|
|
|
39
39
|
legend?: {
|
|
40
40
|
enable?: boolean;
|
|
41
41
|
};
|
|
42
|
+
controls?: {
|
|
43
|
+
enable?: boolean;
|
|
44
|
+
};
|
|
42
45
|
bounds?: ChartBounds;
|
|
43
46
|
inverted?: boolean;
|
|
44
47
|
tooltip?: TooltipOptions;
|
package/chart/model/series.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare class ChartService {
|
|
|
26
26
|
chartClick: Observable<IChartEvent<BasePoint>>;
|
|
27
27
|
chartContextMenu: Observable<IChartEvent<BasePoint>>;
|
|
28
28
|
private config$;
|
|
29
|
+
private configUpdates$;
|
|
29
30
|
private size$;
|
|
30
31
|
private pointerMove$;
|
|
31
32
|
private tooltips$;
|
|
@@ -43,11 +44,11 @@ export declare class ChartService {
|
|
|
43
44
|
setPointerMove(event: PointerEvent): void;
|
|
44
45
|
setTooltip(tooltip: IDisplayTooltip): void;
|
|
45
46
|
clearTooltips(): void;
|
|
46
|
-
|
|
47
|
+
updateSeries(series: Series<BasePoint>, visible?: boolean): Promise<void>;
|
|
47
48
|
emitMoveAnnotation(event: IChartEvent<Annotation>): void;
|
|
48
49
|
emitAnnotation(event: IChartEvent<Annotation>): void;
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
emitPlotBand(event: IChartEvent<PlotBand>): void;
|
|
51
|
+
emitPlotLine(event: IChartEvent<PlotLine>): void;
|
|
51
52
|
emitPoint(event: IChartEvent<IPointMove>): void;
|
|
52
53
|
emitChartClick(event: IChartEvent<BasePoint>): void;
|
|
53
54
|
emitChartContextMenu(event: IChartEvent<BasePoint>): void;
|