@ember-joinery/chart 0.0.0-stage → 1.0.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 +167 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +69 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/cartesian-chart.d.ts +413 -0
- package/declarations/-private/cartesian-chart.d.ts.map +1 -0
- package/declarations/-private/cartesian.d.ts +236 -0
- package/declarations/-private/cartesian.d.ts.map +1 -0
- package/declarations/-private/config.d.ts +13 -0
- package/declarations/-private/config.d.ts.map +1 -0
- package/declarations/-private/dots.d.ts +27 -0
- package/declarations/-private/dots.d.ts.map +1 -0
- package/declarations/-private/nice-ticks.d.ts +17 -0
- package/declarations/-private/nice-ticks.d.ts.map +1 -0
- package/declarations/-private/parts.d.ts +596 -0
- package/declarations/-private/parts.d.ts.map +1 -0
- package/declarations/-private/paths.d.ts +26 -0
- package/declarations/-private/paths.d.ts.map +1 -0
- package/declarations/-private/pie-chart.d.ts +244 -0
- package/declarations/-private/pie-chart.d.ts.map +1 -0
- package/declarations/-private/polar-chart.d.ts +423 -0
- package/declarations/-private/polar-chart.d.ts.map +1 -0
- package/declarations/-private/polar-geometry.d.ts +230 -0
- package/declarations/-private/polar-geometry.d.ts.map +1 -0
- package/declarations/-private/polar-parts.d.ts +315 -0
- package/declarations/-private/polar-parts.d.ts.map +1 -0
- package/declarations/-private/polar.d.ts +156 -0
- package/declarations/-private/polar.d.ts.map +1 -0
- package/declarations/-private/registry.d.ts +9 -0
- package/declarations/-private/registry.d.ts.map +1 -0
- package/declarations/-private/text-size.d.ts +13 -0
- package/declarations/-private/text-size.d.ts.map +1 -0
- package/declarations/-private/tick-interval.d.ts +35 -0
- package/declarations/-private/tick-interval.d.ts.map +1 -0
- package/declarations/components/area-chart.d.ts +16 -0
- package/declarations/components/area-chart.d.ts.map +1 -0
- package/declarations/components/bar-chart.d.ts +16 -0
- package/declarations/components/bar-chart.d.ts.map +1 -0
- package/declarations/components/chart-container.d.ts +66 -0
- package/declarations/components/chart-container.d.ts.map +1 -0
- package/declarations/components/chart-legend-content.d.ts +42 -0
- package/declarations/components/chart-legend-content.d.ts.map +1 -0
- package/declarations/components/chart-style.d.ts +19 -0
- package/declarations/components/chart-style.d.ts.map +1 -0
- package/declarations/components/chart-tooltip-content.d.ts +94 -0
- package/declarations/components/chart-tooltip-content.d.ts.map +1 -0
- package/declarations/components/dot.d.ts +22 -0
- package/declarations/components/dot.d.ts.map +1 -0
- package/declarations/components/line-chart.d.ts +16 -0
- package/declarations/components/line-chart.d.ts.map +1 -0
- package/declarations/components/pie-chart.d.ts +13 -0
- package/declarations/components/pie-chart.d.ts.map +1 -0
- package/declarations/components/radar-chart.d.ts +21 -0
- package/declarations/components/radar-chart.d.ts.map +1 -0
- package/declarations/components/radial-bar-chart.d.ts +17 -0
- package/declarations/components/radial-bar-chart.d.ts.map +1 -0
- package/declarations/components/rectangle.d.ts +32 -0
- package/declarations/components/rectangle.d.ts.map +1 -0
- package/declarations/components/sector.d.ts +47 -0
- package/declarations/components/sector.d.ts.map +1 -0
- package/declarations/index.d.ts +24 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/test-support/chart.d.ts +162 -0
- package/declarations/test-support/chart.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +3 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support/polar-chart.d.ts +62 -0
- package/declarations/test-support/polar-chart.d.ts.map +1 -0
- package/declarations/test-support.d.ts +2 -0
- package/declarations/types.d.ts +138 -0
- package/declarations/types.d.ts.map +1 -0
- package/dist/cartesian-D9hWDamz.js +1217 -0
- package/dist/cartesian-D9hWDamz.js.map +1 -0
- package/dist/cartesian-chart-BLj6Q_OB.js +1123 -0
- package/dist/cartesian-chart-BLj6Q_OB.js.map +1 -0
- package/dist/components/area-chart.js +20 -0
- package/dist/components/area-chart.js.map +1 -0
- package/dist/components/bar-chart.js +20 -0
- package/dist/components/bar-chart.js.map +1 -0
- package/dist/components/chart-container.js +54 -0
- package/dist/components/chart-container.js.map +1 -0
- package/dist/components/chart-legend-content.js +48 -0
- package/dist/components/chart-legend-content.js.map +1 -0
- package/dist/components/chart-style.js +35 -0
- package/dist/components/chart-style.js.map +1 -0
- package/dist/components/chart-tooltip-content.js +131 -0
- package/dist/components/chart-tooltip-content.js.map +1 -0
- package/dist/components/dot.js +18 -0
- package/dist/components/dot.js.map +1 -0
- package/dist/components/line-chart.js +20 -0
- package/dist/components/line-chart.js.map +1 -0
- package/dist/components/pie-chart.js +6 -0
- package/dist/components/pie-chart.js.map +1 -0
- package/dist/components/radar-chart.js +22 -0
- package/dist/components/radar-chart.js.map +1 -0
- package/dist/components/radial-bar-chart.js +20 -0
- package/dist/components/radial-bar-chart.js.map +1 -0
- package/dist/components/rectangle.js +5 -0
- package/dist/components/rectangle.js.map +1 -0
- package/dist/components/sector.js +5 -0
- package/dist/components/sector.js.map +1 -0
- package/dist/config-DnsUmxOT.js +35 -0
- package/dist/config-DnsUmxOT.js.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/parts-BWLhFFjB.js +355 -0
- package/dist/parts-BWLhFFjB.js.map +1 -0
- package/dist/pie-chart-CmDtW_Ge.js +646 -0
- package/dist/pie-chart-CmDtW_Ge.js.map +1 -0
- package/dist/polar-chart-GhgOSsH9.js +2242 -0
- package/dist/polar-chart-GhgOSsH9.js.map +1 -0
- package/dist/rectangle-Cl7tbXuZ.js +166 -0
- package/dist/rectangle-Cl7tbXuZ.js.map +1 -0
- package/dist/sector-7shQPJuQ.js +565 -0
- package/dist/sector-7shQPJuQ.js.map +1 -0
- package/dist/test-support.js +470 -0
- package/dist/test-support.js.map +1 -0
- package/dist/types.js +56 -0
- package/dist/types.js.map +1 -0
- package/package.json +117 -3
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { type SafeString } from '@ember/template';
|
|
3
|
+
import type { ComponentLike, WithBoundArgs } from '@glint/template';
|
|
4
|
+
import { type Margin, type StackOffset } from './cartesian.ts';
|
|
5
|
+
import { ChartLegend, ChartTooltip, type ChartPart, type DotArgs } from './parts';
|
|
6
|
+
import { type PolarAxisSettings, type PolarChartName, type PolarGeometry, type PolarLayout, type PolarPosition, type PolarTick, type PolarViewBox, type RadialBarSector } from './polar-geometry.ts';
|
|
7
|
+
import { PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadialBar, type PolarAngleAxisTickArgs, type PolarLabelContentSignature, type PolarPart, type PolarRegistrar, type RadarDotOption } from './polar-parts';
|
|
8
|
+
import type { ChartConfig, ChartLegendContentArgs, ChartTooltipContentArgs, LegendPayloadItem, TooltipPayloadItem } from '../types.ts';
|
|
9
|
+
/** What a polar chart yields: its parts, each a component bound to the chart. */
|
|
10
|
+
export interface PolarChartParts {
|
|
11
|
+
/** The grid behind the chart: recharts' `PolarGrid`. */
|
|
12
|
+
PolarGrid: WithBoundArgs<typeof PolarGrid, 'chart'>;
|
|
13
|
+
/** The axis round the chart: recharts' `PolarAngleAxis`. */
|
|
14
|
+
PolarAngleAxis: WithBoundArgs<typeof PolarAngleAxis, 'chart'>;
|
|
15
|
+
/** The axis out from its centre: recharts' `PolarRadiusAxis`. */
|
|
16
|
+
PolarRadiusAxis: WithBoundArgs<typeof PolarRadiusAxis, 'chart'>;
|
|
17
|
+
/** A radar series: recharts' `Radar`. */
|
|
18
|
+
Radar: WithBoundArgs<typeof Radar, 'chart'>;
|
|
19
|
+
/** A radial bar series: recharts' `RadialBar`. */
|
|
20
|
+
RadialBar: WithBoundArgs<typeof RadialBar, 'chart'>;
|
|
21
|
+
/** The tooltip: shadcn's `ChartTooltip`. */
|
|
22
|
+
ChartTooltip: WithBoundArgs<typeof ChartTooltip, 'chart'>;
|
|
23
|
+
/** The legend: shadcn's `ChartLegend`. */
|
|
24
|
+
ChartLegend: WithBoundArgs<typeof ChartLegend, 'chart'>;
|
|
25
|
+
}
|
|
26
|
+
export interface PolarChartSignature {
|
|
27
|
+
Args: {
|
|
28
|
+
/** The rows to draw. */
|
|
29
|
+
data: readonly unknown[];
|
|
30
|
+
/** The space around the chart's ring. Default 5 on every side; given, a side left out is 0. */
|
|
31
|
+
margin?: Margin;
|
|
32
|
+
/** The ring's centre: pixels, or a percentage of the chart's size. Default `50%`. */
|
|
33
|
+
cx?: number | string;
|
|
34
|
+
cy?: number | string;
|
|
35
|
+
/** The ring's radii: pixels, or a percentage of the largest that fits. Default 0 and `80%`. */
|
|
36
|
+
innerRadius?: number | string;
|
|
37
|
+
outerRadius?: number | string;
|
|
38
|
+
/**
|
|
39
|
+
* Where the angle axis starts and ends, in degrees counter-clockwise from 3 o'clock. A radar
|
|
40
|
+
* chart's default is 90 to -270 (from 12 o'clock, clockwise); a radial bar chart's 0 to 360.
|
|
41
|
+
*/
|
|
42
|
+
startAngle?: number;
|
|
43
|
+
endAngle?: number;
|
|
44
|
+
/** How stacked radial bars stack: `none` (default), `expand` (to 100%), `sign`… */
|
|
45
|
+
stackOffset?: StackOffset;
|
|
46
|
+
/** The space between radial bar bands' bars and the band's edge. Default `10%`. */
|
|
47
|
+
barCategoryGap?: number | string;
|
|
48
|
+
/** The space between radial bars in a band. Default 4. */
|
|
49
|
+
barGap?: number | string;
|
|
50
|
+
/** Every radial bar's width, instead of an equal share of the band. */
|
|
51
|
+
barSize?: number;
|
|
52
|
+
maxBarSize?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Keyboard access and a screen reader role: the chart takes focus, and the arrow keys move
|
|
55
|
+
* the tooltip between rows. Default true, as recharts 3's.
|
|
56
|
+
*/
|
|
57
|
+
accessibilityLayer?: boolean;
|
|
58
|
+
/** A fixed size, in pixels. Without both, the chart fills its container and follows it. */
|
|
59
|
+
width?: number;
|
|
60
|
+
height?: number;
|
|
61
|
+
/** The size to draw before the container has been measured. */
|
|
62
|
+
initialDimension?: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
/** The svg's `<title>` and `<desc>`, for a screen reader. */
|
|
67
|
+
title?: string;
|
|
68
|
+
desc?: string;
|
|
69
|
+
/** The config, from `ChartContainer` (or your own, for a chart outside one). */
|
|
70
|
+
config?: ChartConfig;
|
|
71
|
+
/** Set by `ChartContainer`: the chart is inside one, which is what its harness finds. */
|
|
72
|
+
inContainer?: boolean;
|
|
73
|
+
/** The chart's name, for its harness, outside a `ChartContainer`. */
|
|
74
|
+
name?: string;
|
|
75
|
+
/** Set by `RadarChart` and `RadialBarChart`. */
|
|
76
|
+
chartName?: PolarChartName;
|
|
77
|
+
};
|
|
78
|
+
Blocks: {
|
|
79
|
+
/** The chart's parts. The block renders inside the chart's `<svg>`, so it can hold `<defs>`. */
|
|
80
|
+
default: [PolarChartParts];
|
|
81
|
+
};
|
|
82
|
+
Element: HTMLDivElement;
|
|
83
|
+
}
|
|
84
|
+
type Anchor = 'start' | 'middle' | 'end';
|
|
85
|
+
interface DrawnDot {
|
|
86
|
+
component?: ComponentLike<{
|
|
87
|
+
Args: DotArgs;
|
|
88
|
+
Element: Element;
|
|
89
|
+
}>;
|
|
90
|
+
args: DotArgs;
|
|
91
|
+
attrs: {
|
|
92
|
+
r?: number;
|
|
93
|
+
fill?: string;
|
|
94
|
+
fillOpacity?: string | number;
|
|
95
|
+
stroke?: string;
|
|
96
|
+
strokeWidth?: string | number;
|
|
97
|
+
class: string;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
interface DrawnRadar {
|
|
101
|
+
key: string;
|
|
102
|
+
class: string;
|
|
103
|
+
points: string;
|
|
104
|
+
d: string | null;
|
|
105
|
+
/** A range radar (values `[low, high]`): the ring between its outlines, and each outline. */
|
|
106
|
+
range: {
|
|
107
|
+
area: string;
|
|
108
|
+
outer: string | null;
|
|
109
|
+
inner: string | null;
|
|
110
|
+
} | null;
|
|
111
|
+
fill?: string;
|
|
112
|
+
fillOpacity?: string | number;
|
|
113
|
+
stroke?: string;
|
|
114
|
+
strokeWidth?: string | number;
|
|
115
|
+
dots: DrawnDot[];
|
|
116
|
+
}
|
|
117
|
+
interface DrawnSector {
|
|
118
|
+
d: string | null;
|
|
119
|
+
fill?: string;
|
|
120
|
+
fillOpacity?: string | number;
|
|
121
|
+
stroke?: string;
|
|
122
|
+
strokeWidth?: string | number;
|
|
123
|
+
index: number;
|
|
124
|
+
value: string;
|
|
125
|
+
}
|
|
126
|
+
interface DrawnLabelItem {
|
|
127
|
+
text: string;
|
|
128
|
+
fill?: string;
|
|
129
|
+
/** A label along its bar: the arc its `<textPath>` follows. */
|
|
130
|
+
arc?: {
|
|
131
|
+
id: string;
|
|
132
|
+
d: string;
|
|
133
|
+
};
|
|
134
|
+
x?: number;
|
|
135
|
+
y?: number;
|
|
136
|
+
anchor?: Anchor;
|
|
137
|
+
dy?: string;
|
|
138
|
+
}
|
|
139
|
+
interface DrawnLabelList {
|
|
140
|
+
key: string;
|
|
141
|
+
class: string;
|
|
142
|
+
fontSize?: string | number;
|
|
143
|
+
items: DrawnLabelItem[];
|
|
144
|
+
}
|
|
145
|
+
interface DrawnRadialBar {
|
|
146
|
+
key: string;
|
|
147
|
+
class: string;
|
|
148
|
+
points: string;
|
|
149
|
+
hasBackground: boolean;
|
|
150
|
+
background: {
|
|
151
|
+
d: string | null;
|
|
152
|
+
fill: string;
|
|
153
|
+
class: string;
|
|
154
|
+
}[];
|
|
155
|
+
sectors: DrawnSector[];
|
|
156
|
+
labels: DrawnLabelList[];
|
|
157
|
+
}
|
|
158
|
+
export default class PolarChart extends Component<PolarChartSignature> implements PolarRegistrar {
|
|
159
|
+
#private;
|
|
160
|
+
readonly chartId: string;
|
|
161
|
+
containerSize: {
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
164
|
+
} | null;
|
|
165
|
+
legendBox: {
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
|
+
} | null;
|
|
169
|
+
tooltipBox: {
|
|
170
|
+
width: number;
|
|
171
|
+
height: number;
|
|
172
|
+
} | null;
|
|
173
|
+
/** The pointer, in the chart's pixels, while it is over the chart. */
|
|
174
|
+
pointer: {
|
|
175
|
+
x: number;
|
|
176
|
+
y: number;
|
|
177
|
+
} | null;
|
|
178
|
+
keyboardIndex: number | null;
|
|
179
|
+
keyboardActive: boolean;
|
|
180
|
+
register(part: PolarPart | ChartPart): void;
|
|
181
|
+
unregister(part: PolarPart | ChartPart): void;
|
|
182
|
+
get fixedSize(): boolean;
|
|
183
|
+
get size(): {
|
|
184
|
+
width: number;
|
|
185
|
+
height: number;
|
|
186
|
+
} | null;
|
|
187
|
+
measureContainer: import("ember-modifier").FunctionBasedModifier<{
|
|
188
|
+
Args: {
|
|
189
|
+
Positional: unknown[];
|
|
190
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
191
|
+
};
|
|
192
|
+
Element: HTMLElement;
|
|
193
|
+
}>;
|
|
194
|
+
get width(): number;
|
|
195
|
+
get height(): number;
|
|
196
|
+
get viewBoxAttribute(): string;
|
|
197
|
+
get wrapperStyle(): SafeString;
|
|
198
|
+
get clipId(): string;
|
|
199
|
+
get accessibilityLayer(): boolean;
|
|
200
|
+
get partList(): readonly (PolarPart | ChartPart)[];
|
|
201
|
+
get gridPart(): PolarGrid | undefined;
|
|
202
|
+
get angleAxisPart(): PolarAngleAxis | undefined;
|
|
203
|
+
get radiusAxisPart(): PolarRadiusAxis | undefined;
|
|
204
|
+
get radarParts(): Radar[];
|
|
205
|
+
get radialBarParts(): RadialBar[];
|
|
206
|
+
get seriesParts(): (Radar | RadialBar)[];
|
|
207
|
+
get tooltipPart(): ChartTooltip | undefined;
|
|
208
|
+
get legendPart(): ChartLegend | undefined;
|
|
209
|
+
get chartName(): PolarChartName;
|
|
210
|
+
get layout(): PolarLayout;
|
|
211
|
+
get margin(): Required<Margin>;
|
|
212
|
+
axisSettings(part: PolarAngleAxis | PolarRadiusAxis | undefined, axis: 'angle' | 'radius'): PolarAxisSettings;
|
|
213
|
+
get geometry(): PolarGeometry | null;
|
|
214
|
+
get viewBox(): PolarViewBox | null;
|
|
215
|
+
/** Where each row sits on the tooltip's axis (an angle, or a radius), for the harness. */
|
|
216
|
+
get categoryCoordinates(): string;
|
|
217
|
+
/** The ring, for the harness: `cx cy innerRadius outerRadius startAngle endAngle`. */
|
|
218
|
+
get ringAttribute(): string;
|
|
219
|
+
get grid(): {
|
|
220
|
+
gridType: string;
|
|
221
|
+
circle: boolean;
|
|
222
|
+
cx: number;
|
|
223
|
+
cy: number;
|
|
224
|
+
stroke: string;
|
|
225
|
+
strokeWidth: string | number | undefined;
|
|
226
|
+
strokeDasharray: string | undefined;
|
|
227
|
+
fill: string | undefined;
|
|
228
|
+
fillOpacity: string | number | undefined;
|
|
229
|
+
class: string | undefined;
|
|
230
|
+
background: {
|
|
231
|
+
fill: string;
|
|
232
|
+
radius: number;
|
|
233
|
+
d: string;
|
|
234
|
+
} | null;
|
|
235
|
+
rings: {
|
|
236
|
+
radius: number;
|
|
237
|
+
d: string;
|
|
238
|
+
}[];
|
|
239
|
+
spokes: {
|
|
240
|
+
angle: number;
|
|
241
|
+
x1: number;
|
|
242
|
+
y1: number;
|
|
243
|
+
x2: number;
|
|
244
|
+
y2: number;
|
|
245
|
+
}[];
|
|
246
|
+
} | null;
|
|
247
|
+
get angleAxis(): {
|
|
248
|
+
class: string | undefined;
|
|
249
|
+
stroke: string | undefined;
|
|
250
|
+
labelFill: string;
|
|
251
|
+
showLabels: boolean;
|
|
252
|
+
tickComponent: ComponentLike<{
|
|
253
|
+
Args: PolarAngleAxisTickArgs;
|
|
254
|
+
Element: SVGElement;
|
|
255
|
+
}> | undefined;
|
|
256
|
+
line: {
|
|
257
|
+
circle: boolean;
|
|
258
|
+
cx: number;
|
|
259
|
+
cy: number;
|
|
260
|
+
r: number;
|
|
261
|
+
d: null;
|
|
262
|
+
} | {
|
|
263
|
+
circle: boolean;
|
|
264
|
+
d: string | null;
|
|
265
|
+
cx?: undefined;
|
|
266
|
+
cy?: undefined;
|
|
267
|
+
r?: undefined;
|
|
268
|
+
} | null;
|
|
269
|
+
ticks: {
|
|
270
|
+
line: {
|
|
271
|
+
x1: number;
|
|
272
|
+
y1: number;
|
|
273
|
+
x2: number;
|
|
274
|
+
y2: number;
|
|
275
|
+
} | null;
|
|
276
|
+
text: string;
|
|
277
|
+
dy: "0.355em" | "0em" | "0.71em";
|
|
278
|
+
args: {
|
|
279
|
+
x: number;
|
|
280
|
+
y: number;
|
|
281
|
+
textAnchor: Anchor;
|
|
282
|
+
verticalAnchor: Anchor;
|
|
283
|
+
index: number;
|
|
284
|
+
payload: PolarTick;
|
|
285
|
+
value: string;
|
|
286
|
+
fill: string | undefined;
|
|
287
|
+
stroke: string;
|
|
288
|
+
cx: number;
|
|
289
|
+
cy: number;
|
|
290
|
+
radius: number;
|
|
291
|
+
};
|
|
292
|
+
}[];
|
|
293
|
+
} | null;
|
|
294
|
+
get radiusAxis(): {
|
|
295
|
+
class: string | undefined;
|
|
296
|
+
stroke: string;
|
|
297
|
+
textAnchor: string;
|
|
298
|
+
line: {
|
|
299
|
+
x1: number;
|
|
300
|
+
y1: number;
|
|
301
|
+
x2: number;
|
|
302
|
+
y2: number;
|
|
303
|
+
} | null;
|
|
304
|
+
ticks: {
|
|
305
|
+
x: number;
|
|
306
|
+
y: number;
|
|
307
|
+
transform: string;
|
|
308
|
+
text: string;
|
|
309
|
+
}[];
|
|
310
|
+
labels: ({
|
|
311
|
+
arc: {
|
|
312
|
+
id: string;
|
|
313
|
+
d: string;
|
|
314
|
+
};
|
|
315
|
+
viewBox: PolarViewBox;
|
|
316
|
+
value: string | number | undefined;
|
|
317
|
+
offset: number;
|
|
318
|
+
position: PolarPosition;
|
|
319
|
+
content: ComponentLike<PolarLabelContentSignature> | undefined;
|
|
320
|
+
text: string;
|
|
321
|
+
fill: string;
|
|
322
|
+
fontSize: string | number | undefined;
|
|
323
|
+
class: string | undefined;
|
|
324
|
+
} | {
|
|
325
|
+
arc: null;
|
|
326
|
+
x: number;
|
|
327
|
+
y: number;
|
|
328
|
+
anchor: "start" | "middle" | "end";
|
|
329
|
+
dy: string;
|
|
330
|
+
viewBox: PolarViewBox;
|
|
331
|
+
value: string | number | undefined;
|
|
332
|
+
offset: number;
|
|
333
|
+
position: PolarPosition;
|
|
334
|
+
content: ComponentLike<PolarLabelContentSignature> | undefined;
|
|
335
|
+
text: string;
|
|
336
|
+
fill: string;
|
|
337
|
+
fontSize: string | number | undefined;
|
|
338
|
+
class: string | undefined;
|
|
339
|
+
})[];
|
|
340
|
+
} | null;
|
|
341
|
+
dotsFor(option: RadarDotOption | undefined, fallback: boolean, base: Omit<DrawnDot['attrs'], 'class'>, className: string, points: {
|
|
342
|
+
x: number;
|
|
343
|
+
y: number;
|
|
344
|
+
index: number;
|
|
345
|
+
value: unknown;
|
|
346
|
+
payload: unknown;
|
|
347
|
+
}[], dataKey: DotArgs['dataKey']): DrawnDot[];
|
|
348
|
+
get radars(): DrawnRadar[];
|
|
349
|
+
sectorFill(part: RadialBar, sector: RadialBarSector): string | undefined;
|
|
350
|
+
get radialBars(): DrawnRadialBar[];
|
|
351
|
+
get labelLists(): (DrawnLabelList & {
|
|
352
|
+
series: string;
|
|
353
|
+
})[];
|
|
354
|
+
/** The pointer's radius and angle, while it is on the ring. */
|
|
355
|
+
get pointerOnRing(): {
|
|
356
|
+
radius: number;
|
|
357
|
+
angle: number;
|
|
358
|
+
} | null;
|
|
359
|
+
get activeIndex(): number | null;
|
|
360
|
+
get activeTick(): PolarTick | undefined;
|
|
361
|
+
get isTooltipActive(): boolean;
|
|
362
|
+
/**
|
|
363
|
+
* Where the tooltip points: on the active row's spoke (a radar) or ring (a radial bar chart),
|
|
364
|
+
* at the pointer. Without the pointer (the keyboard, `@defaultIndex`), at the first series'
|
|
365
|
+
* point on that row, or the middle of its bar.
|
|
366
|
+
*/
|
|
367
|
+
get activeCoordinate(): {
|
|
368
|
+
x: number;
|
|
369
|
+
y: number;
|
|
370
|
+
} | null;
|
|
371
|
+
/** What the tooltip's own arguments pass to its content; see CartesianChart's. */
|
|
372
|
+
get tooltipProps(): ChartTooltipContentArgs['tooltip'];
|
|
373
|
+
get tooltipCoordinate(): {
|
|
374
|
+
x: number;
|
|
375
|
+
y: number;
|
|
376
|
+
} | undefined;
|
|
377
|
+
get tooltipPayload(): TooltipPayloadItem[];
|
|
378
|
+
get tooltipLabel(): unknown;
|
|
379
|
+
get tooltipContent(): ComponentLike<{
|
|
380
|
+
Args: ChartTooltipContentArgs;
|
|
381
|
+
}>;
|
|
382
|
+
get tooltipVisible(): boolean;
|
|
383
|
+
get tooltipStyle(): SafeString;
|
|
384
|
+
/** Measures the tooltip's box each time what it shows changes (its arguments). */
|
|
385
|
+
measureTooltip: import("ember-modifier").FunctionBasedModifier<{
|
|
386
|
+
Args: {
|
|
387
|
+
Positional: [boolean, unknown, number];
|
|
388
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
389
|
+
};
|
|
390
|
+
Element: HTMLElement;
|
|
391
|
+
}>;
|
|
392
|
+
/**
|
|
393
|
+
* The cursor: a radar's spoke at the active row, or a radial bar chart's ring through the
|
|
394
|
+
* active bar, as recharts draws them.
|
|
395
|
+
*/
|
|
396
|
+
get cursor(): {
|
|
397
|
+
class: string;
|
|
398
|
+
d: string | null;
|
|
399
|
+
stroke: string;
|
|
400
|
+
strokeWidth: string | number;
|
|
401
|
+
} | null;
|
|
402
|
+
get activeDots(): DrawnDot[];
|
|
403
|
+
get legendPayload(): LegendPayloadItem[];
|
|
404
|
+
get legendVerticalAlign(): 'top' | 'middle' | 'bottom';
|
|
405
|
+
get legendContent(): ComponentLike<{
|
|
406
|
+
Args: ChartLegendContentArgs;
|
|
407
|
+
}>;
|
|
408
|
+
get legendStyle(): SafeString;
|
|
409
|
+
measureLegend: import("ember-modifier").FunctionBasedModifier<{
|
|
410
|
+
Args: {
|
|
411
|
+
Positional: unknown[];
|
|
412
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
413
|
+
};
|
|
414
|
+
Element: HTMLElement;
|
|
415
|
+
}>;
|
|
416
|
+
onMouseMove: (event: MouseEvent) => void;
|
|
417
|
+
onMouseLeave: () => void;
|
|
418
|
+
onFocus: () => void;
|
|
419
|
+
onBlur: () => void;
|
|
420
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
421
|
+
}
|
|
422
|
+
export {};
|
|
423
|
+
//# sourceMappingURL=polar-chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polar-chart.d.ts","sourceRoot":"","sources":["../../src/-private/polar-chart.gts"],"names":[],"mappings":"AAyzDA,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAK1C,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE3D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAInE,OAAO,EAIL,KAAK,MAAM,EACX,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAA;AAErF,OAAO,EAcL,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,cAAc,EACd,SAAS,EACT,eAAe,EACf,KAAK,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,EACV,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,aAAa,CAAA;AAEpB,iFAAiF;AACjF,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|
+
import { type Box, type DataKey, type DomainBound, type Margin, type StackOffset } from './cartesian.ts';
|
|
2
|
+
export declare const RADIAN: number;
|
|
3
|
+
export interface PolarPoint {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
/** recharts' `polarToCartesian`: the point at `angle` degrees (counter-clockwise from 3 o'clock). */
|
|
8
|
+
export declare function polarToCartesian(cx: number, cy: number, radius: number, angle: number): PolarPoint;
|
|
9
|
+
export declare function mathSign(value: number): number;
|
|
10
|
+
/**
|
|
11
|
+
* recharts' `getPercentValue`: a percentage of `total` (`'80%'`), or a number as is. With
|
|
12
|
+
* `validate`, never more than `total`. It multiplies before it divides, as recharts does, so the
|
|
13
|
+
* radii come out as recharts' do to the last digit.
|
|
14
|
+
*/
|
|
15
|
+
export declare function percentValue(value: number | string | undefined | null, total: number, fallback?: number, validate?: boolean): number;
|
|
16
|
+
/** recharts' `round`: four decimals, and never `-0`. */
|
|
17
|
+
export declare function round4(value: number): number;
|
|
18
|
+
export type PolarChartName = 'RadarChart' | 'RadialBarChart';
|
|
19
|
+
/** `centric`: categories around the ring (a radar). `radial`: categories out from the centre. */
|
|
20
|
+
export type PolarLayout = 'centric' | 'radial';
|
|
21
|
+
export type PolarAxisType = 'angleAxis' | 'radiusAxis';
|
|
22
|
+
/** What a polar axis does, with recharts' defaults filled in. */
|
|
23
|
+
export interface PolarAxisSettings {
|
|
24
|
+
dataKey?: DataKey;
|
|
25
|
+
/** `auto` takes the layout's: category around a radar, number out from its centre. */
|
|
26
|
+
type: 'auto' | 'category' | 'number';
|
|
27
|
+
domain?: readonly [DomainBound, DomainBound];
|
|
28
|
+
allowDecimals: boolean;
|
|
29
|
+
allowDataOverflow: boolean;
|
|
30
|
+
allowDuplicatedCategory: boolean;
|
|
31
|
+
/** How many ticks a number axis aims for; an angle axis has none unless given. */
|
|
32
|
+
tickCount?: number;
|
|
33
|
+
ticks?: readonly unknown[];
|
|
34
|
+
reversed: boolean;
|
|
35
|
+
scale: 'auto' | 'linear' | 'band' | 'point';
|
|
36
|
+
}
|
|
37
|
+
/** recharts' defaults for an angle axis (`PolarAngleAxis`, or the one a chart makes up). */
|
|
38
|
+
export declare function defaultAngleAxis(): PolarAxisSettings;
|
|
39
|
+
/** recharts' defaults for a radius axis (`PolarRadiusAxis`, or the one a chart makes up). */
|
|
40
|
+
export declare function defaultRadiusAxis(): PolarAxisSettings;
|
|
41
|
+
export interface RadarSettings {
|
|
42
|
+
id: string;
|
|
43
|
+
dataKey: DataKey;
|
|
44
|
+
hide: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface RadialBarSettings {
|
|
47
|
+
id: string;
|
|
48
|
+
dataKey: DataKey;
|
|
49
|
+
stackId?: string | number;
|
|
50
|
+
hide: boolean;
|
|
51
|
+
minPointSize: number;
|
|
52
|
+
barSize?: number;
|
|
53
|
+
maxBarSize?: number;
|
|
54
|
+
}
|
|
55
|
+
export interface PolarInput {
|
|
56
|
+
chartName: PolarChartName;
|
|
57
|
+
layout: PolarLayout;
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
margin: Required<Margin>;
|
|
61
|
+
/** The legend's box, once measured, which the ring makes room for. */
|
|
62
|
+
legend?: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
align: 'left' | 'center' | 'right';
|
|
66
|
+
verticalAlign: 'top' | 'middle' | 'bottom';
|
|
67
|
+
layout: 'horizontal' | 'vertical';
|
|
68
|
+
};
|
|
69
|
+
cx: number | string;
|
|
70
|
+
cy: number | string;
|
|
71
|
+
innerRadius: number | string;
|
|
72
|
+
outerRadius: number | string;
|
|
73
|
+
startAngle: number;
|
|
74
|
+
endAngle: number;
|
|
75
|
+
data: readonly unknown[];
|
|
76
|
+
angleAxis: PolarAxisSettings;
|
|
77
|
+
radiusAxis: PolarAxisSettings;
|
|
78
|
+
radars: RadarSettings[];
|
|
79
|
+
radialBars: RadialBarSettings[];
|
|
80
|
+
stackOffset: StackOffset;
|
|
81
|
+
barGap: number | string;
|
|
82
|
+
barCategoryGap: number | string;
|
|
83
|
+
barSize?: number;
|
|
84
|
+
maxBarSize?: number;
|
|
85
|
+
}
|
|
86
|
+
/** The chart's ring: recharts' polar view box. */
|
|
87
|
+
export interface PolarViewBox {
|
|
88
|
+
cx: number;
|
|
89
|
+
cy: number;
|
|
90
|
+
innerRadius: number;
|
|
91
|
+
outerRadius: number;
|
|
92
|
+
startAngle: number;
|
|
93
|
+
endAngle: number;
|
|
94
|
+
clockWise: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface PolarTick {
|
|
97
|
+
index: number;
|
|
98
|
+
/** An angle (in degrees) on the angle axis, a radius on the radius axis. */
|
|
99
|
+
coordinate: number;
|
|
100
|
+
value: unknown;
|
|
101
|
+
offset: number;
|
|
102
|
+
}
|
|
103
|
+
export interface PolarAxisGeometry {
|
|
104
|
+
axisType: PolarAxisType;
|
|
105
|
+
settings: PolarAxisSettings;
|
|
106
|
+
type: 'category' | 'number';
|
|
107
|
+
isCategorical: boolean;
|
|
108
|
+
domain: unknown[];
|
|
109
|
+
range: [number, number];
|
|
110
|
+
/** The axis's ticks, as recharts' `selectPolarAxisTicks` gives them. */
|
|
111
|
+
ticks: PolarTick[];
|
|
112
|
+
/** The ticks a series lays out against (no band offset). */
|
|
113
|
+
itemTicks: PolarTick[];
|
|
114
|
+
/** The ticks the tooltip finds rows by. */
|
|
115
|
+
tooltipTicks: PolarTick[];
|
|
116
|
+
niceTicks?: number[];
|
|
117
|
+
realScale: 'band' | 'point' | 'linear';
|
|
118
|
+
bandwidth: number;
|
|
119
|
+
scale: (value: unknown) => number | undefined;
|
|
120
|
+
}
|
|
121
|
+
export interface RadarPoint {
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
cx: number;
|
|
125
|
+
cy: number;
|
|
126
|
+
radius: number;
|
|
127
|
+
angle: number;
|
|
128
|
+
name: unknown;
|
|
129
|
+
value: unknown;
|
|
130
|
+
payload: unknown;
|
|
131
|
+
index: number;
|
|
132
|
+
}
|
|
133
|
+
export interface RadarGeometry {
|
|
134
|
+
settings: RadarSettings;
|
|
135
|
+
points: RadarPoint[];
|
|
136
|
+
isRange: boolean;
|
|
137
|
+
baseLinePoints: RadarPoint[];
|
|
138
|
+
}
|
|
139
|
+
export interface SectorGeometry {
|
|
140
|
+
cx: number;
|
|
141
|
+
cy: number;
|
|
142
|
+
innerRadius: number;
|
|
143
|
+
outerRadius: number;
|
|
144
|
+
startAngle: number;
|
|
145
|
+
endAngle: number;
|
|
146
|
+
}
|
|
147
|
+
export interface RadialBarSector extends SectorGeometry {
|
|
148
|
+
index: number;
|
|
149
|
+
/** The bar's value: a number, or a stacked bar's `[bottom, top]`. */
|
|
150
|
+
value: unknown;
|
|
151
|
+
payload: unknown;
|
|
152
|
+
/** The bar's full track, for its background. */
|
|
153
|
+
background?: SectorGeometry;
|
|
154
|
+
}
|
|
155
|
+
export interface RadialBarGeometry {
|
|
156
|
+
settings: RadialBarSettings;
|
|
157
|
+
sectors: RadialBarSector[];
|
|
158
|
+
}
|
|
159
|
+
export interface PolarGeometry {
|
|
160
|
+
/** The chart less its margins and legend. */
|
|
161
|
+
offset: Box;
|
|
162
|
+
viewBox: PolarViewBox;
|
|
163
|
+
angleAxis: PolarAxisGeometry;
|
|
164
|
+
radiusAxis: PolarAxisGeometry;
|
|
165
|
+
/** The angle axis's ticks with those that fall on the same angle (0° and 360°) dropped. */
|
|
166
|
+
angleAxisTicks: PolarTick[];
|
|
167
|
+
/** The axis the tooltip follows: the angle axis around a radar, the radius axis out from it. */
|
|
168
|
+
tooltipAxis: PolarAxisGeometry;
|
|
169
|
+
/** Its ticks: where each row sits on it. */
|
|
170
|
+
tooltipTicks: PolarTick[];
|
|
171
|
+
radars: RadarGeometry[];
|
|
172
|
+
radialBars: RadialBarGeometry[];
|
|
173
|
+
}
|
|
174
|
+
/** recharts' `selectPolarViewBox`: the ring's centre, radii and angles. */
|
|
175
|
+
export declare function viewBoxOf(input: PolarInput): PolarViewBox;
|
|
176
|
+
export declare function polarGeometry(input: PolarInput): PolarGeometry;
|
|
177
|
+
/**
|
|
178
|
+
* recharts' `Polygon` path through `points`, back to the first and closed. A point that isn't a
|
|
179
|
+
* number breaks the outline, unless `connectNulls` joins over it.
|
|
180
|
+
*/
|
|
181
|
+
export declare function polygonPath(points: readonly {
|
|
182
|
+
x: number | null;
|
|
183
|
+
y: number | null;
|
|
184
|
+
}[], connectNulls?: boolean): string | null;
|
|
185
|
+
/** recharts' `getRanglePath`: a ring between a range radar's outline and its baseline. */
|
|
186
|
+
export declare function rangePolygonPath(points: readonly PolarPoint[], baseLinePoints: readonly PolarPoint[], connectNulls?: boolean): string;
|
|
187
|
+
/** A polar grid's polygon at `radius`, through `angles` (recharts' `getPolygonPath`, unrounded). */
|
|
188
|
+
export declare function gridPolygonPath(radius: number, cx: number, cy: number, angles: readonly number[]): string;
|
|
189
|
+
/**
|
|
190
|
+
* recharts' `Sector` path: a ring segment from `startAngle` to `endAngle`, its corners rounded by
|
|
191
|
+
* `cornerRadius` (a number, or a percentage of the ring's width). Null where recharts draws
|
|
192
|
+
* nothing: an empty angle, or an outer radius inside the inner one.
|
|
193
|
+
*/
|
|
194
|
+
export declare function sectorPath(sector: SectorGeometry & {
|
|
195
|
+
cornerRadius?: number | string;
|
|
196
|
+
forceCornerRadius?: boolean;
|
|
197
|
+
cornerIsExternal?: boolean;
|
|
198
|
+
}): string | null;
|
|
199
|
+
export declare const TEXT_DY: {
|
|
200
|
+
readonly start: "0.71em";
|
|
201
|
+
readonly middle: "0.355em";
|
|
202
|
+
readonly end: "0em";
|
|
203
|
+
};
|
|
204
|
+
/** Where a label sits against a sector (or the ring): recharts' polar positions. */
|
|
205
|
+
export type PolarPosition = 'insideStart' | 'insideEnd' | 'end' | 'outside' | 'center' | 'centerTop' | 'centerBottom' | 'middle';
|
|
206
|
+
/**
|
|
207
|
+
* recharts' `renderRadialLabel`: the arc a label along a sector (`insideStart`, `insideEnd`,
|
|
208
|
+
* `end`) runs on, as a `<textPath>`'s path.
|
|
209
|
+
*/
|
|
210
|
+
export declare function radialLabelPath(viewBox: SectorGeometry & {
|
|
211
|
+
clockWise?: boolean;
|
|
212
|
+
}, position: 'insideStart' | 'insideEnd' | 'end', offset: number): string;
|
|
213
|
+
/** recharts' `getAttrsOfPolarLabel`: where a label sits against a sector, and its anchors. */
|
|
214
|
+
export declare function polarLabelAttrs(viewBox: SectorGeometry, offset: number, position: Exclude<PolarPosition, 'insideStart' | 'insideEnd' | 'end'> | undefined): {
|
|
215
|
+
x: number;
|
|
216
|
+
y: number;
|
|
217
|
+
textAnchor: 'start' | 'middle' | 'end';
|
|
218
|
+
dy: string;
|
|
219
|
+
};
|
|
220
|
+
/** recharts' `inRangeOfSector`: the pointer's radius and angle, when it is on the ring. */
|
|
221
|
+
export declare function inRangeOfSector(point: PolarPoint, viewBox: PolarViewBox): {
|
|
222
|
+
radius: number;
|
|
223
|
+
angle: number;
|
|
224
|
+
} | null;
|
|
225
|
+
/**
|
|
226
|
+
* recharts' `calculateActiveTickIndex`: the row whose tick is nearest `coordinate` (an angle
|
|
227
|
+
* or a radius), going round the circle on a full-circle angle axis. -1 for none.
|
|
228
|
+
*/
|
|
229
|
+
export declare function activeTickIndex(coordinate: number, ticks: readonly PolarTick[], axisType: PolarAxisType, axisRange: readonly [number, number]): number;
|
|
230
|
+
//# sourceMappingURL=polar-geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polar-geometry.d.ts","sourceRoot":"","sources":["../../src/-private/polar-geometry.ts"],"names":[],"mappings":"AAwBA,OAAO,EAIL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,MAAM,QAAgB,CAAA;AAEnC,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,MAAM,CAAA;IACT,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