@carbon/charts 0.30.17 → 0.30.21
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 +32 -0
- package/build/demo/data/create-codesandbox.d.ts +37 -0
- package/build/demo/data/index.d.ts +6 -0
- package/build/demo/data/line.d.ts +21 -0
- package/build/demo/data/radar.d.ts +42 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/charts/radar.d.ts +6 -0
- package/build/src/components/axes/grid.d.ts +0 -4
- package/build/src/components/axes/ruler.d.ts +17 -0
- package/build/src/components/essentials/tooltip-radar.d.ts +4 -0
- package/build/src/components/graphs/radar.d.ts +22 -0
- package/build/src/components/index.d.ts +2 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +22 -0
- package/build/src/interfaces/enums.d.ts +16 -0
- package/build/src/interfaces/events.d.ts +9 -0
- package/build/src/services/angle-utils.d.ts +205 -0
- package/build/src/tools.d.ts +3 -0
- package/build/stories/tutorials/getting-started/angular.d.ts +1 -0
- package/build/stories/tutorials/getting-started/react.d.ts +1 -0
- package/build/stories/tutorials/getting-started/vanilla.d.ts +1 -0
- package/build/stories/tutorials/getting-started/vue.d.ts +1 -0
- package/build/stories/tutorials/index.d.ts +5 -0
- package/build/stories/tutorials/tabular-data-format.d.ts +1 -0
- package/bundle.js +1 -1
- package/charts/bubble.js +2 -1
- package/charts/bubble.js.map +1 -1
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/charts/line.js +2 -1
- package/charts/line.js.map +1 -1
- package/charts/radar.d.ts +6 -0
- package/charts/radar.js +51 -0
- package/charts/radar.js.map +1 -0
- package/charts/scatter.js +2 -1
- package/charts/scatter.js.map +1 -1
- package/components/axes/grid.d.ts +0 -4
- package/components/axes/grid.js +0 -39
- package/components/axes/grid.js.map +1 -1
- package/components/axes/ruler.d.ts +17 -0
- package/components/axes/ruler.js +177 -0
- package/components/axes/ruler.js.map +1 -0
- package/components/essentials/tooltip-radar.d.ts +4 -0
- package/components/essentials/tooltip-radar.js +42 -0
- package/components/essentials/tooltip-radar.js.map +1 -0
- package/components/graphs/bubble.js +2 -0
- package/components/graphs/bubble.js.map +1 -1
- package/components/graphs/radar.d.ts +22 -0
- package/components/graphs/radar.js +397 -0
- package/components/graphs/radar.js.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/index.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +30 -2
- package/configuration.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/create-codesandbox.d.ts +29 -0
- package/demo/data/create-codesandbox.js +49 -0
- package/demo/data/create-codesandbox.js.map +1 -1
- package/demo/data/index.d.ts +6 -0
- package/demo/data/index.js +34 -1
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +21 -0
- package/demo/data/line.js +58 -0
- package/demo/data/line.js.map +1 -1
- package/demo/data/radar.d.ts +42 -0
- package/demo/data/radar.js +101 -0
- package/demo/data/radar.js.map +1 -0
- package/demo/styles.css +88 -0
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +29 -15
- package/interfaces/charts.d.ts +22 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/enums.d.ts +16 -0
- package/interfaces/enums.js +18 -0
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.d.ts +9 -0
- package/interfaces/events.js +10 -0
- package/interfaces/events.js.map +1 -1
- package/package.json +1 -1
- package/services/angle-utils.d.ts +16 -0
- package/services/angle-utils.js +55 -0
- package/services/angle-utils.js.map +1 -0
- package/styles/components/_ruler.scss +21 -0
- package/styles/components/index.scss +1 -0
- package/styles/graphs/_radar.scss +22 -0
- package/styles/graphs/index.scss +1 -0
- package/styles-g10.css +24 -0
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +24 -0
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +24 -0
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +24 -0
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tools.d.ts +3 -0
- package/tools.js +4 -1
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +136 -29
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.30.21](https://github.com/IBM/carbon-charts/compare/v0.30.20...v0.30.21) (2020-05-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.30.20](https://github.com/IBM/carbon-charts/compare/v0.30.19...v0.30.20) (2020-05-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @carbon/charts
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.30.19](https://github.com/IBM/carbon-charts/compare/v0.30.18...v0.30.19) (2020-05-01)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @carbon/charts
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.30.18](https://github.com/IBM/carbon-charts/compare/v0.30.17...v0.30.18) (2020-04-24)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @carbon/charts
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [0.30.17](https://github.com/IBM/carbon-charts/compare/v0.30.16...v0.30.17) (2020-04-23)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @carbon/charts
|
|
@@ -85,3 +85,40 @@ export declare const createVueChartApp: {
|
|
|
85
85
|
"props": {};
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
+
export declare const createSvelteChartApp: {
|
|
89
|
+
(demo: any): {
|
|
90
|
+
"App.svelte": string;
|
|
91
|
+
"index.js": string;
|
|
92
|
+
"package.json": {
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": string;
|
|
95
|
+
"autobuild": string;
|
|
96
|
+
"dev": string;
|
|
97
|
+
"start": string;
|
|
98
|
+
"start:dev": string;
|
|
99
|
+
};
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"npm-run-all": string;
|
|
102
|
+
"rollup": string;
|
|
103
|
+
"rollup-plugin-commonjs": string;
|
|
104
|
+
"rollup-plugin-node-resolve": string;
|
|
105
|
+
"rollup-plugin-svelte": string;
|
|
106
|
+
"rollup-plugin-terser": string;
|
|
107
|
+
"sirv-cli": string;
|
|
108
|
+
};
|
|
109
|
+
dependencies: {
|
|
110
|
+
"@carbon/charts": any;
|
|
111
|
+
"@carbon/charts-svelte": any;
|
|
112
|
+
d3: string;
|
|
113
|
+
svelte: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
"rollup.config.js": string;
|
|
117
|
+
};
|
|
118
|
+
displayName: string;
|
|
119
|
+
__docgenInfo: {
|
|
120
|
+
"description": string;
|
|
121
|
+
"displayName": string;
|
|
122
|
+
"props": {};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
@@ -5,6 +5,7 @@ export * from "./line";
|
|
|
5
5
|
export * from "./pie";
|
|
6
6
|
export * from "./scatter";
|
|
7
7
|
export * from "./step";
|
|
8
|
+
export * from "./radar";
|
|
8
9
|
export declare const chartTypes: {
|
|
9
10
|
SimpleBarChart: {
|
|
10
11
|
vanilla: string;
|
|
@@ -46,6 +47,11 @@ export declare const chartTypes: {
|
|
|
46
47
|
angular: string;
|
|
47
48
|
vue: string;
|
|
48
49
|
};
|
|
50
|
+
RadarChart: {
|
|
51
|
+
vanilla: string;
|
|
52
|
+
angular: string;
|
|
53
|
+
vue: string;
|
|
54
|
+
};
|
|
49
55
|
};
|
|
50
56
|
export declare const storybookDemoGroups: any;
|
|
51
57
|
export declare const demoGroups: any;
|
|
@@ -45,6 +45,27 @@ export declare const lineTimeSeriesOptions: {
|
|
|
45
45
|
};
|
|
46
46
|
curve: string;
|
|
47
47
|
};
|
|
48
|
+
export declare const lineTimeSeriesDenseData: {
|
|
49
|
+
group: string;
|
|
50
|
+
date: Date;
|
|
51
|
+
value: number;
|
|
52
|
+
}[];
|
|
53
|
+
export declare const lineTimeSeriesDenseOptions: {
|
|
54
|
+
title: string;
|
|
55
|
+
axes: {
|
|
56
|
+
bottom: {
|
|
57
|
+
title: string;
|
|
58
|
+
mapsTo: string;
|
|
59
|
+
scaleType: string;
|
|
60
|
+
};
|
|
61
|
+
left: {
|
|
62
|
+
mapsTo: string;
|
|
63
|
+
title: string;
|
|
64
|
+
scaleType: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
curve: string;
|
|
68
|
+
};
|
|
48
69
|
export declare const lineTimeSeriesDataRotatedTicks: {
|
|
49
70
|
group: string;
|
|
50
71
|
date: Date;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const radarData: {
|
|
2
|
+
product: string;
|
|
3
|
+
feature: string;
|
|
4
|
+
score: number;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const radarOptions: {
|
|
7
|
+
title: string;
|
|
8
|
+
radar: {
|
|
9
|
+
axes: {
|
|
10
|
+
angle: string;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
data: {
|
|
15
|
+
groupMapsTo: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare const radarWithMissingDataData: {
|
|
19
|
+
group: string;
|
|
20
|
+
key: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
23
|
+
export declare const radarWithMissingDataOptions: {
|
|
24
|
+
title: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const radarDenseData: {
|
|
27
|
+
month: string;
|
|
28
|
+
activity: string;
|
|
29
|
+
hoursAvg: number;
|
|
30
|
+
}[];
|
|
31
|
+
export declare const radarDenseOptions: {
|
|
32
|
+
title: string;
|
|
33
|
+
radar: {
|
|
34
|
+
axes: {
|
|
35
|
+
angle: string;
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
data: {
|
|
40
|
+
groupMapsTo: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Chart } from "../chart";
|
|
2
|
+
import { ChartConfig, RadarChartOptions } from "../interfaces/index";
|
|
3
|
+
export declare class RadarChart extends Chart {
|
|
4
|
+
constructor(holder: Element, chartConfigs: ChartConfig<RadarChartOptions>, extending?: boolean);
|
|
5
|
+
getComponents(): any[];
|
|
6
|
+
}
|
|
@@ -15,10 +15,6 @@ export declare class Grid extends Component {
|
|
|
15
15
|
* @param position mouse positon
|
|
16
16
|
*/
|
|
17
17
|
getActiveGridline(position: any): any;
|
|
18
|
-
/**
|
|
19
|
-
* Adds the listener on the X grid to trigger multiple point tooltips along the x axis.
|
|
20
|
-
*/
|
|
21
|
-
addGridEventListeners(): void;
|
|
22
18
|
drawBackdrop(): void;
|
|
23
19
|
cleanGrid(g: any): void;
|
|
24
20
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component } from "../component";
|
|
2
|
+
import { Selection } from "d3-selection";
|
|
3
|
+
declare type GenericSvgSelection = Selection<SVGElement, any, SVGElement, any>;
|
|
4
|
+
export declare class Ruler extends Component {
|
|
5
|
+
type: string;
|
|
6
|
+
backdrop: GenericSvgSelection;
|
|
7
|
+
elementsToHighlight: GenericSvgSelection;
|
|
8
|
+
render(): void;
|
|
9
|
+
showRuler([x, y]: [number, number]): void;
|
|
10
|
+
hideRuler(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Adds the listener on the X grid to trigger multiple point tooltips along the x axis.
|
|
13
|
+
*/
|
|
14
|
+
addBackdropEventListeners(): void;
|
|
15
|
+
drawBackdrop(): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Component } from "../component";
|
|
2
|
+
export declare class Radar extends Component {
|
|
3
|
+
type: string;
|
|
4
|
+
svg: SVGElement;
|
|
5
|
+
groupMapsTo: string;
|
|
6
|
+
uniqueKeys: string[];
|
|
7
|
+
uniqueGroups: string[];
|
|
8
|
+
displayDataNormalized: any;
|
|
9
|
+
groupedDataNormalized: any;
|
|
10
|
+
init(): void;
|
|
11
|
+
render(animate?: boolean): void;
|
|
12
|
+
getLabelDimensions: (label: string) => {
|
|
13
|
+
width: any;
|
|
14
|
+
height: any;
|
|
15
|
+
};
|
|
16
|
+
normalizeFlatData: (dataset: any) => any;
|
|
17
|
+
normalizeGroupedData: (dataset: any) => any;
|
|
18
|
+
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
19
|
+
handleLegendMouseOut: (event: CustomEvent<any>) => void;
|
|
20
|
+
destroy(): void;
|
|
21
|
+
addEventListeners(): void;
|
|
22
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./essentials/tooltip";
|
|
|
5
5
|
export * from "./essentials/tooltip-bar";
|
|
6
6
|
export * from "./essentials/tooltip-pie";
|
|
7
7
|
export * from "./essentials/tooltip-scatter";
|
|
8
|
+
export * from "./essentials/tooltip-radar";
|
|
8
9
|
export * from "./graphs/bar-simple";
|
|
9
10
|
export * from "./graphs/bar-grouped";
|
|
10
11
|
export * from "./graphs/bar-stacked";
|
|
@@ -18,4 +19,5 @@ export * from "./layout/layout";
|
|
|
18
19
|
export * from "./axes/two-dimensional-axes";
|
|
19
20
|
export * from "./axes/axis";
|
|
20
21
|
export * from "./axes/grid";
|
|
22
|
+
export * from "./axes/ruler";
|
|
21
23
|
export * from "./axes/zero-line";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, PieChartOptions, DonutChartOptions, BubbleChartOptions, GridOptions, TimeScaleOptions, TooltipOptions, AxisTooltipOptions, BarTooltipOptions, LegendOptions } from "./interfaces";
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, PieChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, GridOptions, TimeScaleOptions, TooltipOptions, AxisTooltipOptions, BarTooltipOptions, LegendOptions } from "./interfaces";
|
|
2
2
|
/**
|
|
3
3
|
* Legend options
|
|
4
4
|
*/
|
|
@@ -25,6 +25,7 @@ export declare const options: {
|
|
|
25
25
|
scatterChart: ScatterChartOptions;
|
|
26
26
|
pieChart: PieChartOptions;
|
|
27
27
|
donutChart: DonutChartOptions;
|
|
28
|
+
radarChart: RadarChartOptions;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* Options for line behaviour
|
|
@@ -102,6 +102,7 @@ export interface ScatterChartOptions extends AxisChartOptions {
|
|
|
102
102
|
*/
|
|
103
103
|
radius: number;
|
|
104
104
|
fillOpacity?: number;
|
|
105
|
+
filled?: boolean;
|
|
105
106
|
};
|
|
106
107
|
}
|
|
107
108
|
/**
|
|
@@ -177,3 +178,24 @@ export interface DonutChartOptions extends PieChartOptions {
|
|
|
177
178
|
};
|
|
178
179
|
};
|
|
179
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* options specific to radar charts
|
|
183
|
+
*/
|
|
184
|
+
export interface RadarChartOptions extends BaseChartOptions {
|
|
185
|
+
radar?: {
|
|
186
|
+
opacity: {
|
|
187
|
+
unselected: number;
|
|
188
|
+
selected: number;
|
|
189
|
+
};
|
|
190
|
+
axes: {
|
|
191
|
+
angle: string;
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
xLabelPadding: number;
|
|
195
|
+
yLabelPadding: number;
|
|
196
|
+
yTicksNumber: number;
|
|
197
|
+
minRange: number;
|
|
198
|
+
xAxisRectHeight: number;
|
|
199
|
+
dotsRadius: number;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
@@ -93,3 +93,19 @@ export declare enum CalloutDirections {
|
|
|
93
93
|
LEFT = "left",
|
|
94
94
|
RIGHT = "right"
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* enum of all possible attributes used to aling text horizontally
|
|
98
|
+
*/
|
|
99
|
+
export declare enum TextAnchor {
|
|
100
|
+
START = "start",
|
|
101
|
+
MIDDLE = "middle",
|
|
102
|
+
END = "end"
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* enum of all possible attributes used to aling text vertically
|
|
106
|
+
*/
|
|
107
|
+
export declare enum DominantBaseline {
|
|
108
|
+
BASELINE = "baseline",
|
|
109
|
+
MIDDLE = "middle",
|
|
110
|
+
HANGING = "hanging"
|
|
111
|
+
}
|
|
@@ -56,6 +56,15 @@ export declare enum Line {
|
|
|
56
56
|
POINT_CLICK = "scatter-click",
|
|
57
57
|
POINT_MOUSEOUT = "scatter-mouseout"
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* enum of all radar graph events
|
|
61
|
+
*/
|
|
62
|
+
export declare enum Radar {
|
|
63
|
+
X_AXIS_MOUSEOVER = "radar-x-axis-mouseover",
|
|
64
|
+
X_AXIS_MOUSEMOVE = "radar-x-axis-mousemove",
|
|
65
|
+
X_AXIS_CLICK = "radar-x-axis-click",
|
|
66
|
+
X_AXIS_MOUSEOUT = "radar-x-axis-mouseout"
|
|
67
|
+
}
|
|
59
68
|
/**
|
|
60
69
|
* enum of all tooltip events
|
|
61
70
|
*/
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { TextAnchor, DominantBaseline } from "../interfaces/enums";
|
|
2
|
+
export interface Point {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export declare type Angle = number;
|
|
7
|
+
interface LabelAlignment {
|
|
8
|
+
textAnchor: TextAnchor;
|
|
9
|
+
dominantBaseline: DominantBaseline;
|
|
10
|
+
}
|
|
11
|
+
export declare function radialLabelPlacement(angleRadians: Angle): LabelAlignment;
|
|
12
|
+
export declare namespace radialLabelPlacement {
|
|
13
|
+
var displayName: string;
|
|
14
|
+
var __docgenInfo: {
|
|
15
|
+
"description": string;
|
|
16
|
+
"displayName": string;
|
|
17
|
+
"props": {
|
|
18
|
+
"toString": {
|
|
19
|
+
"defaultValue": any;
|
|
20
|
+
"description": string;
|
|
21
|
+
"name": string;
|
|
22
|
+
"required": boolean;
|
|
23
|
+
"type": {
|
|
24
|
+
"name": string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
"toFixed": {
|
|
28
|
+
"defaultValue": any;
|
|
29
|
+
"description": string;
|
|
30
|
+
"name": string;
|
|
31
|
+
"required": boolean;
|
|
32
|
+
"type": {
|
|
33
|
+
"name": string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
"toExponential": {
|
|
37
|
+
"defaultValue": any;
|
|
38
|
+
"description": string;
|
|
39
|
+
"name": string;
|
|
40
|
+
"required": boolean;
|
|
41
|
+
"type": {
|
|
42
|
+
"name": string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
"toPrecision": {
|
|
46
|
+
"defaultValue": any;
|
|
47
|
+
"description": string;
|
|
48
|
+
"name": string;
|
|
49
|
+
"required": boolean;
|
|
50
|
+
"type": {
|
|
51
|
+
"name": string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
"valueOf": {
|
|
55
|
+
"defaultValue": any;
|
|
56
|
+
"description": string;
|
|
57
|
+
"name": string;
|
|
58
|
+
"required": boolean;
|
|
59
|
+
"type": {
|
|
60
|
+
"name": string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
"toLocaleString": {
|
|
64
|
+
"defaultValue": any;
|
|
65
|
+
"description": string;
|
|
66
|
+
"name": string;
|
|
67
|
+
"required": boolean;
|
|
68
|
+
"type": {
|
|
69
|
+
"name": string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export declare function radToDeg(rad: Angle): Angle;
|
|
76
|
+
export declare namespace radToDeg {
|
|
77
|
+
var displayName: string;
|
|
78
|
+
var __docgenInfo: {
|
|
79
|
+
"description": string;
|
|
80
|
+
"displayName": string;
|
|
81
|
+
"props": {
|
|
82
|
+
"toString": {
|
|
83
|
+
"defaultValue": any;
|
|
84
|
+
"description": string;
|
|
85
|
+
"name": string;
|
|
86
|
+
"required": boolean;
|
|
87
|
+
"type": {
|
|
88
|
+
"name": string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
"toFixed": {
|
|
92
|
+
"defaultValue": any;
|
|
93
|
+
"description": string;
|
|
94
|
+
"name": string;
|
|
95
|
+
"required": boolean;
|
|
96
|
+
"type": {
|
|
97
|
+
"name": string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
"toExponential": {
|
|
101
|
+
"defaultValue": any;
|
|
102
|
+
"description": string;
|
|
103
|
+
"name": string;
|
|
104
|
+
"required": boolean;
|
|
105
|
+
"type": {
|
|
106
|
+
"name": string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
"toPrecision": {
|
|
110
|
+
"defaultValue": any;
|
|
111
|
+
"description": string;
|
|
112
|
+
"name": string;
|
|
113
|
+
"required": boolean;
|
|
114
|
+
"type": {
|
|
115
|
+
"name": string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
"valueOf": {
|
|
119
|
+
"defaultValue": any;
|
|
120
|
+
"description": string;
|
|
121
|
+
"name": string;
|
|
122
|
+
"required": boolean;
|
|
123
|
+
"type": {
|
|
124
|
+
"name": string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
"toLocaleString": {
|
|
128
|
+
"defaultValue": any;
|
|
129
|
+
"description": string;
|
|
130
|
+
"name": string;
|
|
131
|
+
"required": boolean;
|
|
132
|
+
"type": {
|
|
133
|
+
"name": string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
export declare function degToRad(deg: Angle): Angle;
|
|
140
|
+
export declare namespace degToRad {
|
|
141
|
+
var displayName: string;
|
|
142
|
+
var __docgenInfo: {
|
|
143
|
+
"description": string;
|
|
144
|
+
"displayName": string;
|
|
145
|
+
"props": {
|
|
146
|
+
"toString": {
|
|
147
|
+
"defaultValue": any;
|
|
148
|
+
"description": string;
|
|
149
|
+
"name": string;
|
|
150
|
+
"required": boolean;
|
|
151
|
+
"type": {
|
|
152
|
+
"name": string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
"toFixed": {
|
|
156
|
+
"defaultValue": any;
|
|
157
|
+
"description": string;
|
|
158
|
+
"name": string;
|
|
159
|
+
"required": boolean;
|
|
160
|
+
"type": {
|
|
161
|
+
"name": string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
"toExponential": {
|
|
165
|
+
"defaultValue": any;
|
|
166
|
+
"description": string;
|
|
167
|
+
"name": string;
|
|
168
|
+
"required": boolean;
|
|
169
|
+
"type": {
|
|
170
|
+
"name": string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
"toPrecision": {
|
|
174
|
+
"defaultValue": any;
|
|
175
|
+
"description": string;
|
|
176
|
+
"name": string;
|
|
177
|
+
"required": boolean;
|
|
178
|
+
"type": {
|
|
179
|
+
"name": string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
"valueOf": {
|
|
183
|
+
"defaultValue": any;
|
|
184
|
+
"description": string;
|
|
185
|
+
"name": string;
|
|
186
|
+
"required": boolean;
|
|
187
|
+
"type": {
|
|
188
|
+
"name": string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
"toLocaleString": {
|
|
192
|
+
"defaultValue": any;
|
|
193
|
+
"description": string;
|
|
194
|
+
"name": string;
|
|
195
|
+
"required": boolean;
|
|
196
|
+
"type": {
|
|
197
|
+
"name": string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
export declare function polarToCartesianCoords(a: Angle, r: number, t?: Point): Point;
|
|
204
|
+
export declare function distanceBetweenPointOnCircAndVerticalDiameter(a: Angle, r: number): number;
|
|
205
|
+
export {};
|
package/build/src/tools.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export declare namespace Tools {
|
|
|
5
5
|
export const merge: any;
|
|
6
6
|
export const removeArrayDuplicates: any;
|
|
7
7
|
export const clamp: any;
|
|
8
|
+
export const isEqual: any;
|
|
9
|
+
export const flatMapDeep: any;
|
|
10
|
+
export const kebabCase: any;
|
|
8
11
|
/**
|
|
9
12
|
* Returns default chart options merged with provided options,
|
|
10
13
|
* with special cases for axes.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const angularTutorial: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const reactTutorial: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vanillaTutorial: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vueTutorial: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const tabularTutorial: string;
|