@tectra-ng/charts 0.3.1 → 0.4.0

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.
Files changed (80) hide show
  1. package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -1
  2. package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -1
  3. package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -1
  4. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  5. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  6. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
  7. package/fesm2022/tectra-ng-charts-core.mjs +3 -16
  8. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  9. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  10. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  11. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  12. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  14. package/fesm2022/tectra-ng-charts-pie.mjs +1 -1
  15. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  16. package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -1
  17. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -1
  21. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-charts-treemap.mjs +5 -5
  24. package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -1
  25. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  26. package/fesm2022/tectra-ng-charts.mjs +1 -1
  27. package/fesm2022/tectra-ng-charts.mjs.map +1 -1
  28. package/package.json +9 -9
  29. package/pie/README.md +1 -1
  30. package/treemap/README.md +1 -1
  31. package/types/tectra-ng-charts-bar-list.d.ts +32 -634
  32. package/types/tectra-ng-charts-bar-list.d.ts.map +1 -1
  33. package/types/tectra-ng-charts-boxplot.d.ts +77 -634
  34. package/types/tectra-ng-charts-boxplot.d.ts.map +1 -1
  35. package/types/tectra-ng-charts-bullet.d.ts +66 -634
  36. package/types/tectra-ng-charts-bullet.d.ts.map +1 -1
  37. package/types/tectra-ng-charts-candlestick.d.ts +62 -634
  38. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  39. package/types/tectra-ng-charts-column.d.ts +81 -634
  40. package/types/tectra-ng-charts-column.d.ts.map +1 -1
  41. package/types/tectra-ng-charts-combo.d.ts +98 -634
  42. package/types/tectra-ng-charts-combo.d.ts.map +1 -1
  43. package/types/tectra-ng-charts-core.d.ts +451 -6
  44. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  45. package/types/tectra-ng-charts-funnel.d.ts +73 -634
  46. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  47. package/types/tectra-ng-charts-gantt.d.ts +97 -634
  48. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  49. package/types/tectra-ng-charts-gauge.d.ts +56 -634
  50. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  51. package/types/tectra-ng-charts-heatmap.d.ts +102 -634
  52. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
  53. package/types/tectra-ng-charts-line.d.ts +74 -634
  54. package/types/tectra-ng-charts-line.d.ts.map +1 -1
  55. package/types/tectra-ng-charts-org-chart.d.ts +161 -634
  56. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  57. package/types/tectra-ng-charts-pie.d.ts +91 -634
  58. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  59. package/types/tectra-ng-charts-radar.d.ts +82 -634
  60. package/types/tectra-ng-charts-radar.d.ts.map +1 -1
  61. package/types/tectra-ng-charts-radial-bar.d.ts +69 -634
  62. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  63. package/types/tectra-ng-charts-range-area.d.ts +61 -634
  64. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  65. package/types/tectra-ng-charts-rank-line.d.ts +55 -634
  66. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  67. package/types/tectra-ng-charts-sankey.d.ts +85 -634
  68. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  69. package/types/tectra-ng-charts-scatter.d.ts +98 -634
  70. package/types/tectra-ng-charts-scatter.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-segmented-bar.d.ts +39 -634
  72. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-sunburst.d.ts +57 -634
  74. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  75. package/types/tectra-ng-charts-treemap.d.ts +77 -634
  76. package/types/tectra-ng-charts-treemap.d.ts.map +1 -1
  77. package/types/tectra-ng-charts-waterfall.d.ts +69 -634
  78. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  79. package/types/tectra-ng-charts.d.ts +2 -1
  80. package/types/tectra-ng-charts.d.ts.map +1 -1
@@ -2,67 +2,117 @@ import { TxChartHeight, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosi
2
2
  import * as i0 from "@angular/core";
3
3
  import { PipeTransform, TemplateRef } from "@angular/core";
4
4
  import { TxPassThroughOptions } from "@tectra-ng/core/config";
5
- import { TectraDeepPartial } from "@tectra-ng/themes";
5
+ import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
6
+ /** Data of `tx-pie-chart`: values, one label per value and optional own colours. */
6
7
  export interface TxPieData {
8
+ /** Values of the segments; negative values count as zero. */
7
9
  series: readonly number[];
10
+ /** One label per value, in the same order. */
8
11
  labels: readonly string[];
12
+ /** Name of the data set, shown on top of the tooltip, e.g. `Traffic, May`. */
9
13
  title?: string;
14
+ /** Own colour per segment; `undefined` takes the palette colour of its slot. */
10
15
  colors?: readonly (string | undefined)[];
11
16
  }
17
+ /** One legend row of a pie chart: label, value, share and colour. */
12
18
  export interface TxPieLegendItem {
19
+ /** Label of the segment. */
13
20
  label: string;
21
+ /** Value of the segment. */
14
22
  value: number;
23
+ /** Share of the total, 0 to 100, not rounded. */
15
24
  percent: number;
25
+ /** CSS colour of the segment; follows the theme. */
16
26
  color: string;
17
27
  }
28
+ /** Parts of `tx-pie-chart` that `pt` can style. */
18
29
  export type TxPieChartPart = TxChartPart | 'segment' | 'dataLabel' | 'center';
30
+ /** Turns the total or the hovered value into the text shown in the centre. */
19
31
  export type TxPieTotalFormatter = (value: number) => string;
32
+ /** Centre and radius of the pie inside its box, in px. */
20
33
  export interface TxPieFit {
34
+ /** Horizontal centre, in px. */
21
35
  cx: number;
36
+ /** Vertical centre, in px. */
22
37
  cy: number;
38
+ /** Outer radius, in px. */
23
39
  radius: number;
24
40
  }
41
+ /** One laid out segment: its angles in radians, SVG path and label position. */
25
42
  export interface TxPieArc {
43
+ /** Index of the value in the series. */
26
44
  index: number;
45
+ /** Value of the segment; negative values count as zero. */
27
46
  value: number;
47
+ /** Share of the total, 0 to 100. */
28
48
  percent: number;
49
+ /** Start angle, in radians clockwise from the top. */
29
50
  start: number;
51
+ /** End angle, in radians clockwise from the top. */
30
52
  end: number;
53
+ /** SVG path of the segment. */
31
54
  path: string;
55
+ /** Horizontal position of the data label, in px. */
32
56
  labelX: number;
57
+ /** Vertical position of the data label, in px. */
33
58
  labelY: number;
59
+ /** Middle angle of the segment, in radians. */
34
60
  middle: number;
35
61
  }
62
+ /** Template context of `txPieCenter`. */
36
63
  export interface TxPieCenterContext {
64
+ /** What the centre shows now. */
37
65
  $implicit: TxPieCenterData;
38
66
  }
67
+ /** What the centre of the donut shows: the total, or the hovered segment. */
39
68
  export interface TxPieCenterData {
69
+ /** Caption: `totalLabel`, or the name of the hovered segment. */
40
70
  label: string;
71
+ /** Formatted value text. */
41
72
  value: string;
73
+ /** Unformatted value. */
42
74
  raw: number;
75
+ /** Total of all visible segments. */
43
76
  total: number;
77
+ /** `true` while a segment is hovered or focused. */
44
78
  hovered: boolean;
79
+ /** Index of the hovered segment, `-1` when none. */
45
80
  index: number;
81
+ /** CSS colour of the hovered segment, `null` when none. */
46
82
  color: string | null;
47
83
  }
84
+ /** Payload of `segmentClick`. */
48
85
  export interface TxPieSegmentEvent {
86
+ /** Index of the segment. */
49
87
  index: number;
88
+ /** Label of the segment. */
50
89
  label: string;
90
+ /** Value of the segment. */
51
91
  value: number;
92
+ /** Share of the total, 0 to 100. */
52
93
  percent: number;
53
94
  }
95
+ /** Payload of `segmentToggle`. */
54
96
  export interface TxPieSegmentToggle {
97
+ /** Index of the segment. */
55
98
  index: number;
99
+ /** Label of the segment. */
56
100
  label: string;
101
+ /** `true` when the segment is now hidden. */
57
102
  hidden: boolean;
58
103
  }
104
+ /**
105
+ * Splits a circle into start and end angles, in radians, proportional to the values; negative values get no angle.
106
+ */
59
107
  export declare function pieAngles(values: readonly number[], startAngle?: number, endAngle?: number): {
60
108
  start: number;
61
109
  end: number;
62
110
  value: number;
63
111
  index: number;
64
112
  }[];
113
+ /** Finds the centre and the largest radius of a pie or half donut that fits a box. */
65
114
  export declare function fitPie(width: number, height: number, startAngle?: number, endAngle?: number, padding?: number): TxPieFit;
115
+ /** Lays out the segments of a pie or donut: fit, hole radius and one arc per value. */
66
116
  export declare function pieArcs(values: readonly number[], options: {
67
117
  width: number;
68
118
  height: number;
@@ -76,683 +126,90 @@ export declare function pieArcs(values: readonly number[], options: {
76
126
  inner: number;
77
127
  arcs: TxPieArc[];
78
128
  };
129
+ /** Index of the arc under a point, or `-1` when the point is outside the ring. */
79
130
  export declare function arcAt(arcs: readonly TxPieArc[], fit: TxPieFit, inner: number, x: number, y: number): number;
131
+ /** Rows of a pie legend (label, value, share and colour) in series order; the `txPieLegend` pipe calls it. */
80
132
  export declare function pieLegend(data: TxPieData | null | undefined): TxPieLegendItem[];
133
+ /** Pipe `txPieLegend`: the legend rows of a `TxPieData`, with the same colours as the chart. */
81
134
  export declare class TxPieLegendPipe implements PipeTransform {
82
135
  transform(data: TxPieData | null | undefined): TxPieLegendItem[];
83
136
  static ɵfac: i0.ɵɵFactoryDeclaration<TxPieLegendPipe, never>;
84
137
  static ɵpipe: i0.ɵɵPipeDeclaration<TxPieLegendPipe, "txPieLegend", true>;
85
138
  }
139
+ /**
140
+ * `<ng-template txPieCenter let-center>` — own centre content; `center` has `label`, `value`, `raw`, `total`, `hovered`, `index`, `color`
141
+ * @see https://tectra-ng.com/components/pie-chart
142
+ */
86
143
  export declare class TxPieCenter {
87
144
  readonly template: TemplateRef<TxPieCenterContext>;
88
145
  static ngTemplateContextGuard(_directive: TxPieCenter, context: unknown): context is TxPieCenterContext;
89
146
  static ɵfac: i0.ɵɵFactoryDeclaration<TxPieCenter, never>;
90
147
  static ɵdir: i0.ɵɵDirectiveDeclaration<TxPieCenter, "ng-template[txPieCenter]", never, {}, {}, never, never, true, never>;
91
148
  }
149
+ /**
150
+ * `<tx-pie-chart>` — a donut or pie for parts of a whole: the total in the centre, the hovered segment there on hover, percent labels on the segments, a legend below or beside with values and shares. Drawn as SVG, rendered on the server and themed by the design tokens. The `txPieLegend` pipe and `pieLegend()` give the same rows and colours for your own legend.
151
+ * @see https://tectra-ng.com/components/pie-chart
152
+ */
92
153
  export declare class TxPieChart {
93
154
  private readonly pieTheme;
94
155
  private locale;
95
156
  private host;
96
157
  readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
158
+ /** Required. `{ series, labels, colors?, title? }` — values, one label per value, optional own colours and a name shown on top of the tooltip. No values or only zeros show "No data" */
97
159
  readonly pieData: import("@angular/core").InputSignal<TxPieData | null | undefined>;
160
+ /** Width: px (200) or a CSS size */
98
161
  readonly chartWidth: import("@angular/core").InputSignal<string | number>;
162
+ /** Height: px (400) or a CSS size; the donut takes the width and the legend goes under it */
99
163
  readonly chartHeight: import("@angular/core").InputSignal<TxChartHeight>;
164
+ /** Shows the legend */
100
165
  readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
166
+ /** `bottom` (default), `top`, `left` or `right` */
101
167
  readonly legendPosition: import("@angular/core").InputSignal<TxChartLegendPosition>;
168
+ /** `center` (default), `start` or `end` for a top or bottom legend */
102
169
  readonly legendAlign: import("@angular/core").InputSignal<TxChartLegendAlign>;
170
+ /** Lists the value and the share of each segment in the legend */
103
171
  readonly legendValues: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
172
+ /** Look of the legend: `dot` (default), `line`, `pill` or `stat` (each value in large type with its share; it replaces the tooltip) */
104
173
  readonly legendVariant: import("@angular/core").InputSignal<TxChartLegendVariant>;
174
+ /** Writes the share on each segment (one decimal); slices under 10° get none */
105
175
  readonly showDataLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
176
+ /** Non-empty = the total is always in the centre with this caption */
106
177
  readonly totalLabel: import("@angular/core").InputSignal<string>;
178
+ /** `(value) => string` for the centre total and the hovered value */
107
179
  readonly totalFormatter: import("@angular/core").InputSignal<TxPieTotalFormatter | null>;
180
+ /** `(value, { seriesIndex }) => string` for the tooltip value */
108
181
  readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
182
+ /** Shows the tooltip on hover and keyboard focus */
109
183
  readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
184
+ /** Format of values: `number`, `integer`, `compact`, `percent` or a function */
110
185
  readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
186
+ /** Size of the hole as a share of the radius (`'65%'`); `'0%'` draws a pie */
111
187
  readonly donutSize: import("@angular/core").InputSignal<string | number>;
188
+ /** Width in px of the card-coloured gap between segments (2) */
112
189
  readonly segmentGap: import("@angular/core").InputSignal<number>;
190
+ /** Rounding of the segment corners in px; default — the `chart.pie.segmentRadius` token (4px). It shrinks on narrow segments and thin rings so the shape never breaks; `0` keeps sharp corners */
113
191
  readonly segmentRadius: import("@angular/core").InputSignal<number | undefined>;
192
+ /** Where the first segment starts, degrees clockwise from the top (0) */
114
193
  readonly startAngle: import("@angular/core").InputSignal<number>;
194
+ /** Where the last one ends (360); `-90` to `90` is a half donut */
115
195
  readonly endAngle: import("@angular/core").InputSignal<number>;
196
+ /** Shows the chart menu in the top right corner: download SVG, PNG or CSV (the file is named after `ariaLabel`); a row is kept for it when the legend is not on top */
116
197
  readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
198
+ /** Shows a skeleton of the same size */
117
199
  readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
200
+ /** What the chart shows; starts the summary read by screen readers */
118
201
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
119
- readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
120
- root: {
121
- fontFamily: string;
122
- color: string;
123
- background: string;
124
- };
125
- series: {
126
- color1: string;
127
- color2: string;
128
- color3: string;
129
- color4: string;
130
- color5: string;
131
- color6: string;
132
- color7: string;
133
- };
134
- toolbar: {
135
- rowHeight: string;
136
- reserve: string;
137
- disabledOpacity: string;
138
- };
139
- grid: {
140
- color: string;
141
- width: string;
142
- dash: string;
143
- };
144
- zeroLine: {
145
- color: string;
146
- width: string;
147
- };
148
- axis: {
149
- labelColor: string;
150
- labelFontSize: string;
151
- labelFontWeight: string;
152
- titleColor: string;
153
- titleFontSize: string;
154
- titleFontWeight: string;
155
- lineColor: string;
156
- };
157
- legend: {
158
- gap: string;
159
- itemGap: string;
160
- color: string;
161
- mutedColor: string;
162
- fontSize: string;
163
- fontWeight: string;
164
- markerSize: string;
165
- markerRadius: string;
166
- markerGap: string;
167
- lineWidth: string;
168
- lineHeight: string;
169
- hiddenOpacity: string;
170
- borderRadius: string;
171
- hoverBackground: string;
172
- paddingX: string;
173
- paddingY: string;
174
- sideWidth: string;
175
- valueColor: string;
176
- valueGap: string;
177
- percentGap: string;
178
- listGap: string;
179
- pillBorderColor: string;
180
- pillRadius: string;
181
- pillPaddingX: string;
182
- pillPaddingY: string;
183
- pillTint: string;
184
- statLabelFontSize: string;
185
- statValueFontSize: string;
186
- statValueFontWeight: string;
187
- statPaddingX: string;
188
- statPaddingY: string;
189
- statRadius: string;
190
- statMinWidth: string;
191
- };
192
- tooltip: {
193
- background: string;
194
- borderColor: string;
195
- borderWidth: string;
196
- borderRadius: string;
197
- shadow: string;
198
- color: string;
199
- mutedColor: string;
200
- fontSize: string;
201
- titleFontSize: string;
202
- titleFontWeight: string;
203
- valueFontWeight: string;
204
- padding: string;
205
- rowGap: string;
206
- markerSize: string;
207
- markerGap: string;
208
- valueGap: string;
209
- minWidth: string;
210
- arrowSize: string;
211
- offset: string;
212
- totalBorderColor: string;
213
- noteColor: string;
214
- };
215
- hoverBand: {
216
- color: string;
217
- radius: string;
218
- };
219
- annotation: {
220
- neutralColor: string;
221
- primaryColor: string;
222
- successColor: string;
223
- infoColor: string;
224
- warnColor: string;
225
- dangerColor: string;
226
- lineWidth: string;
227
- lineDash: string;
228
- bandStrength: string;
229
- pointRadius: string;
230
- labelFontSize: string;
231
- labelFontWeight: string;
232
- labelColor: string;
233
- labelStrength: string;
234
- labelBase: string;
235
- labelBorderWidth: string;
236
- labelRadius: string;
237
- };
238
- brush: {
239
- trackBackground: string;
240
- maskColor: string;
241
- areaOpacity: string;
242
- lineWidth: string;
243
- windowBorderColor: string;
244
- windowBorderWidth: string;
245
- handleColor: string;
246
- handleBorderColor: string;
247
- handleRadius: string;
248
- radius: string;
249
- };
250
- crosshair: {
251
- color: string;
252
- width: string;
253
- dash: string;
254
- };
255
- marker: {
256
- radius: string;
257
- strokeColor: string;
258
- strokeWidth: string;
259
- haloRadius: string;
260
- haloOpacity: string;
261
- };
262
- line: {
263
- strokeWidth: string;
264
- areaOpacityFrom: string;
265
- areaOpacityTo: string;
266
- stackedAreaOpacity: string;
267
- pointRadius: string;
268
- dimmedOpacity: string;
269
- };
270
- bar: {
271
- radius: string;
272
- width: string;
273
- horizontalWidth: string;
274
- groupGap: string;
275
- segmentGap: string;
276
- segmentGapColor: string;
277
- dimmedStrength: string;
278
- dimmedBase: string;
279
- labelColor: string;
280
- labelFontSize: string;
281
- labelFontWeight: string;
282
- outsideLabelColor: string;
283
- };
284
- scatter: {
285
- pointRadius: string;
286
- bubbleMinRadius: string;
287
- bubbleMaxRadius: string;
288
- fillOpacity: string;
289
- bubbleFillOpacity: string;
290
- strokeColor: string;
291
- strokeWidth: string;
292
- activeStrokeWidth: string;
293
- dimmedOpacity: string;
294
- trendWidth: string;
295
- trendDash: string;
296
- };
297
- radar: {
298
- strokeWidth: string;
299
- fillOpacity: string;
300
- activeFillOpacity: string;
301
- pointRadius: string;
302
- labelGap: string;
303
- labelColor: string;
304
- labelFontSize: string;
305
- labelFontWeight: string;
306
- activeLabelColor: string;
307
- tickColor: string;
308
- tickFontSize: string;
309
- dimmedOpacity: string;
310
- };
311
- radialBar: {
312
- trackColor: string;
313
- thickness: string;
314
- dimmedOpacity: string;
315
- valueColor: string;
316
- valueFontWeight: string;
317
- labelColor: string;
318
- labelFontWeight: string;
319
- };
320
- gauge: {
321
- thickness: string;
322
- trackColor: string;
323
- bandGap: string;
324
- progressColor: string;
325
- needleColor: string;
326
- needleWidth: string;
327
- hubRadius: string;
328
- hubColor: string;
329
- hubStrokeWidth: string;
330
- tickColor: string;
331
- tickLength: string;
332
- tickLabelColor: string;
333
- tickLabelFontSize: string;
334
- valueColor: string;
335
- valueFontWeight: string;
336
- labelColor: string;
337
- labelFontWeight: string;
338
- primaryColor: string;
339
- successColor: string;
340
- infoColor: string;
341
- warnColor: string;
342
- dangerColor: string;
343
- neutralColor: string;
344
- };
345
- waterfall: {
346
- upColor: string;
347
- downColor: string;
348
- totalColor: string;
349
- connectorColor: string;
350
- connectorWidth: string;
351
- connectorDash: string;
352
- dimmedOpacity: string;
353
- };
354
- funnel: {
355
- rowGap: string;
356
- radius: string;
357
- labelColor: string;
358
- labelFontSize: string;
359
- labelFontWeight: string;
360
- valueColor: string;
361
- valueFontSize: string;
362
- valueFontWeight: string;
363
- outsideValueColor: string;
364
- connectorOpacity: string;
365
- conversionColor: string;
366
- conversionFontSize: string;
367
- labelWidth: string;
368
- dimmedOpacity: string;
369
- };
370
- bullet: {
371
- rowHeight: string;
372
- trackHeight: string;
373
- barHeight: string;
374
- rangeColor1: string;
375
- rangeColor2: string;
376
- rangeColor3: string;
377
- barColor: string;
378
- barRadius: string;
379
- targetColor: string;
380
- targetWidth: string;
381
- targetHeight: string;
382
- dimmedOpacity: string;
383
- };
384
- candlestick: {
385
- upColor: string;
386
- downColor: string;
387
- bodyWidth: string;
388
- bodyRadius: string;
389
- wickWidth: string;
390
- volumeHeight: string;
391
- volumeOpacity: string;
392
- dimmedOpacity: string;
393
- };
394
- boxplot: {
395
- boxWidth: string;
396
- groupGap: string;
397
- fillOpacity: string;
398
- strokeWidth: string;
399
- medianWidth: string;
400
- whiskerWidth: string;
401
- outlierRadius: string;
402
- radius: string;
403
- dimmedOpacity: string;
404
- };
405
- rangeArea: {
406
- fillOpacity: string;
407
- edgeWidth: string;
408
- edgeOpacity: string;
409
- lineWidth: string;
410
- dimmedOpacity: string;
411
- };
412
- gantt: {
413
- rowHeight: string;
414
- headerRowHeight: string;
415
- labelWidth: string;
416
- labelPaddingX: string;
417
- barHeight: string;
418
- barRadius: string;
419
- trackStrength: string;
420
- barBorderStrength: string;
421
- trackBase: string;
422
- barLabelGap: string;
423
- barLabelColor: string;
424
- insideLabelColor: string;
425
- insideStrength: string;
426
- insideAccentWidth: string;
427
- fontSize: string;
428
- labelColor: string;
429
- groupColor: string;
430
- groupFontWeight: string;
431
- groupBackground: string;
432
- summaryHeight: string;
433
- summaryColor: string;
434
- headerColor: string;
435
- headerFontSize: string;
436
- headerTopColor: string;
437
- headerTopFontWeight: string;
438
- headerBackground: string;
439
- background: string;
440
- borderColor: string;
441
- weekendBackground: string;
442
- rowHoverBackground: string;
443
- foldDuration: string;
444
- foldEasing: string;
445
- todayColor: string;
446
- todayWidth: string;
447
- milestoneSize: string;
448
- milestoneColor: string;
449
- milestoneRadius: string;
450
- toolbarGap: string;
451
- maxHeight: string;
452
- radius: string;
453
- };
454
- sankey: {
455
- nodeWidth: string;
456
- nodePadding: string;
457
- nodeRadius: string;
458
- linkStrength: string;
459
- linkActiveStrength: string;
460
- linkDimmedStrength: string;
461
- linkBase: string;
462
- linkEdgeColor: string;
463
- linkEdgeWidth: string;
464
- nodeDimmedOpacity: string;
465
- labelGap: string;
466
- labelColor: string;
467
- labelFontSize: string;
468
- labelFontWeight: string;
469
- valueColor: string;
470
- };
471
- sunburst: {
472
- hole: string;
473
- gap: string;
474
- gapColor: string;
475
- cornerRadius: string;
476
- levelFade: string;
477
- fadeBase: string;
478
- dimmedOpacity: string;
479
- labelColor: string;
480
- labelFontSize: string;
481
- labelFontWeight: string;
482
- labelShadow: string;
483
- centerValueColor: string;
484
- centerValueFontWeight: string;
485
- centerLabelColor: string;
486
- centerHoverBackground: string;
487
- };
488
- pie: {
489
- segmentGap: string;
490
- segmentRadius: string;
491
- hoverOffset: string;
492
- dimmedStrength: string;
493
- dimmedBase: string;
494
- labelColor: string;
495
- labelFontSize: string;
496
- labelFontWeight: string;
497
- labelShadow: string;
498
- nameColor: string;
499
- nameFontSize: string;
500
- nameFontWeight: string;
501
- valueColor: string;
502
- valueFontSize: string;
503
- valueFontWeight: string;
504
- totalLabelColor: string;
505
- };
506
- treemap: {
507
- radius: string;
508
- gap: string;
509
- gapColor: string;
510
- labelColor: string;
511
- labelFontSize: string;
512
- labelFontWeight: string;
513
- valueFontSize: string;
514
- valueFontWeight: string;
515
- labelShadow: string;
516
- labelPadding: string;
517
- labelGap: string;
518
- groupBackground: string;
519
- groupLabelColor: string;
520
- groupLabelFontSize: string;
521
- groupLabelFontWeight: string;
522
- dimmedStrength: string;
523
- dimmedBase: string;
524
- };
525
- barList: {
526
- gap: string;
527
- columnGap: string;
528
- fontSize: string;
529
- rowHeight: string;
530
- rowPaddingX: string;
531
- rowRadius: string;
532
- rowHoverBackground: string;
533
- barBackground: string;
534
- barRadius: string;
535
- labelPaddingX: string;
536
- labelColor: string;
537
- valueColor: string;
538
- valueFontWeight: string;
539
- percentWidth: string;
540
- percentColor: string;
541
- emptyPaddingY: string;
542
- emptyColor: string;
543
- duration: string;
544
- };
545
- rankLine: {
546
- strokeWidth: string;
547
- markerRadius: string;
548
- markerHoverRadius: string;
549
- color1: string;
550
- color2: string;
551
- color3: string;
552
- color4: string;
553
- color5: string;
554
- color6: string;
555
- color7: string;
556
- color8: string;
557
- color9: string;
558
- color10: string;
559
- color11: string;
560
- color12: string;
561
- };
562
- orgChart: {
563
- gap: string;
564
- canvasMinHeight: string;
565
- canvasRadius: string;
566
- canvasBackground: string;
567
- canvasBorderColor: string;
568
- canvasDotColor: string;
569
- canvasDotGap: string;
570
- busyOpacity: string;
571
- stagePadding: string;
572
- stageDuration: string;
573
- forestGap: string;
574
- nodePaddingX: string;
575
- connectorHeight: string;
576
- connectorColor: string;
577
- connectorRadius: string;
578
- pathColor: string;
579
- pathWidth: string;
580
- cardWidth: string;
581
- cardPaddingX: string;
582
- cardPaddingY: string;
583
- cardGap: string;
584
- cardRadius: string;
585
- cardBackground: string;
586
- cardBorderColor: string;
587
- cardOpenBorderColor: string;
588
- cardMatchBorderColor: string;
589
- cardMatchBackground: string;
590
- cardPathGlow: string;
591
- iconSize: string;
592
- iconFontSize: string;
593
- iconRadius: string;
594
- iconColor: string;
595
- iconBackground: string;
596
- avatarSize: string;
597
- headingGap: string;
598
- titleFontSize: string;
599
- titleFontWeight: string;
600
- titleColor: string;
601
- subtitleFontSize: string;
602
- subtitleColor: string;
603
- pillsGap: string;
604
- emptyPadding: string;
605
- emptyFontSize: string;
606
- emptyColor: string;
607
- emptyBackground: string;
608
- toolbarGap: string;
609
- toolbarGroupGap: string;
610
- searchWidth: string;
611
- hintFontSize: string;
612
- hintColor: string;
613
- fullscreenInset: string;
614
- fullscreenRadius: string;
615
- fullscreenShadow: string;
616
- fullscreenLayer: string;
617
- backdrop: string;
618
- backdropBlur: string;
619
- floatingPadding: string;
620
- floatingBackground: string;
621
- floatingTitleFontSize: string;
622
- floatingTitleFontWeight: string;
623
- minimapInset: string;
624
- minimapPadding: string;
625
- minimapRadius: string;
626
- minimapMapRadius: string;
627
- minimapBackground: string;
628
- minimapMapBackground: string;
629
- minimapShadow: string;
630
- minimapItemColor: string;
631
- minimapItemRadius: string;
632
- minimapPrimaryColor: string;
633
- minimapAccentColor: string;
634
- minimapMutedColor: string;
635
- minimapViewportColor: string;
636
- minimapViewportBackground: string;
637
- };
638
- segmentedBar: {
639
- gap: string;
640
- largeGap: string;
641
- trackHeight: string;
642
- largeTrackHeight: string;
643
- trackGap: string;
644
- trackBackground: string;
645
- trackRadius: string;
646
- largeTrackRadius: string;
647
- segmentMinWidth: string;
648
- largeSegmentMinWidth: string;
649
- largeSegmentFontSize: string;
650
- largeSegmentFontWeight: string;
651
- legendGapX: string;
652
- largeLegendGapX: string;
653
- legendGapY: string;
654
- legendFontSize: string;
655
- largeLegendFontSize: string;
656
- legendItemGap: string;
657
- dotSize: string;
658
- largeDotSize: string;
659
- labelColor: string;
660
- largeLabelColor: string;
661
- monoFontFamily: string;
662
- valueColor: string;
663
- valueFontWeight: string;
664
- percentColor: string;
665
- asideColor: string;
666
- duration: string;
667
- primaryColor: string;
668
- primaryText: string;
669
- secondaryColor: string;
670
- secondaryText: string;
671
- successColor: string;
672
- successText: string;
673
- infoColor: string;
674
- infoText: string;
675
- warnColor: string;
676
- warnText: string;
677
- dangerColor: string;
678
- dangerText: string;
679
- neutralColor: string;
680
- neutralText: string;
681
- };
682
- heatmap: {
683
- maxHeight: string;
684
- background: string;
685
- scrollPaddingBottom: string;
686
- scrollRadius: string;
687
- rowGap: string;
688
- rowPaddingY: string;
689
- rowBorderColor: string;
690
- headPaddingBottom: string;
691
- leadWidth: string;
692
- leadPaddingEnd: string;
693
- leadFontSize: string;
694
- leadColor: string;
695
- valueWidth: string;
696
- headFontSize: string;
697
- headFontWeight: string;
698
- headColor: string;
699
- groupGap: string;
700
- groupLabelGap: string;
701
- groupLabelFontSize: string;
702
- groupLabelFontWeight: string;
703
- groupLabelColor: string;
704
- columnsMinWidth: string;
705
- columnGap: string;
706
- columnFontSize: string;
707
- columnColor: string;
708
- cellSize: string;
709
- cellRadius: string;
710
- cellHoverScale: string;
711
- cellDuration: string;
712
- legendCellSize: string;
713
- legendGapX: string;
714
- legendGapY: string;
715
- legendMarginTop: string;
716
- legendItemGap: string;
717
- legendFontSize: string;
718
- legendColor: string;
719
- successColor: string;
720
- dangerColor: string;
721
- warnColor: string;
722
- infoColor: string;
723
- infoTint: string;
724
- pendingBorderColor: string;
725
- neutralColor: string;
726
- emptyColor: string;
727
- scaleColor: string;
728
- scaleBase: string;
729
- };
730
- empty: {
731
- gap: string;
732
- color: string;
733
- fontSize: string;
734
- iconSize: string;
735
- iconFontSize: string;
736
- iconColor: string;
737
- iconBackground: string;
738
- };
739
- focusRing: {
740
- color: string;
741
- width: string;
742
- offset: string;
743
- };
744
- motion: {
745
- enterDuration: string;
746
- updateDuration: string;
747
- hoverDuration: string;
748
- easing: string;
749
- stagger: string;
750
- };
751
- }> | undefined>;
202
+ /** Design tokens of this chart (`chart`) */
203
+ readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
204
+ /** Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `segment`, `dataLabel`, `center`, `tooltip`, `empty`, `skeleton` */
752
205
  readonly pt: import("@angular/core").InputSignal<Partial<Record<TxPieChartPart, import("@tectra-ng/core/config").TxPassThroughValue<TxPieChart>>> | undefined>;
206
+ /** How `pt` merges with the global pass-through */
753
207
  readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
208
+ /** Removes the tectra styles and keeps the behaviour */
754
209
  readonly unstyled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
210
+ /** A segment was clicked: `index`, `label`, `value`, `percent` */
755
211
  readonly segmentClick: import("@angular/core").OutputEmitterRef<TxPieSegmentEvent>;
212
+ /** A legend item hid or showed a segment: `index`, `label`, `hidden` */
756
213
  readonly segmentToggle: import("@angular/core").OutputEmitterRef<TxPieSegmentToggle>;
757
214
  readonly centerTemplate: import("@angular/core").Signal<TxPieCenter | undefined>;
758
215
  readonly legendTemplate: import("@angular/core").Signal<TxChartLegendTemplate | undefined>;