@tetacom/svg-charts 1.1.45 → 1.1.48
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/base/series-base.component.d.ts +1 -1
- package/chart/chart/chart.component.d.ts +1 -1
- package/chart/chart-container/annotation/annotation.component.d.ts +1 -1
- package/chart/chart-container/chart-container.component.d.ts +6 -3
- package/chart/chart-container/crosshair/crosshair.component.d.ts +16 -0
- package/chart/chart-container/gridlines/gridlines.component.d.ts +1 -1
- package/chart/chart-container/plotband/plot-band.component.d.ts +1 -1
- package/chart/chart-container/plotline/plotline.component.d.ts +1 -1
- package/chart/chart-container/series/area-series/area-series.component.d.ts +1 -1
- package/chart/chart-container/series/bar/bar-series.component.d.ts +1 -1
- package/chart/chart-container/series/block-area-series/block-area-series.component.d.ts +1 -1
- package/chart/chart-container/series/block-series/block-series.component.d.ts +1 -1
- package/chart/chart-container/series/line/line-series.component.d.ts +1 -1
- package/chart/chart-container/series/linear-series-base.d.ts +1 -1
- package/chart/chart-container/series/scatter-series/scatter-series.component.d.ts +1 -1
- package/chart/chart-container/series-host/series-host.component.d.ts +1 -1
- package/chart/chart-container/tooltip/tooltip.component.d.ts +4 -1
- package/chart/chart-container/x-axis/x-axis.component.d.ts +1 -1
- package/chart/chart-container/y-axis/y-axis.component.d.ts +1 -1
- package/chart/chart.module.d.ts +3 -3
- package/chart/directives/brushable.directive.d.ts +1 -1
- package/chart/directives/zoomable.directive.d.ts +3 -3
- package/chart/legend/legend.component.d.ts +1 -1
- package/chart/model/i-broadcast-message.d.ts +9 -2
- package/chart/model/tooltip-options.d.ts +3 -0
- package/esm2020/chart/base/series-base.component.mjs +3 -3
- package/esm2020/chart/chart/chart.component.mjs +6 -6
- package/esm2020/chart/chart-container/annotation/annotation.component.mjs +4 -4
- package/esm2020/chart/chart-container/chart-container.component.mjs +26 -23
- package/esm2020/chart/chart-container/crosshair/crosshair.component.mjs +37 -0
- package/esm2020/chart/chart-container/gridlines/gridlines.component.mjs +4 -4
- package/esm2020/chart/chart-container/plotband/plot-band.component.mjs +3 -3
- package/esm2020/chart/chart-container/plotline/plotline.component.mjs +3 -3
- package/esm2020/chart/chart-container/series/area-series/area-series.component.mjs +5 -6
- package/esm2020/chart/chart-container/series/bar/bar-series.component.mjs +4 -4
- package/esm2020/chart/chart-container/series/block-area-series/block-area-series.component.mjs +4 -4
- package/esm2020/chart/chart-container/series/block-series/block-series.component.mjs +4 -4
- package/esm2020/chart/chart-container/series/line/line-series.component.mjs +6 -7
- package/esm2020/chart/chart-container/series/linear-series-base.mjs +3 -3
- package/esm2020/chart/chart-container/series/scatter-series/scatter-series.component.mjs +3 -3
- package/esm2020/chart/chart-container/series-host/series-host.component.mjs +3 -3
- package/esm2020/chart/chart-container/tooltip/tooltip.component.mjs +14 -5
- package/esm2020/chart/chart-container/x-axis/x-axis.component.mjs +3 -3
- package/esm2020/chart/chart-container/y-axis/y-axis.component.mjs +3 -3
- package/esm2020/chart/chart.module.mjs +10 -8
- package/esm2020/chart/default/default-chart-config.mjs +2 -1
- package/esm2020/chart/directives/brushable.directive.mjs +3 -3
- package/esm2020/chart/directives/zoomable.directive.mjs +44 -50
- package/esm2020/chart/legend/legend.component.mjs +3 -3
- package/esm2020/chart/model/i-broadcast-message.mjs +3 -1
- package/esm2020/chart/model/tooltip-options.mjs +1 -1
- package/esm2020/chart/service/broadcast.service.mjs +3 -3
- package/esm2020/chart/service/brush.service.mjs +3 -3
- package/esm2020/chart/service/chart.service.mjs +3 -3
- package/esm2020/chart/service/scale.service.mjs +3 -3
- package/esm2020/chart/service/zoom.service.mjs +5 -6
- package/fesm2015/tetacom-svg-charts.mjs +632 -593
- package/fesm2015/tetacom-svg-charts.mjs.map +1 -1
- package/fesm2020/tetacom-svg-charts.mjs +989 -949
- package/fesm2020/tetacom-svg-charts.mjs.map +1 -1
- package/{tetacom-svg-charts.d.ts → index.d.ts} +0 -0
- package/package.json +6 -4
|
@@ -21,5 +21,5 @@ export declare class SeriesBaseComponent<T extends BasePoint> implements OnInit
|
|
|
21
21
|
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesBaseComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesBaseComponent<any>, "ng-component", never, { "config": "config"; "series": "series"; }, {}, never, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesBaseComponent<any>, "ng-component", never, { "config": "config"; "series": "series"; }, {}, never, never, false>;
|
|
25
25
|
}
|
|
@@ -38,5 +38,5 @@ export declare class ChartComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
38
38
|
ngAfterViewInit(): void;
|
|
39
39
|
ngOnDestroy(): void;
|
|
40
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-svg-chart", never, { "config": "config"; }, { "pointerMove": "pointerMove"; "plotBandsMove": "plotBandsMove"; "plotBandClick": "plotBandClick"; "plotBandContextMenu": "plotBandContextMenu"; "plotLinesMove": "plotLinesMove"; "pointMove": "pointMove"; "chartClick": "chartClick"; "chartContextMenu": "chartContextMenu"; "annotationContextMenu": "annotationContextMenu"; "annotationClick": "annotationClick"; "annotationMove": "annotationMove"; }, never, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-svg-chart", never, { "config": "config"; }, { "pointerMove": "pointerMove"; "plotBandsMove": "plotBandsMove"; "plotBandClick": "plotBandClick"; "plotBandContextMenu": "plotBandContextMenu"; "plotLinesMove": "plotLinesMove"; "pointMove": "pointMove"; "chartClick": "chartClick"; "chartContextMenu": "chartContextMenu"; "annotationContextMenu": "annotationContextMenu"; "annotationClick": "annotationClick"; "annotationMove": "annotationMove"; }, never, never, false>;
|
|
42
42
|
}
|
|
@@ -23,5 +23,5 @@ export declare class AnnotationComponent implements OnDestroy {
|
|
|
23
23
|
ngOnDestroy(): void;
|
|
24
24
|
private init;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnnotationComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AnnotationComponent, "[teta-annotation]", never, { "annotation": "annotation"; }, {}, never, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AnnotationComponent, "[teta-annotation]", never, { "annotation": "annotation"; }, {}, never, never, false>;
|
|
27
27
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IChartConfig } from '../model/i-chart-config';
|
|
3
3
|
import { ChartService } from '../service/chart.service';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { Axis } from '../core/axis/axis';
|
|
6
6
|
import { ScaleService } from '../service/scale.service';
|
|
7
7
|
import { ZoomService } from '../service/zoom.service';
|
|
8
|
+
import { ZoomType } from "../model/enum/zoom-type";
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class ChartContainerComponent implements OnInit, OnDestroy {
|
|
10
11
|
private _svc;
|
|
@@ -12,6 +13,7 @@ export declare class ChartContainerComponent implements OnInit, OnDestroy {
|
|
|
12
13
|
private _scaleService;
|
|
13
14
|
private _zoomService;
|
|
14
15
|
private _elementRef;
|
|
16
|
+
private _zone;
|
|
15
17
|
config: Observable<IChartConfig>;
|
|
16
18
|
yAxisMap: Observable<Map<number, Axis>>;
|
|
17
19
|
xAxisMap: Observable<Map<number, Axis>>;
|
|
@@ -21,8 +23,9 @@ export declare class ChartContainerComponent implements OnInit, OnDestroy {
|
|
|
21
23
|
visibleRect: Observable<any>;
|
|
22
24
|
brushScale: Observable<any>;
|
|
23
25
|
private _observer;
|
|
26
|
+
zoomType: typeof ZoomType;
|
|
24
27
|
private filterPositionMap;
|
|
25
|
-
constructor(_svc: ChartService, _cdr: ChangeDetectorRef, _scaleService: ScaleService, _zoomService: ZoomService, _elementRef: ElementRef);
|
|
28
|
+
constructor(_svc: ChartService, _cdr: ChangeDetectorRef, _scaleService: ScaleService, _zoomService: ZoomService, _elementRef: ElementRef, _zone: NgZone);
|
|
26
29
|
ngOnInit(): void;
|
|
27
30
|
ngOnDestroy(): void;
|
|
28
31
|
private sumSize;
|
|
@@ -33,5 +36,5 @@ export declare class ChartContainerComponent implements OnInit, OnDestroy {
|
|
|
33
36
|
mouseMove(event: any): void;
|
|
34
37
|
mouseLeave(event: any): void;
|
|
35
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartContainerComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartContainerComponent, "teta-chart-container", never, {}, {}, never, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartContainerComponent, "teta-chart-container", never, {}, {}, never, never, false>;
|
|
37
40
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ScaleService } from "../../service/scale.service";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import { ChartService } from "../../service/chart.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CrosshairComponent implements OnInit {
|
|
7
|
+
private scaleService;
|
|
8
|
+
private chartService;
|
|
9
|
+
private cdr;
|
|
10
|
+
size: DOMRect;
|
|
11
|
+
transform: Observable<any>;
|
|
12
|
+
constructor(scaleService: ScaleService, chartService: ChartService, cdr: ChangeDetectorRef);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrosshairComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrosshairComponent, "[teta-crosshair]", never, { "size": "size"; }, {}, never, never, false>;
|
|
16
|
+
}
|
|
@@ -16,5 +16,5 @@ export declare class GridlinesComponent implements AfterViewInit {
|
|
|
16
16
|
constructor(svc: ScaleService, chartService: ChartService);
|
|
17
17
|
ngAfterViewInit(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridlinesComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GridlinesComponent, "[teta-gridlines]", never, { "size": "size"; }, {}, never, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridlinesComponent, "[teta-gridlines]", never, { "size": "size"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -34,5 +34,5 @@ export declare class PlotBandComponent implements AfterViewInit, OnDestroy {
|
|
|
34
34
|
getTextCenter: () => any;
|
|
35
35
|
getFill(d: PlotBand): string;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlotBandComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlotBandComponent, "[teta-plot-band]", never, { "plotBand": "plotBand"; "axis": "axis"; "scale": "scale"; "size": "size"; }, {}, never, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlotBandComponent, "[teta-plot-band]", never, { "plotBand": "plotBand"; "axis": "axis"; "scale": "scale"; "size": "size"; }, {}, never, never, false>;
|
|
38
38
|
}
|
|
@@ -28,5 +28,5 @@ export declare class PlotlineComponent implements OnInit, OnDestroy {
|
|
|
28
28
|
get height(): number;
|
|
29
29
|
get width(): number;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlotlineComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlotlineComponent, "[teta-plot-line]", never, { "plotLine": "plotLine"; "size": "size"; "axis": "axis"; "scale": "scale"; }, {}, never, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlotlineComponent, "[teta-plot-line]", never, { "plotLine": "plotLine"; "size": "size"; "axis": "axis"; "scale": "scale"; }, {}, never, never, false>;
|
|
32
32
|
}
|
|
@@ -20,5 +20,5 @@ export declare class AreaSeriesComponent<T extends BasePoint> extends LinearSeri
|
|
|
20
20
|
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<AreaSeriesComponent<any>, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AreaSeriesComponent<any>, "svg:svg[teta-area-series]", never, {}, {}, never, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AreaSeriesComponent<any>, "svg:svg[teta-area-series]", never, {}, {}, never, never, false>;
|
|
24
24
|
}
|
|
@@ -23,5 +23,5 @@ export declare class BarSeriesComponent<T extends BasePoint> extends SeriesBaseC
|
|
|
23
23
|
mouseleave(point: BasePoint): void;
|
|
24
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarSeriesComponent<any>, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarSeriesComponent<any>, "svg:svg[teta-bar-series]", never, {}, {}, never, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarSeriesComponent<any>, "svg:svg[teta-bar-series]", never, {}, {}, never, never, false>;
|
|
27
27
|
}
|
|
@@ -25,5 +25,5 @@ export declare class BlockAreaSeriesComponent<T extends BasePoint> extends Serie
|
|
|
25
25
|
mouseenter(point: BasePoint): void;
|
|
26
26
|
mouseleave(point: BasePoint): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockAreaSeriesComponent<any>, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlockAreaSeriesComponent<any>, "svg:svg[teta-block-area-series]", never, {}, {}, never, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlockAreaSeriesComponent<any>, "svg:svg[teta-block-area-series]", never, {}, {}, never, never, false>;
|
|
29
29
|
}
|
|
@@ -25,5 +25,5 @@ export declare class BlockSeriesComponent<T extends BasePoint> extends SeriesBas
|
|
|
25
25
|
mouseleave(point: BasePoint): void;
|
|
26
26
|
ngAfterViewInit(): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlockSeriesComponent<any>, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlockSeriesComponent<any>, "svg:svg[teta-block-series]", never, {}, {}, never, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlockSeriesComponent<any>, "svg:svg[teta-block-series]", never, {}, {}, never, never, false>;
|
|
29
29
|
}
|
|
@@ -13,5 +13,5 @@ export declare class LineSeriesComponent<T extends BasePoint> extends LinearSeri
|
|
|
13
13
|
protected element: ElementRef;
|
|
14
14
|
constructor(svc: ChartService, cdr: ChangeDetectorRef, scaleService: ScaleService, zoomService: ZoomService, element: ElementRef);
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineSeriesComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LineSeriesComponent<any>, "svg:svg[teta-line-series]", never, {}, {}, never, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineSeriesComponent<any>, "svg:svg[teta-line-series]", never, {}, {}, never, never, false>;
|
|
17
17
|
}
|
|
@@ -28,5 +28,5 @@ export declare class LinearSeriesBase<T extends BasePoint> extends SeriesBaseCom
|
|
|
28
28
|
getMarkers(): T[];
|
|
29
29
|
getTransform(event: any, scaleX: Map<number, any>, scaleY: Map<number, any>): Pick<BasePoint, 'x' | 'y'>;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinearSeriesBase<any>, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinearSeriesBase<any>, "ng-component", never, {}, {}, never, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinearSeriesBase<any>, "ng-component", never, {}, {}, never, never, false>;
|
|
32
32
|
}
|
|
@@ -24,5 +24,5 @@ export declare class ScatterSeriesComponent<T extends BasePoint> extends SeriesB
|
|
|
24
24
|
mouseenter(point: BasePoint): void;
|
|
25
25
|
mouseleave(point: BasePoint): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScatterSeriesComponent<any>, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScatterSeriesComponent<any>, "svg:svg[teta-scatter-series]", never, {}, {}, never, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScatterSeriesComponent<any>, "svg:svg[teta-scatter-series]", never, {}, {}, never, never, false>;
|
|
28
28
|
}
|
|
@@ -14,5 +14,5 @@ export declare class SeriesHostComponent<T extends BasePoint> implements OnInit,
|
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SeriesHostComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesHostComponent<any>, "[teta-series-host]", never, { "config": "config"; "series": "series"; }, {}, never, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeriesHostComponent<any>, "[teta-series-host]", never, { "config": "config"; "series": "series"; }, {}, never, never, false>;
|
|
18
18
|
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, NgZone, OnInit } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ChartService } from '../../service/chart.service';
|
|
4
4
|
import { ZoomService } from '../../service/zoom.service';
|
|
5
|
+
import { IDisplayTooltip } from '../../model/i-display-tooltip';
|
|
5
6
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
6
7
|
import { IChartConfig } from '../../model/i-chart-config';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
@@ -21,9 +22,11 @@ export declare class TooltipComponent implements OnInit {
|
|
|
21
22
|
}>;
|
|
22
23
|
displayTooltips: Observable<SafeHtml>;
|
|
23
24
|
display: Observable<number>;
|
|
25
|
+
tooltips: Observable<IDisplayTooltip[]>;
|
|
24
26
|
constructor(svc: ChartService, cdr: ChangeDetectorRef, zoomService: ZoomService, sanitizer: DomSanitizer, _zone: NgZone);
|
|
25
27
|
ngOnInit(): void;
|
|
26
28
|
private getPosition;
|
|
29
|
+
format(input: number | Date): string;
|
|
27
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "teta-tooltip", never, { "size": "size"; "config": "config"; }, {}, never, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "teta-tooltip", never, { "size": "size"; "config": "config"; }, {}, never, never, false>;
|
|
29
32
|
}
|
|
@@ -16,5 +16,5 @@ export declare class XAxisComponent implements OnInit, OnDestroy, AfterViewInit
|
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
private draw;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<XAxisComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisComponent, "[teta-x-axis]", never, { "axis": "axis"; "size": "size"; }, {}, never, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XAxisComponent, "[teta-x-axis]", never, { "axis": "axis"; "size": "size"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -15,5 +15,5 @@ export declare class YAxisComponent implements OnInit, AfterViewInit {
|
|
|
15
15
|
ngAfterViewInit(): void;
|
|
16
16
|
getLabelTransform(): string;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<YAxisComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<YAxisComponent, "[teta-y-axis]", never, { "axis": "axis"; "size": "size"; }, {}, never, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YAxisComponent, "[teta-y-axis]", never, { "axis": "axis"; "size": "size"; }, {}, never, never, false>;
|
|
19
19
|
}
|
package/chart/chart.module.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ import * as i18 from "./chart-container/series/scatter-series/scatter-series.com
|
|
|
20
20
|
import * as i19 from "./chart-container/series/block-series/block-series.component";
|
|
21
21
|
import * as i20 from "./chart-container/series/block-area-series/block-area-series.component";
|
|
22
22
|
import * as i21 from "./chart-container/annotation/annotation.component";
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "@
|
|
23
|
+
import * as i22 from "./chart-container/crosshair/crosshair.component";
|
|
24
|
+
import * as i23 from "@angular/common";
|
|
25
25
|
export declare class ChartModule {
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChartModule, never>;
|
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChartModule, [typeof i1.ChartComponent, typeof i2.SeriesHostComponent, typeof i3.ChartContainerComponent, typeof i4.LegendComponent, typeof i5.SeriesBaseComponent, typeof i6.LinearSeriesBase, typeof i7.LineSeriesComponent, typeof i8.GridlinesComponent, typeof i9.XAxisComponent, typeof i10.YAxisComponent, typeof i11.PlotlineComponent, typeof i12.PlotBandComponent, typeof i13.BarSeriesComponent, typeof i14.TooltipComponent, typeof i15.ZoomableDirective, typeof i16.BrushableDirective, typeof i17.AreaSeriesComponent, typeof i18.ScatterSeriesComponent, typeof i19.BlockSeriesComponent, typeof i20.BlockAreaSeriesComponent, typeof i21.AnnotationComponent
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ChartModule, [typeof i1.ChartComponent, typeof i2.SeriesHostComponent, typeof i3.ChartContainerComponent, typeof i4.LegendComponent, typeof i5.SeriesBaseComponent, typeof i6.LinearSeriesBase, typeof i7.LineSeriesComponent, typeof i8.GridlinesComponent, typeof i9.XAxisComponent, typeof i10.YAxisComponent, typeof i11.PlotlineComponent, typeof i12.PlotBandComponent, typeof i13.BarSeriesComponent, typeof i14.TooltipComponent, typeof i15.ZoomableDirective, typeof i16.BrushableDirective, typeof i17.AreaSeriesComponent, typeof i18.ScatterSeriesComponent, typeof i19.BlockSeriesComponent, typeof i20.BlockAreaSeriesComponent, typeof i21.AnnotationComponent, typeof i22.CrosshairComponent], [typeof i23.CommonModule], [typeof i1.ChartComponent, typeof i4.LegendComponent, typeof i5.SeriesBaseComponent, typeof i7.LineSeriesComponent, typeof i13.BarSeriesComponent, typeof i18.ScatterSeriesComponent, typeof i17.AreaSeriesComponent, typeof i19.BlockSeriesComponent, typeof i20.BlockAreaSeriesComponent]>;
|
|
28
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<ChartModule>;
|
|
29
29
|
}
|
|
@@ -14,5 +14,5 @@ export declare class BrushableDirective implements OnInit, AfterViewInit {
|
|
|
14
14
|
ngAfterViewInit(): void;
|
|
15
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BrushableDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BrushableDirective, "[tetaBrushable]", never, { "config": "config"; "brushScale": "brushScale"; }, {}, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BrushableDirective, "[tetaBrushable]", never, { "config": "config"; "brushScale": "brushScale"; }, {}, never, never, false>;
|
|
18
18
|
}
|
|
@@ -13,13 +13,13 @@ export declare class ZoomableDirective implements OnDestroy, AfterViewInit {
|
|
|
13
13
|
private chartService;
|
|
14
14
|
private zone;
|
|
15
15
|
config: IChartConfig;
|
|
16
|
-
axis
|
|
16
|
+
axis: Axis;
|
|
17
17
|
size: DOMRect;
|
|
18
18
|
brushScale?: any;
|
|
19
19
|
scale?: any;
|
|
20
20
|
private zoomable;
|
|
21
|
+
private crosshair;
|
|
21
22
|
private _element;
|
|
22
|
-
private zoomAxis;
|
|
23
23
|
private zoom;
|
|
24
24
|
private alive;
|
|
25
25
|
private currentTransform;
|
|
@@ -33,5 +33,5 @@ export declare class ZoomableDirective implements OnDestroy, AfterViewInit {
|
|
|
33
33
|
zoomed: (event: D3ZoomEvent<any, any>) => void;
|
|
34
34
|
private runWheelZoom;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZoomableDirective, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ZoomableDirective, "[tetaZoomable]", never, { "config": "config"; "axis": "axis"; "size": "size"; "brushScale": "brushScale"; "scale": "scale"; }, {}, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ZoomableDirective, "[tetaZoomable]", never, { "config": "config"; "axis": "axis"; "size": "size"; "brushScale": "brushScale"; "scale": "scale"; }, {}, never, never, false>;
|
|
37
37
|
}
|
|
@@ -11,5 +11,5 @@ export declare class LegendComponent {
|
|
|
11
11
|
getHeight(serie: Series<BasePoint>): number;
|
|
12
12
|
click(serie: Series<BasePoint>): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "teta-legend", never, { "series": "series"; }, {}, never, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "teta-legend", never, { "series": "series"; }, {}, never, never, false>;
|
|
15
15
|
}
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import { D3BrushEvent, D3ZoomEvent } from 'd3';
|
|
2
2
|
import { Axis } from '../core/axis/axis';
|
|
3
3
|
import { BrushType } from './enum/brush-type';
|
|
4
|
+
export declare type TransformStyle = {
|
|
5
|
+
transition?: boolean;
|
|
6
|
+
};
|
|
4
7
|
export declare class ZoomMessage {
|
|
5
8
|
event: D3ZoomEvent<any, any> | any;
|
|
6
9
|
axis?: Axis;
|
|
7
10
|
brushDomain?: number[];
|
|
8
11
|
chartId: string;
|
|
12
|
+
style?: TransformStyle;
|
|
9
13
|
constructor(options?: {
|
|
10
14
|
event: D3ZoomEvent<any, any> | any;
|
|
11
15
|
axis?: Axis;
|
|
12
16
|
brushDomain?: number[];
|
|
13
17
|
chartId: string;
|
|
18
|
+
style?: TransformStyle;
|
|
14
19
|
});
|
|
15
20
|
}
|
|
16
21
|
export declare class BrushMessage {
|
|
17
|
-
event: D3BrushEvent<any
|
|
22
|
+
event: D3BrushEvent<any> | null;
|
|
18
23
|
brushType: BrushType;
|
|
19
24
|
selection: number[];
|
|
20
25
|
brushScale?: any;
|
|
26
|
+
style?: TransformStyle;
|
|
21
27
|
constructor(options?: {
|
|
22
|
-
event: D3BrushEvent<any
|
|
28
|
+
event: D3BrushEvent<any> | null;
|
|
23
29
|
brushType: BrushType;
|
|
24
30
|
selection: number[];
|
|
25
31
|
brushScale?: any;
|
|
32
|
+
style?: TransformStyle;
|
|
26
33
|
});
|
|
27
34
|
}
|
|
28
35
|
export interface IBroadcastMessage<T> {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { TooltipTracking } from './enum/tooltip-tracking';
|
|
2
2
|
import { IDisplayTooltip } from './i-display-tooltip';
|
|
3
|
+
import { TemplateRef } from "@angular/core";
|
|
3
4
|
export interface TooltipOptions {
|
|
4
5
|
enable?: boolean;
|
|
5
6
|
showMarkers?: boolean;
|
|
6
7
|
showLine?: boolean;
|
|
8
|
+
showCrosshair?: boolean;
|
|
7
9
|
tracking?: TooltipTracking;
|
|
10
|
+
template?: TemplateRef<IDisplayTooltip[]>;
|
|
8
11
|
format?: (data: IDisplayTooltip[]) => string;
|
|
9
12
|
padding?: {
|
|
10
13
|
x?: number;
|
|
@@ -26,9 +26,9 @@ export class SeriesBaseComponent {
|
|
|
26
26
|
ngOnInit() {
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
SeriesBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
30
|
-
SeriesBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
SeriesBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SeriesBaseComponent, deps: [{ token: i1.ChartService }, { token: i0.ChangeDetectorRef }, { token: i2.ScaleService }, { token: i3.ZoomService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
SeriesBaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: SeriesBaseComponent, selector: "ng-component", inputs: { config: "config", series: "series" }, ngImport: i0, template: '', isInline: true });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SeriesBaseComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
33
|
args: [{
|
|
34
34
|
template: '',
|
|
@@ -9,9 +9,9 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
import * as i1 from "../service/chart.service";
|
|
10
10
|
import * as i2 from "../service/zoom.service";
|
|
11
11
|
import * as i3 from "../service/scale.service";
|
|
12
|
-
import * as i4 from "
|
|
13
|
-
import * as i5 from "../
|
|
14
|
-
import * as i6 from "
|
|
12
|
+
import * as i4 from "@angular/common";
|
|
13
|
+
import * as i5 from "../chart-container/chart-container.component";
|
|
14
|
+
import * as i6 from "../legend/legend.component";
|
|
15
15
|
export class ChartComponent {
|
|
16
16
|
constructor(chartService, zoomService, scaleService) {
|
|
17
17
|
this.chartService = chartService;
|
|
@@ -118,9 +118,9 @@ export class ChartComponent {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
122
|
-
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
121
|
+
ChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ChartComponent, deps: [{ token: i1.ChartService }, { token: i2.ZoomService }, { token: i3.ScaleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
ChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ChartComponent, selector: "teta-svg-chart", inputs: { config: "config" }, outputs: { pointerMove: "pointerMove", plotBandsMove: "plotBandsMove", plotBandClick: "plotBandClick", plotBandContextMenu: "plotBandContextMenu", plotLinesMove: "plotLinesMove", pointMove: "pointMove", chartClick: "chartClick", chartContextMenu: "chartContextMenu", annotationContextMenu: "annotationContextMenu", annotationClick: "annotationClick", annotationMove: "annotationMove" }, providers: [ChartService, ZoomService, ScaleService, BrushService], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"{\n hasSeriesData: hasSeriesData | async,\n svcConfig: svcConfig | async\n} as data\">\n <ng-container *ngIf=\"data.hasSeriesData === true else noData\">\n <div class=\"column column_auto\">\n <teta-chart-container class=\"chart-container position-relative\"></teta-chart-container>\n </div>\n <teta-legend *ngIf=\"data.svcConfig.legend?.enable === true\" [series]=\"data.svcConfig.series\"></teta-legend>\n </ng-container>\n</ng-container>\n<ng-template #noData>\n <div class=\"column column_auto align-center justify-content-center\">\n <span class=\"font-body-3 color-text-40\">\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442</span>\n </div>\n</ng-template>\n", styles: [":host{position:relative;display:flex;flex-direction:column;height:100%;width:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ChartContainerComponent, selector: "teta-chart-container" }, { kind: "component", type: i6.LegendComponent, selector: "teta-legend", inputs: ["series"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ChartComponent, decorators: [{
|
|
124
124
|
type: Component,
|
|
125
125
|
args: [{ selector: 'teta-svg-chart', providers: [ChartService, ZoomService, ScaleService, BrushService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"{\n hasSeriesData: hasSeriesData | async,\n svcConfig: svcConfig | async\n} as data\">\n <ng-container *ngIf=\"data.hasSeriesData === true else noData\">\n <div class=\"column column_auto\">\n <teta-chart-container class=\"chart-container position-relative\"></teta-chart-container>\n </div>\n <teta-legend *ngIf=\"data.svcConfig.legend?.enable === true\" [series]=\"data.svcConfig.series\"></teta-legend>\n </ng-container>\n</ng-container>\n<ng-template #noData>\n <div class=\"column column_auto align-center justify-content-center\">\n <span class=\"font-body-3 color-text-40\">\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442</span>\n </div>\n</ng-template>\n", styles: [":host{position:relative;display:flex;flex-direction:column;height:100%;width:100%}\n"] }]
|
|
126
126
|
}], ctorParameters: function () { return [{ type: i1.ChartService }, { type: i2.ZoomService }, { type: i3.ScaleService }]; }, propDecorators: { pointerMove: [{
|
|
@@ -59,11 +59,11 @@ export class AnnotationComponent {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
AnnotationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
63
|
-
AnnotationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
62
|
+
AnnotationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AnnotationComponent, deps: [{ token: i1.ScaleService }, { token: i0.ChangeDetectorRef }, { token: i2.ChartService }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
AnnotationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: AnnotationComponent, selector: "[teta-annotation]", inputs: { annotation: "annotation" }, host: { listeners: { "click": "click($event)", "contextmenu": "contextMenu($event)" } }, viewQueries: [{ propertyName: "node", first: true, predicate: ["annotationNode"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"{\n x: x | async,\n y: y | async\n } as data\">\n <svg:circle\n [attr.r]=\"annotation.style?.radius ?? 5\"\n [attr.cx]=\"data.x(annotation.point.x)\"\n [attr.fill]=\"annotation?.style?.fill ?? 'var(--color-text-90)'\"\n [attr.cy]=\"data.y(annotation.point.y)\">\n </svg:circle>\n <svg:line\n [attr.x1]=\"data.x(annotation.point.x)\"\n [attr.y1]=\"data.y(annotation.point.y)\"\n [attr.x2]=\"data.x(annotation.point.x) + (annotation.dx ?? 0)\"\n [attr.y2]=\"data.y(annotation.point.y) + (annotation.dy ?? 0)\"\n [attr.stroke]=\"annotation.style?.stroke ?? 'var(--color-text-90)'\"\n [attr.stroke-width]=\"annotation.style?.strokeWidth ?? 1\"\n [attr.stroke-dasharray]=\"annotation.style?.strokeDasharray ?? null\"\n >\n </svg:line>\n <svg:foreignObject\n class=\"position-absolute\"\n [attr.width]=\"node?.nativeElement.offsetWidth ?? 0\"\n [attr.height]=\"node?.nativeElement.offsetHeight ?? 0\"\n [attr.x]=\"data.x(annotation.point.x) + (annotation.dx ?? 0) - 10\"\n [attr.y]=\"data.y(annotation.point.y) + (annotation.dy ?? 0) - 10\">\n <div\n #annotationNode\n [style.background-color]=\"annotation.style?.fill ?? 'var(--color-text-90)'\"\n [style.cursor]=\"annotation?.draggable ? 'move' : 'default'\"\n [className]=\"'padding-h-2 ' + annotation.className ?? ''\"\n style=\"border-radius: 2px; display: inline-block;\">\n <ng-container *ngIf=\"annotation.template;else default\">\n <ng-container *ngTemplateOutlet=\"annotation.template;context: {$implicit: annotation}\"></ng-container>\n </ng-container>\n </div>\n </svg:foreignObject>\n</ng-container>\n<ng-template #default>\n {{ annotation.note?.label}}\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: AnnotationComponent, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
|
-
args: [{ selector: '[teta-annotation]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"{\n x: x | async,\n y: y | async\n } as data\">\n <svg:circle\n [attr.r]=\"annotation.style?.radius ?? 5\"\n [attr.cx]=\"data.x(annotation.point.x)\"\n [attr.fill]=\"annotation?.style?.fill ?? 'var(--color-text-90)'\"\n [attr.cy]=\"data.y(annotation.point.y)\">\n </svg:circle>\n <svg:line\n [attr.x1]=\"data.x(annotation.point.x)\"\n [attr.y1]=\"data.y(annotation.point.y)\"\n [attr.x2]=\"data.x(annotation.point.x) + (annotation.dx ?? 0)\"\n [attr.y2]=\"data.y(annotation.point.y) + (annotation.dy ?? 0)\"\n [attr.stroke]=\"annotation.style?.stroke ?? 'var(--color-text-90)'\"\n [attr.stroke-width]=\"annotation.style?.strokeWidth ?? 1\"\n [attr.stroke-dasharray]=\"annotation.style?.strokeDasharray ?? null\"\n >\n </svg:line>\n <svg:foreignObject\n class=\"position-absolute\"\n [attr.width]=\"node?.nativeElement.offsetWidth ?? 0\"\n [attr.height]=\"node?.nativeElement.offsetHeight ?? 0\"\n [attr.x]=\"data.x(annotation.point.x) + (annotation.dx ?? 0) - 10\"\n [attr.y]=\"data.y(annotation.point.y) + (annotation.dy ?? 0) - 10\">\n <div\n #annotationNode\n [style.background-color]=\"annotation.style?.fill ?? 'var(--color-text-90)'\"\n [style.cursor]=\"annotation?.draggable ? 'move' : 'default'\"\n [className]=\"'padding-h-2 ' + annotation.className ?? ''\"\n style=\"border-radius: 2px; display: inline-block;\">\n <ng-container *ngIf=\"annotation.template;else default\">\n <ng-container *ngTemplateOutlet=\"annotation.template;context: {$implicit: annotation}\"></ng-container>\n </ng-container>\n </div>\n </svg:foreignObject>\n</ng-container>\n<ng-template #default>\n {{ annotation.note?.label}}\n</ng-template>\n"
|
|
66
|
+
args: [{ selector: '[teta-annotation]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"{\n x: x | async,\n y: y | async\n } as data\">\n <svg:circle\n [attr.r]=\"annotation.style?.radius ?? 5\"\n [attr.cx]=\"data.x(annotation.point.x)\"\n [attr.fill]=\"annotation?.style?.fill ?? 'var(--color-text-90)'\"\n [attr.cy]=\"data.y(annotation.point.y)\">\n </svg:circle>\n <svg:line\n [attr.x1]=\"data.x(annotation.point.x)\"\n [attr.y1]=\"data.y(annotation.point.y)\"\n [attr.x2]=\"data.x(annotation.point.x) + (annotation.dx ?? 0)\"\n [attr.y2]=\"data.y(annotation.point.y) + (annotation.dy ?? 0)\"\n [attr.stroke]=\"annotation.style?.stroke ?? 'var(--color-text-90)'\"\n [attr.stroke-width]=\"annotation.style?.strokeWidth ?? 1\"\n [attr.stroke-dasharray]=\"annotation.style?.strokeDasharray ?? null\"\n >\n </svg:line>\n <svg:foreignObject\n class=\"position-absolute\"\n [attr.width]=\"node?.nativeElement.offsetWidth ?? 0\"\n [attr.height]=\"node?.nativeElement.offsetHeight ?? 0\"\n [attr.x]=\"data.x(annotation.point.x) + (annotation.dx ?? 0) - 10\"\n [attr.y]=\"data.y(annotation.point.y) + (annotation.dy ?? 0) - 10\">\n <div\n #annotationNode\n [style.background-color]=\"annotation.style?.fill ?? 'var(--color-text-90)'\"\n [style.cursor]=\"annotation?.draggable ? 'move' : 'default'\"\n [className]=\"'padding-h-2 ' + annotation.className ?? ''\"\n style=\"border-radius: 2px; display: inline-block;\">\n <ng-container *ngIf=\"annotation.template;else default\">\n <ng-container *ngTemplateOutlet=\"annotation.template;context: {$implicit: annotation}\"></ng-container>\n </ng-container>\n </div>\n </svg:foreignObject>\n</ng-container>\n<ng-template #default>\n {{ annotation.note?.label}}\n</ng-template>\n" }]
|
|
67
67
|
}], ctorParameters: function () { return [{ type: i1.ScaleService }, { type: i0.ChangeDetectorRef }, { type: i2.ChartService }]; }, propDecorators: { annotation: [{
|
|
68
68
|
type: Input
|
|
69
69
|
}], node: [{
|