@tectra-ng/charts 0.4.2 → 0.4.3
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/bar-list/README.md +1 -1
- package/boxplot/README.md +1 -1
- package/bullet/README.md +1 -1
- package/candlestick/README.md +1 -1
- package/column/README.md +3 -3
- package/combo/README.md +1 -1
- package/core/README.md +8 -6
- package/fesm2022/tectra-ng-charts-candlestick.mjs +23 -7
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-column.mjs +1 -1
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-core.mjs +81 -18
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +29 -7
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gantt.mjs +487 -27
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gauge.mjs +79 -34
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-org-chart.mjs +36 -8
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-pie.mjs +27 -9
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +5 -4
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-range-area.mjs +113 -58
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-rank-line.mjs +79 -31
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sankey.mjs +99 -18
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +53 -7
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-sunburst.mjs +31 -3
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-waterfall.mjs +57 -20
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts.mjs +1 -1
- package/funnel/README.md +2 -2
- package/gantt/README.md +12 -8
- package/gauge/README.md +3 -3
- package/line/README.md +1 -1
- package/org-chart/README.md +1 -0
- package/package.json +5 -5
- package/pie/README.md +5 -4
- package/radar/README.md +1 -1
- package/radial-bar/README.md +2 -2
- package/range-area/README.md +2 -1
- package/rank-line/README.md +3 -2
- package/sankey/README.md +1 -1
- package/segmented-bar/README.md +2 -1
- package/treemap/README.md +1 -1
- package/types/tectra-ng-charts-bar-list.d.ts +1 -1
- package/types/tectra-ng-charts-boxplot.d.ts +1 -1
- package/types/tectra-ng-charts-bullet.d.ts +1 -1
- package/types/tectra-ng-charts-candlestick.d.ts +7 -3
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
- package/types/tectra-ng-charts-column.d.ts +3 -3
- package/types/tectra-ng-charts-combo.d.ts +1 -1
- package/types/tectra-ng-charts-core.d.ts +45 -10
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +8 -2
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
- package/types/tectra-ng-charts-gantt.d.ts +166 -10
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
- package/types/tectra-ng-charts-gauge.d.ts +21 -6
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
- package/types/tectra-ng-charts-line.d.ts +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +13 -2
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
- package/types/tectra-ng-charts-pie.d.ts +13 -4
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-radar.d.ts +1 -1
- package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-range-area.d.ts +12 -3
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
- package/types/tectra-ng-charts-rank-line.d.ts +28 -10
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-sankey.d.ts +36 -9
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
- package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
- package/types/tectra-ng-charts-sunburst.d.ts +10 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
- package/types/tectra-ng-charts-treemap.d.ts +1 -1
- package/types/tectra-ng-charts-waterfall.d.ts +25 -6
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
- package/types/tectra-ng-charts.d.ts +1 -1
- package/waterfall/README.md +5 -5
|
@@ -261,10 +261,14 @@ export declare function zoomAt(view: TxOrgChartView, zoom: number, at: TxOrgChar
|
|
|
261
261
|
* Moves the view so that a point of the canvas is in the middle of the viewport, optionally at a new zoom.
|
|
262
262
|
*/
|
|
263
263
|
export declare function centerOn(view: TxOrgChartView, viewport: TxOrgChartSize, point: TxOrgChartPoint, zoom?: number): TxOrgChartView;
|
|
264
|
+
/** Smallest zoom a fit goes down to, so the cards stay readable on a narrow canvas. */
|
|
265
|
+
export declare const TX_ORG_CHART_FIT_MIN_ZOOM = 0.6;
|
|
264
266
|
/**
|
|
265
|
-
* View that fits the whole stage into the viewport, at most at 100% and
|
|
267
|
+
* View that fits the whole stage into the viewport, at most at 100% and not below `minZoom`; `top` leaves room for the
|
|
268
|
+
* toolbar. A stage that fits is centred; one that is still too wide is centred on `root` (the root card centre in stage
|
|
269
|
+
* px) and one that is too tall starts at the top. `null` when sizes are not known yet.
|
|
266
270
|
*/
|
|
267
|
-
export declare function fitView(viewport: TxOrgChartSize, stage: TxOrgChartSize, top?: number): TxOrgChartView | null;
|
|
271
|
+
export declare function fitView(viewport: TxOrgChartSize, stage: TxOrgChartSize, top?: number, minZoom?: number, root?: TxOrgChartPoint | null): TxOrgChartView | null;
|
|
268
272
|
/** Tells a mouse wheel from a trackpad scroll: a mouse sends big whole steps along Y only. */
|
|
269
273
|
export declare function wheelIsMouse(event: Pick<WheelEvent, 'deltaMode' | 'deltaX' | 'deltaY'>): boolean;
|
|
270
274
|
/** New zoom after a wheel step; a pinch gesture changes it faster. */
|
|
@@ -381,6 +385,8 @@ export declare class TxOrgChart implements OnDestroy {
|
|
|
381
385
|
readonly busy: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
382
386
|
/** Node `kind`s that draw the path to the root on hover; `null` — every node */
|
|
383
387
|
readonly pathKinds: import("@angular/core").InputSignal<readonly string[] | null>;
|
|
388
|
+
/** Smallest zoom of "fit to screen" (0.6), so cards stay readable on a phone; a tree still too wide is centred on its root, one too tall starts at the top */
|
|
389
|
+
readonly minFitZoom: import("@angular/core").InputSignal<number>;
|
|
384
390
|
/** Design tokens of this chart (`chart`, group `orgChart`) */
|
|
385
391
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
|
|
386
392
|
/** Classes and styles of the parts: `root`, `bar`, `toolbar`, `canvas`, `stage`, `minimap`, `hint` */
|
|
@@ -516,6 +522,11 @@ export declare class TxOrgChart implements OnDestroy {
|
|
|
516
522
|
"required": false;
|
|
517
523
|
"isSignal": true;
|
|
518
524
|
};
|
|
525
|
+
"minFitZoom": {
|
|
526
|
+
"alias": "minFitZoom";
|
|
527
|
+
"required": false;
|
|
528
|
+
"isSignal": true;
|
|
529
|
+
};
|
|
519
530
|
"dt": {
|
|
520
531
|
"alias": "dt";
|
|
521
532
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-org-chart.d.ts","names":[],"sources":["../../../../packages/charts/org-chart/src/org-chart.types.ts","../../../../packages/charts/org-chart/src/org-chart-tree.ts","../../../../packages/charts/org-chart/src/org-chart-view.ts","../../../../packages/charts/org-chart/src/org-chart-templates.directive.ts","../../../../packages/charts/org-chart/src/org-chart-card.component.ts","../../../../packages/charts/org-chart/src/org-chart-node-skeleton.component.ts","../../../../packages/charts/org-chart/src/org-chart.component.ts"],"mappings":";;;;;;YAGY;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA,OAAO;;EAEP;;;iBAIe;;EAEf;;;;EAIA;;EAEA;;EAEA;;EAEA,SAAS;;EAET;;EAEA,QAAQ;;EAER,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;EAEA,cAAc;;EAEd;;;iBAIe;;EAEf,WAAW;;EAEX,MAAM;;EAEN;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;iBAGK;;EAEf,MAAM;;EAEN,OAAO;;EAEP;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;;iBAIe,uBAAuB;;EAEtC;;;iBAIe;;EAEf;;EAEA;;;iBAIe,uBAAuB;;EAEtC;;EAEA;;;iBAIe,8BAA8B;;EAE7C;;EAEA,MAAM;;;iBAIS;;EAEf;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf,cAAc;;EAEd,SAAS;;EAET;;EAEA,QAAQ;;EAER;;;YAIU;;qBCpNC;;;;wBAKG,iBAAiB,MAAM,iBAAiB;;wBAcxC,oBAAoB,gBAAgB,mBAAmB;;;;wBAavD,iBAAiB,gBAAgB,kBAAkB,cAAkC,iBAAY,iBAAY;;;;wBAiC7G,eAAe,gBAAgB,kBAAkB,YAAY,qBAAqB;;wBAQlF,kBAAkB,gBAAgB,kBAAkB,oBAAoB;;wBASxE,eAAe,gBAAgB,kBAAkB;;wBAUjD,eAAe,gBAAgB,kBAAkB;;wBAUjD,eAAe,gBAAgB,kBAAkB,KAAK,mBAAmB;;qBCtG5E;;;;;;;qBAEA;;qBAEA;;qBAEA;;qBAEA;;qBAEA;;;;;;qBAEA;;;;;;qBAEA;;wBAGG,UAAU;;wBAKV,OAAO,MAAM,gBAAgB,cAAc,IAAI,kBAAkB;;;;wBASjE,SAAS,MAAM,gBAAgB,UAAU,gBAAgB,OAAO,iBAAiB,gBAAmB
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-org-chart.d.ts","names":[],"sources":["../../../../packages/charts/org-chart/src/org-chart.types.ts","../../../../packages/charts/org-chart/src/org-chart-tree.ts","../../../../packages/charts/org-chart/src/org-chart-view.ts","../../../../packages/charts/org-chart/src/org-chart-templates.directive.ts","../../../../packages/charts/org-chart/src/org-chart-card.component.ts","../../../../packages/charts/org-chart/src/org-chart-node-skeleton.component.ts","../../../../packages/charts/org-chart/src/org-chart.component.ts"],"mappings":";;;;;;YAGY;;iBAGK;;EAEf;;EAEA;;;iBAIe;;EAEf;;EAEA,OAAO;;EAEP;;;iBAIe;;EAEf;;;;EAIA;;EAEA;;EAEA;;EAEA,SAAS;;EAET;;EAEA,QAAQ;;EAER,WAAW;;EAEX;;EAEA;;EAEA;;EAEA;;EAEA,cAAc;;EAEd;;;iBAIe;;EAEf,WAAW;;EAEX,MAAM;;EAEN;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;iBAGK;;EAEf,MAAM;;EAEN,OAAO;;EAEP;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;E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CAAY,OAAA;UAgBb;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;EAkCR;EAUA;EAIA;EAIA;EAIA,SAAS,OAAO;EAIhB,SAAS;EAKT,YAAY,MAAM;EAIlB,cAAc;EAMd,QAAQ,OAAO;EAUf,cAAc,OAAO;EASrB,cAAc,OAAO;EA4BrB,YAAY,OAAO;EAUnB,UAAU,OAAO;EAuCjB;EA0BA;EAaA;EAUA;UAQQ;UAKA;UASA;UAsBA;UAgBA;UAYA;UAYA;UAKA;UAKA;UAKA;UAIA;UAIA;UASA;UAaA;UAoBA;UAOA;SA1eG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA;IAAA;IAAA;IAAA"}
|
|
@@ -157,13 +157,15 @@ export declare class TxPieChart {
|
|
|
157
157
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
158
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" */
|
|
159
159
|
readonly pieData: import("@angular/core").InputSignal<TxPieData | null | undefined>;
|
|
160
|
-
/** Width: px
|
|
160
|
+
/** Width: px or a CSS size (`'100%'` — the width of the parent; the chart measures itself) */
|
|
161
161
|
readonly chartWidth: import("@angular/core").InputSignal<string | number>;
|
|
162
|
-
/** Height
|
|
162
|
+
/** Height in px (400), or a CSS size; the donut fits the width and the height left under the legend */
|
|
163
|
+
readonly height: import("@angular/core").InputSignal<TxChartHeight | undefined>;
|
|
164
|
+
/** Older name of `height`, used when `height` is not set */
|
|
163
165
|
readonly chartHeight: import("@angular/core").InputSignal<TxChartHeight>;
|
|
164
166
|
/** Shows the legend */
|
|
165
167
|
readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
166
|
-
/** `bottom` (default), `top`, `left` or `right
|
|
168
|
+
/** `bottom` (default), `top`, `left` or `right`; a side legend moves under the donut when the chart is narrower than 420px */
|
|
167
169
|
readonly legendPosition: import("@angular/core").InputSignal<TxChartLegendPosition>;
|
|
168
170
|
/** `center` (default), `start` or `end` for a top or bottom legend */
|
|
169
171
|
readonly legendAlign: import("@angular/core").InputSignal<TxChartLegendAlign>;
|
|
@@ -181,7 +183,7 @@ export declare class TxPieChart {
|
|
|
181
183
|
readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
|
|
182
184
|
/** Shows the tooltip on hover and keyboard focus */
|
|
183
185
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
184
|
-
/** Format of values: `number`, `integer`, `compact`, `percent` or a function */
|
|
186
|
+
/** Format of values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
185
187
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
186
188
|
/** Size of the hole as a share of the radius (`'65%'`); `'0%'` draws a pie */
|
|
187
189
|
readonly donutSize: import("@angular/core").InputSignal<string | number>;
|
|
@@ -223,6 +225,8 @@ export declare class TxPieChart {
|
|
|
223
225
|
height: string;
|
|
224
226
|
}>;
|
|
225
227
|
readonly entrance: import("@tectra-ng/charts/core").TxChartEntrance;
|
|
228
|
+
readonly legendPlace: import("@angular/core").Signal<TxChartLegendPosition>;
|
|
229
|
+
readonly boxHeight: import("@angular/core").Signal<TxChartHeight>;
|
|
226
230
|
readonly morph: import("@angular/core").WritableSignal<boolean>;
|
|
227
231
|
readonly hidden: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
228
232
|
readonly hovered: import("@angular/core").WritableSignal<number | null>;
|
|
@@ -312,6 +316,11 @@ export declare class TxPieChart {
|
|
|
312
316
|
"required": false;
|
|
313
317
|
"isSignal": true;
|
|
314
318
|
};
|
|
319
|
+
"height": {
|
|
320
|
+
"alias": "height";
|
|
321
|
+
"required": false;
|
|
322
|
+
"isSignal": true;
|
|
323
|
+
};
|
|
315
324
|
"chartHeight": {
|
|
316
325
|
"alias": "chartHeight";
|
|
317
326
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-pie.d.ts","names":[],"sources":["../../../../packages/charts/pie/src/pie-chart.types.ts","../../../../packages/charts/pie/src/pie-layout.ts","../../../../packages/charts/pie/src/pie-legend.ts","../../../../packages/charts/pie/src/pie-center.directive.ts","../../../../packages/charts/pie/src/pie-chart.component.ts"],"mappings":";;;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,iBAAiB;;YAGjB,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,WAAW;;;iBAII;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;wBCjGc,UAAU,2BAA2B,qBAAgB;EAAmB;EAAe;EAAa;EAAe;;;wBAenH,OAAO,eAAe,gBAAgB,qBAAgB,mBAAgB,mBAAc;;wBAepF,QACd,2BACA;EAAW;EAAe;EAAgB;EAAqB;EAAmB;EAAoB;EAAkB;;EACrH,KAAK;EAAU;EAAe,MAAM;;;wBAwBzB,MAAM,eAAe,YAAY,KAAK,UAAU,eAAe,WAAW;;wBC9D1E,UAAU,MAAM,+BAA+B;;qBAelD,2BAA2B;EACtC,UAAU,MAAM,+BAA+B;SADpC,MAAA,GAAA,qBAAA;SAAA,OAAA,GAAA,kBAAA;;;;;;qBChBA;WACF,UAAQ,YAAA;SAEV,uBAAuB,YAAY,aAAa,mBAAmB,WAAW;SAH1E,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-pie.d.ts","names":[],"sources":["../../../../packages/charts/pie/src/pie-chart.types.ts","../../../../packages/charts/pie/src/pie-layout.ts","../../../../packages/charts/pie/src/pie-legend.ts","../../../../packages/charts/pie/src/pie-center.directive.ts","../../../../packages/charts/pie/src/pie-chart.component.ts"],"mappings":";;;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,iBAAiB;;YAGjB,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,WAAW;;;iBAII;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;wBCjGc,UAAU,2BAA2B,qBAAgB;EAAmB;EAAe;EAAa;EAAe;;;wBAenH,OAAO,eAAe,gBAAgB,qBAAgB,mBAAgB,mBAAc;;wBAepF,QACd,2BACA;EAAW;EAAe;EAAgB;EAAqB;EAAmB;EAAoB;EAAkB;;EACrH,KAAK;EAAU;EAAe,MAAM;;;wBAwBzB,MAAM,eAAe,YAAY,KAAK,UAAU,eAAe,WAAW;;wBC9D1E,UAAU,MAAM,+BAA+B;;qBAelD,2BAA2B;EACtC,UAAU,MAAM,+BAA+B;SADpC,MAAA,GAAA,qBAAA;S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AKlB,kCAAQ;;;;;;;;;;;;;;;;WAeR,gCAAM,OAAA;WAcN,mCAAS;;;;;;;WAMT,oCAAU;;;;WAKV,qCAAW,OAAA;WAiBX,iCAAO,OAAA;WAuBP,iCAAO;WAUP,mCAAS;;;;;;;;;;;EA4BlB,UAAU,OAAO;EAejB,WAAW,OAAO;EAoBlB,eAAe;EAOf,cAAc;UAMN;SA1SG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAU;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -150,7 +150,7 @@ export declare class TxRadarChart {
|
|
|
150
150
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
151
151
|
/** `(value, { seriesIndex, dataPointIndex }) => string` for tooltip values */
|
|
152
152
|
readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
|
|
153
|
-
/** Format of the ring values and the tooltip: `number`, `integer`, `compact`, `percent` or a function */
|
|
153
|
+
/** Format of the ring values and the tooltip: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
154
154
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
155
155
|
/** Shows the chart menu in the top right corner: download SVG, PNG or CSV (the file is named after `ariaLabel`) */
|
|
156
156
|
readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -113,7 +113,7 @@ export declare class TxRadialBar {
|
|
|
113
113
|
readonly totalLabel: import("@angular/core").InputSignal<string>;
|
|
114
114
|
/** Shows the legend; a single item never has one */
|
|
115
115
|
readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
116
|
-
/** `top`, `bottom` (default), `left` or `right
|
|
116
|
+
/** `top`, `bottom` (default), `left` or `right`; a side legend moves under the chart when it is narrower than 420px */
|
|
117
117
|
readonly legendPosition: import("@angular/core").InputSignal<TxChartLegendPosition>;
|
|
118
118
|
/** `start`, `center` (default) or `end` for a top or bottom legend */
|
|
119
119
|
readonly legendAlign: import("@angular/core").InputSignal<TxChartLegendAlign>;
|
|
@@ -123,7 +123,7 @@ export declare class TxRadialBar {
|
|
|
123
123
|
readonly legendValues: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
124
124
|
/** Shows the tooltip on hover and keyboard focus */
|
|
125
125
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
126
|
-
/** Format of the values: `number`, `integer`, `compact`, `percent` or a function */
|
|
126
|
+
/** Format of the values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
127
127
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
128
128
|
/** Shows the chart menu: download SVG, PNG or CSV (the file is named after `ariaLabel`) */
|
|
129
129
|
readonly toolbar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -153,6 +153,7 @@ export declare class TxRadialBar {
|
|
|
153
153
|
[x: string]: string;
|
|
154
154
|
}>;
|
|
155
155
|
readonly entrance: import("@tectra-ng/charts/core").TxChartEntrance;
|
|
156
|
+
readonly legendPlace: import("@angular/core").Signal<TxChartLegendPosition>;
|
|
156
157
|
readonly morph: import("@angular/core").WritableSignal<boolean>;
|
|
157
158
|
readonly hidden: import("@angular/core").WritableSignal<ReadonlySet<string>>;
|
|
158
159
|
readonly hovered: import("@angular/core").WritableSignal<number | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-radial-bar.d.ts","names":[],"sources":["../../../../packages/charts/radial-bar/src/radial-bar.types.ts","../../../../packages/charts/radial-bar/src/radial-bar-layout.ts","../../../../packages/charts/radial-bar/src/radial-bar.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,kBAAkB;;iBAGb;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;wBCxEc,YAAY,eAAe,eAAe,eAAe;EAAsB;EAAgB;;;wBAQ/F,YAAY,sBAAsB;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-radial-bar.d.ts","names":[],"sources":["../../../../packages/charts/radial-bar/src/radial-bar.types.ts","../../../../packages/charts/radial-bar/src/radial-bar-layout.ts","../../../../packages/charts/radial-bar/src/radial-bar.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,kBAAkB;;iBAGb;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAE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AAe;EAOf,cAAc;UAMN;UAIA;UAKA;SAnPG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TxChartActive, TxChartCurve, TxChartGridMode, TxChartHeight, TxChartLabelMode, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxChartValueFormat } from "@tectra-ng/charts/core";
|
|
1
|
+
import { TxChartActive, TxChartAnnotation, TxChartCurve, TxChartGridMode, TxChartHeight, TxChartLabelMode, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxChartValueFormat } from "@tectra-ng/charts/core";
|
|
2
2
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
3
3
|
import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -18,7 +18,7 @@ export interface TxRangeSeries {
|
|
|
18
18
|
/** How the x values are read: as `category` labels or as `time`. */
|
|
19
19
|
export type TxRangeAreaXType = 'category' | 'time';
|
|
20
20
|
/** Parts of `tx-range-area-chart` that `pt` can style. */
|
|
21
|
-
export type TxRangeAreaChartPart = TxChartPart | 'band' | 'edge' | 'line' | 'marker' | 'crosshair';
|
|
21
|
+
export type TxRangeAreaChartPart = TxChartPart | 'band' | 'edge' | 'line' | 'marker' | 'crosshair' | 'annotation';
|
|
22
22
|
/** SVG paths of one drawn series. */
|
|
23
23
|
export interface TxRangeAreaPath {
|
|
24
24
|
/** Index of the series. */
|
|
@@ -102,6 +102,8 @@ export declare class TxRangeAreaChart {
|
|
|
102
102
|
readonly yAxisTitle: import("@angular/core").InputSignal<string>;
|
|
103
103
|
/** Grid lines: `value`, `category`, `both` or `none` */
|
|
104
104
|
readonly grid: import("@angular/core").InputSignal<TxChartGridMode>;
|
|
105
|
+
/** Marks on the plot: `{ type: 'x-line', x }`, `{ type: 'y-line', y }`, `{ type: 'x-band', from, to }`, `{ type: 'y-band', from, to }`, `{ type: 'point', x, y }`, each with an optional `label`, `tone` (`neutral`, `primary`, `success`, `info`, `warn`, `danger`) or `color`; `x` is a category label (or index) or a date with `xType="time"`; bands and lines sit behind the series, points and labels on top */
|
|
106
|
+
readonly annotations: import("@angular/core").InputSignal<readonly TxChartAnnotation[] | null | undefined>;
|
|
105
107
|
/** Labels that do not fit: `auto`, `rotate` or `skip` */
|
|
106
108
|
readonly labelMode: import("@angular/core").InputSignal<TxChartLabelMode>;
|
|
107
109
|
/** Most x labels to show (10) */
|
|
@@ -114,7 +116,7 @@ export declare class TxRangeAreaChart {
|
|
|
114
116
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
115
117
|
/** Design tokens of this chart (`chart`) — band opacity, edge and line widths, palette */
|
|
116
118
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
|
|
117
|
-
/** Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `axis`, `series`, `band`, `edge`, `line`, `marker`, `crosshair`, `tooltip`, `empty`, `skeleton` */
|
|
119
|
+
/** Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `axis`, `series`, `band`, `edge`, `line`, `marker`, `crosshair`, `annotation`, `tooltip`, `empty`, `skeleton` */
|
|
118
120
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxRangeAreaChartPart, import("@tectra-ng/core/config").TxPassThroughValue<TxRangeAreaChart>>> | undefined>;
|
|
119
121
|
/** How `pt` merges with the global pass-through */
|
|
120
122
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
@@ -153,6 +155,7 @@ export declare class TxRangeAreaChart {
|
|
|
153
155
|
readonly layout: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxCartesianLayout>;
|
|
154
156
|
readonly positions: import("@angular/core").Signal<number[]>;
|
|
155
157
|
readonly paths: import("@angular/core").Signal<TxRangeAreaPath[]>;
|
|
158
|
+
readonly annotationShapes: import("@angular/core").Signal<import("@tectra-ng/charts/core").TxChartAnnotationShape[]>;
|
|
156
159
|
readonly crosshair: import("@angular/core").Signal<{
|
|
157
160
|
x: number;
|
|
158
161
|
y1: number;
|
|
@@ -184,6 +187,7 @@ export declare class TxRangeAreaChart {
|
|
|
184
187
|
onLegendToggle(key: string): void;
|
|
185
188
|
onLegendHover(key: string | null): void;
|
|
186
189
|
private event;
|
|
190
|
+
private xPosition;
|
|
187
191
|
private nearestSeries;
|
|
188
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxRangeAreaChart, never>;
|
|
189
193
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxRangeAreaChart, "tx-range-area-chart", never, {
|
|
@@ -272,6 +276,11 @@ export declare class TxRangeAreaChart {
|
|
|
272
276
|
"required": false;
|
|
273
277
|
"isSignal": true;
|
|
274
278
|
};
|
|
279
|
+
"annotations": {
|
|
280
|
+
"alias": "annotations";
|
|
281
|
+
"required": false;
|
|
282
|
+
"isSignal": true;
|
|
283
|
+
};
|
|
275
284
|
"labelMode": {
|
|
276
285
|
"alias": "labelMode";
|
|
277
286
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-range-area.d.ts","names":[],"sources":["../../../../packages/charts/range-area/src/range-area-chart.types.ts","../../../../packages/charts/range-area/src/range-area-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-range-area.d.ts","names":[],"sources":["../../../../packages/charts/range-area/src/range-area-chart.types.ts","../../../../packages/charts/range-area/src/range-area-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU;;YAGA,uBAAuB;;iBAGlB;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;;;;qBCkBW;mBACM;UAET;WACC,sCAAY,wCAAA;;WAEZ,gCAAM,qBAAA;;WACN,oCAAU,wCAAA;;WACV,+BAAK,YAAA;;WACL,gCAAM,YAAA;;WACN,+BAAK,YAAA;;WACL,+BAAK;;WACL,oCAAU;;WACV,wCAAc,YAAA;;WACd,qCAAW,YAAA;;WACX,uCAAa,YAAA;;WACb,qCAAW;;WACX,qCAAW,YAAA;;WACX,8BAAI;;WACJ,8BAAI;;WACJ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AA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TxChartHeight, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate } from "@tectra-ng/charts/core";
|
|
1
|
+
import { TxChartHeight, TxChartLegendAlign, TxChartLegendItem, TxChartLegendPosition, TxChartLegendTemplate, TxChartLegendVariant, TxChartPart, TxChartPointerEvent, TxChartTooltipData, TxChartTooltipTemplate, TxTimeInterval } from "@tectra-ng/charts/core";
|
|
2
2
|
import { TxPassThroughOptions } from "@tectra-ng/core/config";
|
|
3
3
|
import { TectraChartTokens, TectraDeepPartial } from "@tectra-ng/themes";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -54,22 +54,34 @@ export interface TxRankLineEvent {
|
|
|
54
54
|
/** Note of the point. */
|
|
55
55
|
note?: string;
|
|
56
56
|
}
|
|
57
|
+
/** How `tx-rank-chart` writes a date: `Intl.DateTimeFormat` options or a function of the time in ms. */
|
|
58
|
+
export type TxRankDateFormat = Intl.DateTimeFormatOptions | ((time: number) => string);
|
|
57
59
|
/** Parts of `tx-rank-line` that `pt` can style. */
|
|
58
60
|
export type TxRankLinePart = TxChartPart | 'line' | 'marker';
|
|
59
61
|
/** Number of colours in the rank line palette; series beyond it reuse them. */
|
|
60
62
|
export declare const TX_RANK_LINE_COLORS = 12;
|
|
61
63
|
/** CSS colour of the series at an index, taken from the rank line palette and wrapping around. */
|
|
62
64
|
export declare function rankLineColor(index: number): string;
|
|
63
|
-
/** Distance between rank ticks:
|
|
65
|
+
/** Distance between rank ticks: every rank up to 10 ranks, 5 up to 20, 10 deeper. */
|
|
64
66
|
export declare function rankTickStep(maxRank: number): number;
|
|
67
|
+
/** Ranks that get a tick: 1, then every multiple of the tick step up to `maxRank`. */
|
|
68
|
+
export declare function rankTicks(maxRank: number): number[];
|
|
65
69
|
/**
|
|
66
70
|
* Earliest and latest time of all series in ms, widened by half a day on each side when they are equal; `null` without data.
|
|
67
71
|
*/
|
|
68
72
|
export declare function rankTimeExtent(series: readonly TxRankSeries[]): [number, number] | null;
|
|
69
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Vertical position in px of a rank inside the plot: rank 1 on the top edge, `maxRank` on the bottom edge, deeper ranks
|
|
75
|
+
* clamped to the bottom; a scale of one rank puts it in the middle.
|
|
76
|
+
*/
|
|
70
77
|
export declare function rankY(rank: number, maxRank: number, top: number, height: number): number;
|
|
71
78
|
/**
|
|
72
|
-
*
|
|
79
|
+
* Calendar step of the data: the step that covers the smallest gap between two times; without a gap, a day for times at
|
|
80
|
+
* local midnight and a minute otherwise.
|
|
81
|
+
*/
|
|
82
|
+
export declare function rankTimeStep(times: readonly number[]): TxTimeInterval;
|
|
83
|
+
/**
|
|
84
|
+
* `<tx-rank-chart>` — positions over time (search ranks, leaderboards): rank 1 on top, one straight line per series in its own colour, a gap where a check has no rank, a tooltip with the date, the series, the rank and an optional note. Points sit at their real times on a time axis.
|
|
73
85
|
* @see https://tectra-ng.com/components/rank-chart
|
|
74
86
|
*/
|
|
75
87
|
export declare class TxRankChart {
|
|
@@ -78,10 +90,12 @@ export declare class TxRankChart {
|
|
|
78
90
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
79
91
|
/** `{ name, color?, points: { time, rank | null, note? }[] }[]` — a `null` rank leaves a gap; without `color` the series takes one of 12 line colours by its index (`rankLineColor(index)`) */
|
|
80
92
|
readonly series: import("@angular/core").InputSignal<readonly TxRankSeries[] | null | undefined>;
|
|
81
|
-
/** The deepest rank on the axis (20); ticks by 5 up to 20
|
|
93
|
+
/** The deepest rank on the axis (20); rank 1 sits on the top line and `maxRank` on the bottom line; every rank gets a tick up to 10 ranks, then ticks go by 5 up to 20 and by 10 deeper; deeper ranks sit on the bottom line */
|
|
82
94
|
readonly maxRank: import("@angular/core").InputSignal<number>;
|
|
83
95
|
/** Caption of the rank in the tooltip and the data table (`Position: 3`) */
|
|
84
96
|
readonly rankLabel: import("@angular/core").InputSignal<string>;
|
|
97
|
+
/** How the tooltip, the summary and the data table write a date: `Intl.DateTimeFormat` options or `(time) => string`; by default a date, with the time of day only when checks are less than a day apart */
|
|
98
|
+
readonly dateFormat: import("@angular/core").InputSignal<TxRankDateFormat | null | undefined>;
|
|
85
99
|
/** Height: px (360) or `'100%'` of a parent with a definite height */
|
|
86
100
|
readonly height: import("@angular/core").InputSignal<TxChartHeight>;
|
|
87
101
|
/** Shows a legend that hides and shows series */
|
|
@@ -134,19 +148,18 @@ export declare class TxRankChart {
|
|
|
134
148
|
readonly colors: import("@angular/core").Signal<string[]>;
|
|
135
149
|
readonly extent: import("@angular/core").Signal<[number, number] | null>;
|
|
136
150
|
readonly isEmpty: import("@angular/core").Signal<boolean>;
|
|
137
|
-
readonly
|
|
151
|
+
readonly formatTime: import("@angular/core").Signal<(time: number) => string>;
|
|
138
152
|
readonly layout: import("@angular/core").Signal<{
|
|
139
153
|
plot: import("@tectra-ng/charts/core").TxChartPlot;
|
|
140
154
|
axes: {
|
|
155
|
+
zero: null;
|
|
141
156
|
grid: {
|
|
142
|
-
y1: number;
|
|
143
|
-
y2: number;
|
|
144
157
|
x1: number;
|
|
158
|
+
y1: number;
|
|
145
159
|
x2: number;
|
|
146
|
-
|
|
160
|
+
y2: number;
|
|
147
161
|
}[];
|
|
148
162
|
axes: import("@tectra-ng/charts/core").TxChartAxisModel[];
|
|
149
|
-
zero: import("@tectra-ng/charts/core").TxChartGridLine | null;
|
|
150
163
|
};
|
|
151
164
|
x: (time: number) => number;
|
|
152
165
|
maxRank: number;
|
|
@@ -193,6 +206,11 @@ export declare class TxRankChart {
|
|
|
193
206
|
"required": false;
|
|
194
207
|
"isSignal": true;
|
|
195
208
|
};
|
|
209
|
+
"dateFormat": {
|
|
210
|
+
"alias": "dateFormat";
|
|
211
|
+
"required": false;
|
|
212
|
+
"isSignal": true;
|
|
213
|
+
};
|
|
196
214
|
"height": {
|
|
197
215
|
"alias": "height";
|
|
198
216
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-rank-line.d.ts","names":[],"sources":["../../../../packages/charts/rank-line/src/rank-line.types.ts","../../../../packages/charts/rank-line/src/rank-line-layout.ts","../../../../packages/charts/rank-line/src/rank-line.component.ts"],"mappings":";;;;;iBAGiB;;EAEf,wBAAwB;;EAExB;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,iBAAiB;;;iBAIF;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;YAIU,iBAAiB;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-rank-line.d.ts","names":[],"sources":["../../../../packages/charts/rank-line/src/rank-line.types.ts","../../../../packages/charts/rank-line/src/rank-line-layout.ts","../../../../packages/charts/rank-line/src/rank-line.component.ts"],"mappings":";;;;;iBAGiB;;EAEf,wBAAwB;;EAExB;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,iBAAiB;;;iBAIF;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;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AA,uBAAA;IAAW;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -87,6 +87,21 @@ export interface TxSankeyLayout {
|
|
|
87
87
|
/** Number of columns. */
|
|
88
88
|
columns: number;
|
|
89
89
|
}
|
|
90
|
+
/** A placed node label of `tx-sankey-chart`. */
|
|
91
|
+
export interface TxSankeyLabel {
|
|
92
|
+
/** Id of the node. */
|
|
93
|
+
key: string;
|
|
94
|
+
/** Horizontal position of the text anchor, in px. */
|
|
95
|
+
x: number;
|
|
96
|
+
/** Vertical centre of the text, in px. */
|
|
97
|
+
y: number;
|
|
98
|
+
/** `end` for a label left of its node, `start` for one on the right. */
|
|
99
|
+
anchor: 'start' | 'end';
|
|
100
|
+
/** Name shown, shortened with an ellipsis when it had to be. */
|
|
101
|
+
label: string;
|
|
102
|
+
/** Formatted value shown after the name; empty when hidden or when it does not fit. */
|
|
103
|
+
value: string;
|
|
104
|
+
}
|
|
90
105
|
/** Payload of the node click event of `tx-sankey-chart`. */
|
|
91
106
|
export interface TxSankeyNodeEvent {
|
|
92
107
|
/** Id of the node. */
|
|
@@ -132,6 +147,25 @@ export declare function sankeyRibbonPath(x0: number, y0: number, x1: number, y1:
|
|
|
132
147
|
export declare function sankeyLinkY(x0: number, y0: number, x1: number, y1: number, x: number): number;
|
|
133
148
|
/** Positions nodes in columns and sizes the links; cycles are broken and invalid links dropped. */
|
|
134
149
|
export declare function sankeyLayout(nodesInput: readonly TxSankeyNode[], linksInput: readonly TxSankeyLink[], options: TxSankeyOptions): TxSankeyLayout;
|
|
150
|
+
/** Settings of `sankeyLabels`. */
|
|
151
|
+
export interface TxSankeyLabelOptions {
|
|
152
|
+
/** Width of the area, in px. */
|
|
153
|
+
width: number;
|
|
154
|
+
/** Gap between a node and its label, in px. */
|
|
155
|
+
labelGap: number;
|
|
156
|
+
/** Font size of the labels, in px. */
|
|
157
|
+
fontSize: number;
|
|
158
|
+
/** Formatted value of each node by its index; empty strings hide values. */
|
|
159
|
+
values: readonly string[];
|
|
160
|
+
/** Narrowest shortened name worth showing, in px (default 40). */
|
|
161
|
+
minWidth?: number;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Places the node labels so they stay inside the area and clear of the nodes and of each other: the last column on
|
|
165
|
+
* the left of its nodes, the others on the right; a label that does not fit moves to the other side, drops its value,
|
|
166
|
+
* is shortened with an ellipsis or, when even that does not fit, is hidden.
|
|
167
|
+
*/
|
|
168
|
+
export declare function sankeyLabels(nodes: readonly TxSankeyLayoutNode[], options: TxSankeyLabelOptions): TxSankeyLabel[];
|
|
135
169
|
/** The node or the link that is hovered or focused, by index. */
|
|
136
170
|
type TxSankeyActive = {
|
|
137
171
|
kind: 'node';
|
|
@@ -149,7 +183,7 @@ export declare class TxSankeyChart {
|
|
|
149
183
|
private locale;
|
|
150
184
|
private host;
|
|
151
185
|
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
152
|
-
/** `{ id, label?, color? }[]` — optional names and colours; nodes found only in `links` use their id as the name */
|
|
186
|
+
/** `{ id, label?, color? }[]` — optional names and colours; nodes found only in `links` use their id as the name. Names sit right of their nodes (left in the last column); a name that would run into a node or another name moves to the other side, drops its value, is shortened or is hidden (the tooltip still names the node) */
|
|
153
187
|
readonly nodes: import("@angular/core").InputSignal<readonly TxSankeyNode[] | null | undefined>;
|
|
154
188
|
/** `{ source, target, value, color? }[]` — flows between node ids; self links, zero values and links that close a cycle are left out. An empty list shows "No data" */
|
|
155
189
|
readonly links: import("@angular/core").InputSignal<readonly TxSankeyLink[] | null | undefined>;
|
|
@@ -205,14 +239,7 @@ export declare class TxSankeyChart {
|
|
|
205
239
|
readonly layout: import("@angular/core").Signal<import("@tectra-ng/charts/sankey").TxSankeyLayout>;
|
|
206
240
|
readonly isEmpty: import("@angular/core").Signal<boolean>;
|
|
207
241
|
readonly drawnLinks: import("@angular/core").Signal<TxSankeyLayoutLink[]>;
|
|
208
|
-
readonly labels: import("@angular/core").Signal<
|
|
209
|
-
key: string;
|
|
210
|
-
x: number;
|
|
211
|
-
y: number;
|
|
212
|
-
anchor: string;
|
|
213
|
-
label: string;
|
|
214
|
-
value: string;
|
|
215
|
-
}[]>;
|
|
242
|
+
readonly labels: import("@angular/core").Signal<import("@tectra-ng/charts/sankey").TxSankeyLabel[]>;
|
|
216
243
|
readonly related: import("@angular/core").Signal<{
|
|
217
244
|
links: Set<number>;
|
|
218
245
|
nodes: Set<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-sankey.d.ts","names":[],"sources":["../../../../packages/charts/sankey/src/sankey-chart.types.ts","../../../../packages/charts/sankey/src/sankey-layout.ts","../../../../packages/charts/sankey/src/sankey-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,oBAAoB;;;;YAKpB;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,QAAQ;;EAER,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,OAAO;;EAEP,OAAO;;EAEP;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-sankey.d.ts","names":[],"sources":["../../../../packages/charts/sankey/src/sankey-chart.types.ts","../../../../packages/charts/sankey/src/sankey-layout.ts","../../../../packages/charts/sankey/src/sankey-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;YAIU,oBAAoB;;;;YAKpB;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,QAAQ;;EAER,QAAQ;;EAER;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf,OAAO;;EAEP,OAAO;;EAEP;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;;iBC7He;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,QAAQ;;EAER;;EAEA;;;wBAMc,eAAe,YAAY,YAAY,YAAY;;wBAMnD,iBAAiB,YAAY,YAAY,YAAY,YAAY;;wBAUjE,YAAY,YAAY,YAAY,YAAY,YAAY;;wBAgB5D,aAAa,qBAAqB,gBAAgB,qBAAqB,gBAAgB,SAAS,kBAAkB;;iBA8KjH;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;;;wBAwBc,aAAa,gBAAgB,sBAAsB,SAAS,uBAAuB;;KC7N9F;EAAmB;EAAc;;EAAoB;EAAc;;;;;;qBAoB3D;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,+BAAK,qBAAA;;WACL,+BAAK,qBAAA;;WACL,gCAAM,YAAA;;WACN,+BAAK,YAAA;;WACL,oCAAU;;WACV,qCAAW;;WACX,qCAAW,YAAA;;WACX,iCAAO;;WACP,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,oDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;;WAER,mCAAS,iBAAA;;WACT,mCAAS,iBAAA;WAET,yCAAe,OAAA;mBACP;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,oDAAA;WACX,oCAAU,OAAA;WACV,mCAAS;;;WACT,2CAAQ;WACR,+BAAK;WACL,gCAAM,eAAA;WACN,kCAAQ;;;;;;mBAEA;WACR,8BAAI,gDAAA;WACJ,wCAAc,wCAAA;WACd,0CAAgB,wCAAA;WAEhB,gCAAM,0CAAA;WAMN,iCAAO;WACP,oCAAU,OAAA;WAEV,gCAAM,0CAAA;WAON,iCAAO;;;;WAYP,iCAAO,OAAA;WA4BP,+BAAK;WAEL,iCAAO;WAMP,mCAAS;;;;;;;;;;;EAgBlB,aAAa,MAAM;EAKnB,UAAU,MAAM;EAIhB,UAAU,OAAO;EAiBjB,WAAW,OAAO;UAoBV;UAeA;SAvLG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAa;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -37,7 +37,7 @@ export interface TxSegmentedBarSegment {
|
|
|
37
37
|
isEmpty: boolean;
|
|
38
38
|
}
|
|
39
39
|
/** Parts of `tx-segmented-bar` that `pt` can style. */
|
|
40
|
-
export type TxSegmentedBarPart = 'root' | 'track' | 'segment' | 'legend' | 'legendItem' | 'dot' | 'label' | 'value' | 'percent' | 'aside';
|
|
40
|
+
export type TxSegmentedBarPart = 'root' | 'track' | 'segment' | 'legend' | 'legendItem' | 'dot' | 'label' | 'value' | 'percent' | 'aside' | 'skeleton';
|
|
41
41
|
/**
|
|
42
42
|
* Turns items into segments with shares and formatted value and percent texts; `percentFormat` defaults to `format`.
|
|
43
43
|
*/
|
|
@@ -49,6 +49,7 @@ export declare function segmentedBarSegments(items: readonly TxSegmentedBarItem[
|
|
|
49
49
|
export declare class TxSegmentedBar {
|
|
50
50
|
private readonly segmentedBarTheme;
|
|
51
51
|
private locale;
|
|
52
|
+
readonly translations: import("@angular/core").Signal<import("@tectra-ng/core/config").TxTranslations>;
|
|
52
53
|
/** `{ key, label, value, tone? }[]` — parts in the order they are drawn; zero and negative values are not drawn */
|
|
53
54
|
readonly items: import("@angular/core").InputSignal<readonly TxSegmentedBarItem[] | null | undefined>;
|
|
54
55
|
/** `small` (thin rounded bar, default) or `large` (tall bar with the percent inside each segment) */
|
|
@@ -65,11 +66,13 @@ export declare class TxSegmentedBar {
|
|
|
65
66
|
readonly monoLabels: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
66
67
|
/** Format of values: `number`, `integer`, `compact`, `percent` or a function */
|
|
67
68
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
69
|
+
/** Shows a skeleton bar and legend of the same size */
|
|
70
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
71
|
/** What the bar shows; names the legend list, or starts the summary read on the bar when the legend is hidden */
|
|
69
72
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
70
73
|
/** Design tokens of this bar (`chart`, group `segmentedBar`) */
|
|
71
74
|
readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<TectraChartTokens> | undefined>;
|
|
72
|
-
/** Classes and styles of the parts: `root`, `track`, `segment`, `legend`, `legendItem`, `dot`, `label`, `value`, `percent`, `aside` */
|
|
75
|
+
/** Classes and styles of the parts: `root`, `track`, `segment`, `legend`, `legendItem`, `dot`, `label`, `value`, `percent`, `aside`, `skeleton` */
|
|
73
76
|
readonly pt: import("@angular/core").InputSignal<Partial<Record<TxSegmentedBarPart, import("@tectra-ng/core/config").TxPassThroughValue<TxSegmentedBar>>> | undefined>;
|
|
74
77
|
/** How `pt` merges with the global pass-through */
|
|
75
78
|
readonly ptOptions: import("@angular/core").InputSignal<TxPassThroughOptions | undefined>;
|
|
@@ -84,6 +87,7 @@ export declare class TxSegmentedBar {
|
|
|
84
87
|
readonly segments: import("@angular/core").Signal<import("@tectra-ng/charts/segmented-bar").TxSegmentedBarSegment[]>;
|
|
85
88
|
readonly barSegments: import("@angular/core").Signal<import("@tectra-ng/charts/segmented-bar").TxSegmentedBarSegment[]>;
|
|
86
89
|
readonly legendSegments: import("@angular/core").Signal<import("@tectra-ng/charts/segmented-bar").TxSegmentedBarSegment[]>;
|
|
90
|
+
readonly skeletonItems: import("@angular/core").Signal<number[]>;
|
|
87
91
|
readonly summary: import("@angular/core").Signal<string>;
|
|
88
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<TxSegmentedBar, never>;
|
|
89
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<TxSegmentedBar, "tx-segmented-bar", never, {
|
|
@@ -127,6 +131,11 @@ export declare class TxSegmentedBar {
|
|
|
127
131
|
"required": false;
|
|
128
132
|
"isSignal": true;
|
|
129
133
|
};
|
|
134
|
+
"loading": {
|
|
135
|
+
"alias": "loading";
|
|
136
|
+
"required": false;
|
|
137
|
+
"isSignal": true;
|
|
138
|
+
};
|
|
130
139
|
"ariaLabel": {
|
|
131
140
|
"alias": "ariaLabel";
|
|
132
141
|
"required": false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-segmented-bar.d.ts","names":[],"sources":["../../../../packages/charts/segmented-bar/src/segmented-bar.types.ts","../../../../packages/charts/segmented-bar/src/segmented-bar-segments.ts","../../../../packages/charts/segmented-bar/src/segmented-bar.component.ts"],"mappings":";;;;;YACY;;YAGA;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;EAEN;;;YAIU;;;;wBCjCI,qBACd,gBAAgB,yCAChB,QAAQ,uBACR,gBAAe,wBACd;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-segmented-bar.d.ts","names":[],"sources":["../../../../packages/charts/segmented-bar/src/segmented-bar.types.ts","../../../../packages/charts/segmented-bar/src/segmented-bar-segments.ts","../../../../packages/charts/segmented-bar/src/segmented-bar.component.ts"],"mappings":";;;;;YACY;;YAGA;;iBAGK;;EAEf;;EAEA;;EAEA;;EAEA,OAAO;;;iBAIQ;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,MAAM;;EAEN;;;YAIU;;;;wBCjCI,qBACd,gBAAgB,yCAChB,QAAQ,uBACR,gBAAe,wBACd;;;;;qBCuBU;mBACM;UAET;WACC,sCAAY,wCAAA;;WAEZ,+BAAK,qBAAA;;WACL,8BAAI,YAAA;;WACJ,oCAAU;;WACV,mCAAS;;WACT,qCAAW;;WACX,2CAAiB;;WACjB,oCAAU;;WACV,qCAAW,YAAA;;WACX,iCAAO;;WACP,mCAAS;;WACT,4BAAE,YAAA,kBAAA;;WACF,4BAAE,YAAA,QAAA,OAAA,qDAAA,mBAAA;;WACF,mCAAS,YAAA;;WACT,kCAAQ;WAER,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,qDAAA;WACX,mCAAS;;;mBAED;WACR,kCAAQ,iDAAA;WAGR,qCAAW,iDAAA;WACX,wCAAc,iDAAA;WACd,uCAAa;WACb,iCAAO;SAhCL,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAc;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA"}
|
|
@@ -77,6 +77,16 @@ export interface TxSunburstOptions {
|
|
|
77
77
|
export declare function sunburstArcs(roots: readonly TxSunburstItem[], options: TxSunburstOptions): TxSunburstArc[];
|
|
78
78
|
/** The arc under a point, or `null` outside all arcs. */
|
|
79
79
|
export declare function sunburstArcAt(arcs: readonly TxSunburstArc[], x: number, y: number, cx: number, cy: number): TxSunburstArc | null;
|
|
80
|
+
/**
|
|
81
|
+
* Tells whether a horizontal label box of `width` × `height` centred at (`x`, `y`) lies inside an arc, keeping `padding`
|
|
82
|
+
* px from its edges; points along the box outline are checked against both radii and both angles.
|
|
83
|
+
*/
|
|
84
|
+
export declare function sunburstLabelFits(arc: Pick<TxSunburstArc, 'start' | 'end' | 'inner' | 'outer'>, box: {
|
|
85
|
+
x: number;
|
|
86
|
+
y: number;
|
|
87
|
+
width: number;
|
|
88
|
+
height: number;
|
|
89
|
+
}, cx: number, cy: number, padding?: number): boolean;
|
|
80
90
|
/**
|
|
81
91
|
* `<tx-sunburst-chart>` — a hierarchy as nested rings: each ring is a level, each segment is its share of the parent. Click a segment to zoom into it, click the centre to go back. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
|
|
82
92
|
* @see https://tectra-ng.com/components/sunburst-chart
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-sunburst.d.ts","names":[],"sources":["../../../../packages/charts/sunburst/src/sunburst-chart.types.ts","../../../../packages/charts/sunburst/src/sunburst-layout.ts","../../../../packages/charts/sunburst/src/sunburst-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA,oBAAoB;;EAEpB;;;YAIU,sBAAsB;;iBAGjB;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,MAAM;;;wBCpDQ,cAAc,MAAM;;wBAOpB,cAAc,gBAAgB,kBAAkB;EAA4B,gBAAgB;EAAkB,OAAO;;;iBAapH;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,aAAa,gBAAgB,kBAAkB,SAAS,oBAAoB;;wBA+C5E,cAAc,eAAe,iBAAiB,WAAW,WAAW,YAAY,aAAa;;;;;
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-sunburst.d.ts","names":[],"sources":["../../../../packages/charts/sunburst/src/sunburst-chart.types.ts","../../../../packages/charts/sunburst/src/sunburst-layout.ts","../../../../packages/charts/sunburst/src/sunburst-chart.component.ts"],"mappings":";;;;;iBAGiB;;EAEf;;EAEA;;EAEA,oBAAoB;;EAEpB;;;YAIU,sBAAsB;;iBAGjB;;EAEf;;EAEA;;EAEA,MAAM;;EAEN;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA,MAAM;;;wBCpDQ,cAAc,MAAM;;wBAOpB,cAAc,gBAAgB,kBAAkB;EAA4B,gBAAgB;EAAkB,OAAO;;;iBAapH;;EAEf;;EAEA;;EAEA;;EAEA;;;wBAIc,aAAa,gBAAgB,kBAAkB,SAAS,oBAAoB;;wBA+C5E,cAAc,eAAe,iBAAiB,WAAW,WAAW,YAAY,aAAa;;;;;wBAW7F,kBACd,KAAK,KAAK,qDACV;EAAO;EAAW;EAAW;EAAe;GAC5C,YACA,YACA;;;;;qBCrCW;mBACM;UAET;UACA;WACC,sCAAY,wCAAA;;WAEZ,8BAAI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A;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA;IAAA"}
|
|
@@ -147,7 +147,7 @@ export declare class TxTreemap {
|
|
|
147
147
|
readonly showTooltip: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
148
148
|
/** `(value, { seriesIndex, dataPointIndex }) => string` for the tooltip value */
|
|
149
149
|
readonly tooltipFormatter: import("@angular/core").InputSignal<TxChartTooltipFormatter | null>;
|
|
150
|
-
/** Format of values: `number`, `integer`, `compact`, `percent` or a function */
|
|
150
|
+
/** Format of values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function */
|
|
151
151
|
readonly valueFormat: import("@angular/core").InputSignal<TxChartValueFormat>;
|
|
152
152
|
/** Shows a skeleton of the same size */
|
|
153
153
|
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|