@tetacom/ng-components 1.0.27 → 1.0.28
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/component/filter/filter.module.d.ts +2 -1
- package/component/public-api.d.ts +0 -1
- package/directive/hint/hint.directive.d.ts +1 -0
- package/esm2020/component/filter/filter.module.mjs +6 -2
- package/esm2020/component/filter/numeric-filter/numeric-filter.component.mjs +4 -3
- package/esm2020/component/message/message.service.mjs +3 -3
- package/esm2020/component/public-api.mjs +1 -3
- package/esm2020/directive/click-outside/click-outside.directive.mjs +1 -3
- package/esm2020/directive/hint/hint.directive.mjs +4 -1
- package/esm2020/directive/only-number/only-number.directive.mjs +3 -2
- package/esm2020/pipe/public-api.mjs +2 -1
- package/esm2020/util/date-util.mjs +8 -5
- package/fesm2015/tetacom-ng-components.mjs +45 -2309
- package/fesm2015/tetacom-ng-components.mjs.map +1 -1
- package/fesm2020/tetacom-ng-components.mjs +45 -2303
- package/fesm2020/tetacom-ng-components.mjs.map +1 -1
- package/package.json +1 -1
- package/pipe/public-api.d.ts +1 -0
- package/component/chart/chart/chart.component.d.ts +0 -39
- package/component/chart/chart.module.d.ts +0 -8
- package/component/chart/core/axis-creator.d.ts +0 -29
- package/component/chart/core/chart.d.ts +0 -70
- package/component/chart/core/public-api.d.ts +0 -2
- package/component/chart/drawer/area-drawer.d.ts +0 -7
- package/component/chart/drawer/bar-drawer.d.ts +0 -8
- package/component/chart/drawer/contour-drawer.d.ts +0 -7
- package/component/chart/drawer/default-drawer-mapping.d.ts +0 -4
- package/component/chart/drawer/line-drawer.d.ts +0 -11
- package/component/chart/drawer/pie-drawer.d.ts +0 -7
- package/component/chart/drawer/public-api.d.ts +0 -6
- package/component/chart/drawer/scatter-drawer.d.ts +0 -15
- package/component/chart/drawer/spline-drawer.d.ts +0 -7
- package/component/chart/legend-drawer/default-drawer-legend-mapping.d.ts +0 -3
- package/component/chart/legend-drawer/gradient-drawer.d.ts +0 -5
- package/component/chart/legend-drawer/swatch-drawer.d.ts +0 -6
- package/component/chart/model/annotation.d.ts +0 -59
- package/component/chart/model/axis-options.d.ts +0 -43
- package/component/chart/model/chart-bounds.d.ts +0 -12
- package/component/chart/model/chart-options.d.ts +0 -51
- package/component/chart/model/enum/axis-type.d.ts +0 -4
- package/component/chart/model/enum/dispatch-type.d.ts +0 -4
- package/component/chart/model/enum/drag-point-type.d.ts +0 -5
- package/component/chart/model/enum/legend-type.d.ts +0 -4
- package/component/chart/model/enum/public-api.d.ts +0 -7
- package/component/chart/model/enum/scale-type.d.ts +0 -7
- package/component/chart/model/enum/scale.d.ts +0 -5
- package/component/chart/model/enum/series-type.d.ts +0 -10
- package/component/chart/model/enum/zoom-type.d.ts +0 -5
- package/component/chart/model/i-drag-event.d.ts +0 -5
- package/component/chart/model/i-drawer-legend.d.ts +0 -12
- package/component/chart/model/i-drawer.d.ts +0 -9
- package/component/chart/model/i-zoom-event.d.ts +0 -8
- package/component/chart/model/plot-band.d.ts +0 -28
- package/component/chart/model/plot-line.d.ts +0 -20
- package/component/chart/model/point/bar-point.d.ts +0 -6
- package/component/chart/model/point/base-point.d.ts +0 -9
- package/component/chart/model/point/contour-point.d.ts +0 -4
- package/component/chart/model/point/marker-options.d.ts +0 -11
- package/component/chart/model/point/public-api.d.ts +0 -3
- package/component/chart/model/point/scatter-point.d.ts +0 -5
- package/component/chart/model/public-api.d.ts +0 -15
- package/component/chart/model/series.d.ts +0 -62
- package/component/chart/model/tooltip-options.d.ts +0 -14
- package/component/chart/public-api.d.ts +0 -5
- package/esm2020/component/chart/chart/chart.component.mjs +0 -164
- package/esm2020/component/chart/chart.module.mjs +0 -18
- package/esm2020/component/chart/core/axis-creator.mjs +0 -82
- package/esm2020/component/chart/core/chart.mjs +0 -1339
- package/esm2020/component/chart/core/public-api.mjs +0 -3
- package/esm2020/component/chart/drawer/area-drawer.mjs +0 -20
- package/esm2020/component/chart/drawer/bar-drawer.mjs +0 -23
- package/esm2020/component/chart/drawer/contour-drawer.mjs +0 -29
- package/esm2020/component/chart/drawer/default-drawer-mapping.mjs +0 -17
- package/esm2020/component/chart/drawer/line-drawer.mjs +0 -152
- package/esm2020/component/chart/drawer/pie-drawer.mjs +0 -4
- package/esm2020/component/chart/drawer/public-api.mjs +0 -7
- package/esm2020/component/chart/drawer/scatter-drawer.mjs +0 -93
- package/esm2020/component/chart/drawer/spline-drawer.mjs +0 -23
- package/esm2020/component/chart/legend-drawer/default-drawer-legend-mapping.mjs +0 -7
- package/esm2020/component/chart/legend-drawer/gradient-drawer.mjs +0 -45
- package/esm2020/component/chart/legend-drawer/swatch-drawer.mjs +0 -62
- package/esm2020/component/chart/model/annotation.mjs +0 -30
- package/esm2020/component/chart/model/axis-options.mjs +0 -26
- package/esm2020/component/chart/model/chart-bounds.mjs +0 -13
- package/esm2020/component/chart/model/chart-options.mjs +0 -37
- package/esm2020/component/chart/model/enum/axis-type.mjs +0 -6
- package/esm2020/component/chart/model/enum/dispatch-type.mjs +0 -6
- package/esm2020/component/chart/model/enum/drag-point-type.mjs +0 -7
- package/esm2020/component/chart/model/enum/legend-type.mjs +0 -6
- package/esm2020/component/chart/model/enum/public-api.mjs +0 -8
- package/esm2020/component/chart/model/enum/scale-type.mjs +0 -9
- package/esm2020/component/chart/model/enum/scale.mjs +0 -7
- package/esm2020/component/chart/model/enum/series-type.mjs +0 -12
- package/esm2020/component/chart/model/enum/zoom-type.mjs +0 -7
- package/esm2020/component/chart/model/i-drag-event.mjs +0 -2
- package/esm2020/component/chart/model/i-drawer-legend.mjs +0 -2
- package/esm2020/component/chart/model/i-drawer.mjs +0 -2
- package/esm2020/component/chart/model/i-zoom-event.mjs +0 -2
- package/esm2020/component/chart/model/plot-band.mjs +0 -18
- package/esm2020/component/chart/model/plot-line.mjs +0 -13
- package/esm2020/component/chart/model/point/bar-point.mjs +0 -2
- package/esm2020/component/chart/model/point/base-point.mjs +0 -2
- package/esm2020/component/chart/model/point/contour-point.mjs +0 -2
- package/esm2020/component/chart/model/point/marker-options.mjs +0 -2
- package/esm2020/component/chart/model/point/public-api.mjs +0 -4
- package/esm2020/component/chart/model/point/scatter-point.mjs +0 -2
- package/esm2020/component/chart/model/public-api.mjs +0 -16
- package/esm2020/component/chart/model/series.mjs +0 -27
- package/esm2020/component/chart/model/tooltip-options.mjs +0 -19
- package/esm2020/component/chart/public-api.mjs +0 -6
package/package.json
CHANGED
package/pipe/public-api.d.ts
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ChartOptions } from '../model/chart-options';
|
|
3
|
-
import { BasePoint } from '../model/point/base-point';
|
|
4
|
-
import { Series } from '../model/series';
|
|
5
|
-
import { PlotLine } from '../model/plot-line';
|
|
6
|
-
import { PlotBand } from '../model/plot-band';
|
|
7
|
-
import { IDragEvent } from '../model/i-drag-event';
|
|
8
|
-
import { IZoomEvent } from '../model/i-zoom-event';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class ChartComponent implements OnInit, AfterViewInit, OnDestroy, OnChanges {
|
|
11
|
-
private _zone;
|
|
12
|
-
zoom: IZoomEvent;
|
|
13
|
-
config: ChartOptions;
|
|
14
|
-
plotLinesMove: EventEmitter<IDragEvent<PlotLine>>;
|
|
15
|
-
plotBandsMove: EventEmitter<IDragEvent<PlotBand>>;
|
|
16
|
-
seriesMove: EventEmitter<IDragEvent<Series<BasePoint>>>;
|
|
17
|
-
pointMove: EventEmitter<IDragEvent<Series<BasePoint>>>;
|
|
18
|
-
zoomChange: EventEmitter<IZoomEvent>;
|
|
19
|
-
chart: ElementRef;
|
|
20
|
-
hasSeriesData: boolean;
|
|
21
|
-
private _config;
|
|
22
|
-
private _alive;
|
|
23
|
-
private size$;
|
|
24
|
-
private _observer;
|
|
25
|
-
private _chart;
|
|
26
|
-
private _zoom;
|
|
27
|
-
constructor(_zone: NgZone);
|
|
28
|
-
click(event: any): void;
|
|
29
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
-
ngOnInit(): void;
|
|
31
|
-
ngAfterViewInit(): void;
|
|
32
|
-
get showLegend(): boolean;
|
|
33
|
-
ngOnDestroy(): void;
|
|
34
|
-
private redraw;
|
|
35
|
-
private resize;
|
|
36
|
-
private setConfig;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "teta-chart", never, { "zoom": "zoom"; "config": "config"; }, { "plotLinesMove": "plotLinesMove"; "plotBandsMove": "plotBandsMove"; "seriesMove": "seriesMove"; "pointMove": "pointMove"; "zoomChange": "zoomChange"; }, never, never>;
|
|
39
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./chart/chart.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
export declare class ChartModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChartModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChartModule, [typeof i1.ChartComponent], [typeof i2.CommonModule], [typeof i1.ChartComponent]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ChartModule>;
|
|
8
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AxisType } from '../model/enum/axis-type';
|
|
2
|
-
import { ChartOptions } from '../model/chart-options';
|
|
3
|
-
import { AxisOptions } from '../model/axis-options';
|
|
4
|
-
export declare class Axis {
|
|
5
|
-
static offsetFactor: number;
|
|
6
|
-
readonly width: number;
|
|
7
|
-
private _type;
|
|
8
|
-
private _chartOptions;
|
|
9
|
-
private _extents;
|
|
10
|
-
private _index;
|
|
11
|
-
private _height;
|
|
12
|
-
private _offset;
|
|
13
|
-
private _ticks;
|
|
14
|
-
constructor(options: {
|
|
15
|
-
type: AxisType;
|
|
16
|
-
index: number;
|
|
17
|
-
chartOptions: ChartOptions;
|
|
18
|
-
height?: number;
|
|
19
|
-
});
|
|
20
|
-
get index(): number;
|
|
21
|
-
get options(): AxisOptions;
|
|
22
|
-
get extent(): [number, number];
|
|
23
|
-
get type(): AxisType;
|
|
24
|
-
get offset(): number;
|
|
25
|
-
get ticks(): any;
|
|
26
|
-
setOffset(offset: number): void;
|
|
27
|
-
private calculateAxisWidth;
|
|
28
|
-
private createExtents;
|
|
29
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ChartOptions } from '../model/chart-options';
|
|
4
|
-
import { Series } from '../model/series';
|
|
5
|
-
import { BasePoint } from '../model/point/base-point';
|
|
6
|
-
import { PlotLine } from '../model/plot-line';
|
|
7
|
-
import { PlotBand } from '../model/plot-band';
|
|
8
|
-
import { IDragEvent } from '../model/i-drag-event';
|
|
9
|
-
import { IZoomEvent } from '../model/i-zoom-event';
|
|
10
|
-
declare type ChartSize = {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
};
|
|
14
|
-
export declare class TetaChart {
|
|
15
|
-
plotLinesMove: Observable<IDragEvent<PlotLine>>;
|
|
16
|
-
plotBandsMove: Observable<IDragEvent<PlotBand>>;
|
|
17
|
-
zoom: Observable<IZoomEvent>;
|
|
18
|
-
seriesMove: Observable<IDragEvent<Series<BasePoint>>>;
|
|
19
|
-
pointMove: Observable<IDragEvent<Series<BasePoint>>>;
|
|
20
|
-
private plotLinesMove$;
|
|
21
|
-
private plotBandsMove$;
|
|
22
|
-
private seriesMove$;
|
|
23
|
-
private pointMove$;
|
|
24
|
-
private zoom$;
|
|
25
|
-
private _container;
|
|
26
|
-
private _canvas;
|
|
27
|
-
private _width;
|
|
28
|
-
private _height;
|
|
29
|
-
private _zoomYCache;
|
|
30
|
-
private _zoomXCache;
|
|
31
|
-
private _zoom;
|
|
32
|
-
private _commonZoomTransform;
|
|
33
|
-
private visibleChartWindowWidth;
|
|
34
|
-
private _options;
|
|
35
|
-
private _xAxisList;
|
|
36
|
-
private _yAxisList;
|
|
37
|
-
private _xScales;
|
|
38
|
-
private _yScales;
|
|
39
|
-
private _clonedX;
|
|
40
|
-
private _clonedY;
|
|
41
|
-
private _chart;
|
|
42
|
-
private offsetOpposite;
|
|
43
|
-
private offsetNonOpposite;
|
|
44
|
-
private uniqId;
|
|
45
|
-
private _zoomAdded;
|
|
46
|
-
constructor(options: ChartOptions, element: ElementRef);
|
|
47
|
-
redraw(options?: ChartOptions): void;
|
|
48
|
-
setZoom(zoom: IZoomEvent): void;
|
|
49
|
-
setSize(size?: ChartSize): void;
|
|
50
|
-
private createVisibleWindow;
|
|
51
|
-
private createAxis;
|
|
52
|
-
private _redraw;
|
|
53
|
-
private addZoom;
|
|
54
|
-
private addAxesZoom;
|
|
55
|
-
private selectNode;
|
|
56
|
-
private drawAnnotations;
|
|
57
|
-
private drawPlotLines;
|
|
58
|
-
private drawPlotBands;
|
|
59
|
-
private drawChart;
|
|
60
|
-
private createTooltip;
|
|
61
|
-
private handleMouseMove;
|
|
62
|
-
private tooltipPosition;
|
|
63
|
-
private createMarkers;
|
|
64
|
-
private drawLegend;
|
|
65
|
-
private caluclateChartWidth;
|
|
66
|
-
private drawGridLines;
|
|
67
|
-
private createScales;
|
|
68
|
-
private drawAxis;
|
|
69
|
-
}
|
|
70
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { BasePoint } from '../model/point/base-point';
|
|
3
|
-
import { Series } from '../model/series';
|
|
4
|
-
import * as d3 from 'd3';
|
|
5
|
-
export declare class AreaDrawer implements IDrawer<BasePoint> {
|
|
6
|
-
draw(series: Series<BasePoint>, context: d3.Selection<SVGElement, unknown, null, undefined>, scaleX: any, scaleY: any): void;
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { BasePoint } from '../model/point/base-point';
|
|
3
|
-
import { Series } from '../model/series';
|
|
4
|
-
import * as d3 from 'd3';
|
|
5
|
-
import { BarPoint } from '../model/point/bar-point';
|
|
6
|
-
export declare class BarDrawer implements IDrawer<BasePoint> {
|
|
7
|
-
draw(series: Series<BarPoint>, context: d3.Selection<SVGElement, unknown, null, undefined>, scaleX: any, scaleY: any): void;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { Series } from '../model/series';
|
|
3
|
-
import * as d3 from 'd3';
|
|
4
|
-
import { ContourPoint } from '../model/point/contour-point';
|
|
5
|
-
export declare class ContourDrawer implements IDrawer<ContourPoint> {
|
|
6
|
-
draw(series: Series<ContourPoint>, context: d3.Selection<SVGElement, unknown, null, undefined>, scaleX: any, scaleY: any): void;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { BasePoint } from '../model/point/base-point';
|
|
3
|
-
import { Series } from '../model/series';
|
|
4
|
-
import * as d3 from 'd3';
|
|
5
|
-
import { ChartOptions } from '../model/chart-options';
|
|
6
|
-
import { IDragEvent } from '../model/i-drag-event';
|
|
7
|
-
export declare class LineDrawer implements IDrawer<BasePoint> {
|
|
8
|
-
dispatch: d3.Dispatch<IDragEvent<Series<BasePoint>>>;
|
|
9
|
-
constructor();
|
|
10
|
-
draw(series: Series<BasePoint>, context: d3.Selection<SVGElement, unknown, null, undefined>, scaleX: any, scaleY: any, options: ChartOptions): void;
|
|
11
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { BasePoint } from '../model/point/base-point';
|
|
3
|
-
import { Series } from '../model/series';
|
|
4
|
-
import * as d3 from 'd3';
|
|
5
|
-
export declare class PieDrawer implements IDrawer<BasePoint> {
|
|
6
|
-
draw(series: Series<BasePoint>, context: d3.Selection<SVGElement, unknown, null, undefined>, scaleX: any, scaleY: any): void;
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { Series } from '../model/series';
|
|
3
|
-
import * as d3 from 'd3';
|
|
4
|
-
import { ScatterPoint } from '../model/point/scatter-point';
|
|
5
|
-
import { ChartOptions } from '../model/chart-options';
|
|
6
|
-
export declare class ScatterDrawer implements IDrawer<ScatterPoint> {
|
|
7
|
-
private _virtualCanvas;
|
|
8
|
-
private _colorToData;
|
|
9
|
-
private _options;
|
|
10
|
-
private _context;
|
|
11
|
-
draw(series: Series<ScatterPoint>, context: d3.Selection<SVGElement, unknown, null, undefined> | d3.Selection<HTMLCanvasElement, unknown, null, undefined>, scaleX: any, scaleY: any, options: ChartOptions): void;
|
|
12
|
-
private getColor;
|
|
13
|
-
private tooltipPosition;
|
|
14
|
-
private handleMouseMove;
|
|
15
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDrawer } from '../model/i-drawer';
|
|
2
|
-
import { BasePoint } from '../model/point/base-point';
|
|
3
|
-
import { Series } from '../model/series';
|
|
4
|
-
import * as d3 from 'd3';
|
|
5
|
-
export declare class SplineDrawer implements IDrawer<BasePoint> {
|
|
6
|
-
draw(series: Series<BasePoint>, context: d3.Selection<SVGElement, unknown, null, undefined>, scaleX: any, scaleY: any): void;
|
|
7
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ILegendDrawer, LegendDrawOptions } from '../model/i-drawer-legend';
|
|
2
|
-
import { BasePoint } from '../model/point/base-point';
|
|
3
|
-
import { BarPoint } from '../model/point/bar-point';
|
|
4
|
-
export declare class SwatchDrawer implements ILegendDrawer {
|
|
5
|
-
draw(options: LegendDrawOptions<BasePoint | BarPoint>): void;
|
|
6
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { annotationBadge, annotationCallout, annotationCalloutCircle, annotationCalloutCurve, annotationCalloutElbow, annotationCalloutRect, annotationCustomType, annotationLabel, annotationXYThreshold } from 'd3-svg-annotation';
|
|
2
|
-
import { BasePoint } from './point/base-point';
|
|
3
|
-
declare const annotationMap: readonly [typeof annotationBadge, typeof annotationLabel, typeof annotationCallout, typeof annotationCalloutCircle, typeof annotationCalloutCurve, typeof annotationCalloutElbow, typeof annotationCalloutRect, typeof annotationCustomType, typeof annotationXYThreshold];
|
|
4
|
-
declare type AnnotationTypes = typeof annotationMap[number];
|
|
5
|
-
export declare class Annotation {
|
|
6
|
-
point: BasePoint;
|
|
7
|
-
yAxisIndex: number;
|
|
8
|
-
xAxisIndex: number;
|
|
9
|
-
type?: AnnotationTypes;
|
|
10
|
-
enabled?: boolean;
|
|
11
|
-
fillColor?: string;
|
|
12
|
-
borderWidth?: number;
|
|
13
|
-
borderColor?: string;
|
|
14
|
-
dx?: number;
|
|
15
|
-
dy?: number;
|
|
16
|
-
className?: string;
|
|
17
|
-
connector?: {
|
|
18
|
-
end: string;
|
|
19
|
-
};
|
|
20
|
-
note?: {
|
|
21
|
-
label?: string;
|
|
22
|
-
title?: string;
|
|
23
|
-
bgPadding?: {
|
|
24
|
-
top?: number;
|
|
25
|
-
right?: number;
|
|
26
|
-
bottom?: number;
|
|
27
|
-
left?: number;
|
|
28
|
-
};
|
|
29
|
-
bgRadius?: boolean;
|
|
30
|
-
};
|
|
31
|
-
constructor(options?: {
|
|
32
|
-
point: BasePoint;
|
|
33
|
-
type?: AnnotationTypes;
|
|
34
|
-
yAxisIndex: number;
|
|
35
|
-
xAxisIndex: number;
|
|
36
|
-
enabled?: boolean;
|
|
37
|
-
fillColor?: string;
|
|
38
|
-
borderWidth?: number;
|
|
39
|
-
borderColor?: string;
|
|
40
|
-
dx?: number;
|
|
41
|
-
dy?: number;
|
|
42
|
-
className?: string;
|
|
43
|
-
connector?: {
|
|
44
|
-
end: string;
|
|
45
|
-
};
|
|
46
|
-
note?: {
|
|
47
|
-
label?: string;
|
|
48
|
-
title?: string;
|
|
49
|
-
bgPadding?: {
|
|
50
|
-
top?: number;
|
|
51
|
-
right?: number;
|
|
52
|
-
bottom?: number;
|
|
53
|
-
left?: number;
|
|
54
|
-
};
|
|
55
|
-
bgRadius?: boolean;
|
|
56
|
-
};
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { PlotLine } from './plot-line';
|
|
2
|
-
import { PlotBand } from './plot-band';
|
|
3
|
-
import { ScaleType } from './enum/scale-type';
|
|
4
|
-
export declare class AxisOptions {
|
|
5
|
-
title: string;
|
|
6
|
-
min: number;
|
|
7
|
-
max: number;
|
|
8
|
-
visible: boolean;
|
|
9
|
-
tickFormat: (d: any) => string;
|
|
10
|
-
transform: string;
|
|
11
|
-
type: 'time' | 'number' | 'category';
|
|
12
|
-
zoom?: boolean;
|
|
13
|
-
scaleOptions: {
|
|
14
|
-
type?: ScaleType;
|
|
15
|
-
base?: number;
|
|
16
|
-
};
|
|
17
|
-
inverted?: boolean;
|
|
18
|
-
negative?: boolean;
|
|
19
|
-
opposite?: boolean;
|
|
20
|
-
niceTicks: boolean;
|
|
21
|
-
plotLines: PlotLine[];
|
|
22
|
-
plotBands: PlotBand[];
|
|
23
|
-
constructor(options?: {
|
|
24
|
-
title?: string;
|
|
25
|
-
min?: number;
|
|
26
|
-
max?: number;
|
|
27
|
-
visible?: boolean;
|
|
28
|
-
tickFormat?: (d: any) => string;
|
|
29
|
-
transform?: string;
|
|
30
|
-
type?: 'time' | 'number' | 'category';
|
|
31
|
-
zoom?: boolean;
|
|
32
|
-
scaleOptions?: {
|
|
33
|
-
type?: ScaleType;
|
|
34
|
-
base?: number;
|
|
35
|
-
};
|
|
36
|
-
inverted?: boolean;
|
|
37
|
-
negative?: boolean;
|
|
38
|
-
opposite?: boolean;
|
|
39
|
-
niceTicks?: boolean;
|
|
40
|
-
plotLines?: PlotLine[];
|
|
41
|
-
plotBands?: PlotBand[];
|
|
42
|
-
});
|
|
43
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { AxisOptions } from './axis-options';
|
|
2
|
-
import { Series } from './series';
|
|
3
|
-
import { BasePoint } from './point/base-point';
|
|
4
|
-
import { TooltipOptions } from './tooltip-options';
|
|
5
|
-
import { ChartBounds } from './chart-bounds';
|
|
6
|
-
import { LegendType } from './enum/legend-type';
|
|
7
|
-
import { ZoomType } from './enum/zoom-type';
|
|
8
|
-
import { ZoomTransform } from 'd3';
|
|
9
|
-
import { Annotation } from './annotation';
|
|
10
|
-
export declare class ChartOptions {
|
|
11
|
-
name: string;
|
|
12
|
-
series?: Series<BasePoint>[];
|
|
13
|
-
legend?: {
|
|
14
|
-
type?: LegendType;
|
|
15
|
-
visible?: boolean;
|
|
16
|
-
};
|
|
17
|
-
zoom?: {
|
|
18
|
-
enable?: boolean;
|
|
19
|
-
zoomType?: ZoomType;
|
|
20
|
-
zoomTransform?: ZoomTransform;
|
|
21
|
-
};
|
|
22
|
-
tooltip?: TooltipOptions;
|
|
23
|
-
xAxis: AxisOptions[];
|
|
24
|
-
yAxis: AxisOptions[];
|
|
25
|
-
gridLines?: boolean;
|
|
26
|
-
width?: number;
|
|
27
|
-
height?: number;
|
|
28
|
-
bounds: ChartBounds;
|
|
29
|
-
annotations?: Annotation[];
|
|
30
|
-
constructor(options?: {
|
|
31
|
-
name?: string;
|
|
32
|
-
series?: Series<BasePoint>[];
|
|
33
|
-
zoom?: {
|
|
34
|
-
enable?: boolean;
|
|
35
|
-
zoomType?: ZoomType;
|
|
36
|
-
zoomTransform?: ZoomTransform;
|
|
37
|
-
};
|
|
38
|
-
tooltip?: TooltipOptions;
|
|
39
|
-
xAxis: AxisOptions[];
|
|
40
|
-
yAxis: AxisOptions[];
|
|
41
|
-
gridLines?: boolean;
|
|
42
|
-
width?: number;
|
|
43
|
-
height?: number;
|
|
44
|
-
legend?: {
|
|
45
|
-
type?: LegendType;
|
|
46
|
-
visible?: boolean;
|
|
47
|
-
};
|
|
48
|
-
bounds?: ChartBounds;
|
|
49
|
-
annotations?: Annotation[];
|
|
50
|
-
});
|
|
51
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Series } from './series';
|
|
2
|
-
import { BasePoint } from './point/base-point';
|
|
3
|
-
export interface LegendDrawOptions<T extends BasePoint> {
|
|
4
|
-
context: HTMLElement;
|
|
5
|
-
series: Series<T>[];
|
|
6
|
-
columns?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface ILegendDrawer {
|
|
11
|
-
draw(options: LegendDrawOptions<BasePoint>): void;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BasePoint } from './point/base-point';
|
|
2
|
-
import { Series } from './series';
|
|
3
|
-
import * as d3 from 'd3';
|
|
4
|
-
import { ChartOptions } from './chart-options';
|
|
5
|
-
import { IDragEvent } from './i-drag-event';
|
|
6
|
-
export interface IDrawer<T extends BasePoint> {
|
|
7
|
-
dispatch?: d3.Dispatch<IDragEvent<Series<T>>>;
|
|
8
|
-
draw(series: Series<T>, drawContext: d3.Selection<SVGElement, unknown, null, undefined> | d3.Selection<HTMLCanvasElement, unknown, null, undefined>, scaleX: any, scaleY: any, options: ChartOptions): void;
|
|
9
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare class PlotBand {
|
|
2
|
-
id: any;
|
|
3
|
-
from: number;
|
|
4
|
-
to: number;
|
|
5
|
-
label?: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
image?: string;
|
|
8
|
-
showGrabbers?: boolean;
|
|
9
|
-
draggable?: boolean;
|
|
10
|
-
resizable?: boolean;
|
|
11
|
-
min?: number;
|
|
12
|
-
max?: number;
|
|
13
|
-
opacity?: number;
|
|
14
|
-
constructor(options?: {
|
|
15
|
-
id: any;
|
|
16
|
-
from: number;
|
|
17
|
-
to: number;
|
|
18
|
-
label?: string;
|
|
19
|
-
color?: string;
|
|
20
|
-
image?: string;
|
|
21
|
-
showGrabbers?: boolean;
|
|
22
|
-
draggable?: boolean;
|
|
23
|
-
resizable?: boolean;
|
|
24
|
-
min?: number;
|
|
25
|
-
max?: number;
|
|
26
|
-
opacity?: number;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare class PlotLine {
|
|
2
|
-
id: number;
|
|
3
|
-
width?: number;
|
|
4
|
-
value: number;
|
|
5
|
-
label?: string;
|
|
6
|
-
color?: string;
|
|
7
|
-
dashed?: boolean;
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
constructor(options?: {
|
|
11
|
-
id: number;
|
|
12
|
-
width?: number;
|
|
13
|
-
value: number;
|
|
14
|
-
label?: string;
|
|
15
|
-
color?: string;
|
|
16
|
-
dashed?: boolean;
|
|
17
|
-
min?: number;
|
|
18
|
-
max?: number;
|
|
19
|
-
});
|
|
20
|
-
}
|