@nova-ui/charts 20.0.0 → 20.0.4
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/bundles/css/styles.css +1 -1
- package/fesm2022/nova-ui-charts.mjs +51 -82
- package/fesm2022/nova-ui-charts.mjs.map +1 -1
- package/index.d.ts +4104 -3
- package/package.json +10 -2
- package/chart/chart.component.d.ts +0 -22
- package/chart-collection/chart-collection-id.directive.d.ts +0 -19
- package/chart-collection/chart-collection.service.d.ts +0 -11
- package/chart-collection/public-api.d.ts +0 -2
- package/chart-donut-content/chart-donut-content.component.d.ts +0 -15
- package/chart-marker/chart-marker.component.d.ts +0 -22
- package/chart-popover/chart-popover.component.d.ts +0 -22
- package/chart-tooltips/chart-tooltip.component.d.ts +0 -7
- package/chart-tooltips/chart-tooltip.directive.d.ts +0 -28
- package/chart-tooltips/chart-tooltips.component.d.ts +0 -41
- package/charts.module.d.ts +0 -21
- package/constants.d.ts +0 -30
- package/core/chart-assists/chart-assist.d.ts +0 -120
- package/core/chart-assists/public-api.d.ts +0 -3
- package/core/chart-assists/spark-chart-assist.d.ts +0 -49
- package/core/chart-assists/types.d.ts +0 -59
- package/core/chart-collection.d.ts +0 -51
- package/core/chart.d.ts +0 -46
- package/core/common/chart-plugin.d.ts +0 -9
- package/core/common/data-manager.d.ts +0 -25
- package/core/common/data-series.d.ts +0 -11
- package/core/common/event-bus.d.ts +0 -6
- package/core/common/lasagna.d.ts +0 -15
- package/core/common/mouse-interactive-area.d.ts +0 -23
- package/core/common/palette/chart-palette.d.ts +0 -12
- package/core/common/palette/color.helper.d.ts +0 -1
- package/core/common/palette/default-providers.d.ts +0 -4
- package/core/common/palette/mapped-value-provider.d.ts +0 -14
- package/core/common/palette/markers/path-marker.d.ts +0 -19
- package/core/common/palette/markers/svg-marker.d.ts +0 -11
- package/core/common/palette/palettes.d.ts +0 -20
- package/core/common/palette/processed-color-provider.d.ts +0 -13
- package/core/common/palette/public-api.d.ts +0 -12
- package/core/common/palette/sequential-chart-marker-provider.d.ts +0 -10
- package/core/common/palette/sequential-color-provider.d.ts +0 -9
- package/core/common/palette/sequential-value-provider.d.ts +0 -13
- package/core/common/palette/text-color-provider.d.ts +0 -27
- package/core/common/public-api.d.ts +0 -12
- package/core/common/render-engine.d.ts +0 -59
- package/core/common/renderer.d.ts +0 -110
- package/core/common/scales/band-scale.d.ts +0 -91
- package/core/common/scales/constants.d.ts +0 -2
- package/core/common/scales/domain-calculation/automatic-domain.d.ts +0 -19
- package/core/common/scales/domain-calculation/domain-with-auxiliary-series.d.ts +0 -9
- package/core/common/scales/domain-calculation/domain-with-ticks.d.ts +0 -3
- package/core/common/scales/domain-calculation/merge-domains.d.ts +0 -8
- package/core/common/scales/formatters/datetime-formatter.d.ts +0 -5
- package/core/common/scales/formatters/public-api.d.ts +0 -1
- package/core/common/scales/helpers/convert.d.ts +0 -10
- package/core/common/scales/helpers/domain.d.ts +0 -2
- package/core/common/scales/helpers/invert.d.ts +0 -2
- package/core/common/scales/helpers/is-in-range.d.ts +0 -8
- package/core/common/scales/linear-scale.d.ts +0 -12
- package/core/common/scales/noop-scale.d.ts +0 -21
- package/core/common/scales/point-scale.d.ts +0 -55
- package/core/common/scales/public-api.d.ts +0 -15
- package/core/common/scales/scale.d.ts +0 -44
- package/core/common/scales/time-interval-scale.d.ts +0 -30
- package/core/common/scales/time-scale.d.ts +0 -13
- package/core/common/scales/types.d.ts +0 -144
- package/core/common/types.d.ts +0 -327
- package/core/common/utility.service.d.ts +0 -53
- package/core/grid/config/area-grid-config.d.ts +0 -7
- package/core/grid/config/axis-config.d.ts +0 -20
- package/core/grid/config/bar-grid-config.d.ts +0 -7
- package/core/grid/config/bar-horizontal-grid-config.d.ts +0 -7
- package/core/grid/config/bar-status-grid-config.d.ts +0 -6
- package/core/grid/config/border-config.d.ts +0 -9
- package/core/grid/config/dimension-config.d.ts +0 -31
- package/core/grid/config/grid-config.d.ts +0 -16
- package/core/grid/config/linear-gauge-grid-config-fn.d.ts +0 -11
- package/core/grid/config/public-api.d.ts +0 -11
- package/core/grid/config/spark-chart-grid-config.d.ts +0 -9
- package/core/grid/config/xy-grid-config.d.ts +0 -10
- package/core/grid/default-text-overflow-handler.d.ts +0 -10
- package/core/grid/grid.d.ts +0 -125
- package/core/grid/public-api.d.ts +0 -5
- package/core/grid/radial-grid.d.ts +0 -9
- package/core/grid/types.d.ts +0 -285
- package/core/grid/xy-grid.d.ts +0 -107
- package/core/plugins/chart-donut-content-plugin.d.ts +0 -15
- package/core/plugins/chart-popover-plugin.d.ts +0 -39
- package/core/plugins/gauge/constants.d.ts +0 -12
- package/core/plugins/gauge/donut-gauge-labels-plugin.d.ts +0 -21
- package/core/plugins/gauge/linear-gauge-labels-plugin.d.ts +0 -26
- package/core/plugins/gauge/public-api.d.ts +0 -4
- package/core/plugins/gauge/types.d.ts +0 -16
- package/core/plugins/interaction/interaction-label-plugin.d.ts +0 -24
- package/core/plugins/interaction/interaction-line-plugin.d.ts +0 -18
- package/core/plugins/interaction/public-api.d.ts +0 -2
- package/core/plugins/mouse-interactive-area-plugin.d.ts +0 -14
- package/core/plugins/public-api.d.ts +0 -12
- package/core/plugins/radial-popover-plugin.d.ts +0 -8
- package/core/plugins/render-engine-plugin.d.ts +0 -12
- package/core/plugins/timeseries-zoom-plugin-sync.service.d.ts +0 -13
- package/core/plugins/timeseries-zoom-plugin.d.ts +0 -55
- package/core/plugins/tooltips/bar-tooltips-plugin.d.ts +0 -5
- package/core/plugins/tooltips/chart-tooltips-plugin.d.ts +0 -63
- package/core/plugins/tooltips/index.d.ts +0 -3
- package/core/plugins/tooltips/radial-tooltips-plugin.d.ts +0 -23
- package/core/plugins/types.d.ts +0 -30
- package/core/plugins/zoom-plugin.d.ts +0 -23
- package/core/public-api.d.ts +0 -7
- package/core/types.d.ts +0 -8
- package/gauge/constants.d.ts +0 -54
- package/gauge/gauge-util.d.ts +0 -161
- package/gauge/public-api.d.ts +0 -3
- package/gauge/types.d.ts +0 -89
- package/legend/legend-series/legend-series.component.d.ts +0 -79
- package/legend/legend-tile/basic-legend-tile/basic-legend-tile.component.d.ts +0 -5
- package/legend/legend-tile/public-api.d.ts +0 -2
- package/legend/legend-tile/rich-legend-tile/rich-legend-tile.component.d.ts +0 -33
- package/legend/legend.component.d.ts +0 -37
- package/legend/public-api.d.ts +0 -3
- package/legend/types.d.ts +0 -4
- package/public-api.d.ts +0 -15
- package/renderers/accessors/noop-accessors.d.ts +0 -11
- package/renderers/accessors/public-api.d.ts +0 -3
- package/renderers/accessors/rectangle-accessors.d.ts +0 -30
- package/renderers/accessors/xy-accessors.d.ts +0 -13
- package/renderers/area/area-accessors.d.ts +0 -28
- package/renderers/area/area-grid.d.ts +0 -7
- package/renderers/area/area-renderer.d.ts +0 -41
- package/renderers/area/public-api.d.ts +0 -6
- package/renderers/area/stacked-area-accessors.d.ts +0 -3
- package/renderers/area/stacked-area-preprocessor.d.ts +0 -5
- package/renderers/area/stacked-percentage-area-preprocessor.d.ts +0 -7
- package/renderers/bar/accessors/bar-accessors-fn.d.ts +0 -13
- package/renderers/bar/accessors/bar-accessors.d.ts +0 -24
- package/renderers/bar/accessors/horizontal-bar-accessors.d.ts +0 -8
- package/renderers/bar/accessors/public-api.d.ts +0 -6
- package/renderers/bar/accessors/status-accessors-fn.d.ts +0 -3
- package/renderers/bar/accessors/status-accessors.d.ts +0 -17
- package/renderers/bar/accessors/vertical-bar-accessors.d.ts +0 -8
- package/renderers/bar/bar-grid.d.ts +0 -10
- package/renderers/bar/bar-renderer.d.ts +0 -47
- package/renderers/bar/bar-scales.d.ts +0 -10
- package/renderers/bar/highlight-strategies/bar-highlight-strategy-outline.d.ts +0 -15
- package/renderers/bar/highlight-strategies/bar-highlight-strategy.d.ts +0 -23
- package/renderers/bar/highlight-strategies/bar-series-highlight-strategy.d.ts +0 -21
- package/renderers/bar/highlight-strategies/public-api.d.ts +0 -3
- package/renderers/bar/linear-gauge-renderer-config.d.ts +0 -7
- package/renderers/bar/linear-gauge-thresholds-renderer.d.ts +0 -25
- package/renderers/bar/preprocessor-utils.d.ts +0 -4
- package/renderers/bar/public-api.d.ts +0 -8
- package/renderers/bar/stacked-preprocessor.d.ts +0 -5
- package/renderers/bar/types.d.ts +0 -13
- package/renderers/constants.d.ts +0 -12
- package/renderers/line/calculate-missing-data.d.ts +0 -10
- package/renderers/line/interaction-strategies/line-select-series-interaction-strategy.d.ts +0 -15
- package/renderers/line/interaction-strategies/public-api.d.ts +0 -1
- package/renderers/line/line-accessors.d.ts +0 -37
- package/renderers/line/line-renderer.d.ts +0 -46
- package/renderers/line/missing-data-line-renderer-config.d.ts +0 -8
- package/renderers/line/public-api.d.ts +0 -5
- package/renderers/marker-utils.d.ts +0 -21
- package/renderers/noop-renderer.d.ts +0 -19
- package/renderers/public-api.d.ts +0 -10
- package/renderers/radial/accessors/radial-accessors.d.ts +0 -22
- package/renderers/radial/gauge/donut-gauge-renderer-config.d.ts +0 -7
- package/renderers/radial/gauge/donut-gauge-rendering-util.d.ts +0 -6
- package/renderers/radial/gauge/donut-gauge-thresholds-renderer.d.ts +0 -24
- package/renderers/radial/pie-renderer.d.ts +0 -8
- package/renderers/radial/public-api.d.ts +0 -9
- package/renderers/radial/radial-grid-fn.d.ts +0 -2
- package/renderers/radial/radial-preprocessor.d.ts +0 -12
- package/renderers/radial/radial-renderer.d.ts +0 -33
- package/renderers/radial/radial-scales.d.ts +0 -5
- package/renderers/side-indicator-renderer.d.ts +0 -55
- package/renderers/types.d.ts +0 -99
- package/renderers/xy-renderer.d.ts +0 -15
- package/thresholds/public-api.d.ts +0 -4
- package/thresholds/thresholds-service.d.ts +0 -114
- package/thresholds/thresholds-summary-grid-config.d.ts +0 -7
- package/thresholds/thresholds-top-grid-config.d.ts +0 -7
- package/thresholds/types.d.ts +0 -21
package/core/grid/xy-grid.d.ts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { IScale, ScalesIndex } from "../common/scales/types";
|
|
2
|
-
import { D3Selection, IChart, IChartEvent, IChartPlugin } from "../common/types";
|
|
3
|
-
import { Grid } from "./grid";
|
|
4
|
-
import { IAxis, IAxisConfig, IGrid, IXYGridConfig } from "./types";
|
|
5
|
-
export declare class XYGrid extends Grid implements IGrid {
|
|
6
|
-
static TICK_LABEL_OVERFLOW_DEBOUNCE_INTERVAL: number;
|
|
7
|
-
protected axisX: IAxis;
|
|
8
|
-
protected axisYLeft: IAxis;
|
|
9
|
-
protected axisYRight: IAxis;
|
|
10
|
-
protected gridY: IAxis;
|
|
11
|
-
protected gridX: IAxis;
|
|
12
|
-
private _bottomScaleId?;
|
|
13
|
-
private _leftScaleId?;
|
|
14
|
-
private _rightScaleId;
|
|
15
|
-
private reconcileMarginsDebounce;
|
|
16
|
-
private handleTickLabelOverflowDebounceIndex;
|
|
17
|
-
/**
|
|
18
|
-
* Returns the id of the bottom axis scale
|
|
19
|
-
*/
|
|
20
|
-
get bottomScaleId(): string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the id of the bottom axis scale
|
|
23
|
-
*/
|
|
24
|
-
set bottomScaleId(id: string | undefined);
|
|
25
|
-
/**
|
|
26
|
-
* Returns the id of the left axis scale
|
|
27
|
-
*/
|
|
28
|
-
get leftScaleId(): string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the id of the left axis scale
|
|
31
|
-
*/
|
|
32
|
-
set leftScaleId(id: string | undefined);
|
|
33
|
-
/**
|
|
34
|
-
* Returns the id of the right axis scale
|
|
35
|
-
*/
|
|
36
|
-
get rightScaleId(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Sets the id of the right axis scale
|
|
39
|
-
*/
|
|
40
|
-
set rightScaleId(id: string);
|
|
41
|
-
/** @ignore */
|
|
42
|
-
set scales(scales: ScalesIndex);
|
|
43
|
-
/** @ignore */
|
|
44
|
-
get scales(): ScalesIndex;
|
|
45
|
-
/** See {@link IGrid#config} */
|
|
46
|
-
config(): IXYGridConfig;
|
|
47
|
-
/** See {@link IGrid#config} */
|
|
48
|
-
config(config: IXYGridConfig): this;
|
|
49
|
-
constructor(config?: IXYGridConfig);
|
|
50
|
-
/** See {@link IGrid#build} */
|
|
51
|
-
build(): IGrid;
|
|
52
|
-
/**
|
|
53
|
-
* Handle axis opacity when emphasizing/deemphasizing chart series
|
|
54
|
-
*
|
|
55
|
-
* @param e
|
|
56
|
-
* @private
|
|
57
|
-
*/
|
|
58
|
-
handleSeriesStateChange(e: IChartEvent): Record<string, Record<string, any>> | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Return opacity for each axis
|
|
61
|
-
*
|
|
62
|
-
* @param e
|
|
63
|
-
* @param axes
|
|
64
|
-
* @private
|
|
65
|
-
*/
|
|
66
|
-
private calculateAxesStyles;
|
|
67
|
-
/** See {@link IGrid#buildPlugins} */
|
|
68
|
-
buildPlugins(chart: IChart): IChartPlugin[];
|
|
69
|
-
/** See {@link IGrid#update} */
|
|
70
|
-
update(): IGrid;
|
|
71
|
-
/** @ignore */
|
|
72
|
-
drawTicks(config: IAxisConfig, axis: IAxis, scale: IScale<any>, axisGenerator: any): void;
|
|
73
|
-
/** @ignore */
|
|
74
|
-
drawGrids(config: IAxisConfig, axis: IAxis, axisGenerator: any, scale: IScale<any>, size: number): void;
|
|
75
|
-
/** See {@link IGrid#updateRanges} */
|
|
76
|
-
updateRanges(): IGrid;
|
|
77
|
-
protected updateXAxis(): void;
|
|
78
|
-
protected updateYAxes(): void;
|
|
79
|
-
protected updateAxes(): void;
|
|
80
|
-
protected adjustAxisTicks(labelGroup: D3Selection<SVGGElement>, scale: IScale<any>): void;
|
|
81
|
-
protected handleTickLabelOverflow(labelGroup: D3Selection<SVGGElement>, scale: IScale<any>, axisLabels: HTMLElement[]): void;
|
|
82
|
-
protected selectAllAxisLabels(axisGroup: D3Selection<SVGGElement>): HTMLElement[];
|
|
83
|
-
protected getOuterWidthDimensionCorrection(): number;
|
|
84
|
-
private handleMarginUpdate;
|
|
85
|
-
private hasRightYAxis;
|
|
86
|
-
private buildAxes;
|
|
87
|
-
private filterRepeatedElements;
|
|
88
|
-
private getElementsToHide;
|
|
89
|
-
private elementsFiltering;
|
|
90
|
-
private getTextMeasurement;
|
|
91
|
-
private getMaxTextWidth;
|
|
92
|
-
private getTickDistance;
|
|
93
|
-
private recalculateMargins;
|
|
94
|
-
private fitBottomAxis;
|
|
95
|
-
/**
|
|
96
|
-
* This method invokes updateRanges if the margins have changed, but only after a debounce period.
|
|
97
|
-
* ----
|
|
98
|
-
* The debounce is necessary because, in the case of a very short axis, repeated attempts to
|
|
99
|
-
* alternately fit axis labels and recalculate ticks may conflict with each other
|
|
100
|
-
* causing the old and new margins to never be equal upon comparison. This scenario can cause a d3
|
|
101
|
-
* call stack overflow, but with a debounce, d3 can keep up with the recalculations until the chart
|
|
102
|
-
* is resized to consistently accommodate the width of the labels.
|
|
103
|
-
*/
|
|
104
|
-
private reconcileMarginsWithDebounce;
|
|
105
|
-
private isApproximatelyEqual;
|
|
106
|
-
private areMarginsApproximatelyEqual;
|
|
107
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
import { IElementPosition } from "./types";
|
|
3
|
-
import { ChartPlugin } from "../common/chart-plugin";
|
|
4
|
-
/**
|
|
5
|
-
* This plugin calculates new size and position for content inside donut chart
|
|
6
|
-
*/
|
|
7
|
-
export declare class ChartDonutContentPlugin extends ChartPlugin {
|
|
8
|
-
/** Subject for getting updates on the content position */
|
|
9
|
-
contentPositionUpdateSubject: Subject<IElementPosition>;
|
|
10
|
-
/** The current content position */
|
|
11
|
-
contentPosition: IElementPosition;
|
|
12
|
-
updateDimensions(): void;
|
|
13
|
-
destroy(): void;
|
|
14
|
-
private getContentPosition;
|
|
15
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Subject } from "rxjs";
|
|
2
|
-
import { IElementPosition } from "./types";
|
|
3
|
-
import { INTERACTION_DATA_POINTS_EVENT, INTERACTION_DATA_POINT_EVENT } from "../../constants";
|
|
4
|
-
import { ChartPlugin } from "../common/chart-plugin";
|
|
5
|
-
import { IDataPointsPayload, InteractionType } from "../common/types";
|
|
6
|
-
/** Configuration for the popover plugin */
|
|
7
|
-
export interface IPopoverPluginConfig {
|
|
8
|
-
/** ID of the event stream the plugin will respond to */
|
|
9
|
-
eventStreamId?: typeof INTERACTION_DATA_POINTS_EVENT | typeof INTERACTION_DATA_POINT_EVENT;
|
|
10
|
-
/** The type of interaction that will trigger the showing and hiding of the popovers */
|
|
11
|
-
interactionType?: InteractionType;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* This plugin listens for the INTERACTION_DATA_POINTS_EVENT by default and transforms received data into
|
|
15
|
-
* popover inputs. The listened event can be configured using the 'config.eventStreamId' property.
|
|
16
|
-
* The actual popover is handled by the ChartPopoverComponent.
|
|
17
|
-
*/
|
|
18
|
-
export declare class ChartPopoverPlugin extends ChartPlugin {
|
|
19
|
-
config: IPopoverPluginConfig;
|
|
20
|
-
/** Info about the data point(s) received in the most recent interaction event */
|
|
21
|
-
dataPoints: IDataPointsPayload;
|
|
22
|
-
/** Emits the popover's target position */
|
|
23
|
-
updatePositionSubject: Subject<IElementPosition>;
|
|
24
|
-
/** Emits an event indicating the popover should open */
|
|
25
|
-
openPopoverSubject: Subject<void>;
|
|
26
|
-
/** Emits an event indicating the popover should close */
|
|
27
|
-
closePopoverSubject: Subject<void>;
|
|
28
|
-
/** The target position of the popover */
|
|
29
|
-
popoverTargetPosition: IElementPosition;
|
|
30
|
-
/** The default plugin configuration */
|
|
31
|
-
DEFAULT_CONFIG: IPopoverPluginConfig;
|
|
32
|
-
private isOpen;
|
|
33
|
-
private readonly destroy$;
|
|
34
|
-
constructor(config?: IPopoverPluginConfig);
|
|
35
|
-
initialize(): void;
|
|
36
|
-
destroy(): void;
|
|
37
|
-
protected getAbsolutePosition(valuesArray: any[]): IElementPosition;
|
|
38
|
-
private processDataPoints;
|
|
39
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default gauge label formatter name
|
|
3
|
-
*/
|
|
4
|
-
export declare const GAUGE_LABEL_FORMATTER_NAME_DEFAULT = "gauge-label";
|
|
5
|
-
/**
|
|
6
|
-
* Gauge labels container class name
|
|
7
|
-
*/
|
|
8
|
-
export declare const GAUGE_LABELS_CONTAINER_CLASS = "gauge-labels";
|
|
9
|
-
/**
|
|
10
|
-
* Gauge threshold label class name
|
|
11
|
-
*/
|
|
12
|
-
export declare const GAUGE_THRESHOLD_LABEL_CLASS = "threshold-label";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IGaugeLabelsPluginConfig } from "./types";
|
|
2
|
-
import { ChartPlugin } from "../../common/chart-plugin";
|
|
3
|
-
/**
|
|
4
|
-
* A chart plugin that handles the rendering of labels for a donut gauge
|
|
5
|
-
*/
|
|
6
|
-
export declare class DonutGaugeLabelsPlugin extends ChartPlugin {
|
|
7
|
-
config: IGaugeLabelsPluginConfig;
|
|
8
|
-
static readonly MARGIN_DEFAULT = 25;
|
|
9
|
-
/** The default plugin configuration */
|
|
10
|
-
DEFAULT_CONFIG: IGaugeLabelsPluginConfig;
|
|
11
|
-
private readonly destroy$;
|
|
12
|
-
private lasagnaLayer;
|
|
13
|
-
constructor(config?: IGaugeLabelsPluginConfig);
|
|
14
|
-
initialize(): void;
|
|
15
|
-
update(): void;
|
|
16
|
-
updateDimensions(): void;
|
|
17
|
-
destroy(): void;
|
|
18
|
-
private drawThresholdLabels;
|
|
19
|
-
private getTextAnchor;
|
|
20
|
-
private getAlignmentBaseline;
|
|
21
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IGaugeLabelsPluginConfig } from "./types";
|
|
2
|
-
import { ChartPlugin } from "../../common/chart-plugin";
|
|
3
|
-
/**
|
|
4
|
-
* A chart plugin that handles the rendering of labels for a donut gauge
|
|
5
|
-
*/
|
|
6
|
-
export declare class LinearGaugeLabelsPlugin extends ChartPlugin {
|
|
7
|
-
config: IGaugeLabelsPluginConfig;
|
|
8
|
-
/** The default plugin configuration */
|
|
9
|
-
DEFAULT_CONFIG: IGaugeLabelsPluginConfig;
|
|
10
|
-
private readonly destroy$;
|
|
11
|
-
private lasagnaLayer;
|
|
12
|
-
private isHorizontal;
|
|
13
|
-
private thresholdsSeries;
|
|
14
|
-
constructor(config?: IGaugeLabelsPluginConfig);
|
|
15
|
-
initialize(): void;
|
|
16
|
-
update(): void;
|
|
17
|
-
updateDimensions(): void;
|
|
18
|
-
destroy(): void;
|
|
19
|
-
private updateData;
|
|
20
|
-
private drawThresholdLabels;
|
|
21
|
-
private xTranslate;
|
|
22
|
-
private yTranslate;
|
|
23
|
-
private getLabelOffset;
|
|
24
|
-
private getTextAnchor;
|
|
25
|
-
private getAlignmentBaseline;
|
|
26
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration for the gauge labels plugins
|
|
3
|
-
*/
|
|
4
|
-
export interface IGaugeLabelsPluginConfig {
|
|
5
|
-
/** Set the distance of the labels from the gauge (in pixels). */
|
|
6
|
-
padding?: number;
|
|
7
|
-
/** The name of the label formatter */
|
|
8
|
-
formatterName?: string;
|
|
9
|
-
/** Set whether labels should be disabled for the thresholds when the gauge is hovered. */
|
|
10
|
-
disableThresholdLabels?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Currently only supported on linear gauges. Set this to true to change the side
|
|
13
|
-
* of the gauge that the labels appear on.
|
|
14
|
-
*/
|
|
15
|
-
flippedLabels?: boolean;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../common/chart-plugin";
|
|
2
|
-
import { IScale } from "../../common/scales/types";
|
|
3
|
-
/**
|
|
4
|
-
* Highlights the label on x-axis that corresponds to interaction position
|
|
5
|
-
*
|
|
6
|
-
* @class InteractionLabelPlugin
|
|
7
|
-
* @extends {ChartPlugin}
|
|
8
|
-
*/
|
|
9
|
-
export declare class InteractionLabelPlugin extends ChartPlugin {
|
|
10
|
-
private formatterName;
|
|
11
|
-
static LAYER_NAME: string;
|
|
12
|
-
areLabelUpdatesEnabled: boolean;
|
|
13
|
-
private isChartInView;
|
|
14
|
-
private lastInteractionValuesPayload;
|
|
15
|
-
private interactionLabelLayer;
|
|
16
|
-
private readonly destroy$;
|
|
17
|
-
private elBBox;
|
|
18
|
-
constructor(formatterName?: string);
|
|
19
|
-
initialize(): void;
|
|
20
|
-
protected handleLabelUpdate(): void;
|
|
21
|
-
protected updateLabel(scale: IScale<any>, value: any): void;
|
|
22
|
-
destroy(): void;
|
|
23
|
-
private buildInteractionLabel;
|
|
24
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../common/chart-plugin";
|
|
2
|
-
/**
|
|
3
|
-
* Draws a vertical line on the x-axis that corresponds to interaction position
|
|
4
|
-
*
|
|
5
|
-
* @class InteractionLinePlugin
|
|
6
|
-
* @extends {ChartPlugin}
|
|
7
|
-
*/
|
|
8
|
-
export declare class InteractionLinePlugin extends ChartPlugin {
|
|
9
|
-
static LAYER_NAME: string;
|
|
10
|
-
private isChartInView;
|
|
11
|
-
private lastInteractionValuesPayload;
|
|
12
|
-
private interactionLineLayer;
|
|
13
|
-
private readonly destroy$;
|
|
14
|
-
initialize(): void;
|
|
15
|
-
private handleLineUpdate;
|
|
16
|
-
private updateLine;
|
|
17
|
-
destroy(): void;
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChartPlugin } from "../common/chart-plugin";
|
|
2
|
-
import { MouseInteractiveArea } from "../common/mouse-interactive-area";
|
|
3
|
-
/** @ignore */
|
|
4
|
-
export declare class MouseInteractiveAreaPlugin extends ChartPlugin {
|
|
5
|
-
private mouseInteractiveArea;
|
|
6
|
-
private readonly destroy$;
|
|
7
|
-
private interactionValuesActive;
|
|
8
|
-
constructor(mouseInteractiveArea: MouseInteractiveArea);
|
|
9
|
-
initialize(): void;
|
|
10
|
-
update(): void;
|
|
11
|
-
updateDimensions(): void;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
private highlightReset;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./chart-donut-content-plugin";
|
|
2
|
-
export * from "./chart-popover-plugin";
|
|
3
|
-
export * from "./gauge/public-api";
|
|
4
|
-
export * from "./interaction/public-api";
|
|
5
|
-
export * from "./mouse-interactive-area-plugin";
|
|
6
|
-
export * from "./radial-popover-plugin";
|
|
7
|
-
export * from "./render-engine-plugin";
|
|
8
|
-
export * from "./tooltips";
|
|
9
|
-
export * from "./types";
|
|
10
|
-
export * from "./zoom-plugin";
|
|
11
|
-
export * from "./timeseries-zoom-plugin";
|
|
12
|
-
export * from "./timeseries-zoom-plugin-sync.service";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChartPopoverPlugin } from "./chart-popover-plugin";
|
|
2
|
-
import { IElementPosition } from "./types";
|
|
3
|
-
/**
|
|
4
|
-
* Extends ChartPopoverPlugin to handle popover positioning for radial charts.
|
|
5
|
-
*/
|
|
6
|
-
export declare class RadialPopoverPlugin extends ChartPopoverPlugin {
|
|
7
|
-
protected getAbsolutePosition(valArr: any[]): IElementPosition;
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ChartPlugin } from "../common/chart-plugin";
|
|
2
|
-
/** @ignore */
|
|
3
|
-
export declare class RenderEnginePlugin extends ChartPlugin {
|
|
4
|
-
private renderEngine;
|
|
5
|
-
private isChartInView;
|
|
6
|
-
private lastInteractionValuesPayload;
|
|
7
|
-
private readonly destroy$;
|
|
8
|
-
initialize(): void;
|
|
9
|
-
update(): void;
|
|
10
|
-
updateDimensions(): void;
|
|
11
|
-
destroy(): void;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import moment from "moment/moment";
|
|
2
|
-
import { TimeseriesZoomPlugin } from "./timeseries-zoom-plugin";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TimeseriesZoomPluginsSyncService {
|
|
5
|
-
private collections;
|
|
6
|
-
registerPlugin(collectionId: string, plugin: TimeseriesZoomPlugin): void;
|
|
7
|
-
getPlugins(collectionId: string): TimeseriesZoomPlugin[];
|
|
8
|
-
removePlugin(collectionId: string, plugin: TimeseriesZoomPlugin): void;
|
|
9
|
-
syncPositionInsideCollection(collectionId: string, startDate: moment.Moment, endDate: moment.Moment): void;
|
|
10
|
-
clearZoomInsideCollection(collectionId: string): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TimeseriesZoomPluginsSyncService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TimeseriesZoomPluginsSyncService>;
|
|
13
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import moment from "moment/moment";
|
|
2
|
-
import { ChartPlugin } from "../common/chart-plugin";
|
|
3
|
-
import { TimeseriesZoomPluginsSyncService } from "./timeseries-zoom-plugin-sync.service";
|
|
4
|
-
export interface ITimeseriesZoomPluginConfig {
|
|
5
|
-
collectionId?: string;
|
|
6
|
-
enableExternalEvents?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface ITimeseriesZoomPluginInspectionFrame {
|
|
9
|
-
startDate: moment.Moment | undefined;
|
|
10
|
-
endDate: moment.Moment | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare class TimeseriesZoomPlugin extends ChartPlugin {
|
|
13
|
-
config: ITimeseriesZoomPluginConfig;
|
|
14
|
-
private syncService?;
|
|
15
|
-
static LAYER_NAME: string;
|
|
16
|
-
static readonly DEFAULT_CONFIG: ITimeseriesZoomPluginConfig;
|
|
17
|
-
private grid;
|
|
18
|
-
private brush;
|
|
19
|
-
private zoomBrushLayer;
|
|
20
|
-
private brushElement;
|
|
21
|
-
private destroy$;
|
|
22
|
-
private interactionHandlerMap;
|
|
23
|
-
private xScale;
|
|
24
|
-
private brushStartXCoord?;
|
|
25
|
-
private brushEndXCoord?;
|
|
26
|
-
private brushStartXDate?;
|
|
27
|
-
private brushEndXDate?;
|
|
28
|
-
private isChartHoverd;
|
|
29
|
-
private isPopoverDisplayed;
|
|
30
|
-
private zoomLineLayer;
|
|
31
|
-
private readonly openPopoverSubject;
|
|
32
|
-
readonly openPopover$: import("rxjs").Observable<number>;
|
|
33
|
-
private readonly closePopoverSubject;
|
|
34
|
-
readonly closePopover$: import("rxjs").Observable<void>;
|
|
35
|
-
private readonly zoomCreatedSubject;
|
|
36
|
-
readonly zoomCreated$: import("rxjs").Observable<void>;
|
|
37
|
-
private resizeHandler;
|
|
38
|
-
constructor(config?: ITimeseriesZoomPluginConfig, syncService?: TimeseriesZoomPluginsSyncService | undefined);
|
|
39
|
-
initialize(): void;
|
|
40
|
-
updateDimensions(): void;
|
|
41
|
-
destroy(): void;
|
|
42
|
-
showPopover(): void;
|
|
43
|
-
closePopover(): void;
|
|
44
|
-
moveBrushByDate(startDate: moment.Moment, endDate: moment.Moment): void;
|
|
45
|
-
moveBrushByCoord(startX: number | undefined, endX: number | undefined): void;
|
|
46
|
-
clearBrush(): void;
|
|
47
|
-
getInspectionFrame(): ITimeseriesZoomPluginInspectionFrame;
|
|
48
|
-
private getDateFromCoord;
|
|
49
|
-
private addZoomBoundaryLine;
|
|
50
|
-
private onBrushStart;
|
|
51
|
-
private onBrushMove;
|
|
52
|
-
private onBrushEnd;
|
|
53
|
-
private createBrushWithoutDrag;
|
|
54
|
-
private moveBrush;
|
|
55
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
2
|
-
import { Subject } from "rxjs";
|
|
3
|
-
import { ChartPlugin } from "../../common/chart-plugin";
|
|
4
|
-
import { IAccessors, IChartSeries, IDataPoint, IDataPointsPayload, IPosition } from "../../common/types";
|
|
5
|
-
/** Position with extended information for positioning a tooltip */
|
|
6
|
-
export interface ITooltipPosition extends IPosition {
|
|
7
|
-
overlayPositions: ConnectedPosition[];
|
|
8
|
-
}
|
|
9
|
-
/** How far away from the data point position will the tooltip be positioned */
|
|
10
|
-
export declare const TOOLTIP_POSITION_OFFSET = 10;
|
|
11
|
-
/** @ignore
|
|
12
|
-
* Used for charts where tooltips should be placed aside of some vertical line */
|
|
13
|
-
export declare const getVerticalSetup: (offset: number) => ConnectedPosition[];
|
|
14
|
-
/** @ignore
|
|
15
|
-
* Used for charts where tooltips should be placed aligned to some horizontal line (as Horizontal Bar Charts) */
|
|
16
|
-
export declare const getHorizontalSetup: (offset: number) => ConnectedPosition[];
|
|
17
|
-
/**
|
|
18
|
-
* This plugin listens to the INTERACTION_DATA_POINTS_EVENT and transforms received data into tooltips inputs.
|
|
19
|
-
* The actual tooltips are handled by the ChartTooltipsComponent.
|
|
20
|
-
*/
|
|
21
|
-
export declare class ChartTooltipsPlugin extends ChartPlugin {
|
|
22
|
-
readonly tooltipPositionOffset: number;
|
|
23
|
-
orientation: "right" | "top";
|
|
24
|
-
/** Highlighted data points received from the chart */
|
|
25
|
-
dataPoints: IDataPointsPayload;
|
|
26
|
-
/** Calculated positions for the data point tooltips */
|
|
27
|
-
dataPointPositions: {
|
|
28
|
-
[stringId: string]: ITooltipPosition;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* This publishes an event to show tooltips
|
|
32
|
-
*/
|
|
33
|
-
showSubject: Subject<void>;
|
|
34
|
-
/**
|
|
35
|
-
* This publishes an event to hide tooltips
|
|
36
|
-
*/
|
|
37
|
-
hideSubject: Subject<void>;
|
|
38
|
-
protected overlaySetup: ConnectedPosition[];
|
|
39
|
-
private isChartInView;
|
|
40
|
-
private readonly destroy$;
|
|
41
|
-
private seriesVisibilityMap;
|
|
42
|
-
/**
|
|
43
|
-
* @param tooltipPositionOffset Offset of a tooltip from edge of a highlighted element
|
|
44
|
-
* @param orientation
|
|
45
|
-
*/
|
|
46
|
-
constructor(tooltipPositionOffset?: number, orientation?: "right" | "top");
|
|
47
|
-
initialize(): void;
|
|
48
|
-
destroy(): void;
|
|
49
|
-
processHighlightedDataPoints(dataPoints: IDataPointsPayload): void;
|
|
50
|
-
/**
|
|
51
|
-
* Calculate tooltip position. Default implementation shows the tooltip on left / right with
|
|
52
|
-
* @param dataPoint
|
|
53
|
-
* @param chartSeries
|
|
54
|
-
*/
|
|
55
|
-
protected getTooltipPosition(dataPoint: IDataPoint, chartSeries: IChartSeries<IAccessors>): ITooltipPosition;
|
|
56
|
-
/**
|
|
57
|
-
* Converts the relative position within a chart into an absolute position on the screen
|
|
58
|
-
*
|
|
59
|
-
* @param relativePosition
|
|
60
|
-
* @param chartPosition
|
|
61
|
-
*/
|
|
62
|
-
protected getAbsolutePosition(relativePosition: ITooltipPosition, chartPosition: IPosition): ITooltipPosition;
|
|
63
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ChartTooltipsPlugin, ITooltipPosition } from "./chart-tooltips-plugin";
|
|
2
|
-
import { IAccessors, IChartSeries, IDataPoint, IPosition } from "../../common/types";
|
|
3
|
-
/**
|
|
4
|
-
* This radial tooltips plugin handles special tooltip positioning requirements for donut / pie charts.
|
|
5
|
-
*/
|
|
6
|
-
export declare class RadialTooltipsPlugin extends ChartTooltipsPlugin {
|
|
7
|
-
protected getTooltipPosition(dataPoint: IDataPoint, chartSeries: IChartSeries<IAccessors>): ITooltipPosition;
|
|
8
|
-
protected getAbsolutePosition(relativePosition: ITooltipPosition, chartPosition: IPosition): ITooltipPosition;
|
|
9
|
-
/**
|
|
10
|
-
* Calculate the position for the tooltip overlay based on the angle of the pie slice
|
|
11
|
-
*
|
|
12
|
-
* @param {number} angle in radians
|
|
13
|
-
*/
|
|
14
|
-
private getOverlayPosition;
|
|
15
|
-
/**
|
|
16
|
-
* Calculates what section of the circle does the given angle belong to
|
|
17
|
-
*
|
|
18
|
-
* @param {number} angle in radians
|
|
19
|
-
* @param {number} sections The number of sections the circle is divided into
|
|
20
|
-
*/
|
|
21
|
-
private getSectionIndex;
|
|
22
|
-
private opposite;
|
|
23
|
-
}
|
package/core/plugins/types.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ICoordinates, IInteractionPayload } from "../common/types";
|
|
2
|
-
/**
|
|
3
|
-
* Interface used for interaction values with scaleKey as key to a dictionary of scaleId to value. Typical scale keys are "x" and "y"
|
|
4
|
-
*/
|
|
5
|
-
export interface IInteractionValues {
|
|
6
|
-
[scaleKey: string]: {
|
|
7
|
-
[scaleId: string]: any;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Payload for an INTERACTION_VALUES_EVENT
|
|
12
|
-
*/
|
|
13
|
-
export interface IInteractionValuesPayload extends IInteractionPayload {
|
|
14
|
-
/** The values of the interaction */
|
|
15
|
-
values: IInteractionValues;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Payload for an INTERACTION_COORDINATES_EVENT
|
|
19
|
-
*/
|
|
20
|
-
export interface IInteractionCoordinatesPayload extends IInteractionPayload {
|
|
21
|
-
/** The coordinates of an interaction */
|
|
22
|
-
coordinates: ICoordinates;
|
|
23
|
-
}
|
|
24
|
-
/** Interface for defining an element's position */
|
|
25
|
-
export interface IElementPosition {
|
|
26
|
-
top: number;
|
|
27
|
-
left: number;
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ChartPlugin } from "../common/chart-plugin";
|
|
2
|
-
export interface IZoomPluginConfiguration {
|
|
3
|
-
enableExternalEvents?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare class ZoomPlugin extends ChartPlugin {
|
|
6
|
-
config: IZoomPluginConfiguration;
|
|
7
|
-
static LAYER_NAME: string;
|
|
8
|
-
static readonly DEFAULT_CONFIG: IZoomPluginConfiguration;
|
|
9
|
-
private grid;
|
|
10
|
-
private brush;
|
|
11
|
-
private zoomBrushLayer;
|
|
12
|
-
private brushElement;
|
|
13
|
-
private readonly destroy$;
|
|
14
|
-
private brushStartX;
|
|
15
|
-
private interactionHandlerMap;
|
|
16
|
-
constructor(config?: IZoomPluginConfiguration);
|
|
17
|
-
initialize(): void;
|
|
18
|
-
updateDimensions(): void;
|
|
19
|
-
destroy(): void;
|
|
20
|
-
private brushStart;
|
|
21
|
-
private brushMove;
|
|
22
|
-
private brushEnd;
|
|
23
|
-
}
|
package/core/public-api.d.ts
DELETED
package/core/types.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Common CSS filter IDs */
|
|
2
|
-
export declare enum CssFilterId {
|
|
3
|
-
Grayscale = "grayscale"
|
|
4
|
-
}
|
|
5
|
-
/** CSS grayscale filter rule value */
|
|
6
|
-
export declare const GRAYSCALE_FILTER = "url(\"#grayscale\")";
|
|
7
|
-
/** Transformation matrix value for applying a 100% grayscale appearance to an svg element */
|
|
8
|
-
export declare const GRAYSCALE_COLOR_MATRIX = "\n0.2126 0.7152 0.0722 0 0\n0.2126 0.7152 0.0722 0 0\n0.2126 0.7152 0.0722 0 0\n0 0 0 1 0\n";
|
package/gauge/constants.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { IAllAround } from "../core/grid/types";
|
|
2
|
-
export declare const GAUGE_QUANTITY_SERIES_ID = "quantity";
|
|
3
|
-
export declare const GAUGE_REMAINDER_SERIES_ID = "remainder";
|
|
4
|
-
export declare const GAUGE_THRESHOLD_MARKERS_SERIES_ID = "threshold-markers";
|
|
5
|
-
/**
|
|
6
|
-
* The visualization modes for a gauge
|
|
7
|
-
*/
|
|
8
|
-
export declare enum GaugeMode {
|
|
9
|
-
Donut = "donut",
|
|
10
|
-
Horizontal = "horizontal",
|
|
11
|
-
Vertical = "vertical"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Standard thicknesses for the linear gauge
|
|
15
|
-
*/
|
|
16
|
-
export declare enum StandardLinearGaugeThickness {
|
|
17
|
-
Small = 10,
|
|
18
|
-
Large = 15
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Standard values for gauge threshold marker radii
|
|
22
|
-
*/
|
|
23
|
-
export declare enum StandardGaugeThresholdMarkerRadius {
|
|
24
|
-
Small = 3,
|
|
25
|
-
Large = 4
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Standard values for gauge threshold marker radii
|
|
29
|
-
*/
|
|
30
|
-
export declare enum StandardGaugeThresholdId {
|
|
31
|
-
Warning = "warning",
|
|
32
|
-
Critical = "critical"
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Standard gauge colors
|
|
36
|
-
*/
|
|
37
|
-
export declare enum StandardGaugeColor {
|
|
38
|
-
/** Standard color for the part of the gauge that's not filled in */
|
|
39
|
-
Remainder = "var(--nui-color-semantic-unknown-bg-hover)",
|
|
40
|
-
/** Standard color for the value part of the gauge when the value represents an ok status */
|
|
41
|
-
Ok = "var(--nui-color-chart-one)",
|
|
42
|
-
/** Standard color for the value part of the gauge when the value has a warning status */
|
|
43
|
-
Warning = "var(--nui-color-semantic-warning)",
|
|
44
|
-
/** Standard color for the value part of the gauge when the value has a critical status */
|
|
45
|
-
Critical = "var(--nui-color-semantic-critical)"
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Default donut gauge margin for label clearance
|
|
49
|
-
*/
|
|
50
|
-
export declare const DONUT_GAUGE_LABEL_CLEARANCE_DEFAULT = 30;
|
|
51
|
-
/**
|
|
52
|
-
* Default linear gauge margins for label clearance
|
|
53
|
-
*/
|
|
54
|
-
export declare const LINEAR_GAUGE_LABEL_CLEARANCE_DEFAULTS: IAllAround<number>;
|