@carbon/charts 1.9.0-rc.5 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/LICENSE.md +201 -0
- package/README.md +9 -19
- package/dist/_baseEach-603421de.mjs.map +1 -1
- package/dist/_baseEach-cdac417f.js.map +1 -1
- package/dist/angle-utils-6f166b40.js.map +1 -1
- package/dist/angle-utils-8b6ce998.mjs.map +1 -1
- package/dist/axis-chart.d.ts +13 -13
- package/dist/chart.d.ts +18 -18
- package/dist/charts/alluvial.d.ts +10 -10
- package/dist/charts/area-stacked.d.ts +8 -8
- package/dist/charts/area.d.ts +8 -8
- package/dist/charts/bar-grouped.d.ts +8 -8
- package/dist/charts/bar-simple.d.ts +8 -8
- package/dist/charts/bar-stacked.d.ts +8 -8
- package/dist/charts/boxplot.d.ts +10 -10
- package/dist/charts/bubble.d.ts +8 -8
- package/dist/charts/bullet.d.ts +10 -10
- package/dist/charts/choropleth.d.ts +14 -14
- package/dist/charts/circle-pack.d.ts +10 -10
- package/dist/charts/combo.d.ts +9 -9
- package/dist/charts/donut.d.ts +8 -8
- package/dist/charts/gauge.d.ts +10 -10
- package/dist/charts/heatmap.d.ts +14 -14
- package/dist/charts/histogram.d.ts +10 -10
- package/dist/charts/index.d.ts +27 -27
- package/dist/charts/line.d.ts +8 -8
- package/dist/charts/lollipop.d.ts +8 -8
- package/dist/charts/meter.d.ts +10 -10
- package/dist/charts/pie.d.ts +10 -10
- package/dist/charts/radar.d.ts +10 -10
- package/dist/charts/scatter.d.ts +8 -8
- package/dist/charts/tree.d.ts +10 -10
- package/dist/charts/treemap.d.ts +10 -10
- package/dist/charts/wordcloud.d.ts +10 -10
- package/dist/choropleth-4ac6ac20.js.map +1 -1
- package/dist/choropleth-f473ea0d.mjs.map +1 -1
- package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -1
- package/dist/color-scale-utils-7d463811.js.map +1 -1
- package/dist/components/axes/axis.d.ts +24 -24
- package/dist/components/axes/chart-clip.d.ts +13 -13
- package/dist/components/axes/grid-brush.d.ts +10 -10
- package/dist/components/axes/grid.d.ts +22 -22
- package/dist/components/axes/hover-axis.d.ts +10 -10
- package/dist/components/axes/index.d.ts +12 -12
- package/dist/components/axes/ruler-binned.d.ts +10 -7
- package/dist/components/axes/ruler-stacked.d.ts +4 -4
- package/dist/components/axes/ruler.d.ts +30 -27
- package/dist/components/axes/toolbar.d.ts +40 -40
- package/dist/components/axes/two-dimensional-axes.d.ts +16 -16
- package/dist/components/axes/zero-line.d.ts +7 -7
- package/dist/components/axes/zoom-bar.d.ts +31 -28
- package/dist/components/component.d.ts +30 -30
- package/dist/components/diagrams/buildPaths.d.ts +40 -40
- package/dist/components/diagrams/index.d.ts +2 -2
- package/dist/components/diagrams/markerDefinitions.d.ts +37 -37
- package/dist/components/essentials/canvas-chart-clip.d.ts +6 -6
- package/dist/components/essentials/color-scale-legend.d.ts +20 -20
- package/dist/components/essentials/geo-projection.d.ts +16 -16
- package/dist/components/essentials/highlights.d.ts +13 -13
- package/dist/components/essentials/index.d.ts +11 -11
- package/dist/components/essentials/legend.d.ts +11 -11
- package/dist/components/essentials/modal.d.ts +14 -14
- package/dist/components/essentials/threshold.d.ts +20 -20
- package/dist/components/essentials/title-meter.d.ts +30 -30
- package/dist/components/essentials/title.d.ts +20 -20
- package/dist/components/essentials/tooltip-axis.d.ts +4 -4
- package/dist/components/essentials/tooltip.d.ts +22 -22
- package/dist/components/graphs/alluvial.d.ts +14 -14
- package/dist/components/graphs/area-stacked.d.ts +11 -11
- package/dist/components/graphs/area.d.ts +12 -12
- package/dist/components/graphs/bar-grouped.d.ts +22 -22
- package/dist/components/graphs/bar-simple.d.ts +12 -12
- package/dist/components/graphs/bar-stacked.d.ts +13 -13
- package/dist/components/graphs/bar.d.ts +5 -5
- package/dist/components/graphs/boxplot.d.ts +9 -9
- package/dist/components/graphs/bubble.d.ts +13 -13
- package/dist/components/graphs/bullet.d.ts +12 -12
- package/dist/components/graphs/choropleth.d.ts +6 -6
- package/dist/components/graphs/circle-pack.d.ts +19 -19
- package/dist/components/graphs/donut.d.ts +9 -9
- package/dist/components/graphs/gauge.d.ts +27 -27
- package/dist/components/graphs/heatmap.d.ts +25 -25
- package/dist/components/graphs/histogram.d.ts +12 -12
- package/dist/components/graphs/index.d.ts +28 -28
- package/dist/components/graphs/line.d.ts +11 -11
- package/dist/components/graphs/lollipop.d.ts +14 -14
- package/dist/components/graphs/meter.d.ts +10 -10
- package/dist/components/graphs/pie.d.ts +16 -16
- package/dist/components/graphs/radar.d.ts +25 -25
- package/dist/components/graphs/scatter-stacked.d.ts +8 -8
- package/dist/components/graphs/scatter.d.ts +21 -21
- package/dist/components/graphs/skeleton-lines.d.ts +12 -12
- package/dist/components/graphs/skeleton.d.ts +23 -23
- package/dist/components/graphs/tree.d.ts +9 -9
- package/dist/components/graphs/treemap.d.ts +11 -11
- package/dist/components/graphs/wordcloud.d.ts +12 -12
- package/dist/components/index.d.ts +6 -6
- package/dist/components/layout/index.d.ts +2 -2
- package/dist/components/layout/layout.d.ts +18 -18
- package/dist/components/layout/spacer.d.ts +5 -5
- package/dist/configuration-non-customizable.d.ts +263 -263
- package/dist/configuration.d.ts +48 -48
- package/dist/demo/charts/alluvial.d.ts +109 -109
- package/dist/demo/charts/area.d.ts +224 -224
- package/dist/demo/charts/bar.d.ts +681 -681
- package/dist/demo/charts/boxplot.d.ts +34 -34
- package/dist/demo/charts/bubble.d.ts +141 -141
- package/dist/demo/charts/bullet.d.ts +24 -24
- package/dist/demo/charts/chart-types.d.ts +128 -128
- package/dist/demo/charts/choropleth.d.ts +738 -738
- package/dist/demo/charts/circle-pack.d.ts +91 -91
- package/dist/demo/charts/combo.d.ts +482 -482
- package/dist/demo/charts/donut.d.ts +64 -64
- package/dist/demo/charts/gauge.d.ts +40 -40
- package/dist/demo/charts/heatmap.d.ts +125 -125
- package/dist/demo/charts/hightlight.d.ts +40 -40
- package/dist/demo/charts/histogram.d.ts +63 -63
- package/dist/demo/charts/index.d.ts +55 -62
- package/dist/demo/charts/line.d.ts +361 -361
- package/dist/demo/charts/lollipop.d.ts +39 -39
- package/dist/demo/charts/meter.d.ts +95 -95
- package/dist/demo/charts/pie.d.ts +46 -46
- package/dist/demo/charts/radar.d.ts +63 -63
- package/dist/demo/charts/scatter.d.ts +118 -118
- package/dist/demo/charts/step.d.ts +96 -96
- package/dist/demo/charts/time-series-axis.d.ts +293 -293
- package/dist/demo/charts/toolbar.d.ts +12 -12
- package/dist/demo/charts/topojson-110.d.ts +360 -360
- package/dist/demo/charts/tree.d.ts +30 -30
- package/dist/demo/charts/treemap.d.ts +15 -15
- package/dist/demo/charts/wordcloud.d.ts +14 -14
- package/dist/demo/charts/zoom-bar.d.ts +79 -79
- package/dist/demo/index.d.ts +4 -4
- package/dist/demo/index.js +153 -166
- package/dist/demo/index.js.map +1 -1
- package/dist/demo/index.mjs +1645 -1834
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +567 -262
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/index.d.ts +2 -2
- package/dist/demo/utils/sandbox.d.ts +38 -39
- package/dist/demo/utils/story-widgets.d.ts +7 -7
- package/dist/index-a266373c.mjs.map +1 -1
- package/dist/index-becfb567.mjs.map +1 -1
- package/dist/index-d865d500.js.map +1 -1
- package/dist/index-f23685eb.js.map +1 -1
- package/dist/index.d.ts +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/a11y.d.ts +12 -12
- package/dist/interfaces/axis-scales.d.ts +201 -201
- package/dist/interfaces/charts.d.ts +520 -517
- package/dist/interfaces/components.d.ts +231 -231
- package/dist/interfaces/enums.d.ts +261 -261
- package/dist/interfaces/events.d.ts +239 -239
- package/dist/interfaces/index.d.ts +12 -11
- package/dist/interfaces/layout.d.ts +21 -21
- package/dist/interfaces/model.d.ts +35 -35
- package/dist/interfaces/services.d.ts +20 -20
- package/dist/interfaces/truncation.d.ts +17 -17
- package/dist/model/alluvial.d.ts +8 -8
- package/dist/model/binned-charts.d.ts +7 -7
- package/dist/model/boxplot.d.ts +14 -14
- package/dist/model/bullet.d.ts +14 -14
- package/dist/model/cartesian-charts.d.ts +24 -24
- package/dist/model/choropleth.d.ts +29 -29
- package/dist/model/circle-pack.d.ts +36 -36
- package/dist/model/gauge.d.ts +9 -9
- package/dist/model/heatmap.d.ts +57 -57
- package/dist/model/index.d.ts +16 -16
- package/dist/model/index.js.map +1 -1
- package/dist/model/index.mjs.map +1 -1
- package/dist/model/meter.d.ts +20 -20
- package/dist/model/model.d.ts +110 -110
- package/dist/model/pie.d.ts +9 -9
- package/dist/model/radar.d.ts +7 -7
- package/dist/model/tree.d.ts +14 -14
- package/dist/model/treemap.d.ts +8 -8
- package/dist/model/wordcloud.d.ts +7 -7
- package/dist/services/angle-utils.d.ts +15 -15
- package/dist/services/canvas-zoom.d.ts +11 -11
- package/dist/services/color-scale-utils.d.ts +2 -2
- package/dist/services/curves.d.ts +24 -24
- package/dist/services/essentials/dom-utils.d.ts +45 -45
- package/dist/services/essentials/events.d.ts +8 -8
- package/dist/services/essentials/files.d.ts +7 -7
- package/dist/services/essentials/gradient-utils.d.ts +6 -6
- package/dist/services/essentials/index.d.ts +5 -5
- package/dist/services/essentials/transitions.d.ts +13 -13
- package/dist/services/index.d.ts +9 -9
- package/dist/services/scales-cartesian.d.ts +89 -89
- package/dist/services/service.d.ts +11 -11
- package/dist/services/time-series.d.ts +13 -13
- package/dist/services/zoom.d.ts +21 -21
- package/dist/styles.css +0 -21919
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/tools.d.ts +150 -144
- package/package.json +48 -33
- package/{dist/styles/colors.scss → scss/_colors.scss} +1 -1
- package/{dist/styles/tokens.scss → scss/_tokens.scss} +6 -15
- package/scss/demos.scss +427 -0
- package/scss/index.scss +31 -0
- package/dist/styles/styles.scss +0 -40
- /package/{dist/styles → scss}/_chart-holder.scss +0 -0
- /package/{dist/styles/color-palatte.scss → scss/_color-palette.scss} +0 -0
- /package/{dist/styles → scss}/_type.scss +0 -0
- /package/{dist/styles → scss}/components/_axis.scss +0 -0
- /package/{dist/styles → scss}/components/_callouts.scss +0 -0
- /package/{dist/styles → scss}/components/_color-legend.scss +0 -0
- /package/{dist/styles → scss}/components/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/_grid-brush.scss +0 -0
- /package/{dist/styles → scss}/components/_grid.scss +0 -0
- /package/{dist/styles → scss}/components/_highlights.scss +0 -0
- /package/{dist/styles → scss}/components/_layout.scss +0 -0
- /package/{dist/styles → scss}/components/_legend.scss +0 -0
- /package/{dist/styles → scss}/components/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/_meter-title.scss +0 -0
- /package/{dist/styles → scss}/components/_modal.scss +0 -0
- /package/{dist/styles → scss}/components/_ruler.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton-lines.scss +0 -0
- /package/{dist/styles → scss}/components/_skeleton.scss +0 -0
- /package/{dist/styles → scss}/components/_threshold.scss +0 -0
- /package/{dist/styles → scss}/components/_title.scss +0 -0
- /package/{dist/styles → scss}/components/_toolbar.scss +0 -0
- /package/{dist/styles → scss}/components/_tooltip.scss +0 -0
- /package/{dist/styles → scss}/components/_zero-line.scss +0 -0
- /package/{dist/styles → scss}/components/_zoom-bar.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_card-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_edge.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_marker.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/_shape-node.scss +0 -0
- /package/{dist/styles → scss}/components/diagrams/index.scss +0 -0
- /package/{dist/styles → scss}/components/index.scss +0 -0
- /package/{dist/styles → scss}/graphs/_alluvial.scss +0 -0
- /package/{dist/styles → scss}/graphs/_area.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bubble.scss +0 -0
- /package/{dist/styles → scss}/graphs/_bullet.scss +0 -0
- /package/{dist/styles → scss}/graphs/_choropleth.scss +0 -0
- /package/{dist/styles → scss}/graphs/_circle-pack.scss +0 -0
- /package/{dist/styles → scss}/graphs/_donut.scss +0 -0
- /package/{dist/styles → scss}/graphs/_gauge.scss +0 -0
- /package/{dist/styles → scss}/graphs/_heatmap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_line.scss +0 -0
- /package/{dist/styles → scss}/graphs/_lollipop.scss +0 -0
- /package/{dist/styles → scss}/graphs/_meter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_pie.scss +0 -0
- /package/{dist/styles → scss}/graphs/_radar.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter-stacked.scss +0 -0
- /package/{dist/styles → scss}/graphs/_scatter.scss +0 -0
- /package/{dist/styles → scss}/graphs/_tree.scss +0 -0
- /package/{dist/styles → scss}/graphs/_treemap.scss +0 -0
- /package/{dist/styles → scss}/graphs/_wordcloud.scss +0 -0
- /package/{dist/styles → scss}/graphs/index.scss +0 -0
package/dist/model/model.d.ts
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import { ColorClassNameTypes } from '../interfaces/enums';
|
|
2
|
-
import
|
|
3
|
-
export type StackKeysParams = {
|
|
4
|
-
bins?: any;
|
|
5
|
-
groups?: any;
|
|
6
|
-
percentage?: any;
|
|
7
|
-
divergent?: any;
|
|
8
|
-
};
|
|
9
|
-
/** The charting model layer which includes mainly the chart data and options,
|
|
10
|
-
* as well as some misc. information to be shared among components */
|
|
11
|
-
export declare class ChartModel {
|
|
12
|
-
protected services: any;
|
|
13
|
-
protected state: any;
|
|
14
|
-
/**
|
|
15
|
-
* A list of all the data groups that have existed within the lifetime of the chart
|
|
16
|
-
* @type string[]
|
|
17
|
-
*/
|
|
18
|
-
protected allDataGroups: string[];
|
|
19
|
-
protected colorScale: any;
|
|
20
|
-
protected colorClassNames: any;
|
|
21
|
-
constructor(services: any);
|
|
22
|
-
getAllDataFromDomain(groups?: any): any;
|
|
23
|
-
/**
|
|
24
|
-
* Charts that have group configs passed into them, only want to retrieve the display data relevant to that chart
|
|
25
|
-
* @param groups the included datasets for the particular chart
|
|
26
|
-
*/
|
|
27
|
-
getDisplayData(groups?: any): any;
|
|
28
|
-
getData(): any;
|
|
29
|
-
isDataEmpty(): boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param newData The new raw data to be set
|
|
33
|
-
*/
|
|
34
|
-
setData(newData: any): any;
|
|
35
|
-
getDataGroups(groups?: any): any;
|
|
36
|
-
getActiveDataGroups(groups?: any): any;
|
|
37
|
-
getDataGroupNames(groups?: any): any;
|
|
38
|
-
getActiveDataGroupNames(groups?: any): any;
|
|
39
|
-
private aggregateBinDataByGroup;
|
|
40
|
-
getBinConfigurations(): {
|
|
41
|
-
bins: import("d3-array").Bin<number, number>[];
|
|
42
|
-
binsDomain: any[];
|
|
43
|
-
};
|
|
44
|
-
getBinnedStackedData(): import("d3").SeriesPoint<{
|
|
45
|
-
[key: string]: number;
|
|
46
|
-
}>[][];
|
|
47
|
-
getGroupedData(groups?: any): {
|
|
48
|
-
name: string;
|
|
49
|
-
data: any;
|
|
50
|
-
}[];
|
|
51
|
-
getStackKeys({ bins, groups }?: StackKeysParams): any;
|
|
52
|
-
getDataValuesGroupedByKeys({ bins, groups }: StackKeysParams): any;
|
|
53
|
-
getStackedData({ percentage, groups, divergent }: StackKeysParams): any[][];
|
|
54
|
-
/**
|
|
55
|
-
* @return {Object} The chart's options
|
|
56
|
-
*/
|
|
57
|
-
getOptions(): any;
|
|
58
|
-
set(newState: any, configs?: any): void;
|
|
59
|
-
get(property?: string): any;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @param newOptions New options to be set
|
|
63
|
-
*/
|
|
64
|
-
setOptions(newOptions: any): void;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* Updates miscellanous information within the model
|
|
68
|
-
* such as the color scales, or the legend data labels
|
|
69
|
-
*/
|
|
70
|
-
update(animate?: boolean): void;
|
|
71
|
-
toggleDataLabel(changedLabel: string): void;
|
|
72
|
-
/**
|
|
73
|
-
* Should the data point be filled?
|
|
74
|
-
* @param group
|
|
75
|
-
* @param key
|
|
76
|
-
* @param value
|
|
77
|
-
* @param defaultFilled the default for this chart
|
|
78
|
-
*/
|
|
79
|
-
getIsFilled(group: any, key?: any, data?: any, defaultFilled?: boolean): any;
|
|
80
|
-
getFillColor(group: any, key?: any, data?: any): any;
|
|
81
|
-
getStrokeColor(group: any, key?: any, data?: any): any;
|
|
82
|
-
isUserProvidedColorScaleValid(): any;
|
|
83
|
-
getColorClassName(configs: {
|
|
84
|
-
classNameTypes?: ColorClassNameTypes[];
|
|
85
|
-
dataGroupName?: string | number;
|
|
86
|
-
originalClassName?: string;
|
|
87
|
-
value?: number;
|
|
88
|
-
}): string;
|
|
89
|
-
/**
|
|
90
|
-
* For charts that might hold an associated status for their dataset
|
|
91
|
-
*/
|
|
92
|
-
getStatus(): any;
|
|
93
|
-
getAllDataGroupsNames(): string[];
|
|
94
|
-
/**
|
|
95
|
-
* Converts data provided in the older format to tabular
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
protected transformToTabularData(data: any): ChartTabularData;
|
|
99
|
-
getTabularDataArray(): ChartTabularData;
|
|
100
|
-
exportToCSV(): void;
|
|
101
|
-
protected getTabularData(data: any): any[];
|
|
102
|
-
protected sanitize(data: any): any;
|
|
103
|
-
protected updateAllDataGroups(): void;
|
|
104
|
-
protected generateDataGroups(data: any): {
|
|
105
|
-
name: unknown;
|
|
106
|
-
status: number;
|
|
107
|
-
}[];
|
|
108
|
-
protected setCustomColorScale(): void;
|
|
109
|
-
protected setColorClassNames(): void;
|
|
110
|
-
}
|
|
1
|
+
import { ColorClassNameTypes } from '../interfaces/enums';
|
|
2
|
+
import { ChartTabularData } from '../interfaces/model';
|
|
3
|
+
export type StackKeysParams = {
|
|
4
|
+
bins?: any;
|
|
5
|
+
groups?: any;
|
|
6
|
+
percentage?: any;
|
|
7
|
+
divergent?: any;
|
|
8
|
+
};
|
|
9
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
10
|
+
* as well as some misc. information to be shared among components */
|
|
11
|
+
export declare class ChartModel {
|
|
12
|
+
protected services: any;
|
|
13
|
+
protected state: any;
|
|
14
|
+
/**
|
|
15
|
+
* A list of all the data groups that have existed within the lifetime of the chart
|
|
16
|
+
* @type string[]
|
|
17
|
+
*/
|
|
18
|
+
protected allDataGroups: string[];
|
|
19
|
+
protected colorScale: any;
|
|
20
|
+
protected colorClassNames: any;
|
|
21
|
+
constructor(services: any);
|
|
22
|
+
getAllDataFromDomain(groups?: any): any;
|
|
23
|
+
/**
|
|
24
|
+
* Charts that have group configs passed into them, only want to retrieve the display data relevant to that chart
|
|
25
|
+
* @param groups the included datasets for the particular chart
|
|
26
|
+
*/
|
|
27
|
+
getDisplayData(groups?: any): any;
|
|
28
|
+
getData(): any;
|
|
29
|
+
isDataEmpty(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param newData The new raw data to be set
|
|
33
|
+
*/
|
|
34
|
+
setData(newData: any): any;
|
|
35
|
+
getDataGroups(groups?: any): any;
|
|
36
|
+
getActiveDataGroups(groups?: any): any;
|
|
37
|
+
getDataGroupNames(groups?: any): any;
|
|
38
|
+
getActiveDataGroupNames(groups?: any): any;
|
|
39
|
+
private aggregateBinDataByGroup;
|
|
40
|
+
getBinConfigurations(): {
|
|
41
|
+
bins: import("d3-array").Bin<number, number>[];
|
|
42
|
+
binsDomain: any[];
|
|
43
|
+
};
|
|
44
|
+
getBinnedStackedData(): import("d3").SeriesPoint<{
|
|
45
|
+
[key: string]: number;
|
|
46
|
+
}>[][];
|
|
47
|
+
getGroupedData(groups?: any): {
|
|
48
|
+
name: string;
|
|
49
|
+
data: any;
|
|
50
|
+
}[];
|
|
51
|
+
getStackKeys({ bins, groups }?: StackKeysParams): any;
|
|
52
|
+
getDataValuesGroupedByKeys({ bins, groups }: StackKeysParams): any;
|
|
53
|
+
getStackedData({ percentage, groups, divergent }: StackKeysParams): any[][];
|
|
54
|
+
/**
|
|
55
|
+
* @return {Object} The chart's options
|
|
56
|
+
*/
|
|
57
|
+
getOptions(): any;
|
|
58
|
+
set(newState: any, configs?: any): void;
|
|
59
|
+
get(property?: string): any;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param newOptions New options to be set
|
|
63
|
+
*/
|
|
64
|
+
setOptions(newOptions: any): void;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* Updates miscellanous information within the model
|
|
68
|
+
* such as the color scales, or the legend data labels
|
|
69
|
+
*/
|
|
70
|
+
update(animate?: boolean): void;
|
|
71
|
+
toggleDataLabel(changedLabel: string): void;
|
|
72
|
+
/**
|
|
73
|
+
* Should the data point be filled?
|
|
74
|
+
* @param group
|
|
75
|
+
* @param key
|
|
76
|
+
* @param value
|
|
77
|
+
* @param defaultFilled the default for this chart
|
|
78
|
+
*/
|
|
79
|
+
getIsFilled(group: any, key?: any, data?: any, defaultFilled?: boolean): any;
|
|
80
|
+
getFillColor(group: any, key?: any, data?: any): any;
|
|
81
|
+
getStrokeColor(group: any, key?: any, data?: any): any;
|
|
82
|
+
isUserProvidedColorScaleValid(): any;
|
|
83
|
+
getColorClassName(configs: {
|
|
84
|
+
classNameTypes?: ColorClassNameTypes[];
|
|
85
|
+
dataGroupName?: string | number;
|
|
86
|
+
originalClassName?: string;
|
|
87
|
+
value?: number;
|
|
88
|
+
}): string;
|
|
89
|
+
/**
|
|
90
|
+
* For charts that might hold an associated status for their dataset
|
|
91
|
+
*/
|
|
92
|
+
getStatus(): any;
|
|
93
|
+
getAllDataGroupsNames(): string[];
|
|
94
|
+
/**
|
|
95
|
+
* Converts data provided in the older format to tabular
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
protected transformToTabularData(data: any): ChartTabularData;
|
|
99
|
+
getTabularDataArray(): ChartTabularData;
|
|
100
|
+
exportToCSV(): void;
|
|
101
|
+
protected getTabularData(data: any): any[];
|
|
102
|
+
protected sanitize(data: any): any;
|
|
103
|
+
protected updateAllDataGroups(): void;
|
|
104
|
+
protected generateDataGroups(data: any): {
|
|
105
|
+
name: unknown;
|
|
106
|
+
status: number;
|
|
107
|
+
}[];
|
|
108
|
+
protected setCustomColorScale(): void;
|
|
109
|
+
protected setColorClassNames(): void;
|
|
110
|
+
}
|
package/dist/model/pie.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
-
* as well as some misc. information to be shared among components */
|
|
4
|
-
export declare class PieChartModel extends ChartModel {
|
|
5
|
-
constructor(services: any);
|
|
6
|
-
getTabularData(data: any): any[];
|
|
7
|
-
getTabularDataArray(): any[];
|
|
8
|
-
sanitize(data: any): any[];
|
|
9
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
+
* as well as some misc. information to be shared among components */
|
|
4
|
+
export declare class PieChartModel extends ChartModel {
|
|
5
|
+
constructor(services: any);
|
|
6
|
+
getTabularData(data: any): any[];
|
|
7
|
+
getTabularDataArray(): any[];
|
|
8
|
+
sanitize(data: any): any[];
|
|
9
|
+
}
|
package/dist/model/radar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
-
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
-
* as well as some misc. information to be shared among components */
|
|
4
|
-
export declare class RadarChartModel extends ChartModelCartesian {
|
|
5
|
-
constructor(services: any);
|
|
6
|
-
getTabularDataArray(): any[][];
|
|
7
|
-
}
|
|
1
|
+
import { ChartModelCartesian } from './cartesian-charts';
|
|
2
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
+
* as well as some misc. information to be shared among components */
|
|
4
|
+
export declare class RadarChartModel extends ChartModelCartesian {
|
|
5
|
+
constructor(services: any);
|
|
6
|
+
getTabularDataArray(): any[][];
|
|
7
|
+
}
|
package/dist/model/tree.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
/**
|
|
3
|
-
* The tree chart model layer
|
|
4
|
-
*/
|
|
5
|
-
export declare class TreeChartModel extends ChartModel {
|
|
6
|
-
constructor(services: any);
|
|
7
|
-
getTabularDataArray(): string[][];
|
|
8
|
-
/**
|
|
9
|
-
* Determine the child parent relationship in nested data
|
|
10
|
-
* @param datum: Object
|
|
11
|
-
* @param result: Array<Object>
|
|
12
|
-
*/
|
|
13
|
-
private getChildrenDatums;
|
|
14
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* The tree chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class TreeChartModel extends ChartModel {
|
|
6
|
+
constructor(services: any);
|
|
7
|
+
getTabularDataArray(): string[][];
|
|
8
|
+
/**
|
|
9
|
+
* Determine the child parent relationship in nested data
|
|
10
|
+
* @param datum: Object
|
|
11
|
+
* @param result: Array<Object>
|
|
12
|
+
*/
|
|
13
|
+
private getChildrenDatums;
|
|
14
|
+
}
|
package/dist/model/treemap.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
/**
|
|
3
|
-
* The treemap chart model layer
|
|
4
|
-
*/
|
|
5
|
-
export declare class TreemapChartModel extends ChartModel {
|
|
6
|
-
constructor(services: any);
|
|
7
|
-
getTabularDataArray(): string[][];
|
|
8
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/**
|
|
3
|
+
* The treemap chart model layer
|
|
4
|
+
*/
|
|
5
|
+
export declare class TreemapChartModel extends ChartModel {
|
|
6
|
+
constructor(services: any);
|
|
7
|
+
getTabularDataArray(): string[][];
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChartModel } from './model';
|
|
2
|
-
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
-
* as well as some misc. information to be shared among components */
|
|
4
|
-
export declare class WordCloudModel extends ChartModel {
|
|
5
|
-
constructor(services: any);
|
|
6
|
-
getTabularDataArray(): any[];
|
|
7
|
-
}
|
|
1
|
+
import { ChartModel } from './model';
|
|
2
|
+
/** The charting model layer which includes mainly the chart data and options,
|
|
3
|
+
* as well as some misc. information to be shared among components */
|
|
4
|
+
export declare class WordCloudModel extends ChartModel {
|
|
5
|
+
constructor(services: any);
|
|
6
|
+
getTabularDataArray(): any[];
|
|
7
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { TextAnchor, DominantBaseline } from '../interfaces/enums';
|
|
2
|
-
export interface Point {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
export type Angle = number;
|
|
7
|
-
export interface LabelAlignment {
|
|
8
|
-
textAnchor: TextAnchor;
|
|
9
|
-
dominantBaseline: DominantBaseline;
|
|
10
|
-
}
|
|
11
|
-
export declare function radialLabelPlacement(angleRadians: Angle): LabelAlignment;
|
|
12
|
-
export declare function radToDeg(rad: Angle): Angle;
|
|
13
|
-
export declare function degToRad(deg: Angle): Angle;
|
|
14
|
-
export declare function polarToCartesianCoords(a: Angle, r: number, t?: Point): Point;
|
|
15
|
-
export declare function distanceBetweenPointOnCircAndVerticalDiameter(a: Angle, r: number): number;
|
|
1
|
+
import { TextAnchor, DominantBaseline } from '../interfaces/enums';
|
|
2
|
+
export interface Point {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export type Angle = number;
|
|
7
|
+
export interface LabelAlignment {
|
|
8
|
+
textAnchor: TextAnchor;
|
|
9
|
+
dominantBaseline: DominantBaseline;
|
|
10
|
+
}
|
|
11
|
+
export declare function radialLabelPlacement(angleRadians: Angle): LabelAlignment;
|
|
12
|
+
export declare function radToDeg(rad: Angle): Angle;
|
|
13
|
+
export declare function degToRad(deg: Angle): Angle;
|
|
14
|
+
export declare function polarToCartesianCoords(a: Angle, r: number, t?: Point): Point;
|
|
15
|
+
export declare function distanceBetweenPointOnCircAndVerticalDiameter(a: Angle, r: number): number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Service } from './service';
|
|
2
|
-
export declare class CanvasZoom extends Service {
|
|
3
|
-
protected model: any;
|
|
4
|
-
/**
|
|
5
|
-
* focal: object to zoom into
|
|
6
|
-
* canvasElements: all the elements to translate and zoom on the chart area
|
|
7
|
-
* zoomSettings: object containing duration, easing and zoomlevel for the zoom behaviours
|
|
8
|
-
* */
|
|
9
|
-
zoomIn(focal: any, canvasElements: any, zoomSettings?: any): void;
|
|
10
|
-
zoomOut(canvasElements: any, zoomSettings?: any): void;
|
|
11
|
-
}
|
|
1
|
+
import { Service } from './service';
|
|
2
|
+
export declare class CanvasZoom extends Service {
|
|
3
|
+
protected model: any;
|
|
4
|
+
/**
|
|
5
|
+
* focal: object to zoom into
|
|
6
|
+
* canvasElements: all the elements to translate and zoom on the chart area
|
|
7
|
+
* zoomSettings: object containing duration, easing and zoomlevel for the zoom behaviours
|
|
8
|
+
* */
|
|
9
|
+
zoomIn(focal: any, canvasElements: any, zoomSettings?: any): void;
|
|
10
|
+
zoomOut(canvasElements: any, zoomSettings?: any): void;
|
|
11
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getDomain(data: any): number[];
|
|
2
|
-
export declare function getColorScale(displayData: any, colorOptions: any): import("d3-scale").ScaleQuantize<number, never>;
|
|
1
|
+
export declare function getDomain(data: any): number[];
|
|
2
|
+
export declare function getColorScale(displayData: any, colorOptions: any): import("d3-scale").ScaleQuantize<number, never>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Service } from './service';
|
|
2
|
-
export declare class Curves extends Service {
|
|
3
|
-
curveTypes: {
|
|
4
|
-
curveLinear: import("d3").CurveFactory;
|
|
5
|
-
curveLinearClosed: import("d3").CurveFactory;
|
|
6
|
-
curveBasis: import("d3").CurveFactory;
|
|
7
|
-
curveBasisClosed: import("d3").CurveFactory;
|
|
8
|
-
curveBasisOpen: import("d3").CurveFactory;
|
|
9
|
-
curveBundle: import("d3").CurveBundleFactory;
|
|
10
|
-
curveCardinal: import("d3").CurveCardinalFactory;
|
|
11
|
-
curveCardinalClosed: import("d3").CurveCardinalFactory;
|
|
12
|
-
curveCardinalOpen: import("d3").CurveCardinalFactory;
|
|
13
|
-
curveCatmullRom: import("d3").CurveCatmullRomFactory;
|
|
14
|
-
curveCatmullRomClosed: import("d3").CurveCatmullRomFactory;
|
|
15
|
-
curveCatmullRomOpen: import("d3").CurveCatmullRomFactory;
|
|
16
|
-
curveMonotoneX: import("d3").CurveFactory;
|
|
17
|
-
curveMonotoneY: import("d3").CurveFactory;
|
|
18
|
-
curveNatural: import("d3").CurveFactory;
|
|
19
|
-
curveStep: import("d3").CurveFactory;
|
|
20
|
-
curveStepAfter: import("d3").CurveFactory;
|
|
21
|
-
curveStepBefore: import("d3").CurveFactory;
|
|
22
|
-
};
|
|
23
|
-
getD3Curve(): any;
|
|
24
|
-
}
|
|
1
|
+
import { Service } from './service';
|
|
2
|
+
export declare class Curves extends Service {
|
|
3
|
+
curveTypes: {
|
|
4
|
+
curveLinear: import("d3").CurveFactory;
|
|
5
|
+
curveLinearClosed: import("d3").CurveFactory;
|
|
6
|
+
curveBasis: import("d3").CurveFactory;
|
|
7
|
+
curveBasisClosed: import("d3").CurveFactory;
|
|
8
|
+
curveBasisOpen: import("d3").CurveFactory;
|
|
9
|
+
curveBundle: import("d3").CurveBundleFactory;
|
|
10
|
+
curveCardinal: import("d3").CurveCardinalFactory;
|
|
11
|
+
curveCardinalClosed: import("d3").CurveCardinalFactory;
|
|
12
|
+
curveCardinalOpen: import("d3").CurveCardinalFactory;
|
|
13
|
+
curveCatmullRom: import("d3").CurveCatmullRomFactory;
|
|
14
|
+
curveCatmullRomClosed: import("d3").CurveCatmullRomFactory;
|
|
15
|
+
curveCatmullRomOpen: import("d3").CurveCatmullRomFactory;
|
|
16
|
+
curveMonotoneX: import("d3").CurveFactory;
|
|
17
|
+
curveMonotoneY: import("d3").CurveFactory;
|
|
18
|
+
curveNatural: import("d3").CurveFactory;
|
|
19
|
+
curveStep: import("d3").CurveFactory;
|
|
20
|
+
curveStepAfter: import("d3").CurveFactory;
|
|
21
|
+
curveStepBefore: import("d3").CurveFactory;
|
|
22
|
+
};
|
|
23
|
+
getD3Curve(): any;
|
|
24
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { Service } from '../../services/service';
|
|
4
|
-
export interface Dimensions {
|
|
5
|
-
height: number;
|
|
6
|
-
width: number;
|
|
7
|
-
}
|
|
8
|
-
export interface getSVGElementSizeOptions {
|
|
9
|
-
useAttrs?: boolean;
|
|
10
|
-
useClientDimensions?: boolean;
|
|
11
|
-
useBBox?: boolean;
|
|
12
|
-
useBoundingRect?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class DOMUtils extends Service {
|
|
15
|
-
private chartID;
|
|
16
|
-
constructor(model: ChartModel, services: any);
|
|
17
|
-
static getHTMLElementSize(element: HTMLElement): {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
};
|
|
21
|
-
static getSVGElementSize(svgSelector: Selection<SVGGraphicsElement, any, Element, any>, options?: getSVGElementSizeOptions): {
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
|
-
};
|
|
25
|
-
static appendOrSelect(parent: Selection<SVGElement | HTMLDivElement, any, Element, any>, query: string): Selection<any, any, Element, any>;
|
|
26
|
-
protected mainContainer: HTMLDivElement;
|
|
27
|
-
protected width: string;
|
|
28
|
-
protected height: string;
|
|
29
|
-
init(): void;
|
|
30
|
-
getChartID(): string;
|
|
31
|
-
generateElementIDString(originalID: string | number): string;
|
|
32
|
-
private initializeID;
|
|
33
|
-
addMainContainer(): void;
|
|
34
|
-
update(): void;
|
|
35
|
-
styleHolderElement(): void;
|
|
36
|
-
getHolder(): any;
|
|
37
|
-
exportToJPG(): void;
|
|
38
|
-
exportToPNG(): void;
|
|
39
|
-
toggleFullscreen(): void;
|
|
40
|
-
handleFullscreenChange(): void;
|
|
41
|
-
setSVGMaxHeight(): void;
|
|
42
|
-
getMainContainer(): HTMLDivElement;
|
|
43
|
-
addHolderListeners(): void;
|
|
44
|
-
addResizeListener(): void;
|
|
45
|
-
}
|
|
1
|
+
import { Selection } from 'd3';
|
|
2
|
+
import { ChartModel } from '../../model/model';
|
|
3
|
+
import { Service } from '../../services/service';
|
|
4
|
+
export interface Dimensions {
|
|
5
|
+
height: number;
|
|
6
|
+
width: number;
|
|
7
|
+
}
|
|
8
|
+
export interface getSVGElementSizeOptions {
|
|
9
|
+
useAttrs?: boolean;
|
|
10
|
+
useClientDimensions?: boolean;
|
|
11
|
+
useBBox?: boolean;
|
|
12
|
+
useBoundingRect?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class DOMUtils extends Service {
|
|
15
|
+
private chartID;
|
|
16
|
+
constructor(model: ChartModel, services: any);
|
|
17
|
+
static getHTMLElementSize(element: HTMLElement): {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
static getSVGElementSize(svgSelector: Selection<SVGGraphicsElement, any, Element, any>, options?: getSVGElementSizeOptions): {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
static appendOrSelect(parent: Selection<SVGElement | HTMLDivElement, any, Element, any>, query: string): Selection<any, any, Element, any>;
|
|
26
|
+
protected mainContainer: HTMLDivElement;
|
|
27
|
+
protected width: string;
|
|
28
|
+
protected height: string;
|
|
29
|
+
init(): void;
|
|
30
|
+
getChartID(): string;
|
|
31
|
+
generateElementIDString(originalID: string | number): string;
|
|
32
|
+
private initializeID;
|
|
33
|
+
addMainContainer(): void;
|
|
34
|
+
update(): void;
|
|
35
|
+
styleHolderElement(): void;
|
|
36
|
+
getHolder(): any;
|
|
37
|
+
exportToJPG(): void;
|
|
38
|
+
exportToPNG(): void;
|
|
39
|
+
toggleFullscreen(): void;
|
|
40
|
+
handleFullscreenChange(): void;
|
|
41
|
+
setSVGMaxHeight(): void;
|
|
42
|
+
getMainContainer(): HTMLDivElement;
|
|
43
|
+
addHolderListeners(): void;
|
|
44
|
+
addResizeListener(): void;
|
|
45
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Service } from '../../services/service';
|
|
2
|
-
export declare class Events extends Service {
|
|
3
|
-
documentFragment: DocumentFragment;
|
|
4
|
-
init(): void;
|
|
5
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
6
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
7
|
-
dispatchEvent(eventType: string, eventDetail?: object): void;
|
|
8
|
-
}
|
|
1
|
+
import { Service } from '../../services/service';
|
|
2
|
+
export declare class Events extends Service {
|
|
3
|
+
documentFragment: DocumentFragment;
|
|
4
|
+
init(): void;
|
|
5
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
6
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
7
|
+
dispatchEvent(eventType: string, eventDetail?: object): void;
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Service } from '../../services/service';
|
|
2
|
-
import { ChartModel } from '../../model/model';
|
|
3
|
-
export declare class Files extends Service {
|
|
4
|
-
constructor(model: ChartModel, services: any);
|
|
5
|
-
downloadCSV(content: any, filename: string): void;
|
|
6
|
-
downloadImage(uri: string, name: string): void;
|
|
7
|
-
}
|
|
1
|
+
import { Service } from '../../services/service';
|
|
2
|
+
import { ChartModel } from '../../model/model';
|
|
3
|
+
export declare class Files extends Service {
|
|
4
|
+
constructor(model: ChartModel, services: any);
|
|
5
|
+
downloadCSV(content: any, filename: string): void;
|
|
6
|
+
downloadImage(uri: string, name: string): void;
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Service } from '../../services/service';
|
|
2
|
-
export declare class GradientUtils extends Service {
|
|
3
|
-
static appendOrUpdateLinearGradient(configs: any): void;
|
|
4
|
-
static getOffsetRatio(domain: any): string;
|
|
5
|
-
static getStops(domain: any, color: string): object[];
|
|
6
|
-
}
|
|
1
|
+
import { Service } from '../../services/service';
|
|
2
|
+
export declare class GradientUtils extends Service {
|
|
3
|
+
static appendOrUpdateLinearGradient(configs: any): void;
|
|
4
|
+
static getOffsetRatio(domain: any): string;
|
|
5
|
+
static getStops(domain: any, color: string): object[];
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { Events } from './events';
|
|
3
|
-
export { Files } from './files';
|
|
4
|
-
export { GradientUtils } from './gradient-utils';
|
|
5
|
-
export {
|
|
1
|
+
export { Dimensions, DOMUtils, getSVGElementSizeOptions } from './dom-utils';
|
|
2
|
+
export { Events } from './events';
|
|
3
|
+
export { Files } from './files';
|
|
4
|
+
export { GradientUtils } from './gradient-utils';
|
|
5
|
+
export { setupTransitionConfigs, Transitions } from './transitions';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Service } from '../../services/service';
|
|
2
|
-
import
|
|
3
|
-
export interface setupTransitionConfigs {
|
|
4
|
-
transition?: any;
|
|
5
|
-
name?: string;
|
|
6
|
-
animate?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare class Transitions extends Service {
|
|
9
|
-
pendingTransitions: Record<number, Transition<any, any, any, any>>;
|
|
10
|
-
init(): void;
|
|
11
|
-
setupTransition({ transition: t, name, animate }: setupTransitionConfigs): any;
|
|
12
|
-
getPendingTransitions(): Record<number, Transition<any, any, any, any>>;
|
|
13
|
-
}
|
|
1
|
+
import { Service } from '../../services/service';
|
|
2
|
+
import { Transition } from 'd3';
|
|
3
|
+
export interface setupTransitionConfigs {
|
|
4
|
+
transition?: any;
|
|
5
|
+
name?: string;
|
|
6
|
+
animate?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class Transitions extends Service {
|
|
9
|
+
pendingTransitions: Record<number, Transition<any, any, any, any>>;
|
|
10
|
+
init(): void;
|
|
11
|
+
setupTransition({ transition: t, name, animate }: setupTransitionConfigs): any;
|
|
12
|
+
getPendingTransitions(): Record<number, Transition<any, any, any, any>>;
|
|
13
|
+
}
|
package/dist/services/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { getColorScale, getDomain } from './color-scale-utils';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export { CanvasZoom } from './canvas-zoom';
|
|
5
|
-
export { Curves } from './curves';
|
|
6
|
-
export { CartesianScales,
|
|
7
|
-
export { Service } from './service';
|
|
8
|
-
export { computeTimeIntervalName, formatDateTillMilliSeconds, formatTick, getTimeformats, isTickPrimary, TIME_INTERVALS } from './time-series';
|
|
9
|
-
export { Zoom } from './zoom';
|
|
1
|
+
export { getColorScale, getDomain } from './color-scale-utils';
|
|
2
|
+
export { Dimensions, DOMUtils, Events, Files, getSVGElementSizeOptions, GradientUtils, setupTransitionConfigs, Transitions } from './essentials';
|
|
3
|
+
export { Angle, degToRad, distanceBetweenPointOnCircAndVerticalDiameter, LabelAlignment, Point, polarToCartesianCoords, radialLabelPlacement, radToDeg } from './angle-utils';
|
|
4
|
+
export { CanvasZoom } from './canvas-zoom';
|
|
5
|
+
export { Curves } from './curves';
|
|
6
|
+
export { CartesianScales, ScaleFunction } from './scales-cartesian';
|
|
7
|
+
export { Service } from './service';
|
|
8
|
+
export { computeTimeIntervalName, formatDateTillMilliSeconds, formatTick, getTimeformats, isTickPrimary, TIME_INTERVALS } from './time-series';
|
|
9
|
+
export { Zoom } from './zoom';
|