@tectra-ng/charts 0.4.2 → 0.4.4

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 (99) hide show
  1. package/bar-list/README.md +1 -1
  2. package/boxplot/README.md +1 -1
  3. package/bullet/README.md +1 -1
  4. package/candlestick/README.md +1 -1
  5. package/column/README.md +3 -3
  6. package/combo/README.md +1 -1
  7. package/core/README.md +8 -6
  8. package/fesm2022/tectra-ng-charts-bar-list.mjs +3 -3
  9. package/fesm2022/tectra-ng-charts-boxplot.mjs +3 -3
  10. package/fesm2022/tectra-ng-charts-bullet.mjs +3 -3
  11. package/fesm2022/tectra-ng-charts-candlestick.mjs +26 -10
  12. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-charts-column.mjs +4 -4
  14. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-charts-combo.mjs +3 -3
  16. package/fesm2022/tectra-ng-charts-core.mjs +107 -44
  17. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-funnel.mjs +37 -13
  19. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-gantt.mjs +490 -30
  21. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-gauge.mjs +82 -37
  23. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-charts-heatmap.mjs +15 -15
  25. package/fesm2022/tectra-ng-charts-line.mjs +3 -3
  26. package/fesm2022/tectra-ng-charts-org-chart.mjs +57 -29
  27. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-charts-pie.mjs +50 -20
  29. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-charts-radar.mjs +3 -3
  31. package/fesm2022/tectra-ng-charts-radial-bar.mjs +8 -7
  32. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-charts-range-area.mjs +116 -61
  34. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-charts-rank-line.mjs +82 -34
  36. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-charts-sankey.mjs +102 -21
  38. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
  40. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +56 -10
  41. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-charts-sunburst.mjs +34 -6
  43. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
  45. package/fesm2022/tectra-ng-charts-waterfall.mjs +60 -23
  46. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-charts.mjs +1 -1
  48. package/funnel/README.md +2 -2
  49. package/gantt/README.md +12 -8
  50. package/gauge/README.md +3 -3
  51. package/line/README.md +1 -1
  52. package/org-chart/README.md +1 -0
  53. package/package.json +5 -5
  54. package/pie/README.md +5 -4
  55. package/radar/README.md +1 -1
  56. package/radial-bar/README.md +2 -2
  57. package/range-area/README.md +2 -1
  58. package/rank-line/README.md +3 -2
  59. package/sankey/README.md +1 -1
  60. package/segmented-bar/README.md +2 -1
  61. package/treemap/README.md +1 -1
  62. package/types/tectra-ng-charts-bar-list.d.ts +1 -1
  63. package/types/tectra-ng-charts-boxplot.d.ts +1 -1
  64. package/types/tectra-ng-charts-bullet.d.ts +1 -1
  65. package/types/tectra-ng-charts-candlestick.d.ts +7 -3
  66. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  67. package/types/tectra-ng-charts-column.d.ts +3 -3
  68. package/types/tectra-ng-charts-combo.d.ts +1 -1
  69. package/types/tectra-ng-charts-core.d.ts +45 -10
  70. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-funnel.d.ts +9 -2
  72. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-gantt.d.ts +166 -10
  74. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  75. package/types/tectra-ng-charts-gauge.d.ts +21 -6
  76. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  77. package/types/tectra-ng-charts-line.d.ts +1 -1
  78. package/types/tectra-ng-charts-org-chart.d.ts +13 -2
  79. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  80. package/types/tectra-ng-charts-pie.d.ts +13 -4
  81. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  82. package/types/tectra-ng-charts-radar.d.ts +1 -1
  83. package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
  84. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  85. package/types/tectra-ng-charts-range-area.d.ts +12 -3
  86. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  87. package/types/tectra-ng-charts-rank-line.d.ts +28 -10
  88. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  89. package/types/tectra-ng-charts-sankey.d.ts +36 -9
  90. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  91. package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
  92. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  93. package/types/tectra-ng-charts-sunburst.d.ts +10 -0
  94. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  95. package/types/tectra-ng-charts-treemap.d.ts +1 -1
  96. package/types/tectra-ng-charts-waterfall.d.ts +25 -6
  97. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  98. package/types/tectra-ng-charts.d.ts +1 -1
  99. package/waterfall/README.md +5 -5
@@ -1,4 +1,4 @@
1
- import { TxChartFrame, TxChartTooltipTemplate, chartNumberFormatter, initialChartSize, injectChartEntrance, readTokenNumber, seriesColor, textWidth } from "@tectra-ng/charts/core";
1
+ import { TxChartFrame, TxChartTooltipTemplate, chartNumberFormatter, initialChartSize, injectChartEntrance, readTokenNumber, seriesColor, textWidth, truncateText } from "@tectra-ng/charts/core";
2
2
  import * as i0 from "@angular/core";
3
3
  import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
4
4
  import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
@@ -197,6 +197,95 @@ function sankeyLayout(nodesInput, linksInput, options) {
197
197
  columns
198
198
  };
199
199
  }
200
+ const VALUE_GAP = 5;
201
+ function sankeyLabels(nodes, options) {
202
+ const { width, labelGap, fontSize, values } = options;
203
+ const minWidth = options.minWidth ?? 40;
204
+ const last = Math.max(0, ...nodes.map((node) => node.depth));
205
+ const half = fontSize * .6;
206
+ const nodeBoxes = nodes.map((node) => ({
207
+ left: node.x,
208
+ right: node.x + node.width,
209
+ top: node.y,
210
+ bottom: node.y + node.height
211
+ }));
212
+ const placed = [];
213
+ const overlaps = (box, others) => others.some((other) => box.left < other.right && box.right > other.left && box.top < other.bottom && box.bottom > other.top);
214
+ const order = nodes.map((_, index) => index).sort((a, b) => nodes[b].depth - nodes[a].depth || nodes[a].y - nodes[b].y);
215
+ const result = /* @__PURE__ */ new Map();
216
+ for (const index of order) {
217
+ const node = nodes[index];
218
+ const y = node.y + node.height / 2;
219
+ const value = values[index];
220
+ const sides = node.depth === last && last > 0 ? ["end", "start"] : ["start", "end"];
221
+ const boxFor = (anchor, textSize) => {
222
+ const x = anchor === "end" ? node.x - labelGap : node.x + node.width + labelGap;
223
+ return {
224
+ left: anchor === "end" ? x - textSize : x,
225
+ right: anchor === "end" ? x : x + textSize,
226
+ top: y - half,
227
+ bottom: y + half
228
+ };
229
+ };
230
+ const fits = (box) => box.left >= 0 && box.right <= width && !overlaps(box, nodeBoxes) && !overlaps(box, placed);
231
+ const labelSize = textWidth(node.label, fontSize);
232
+ const variants = [...value ? [{
233
+ value,
234
+ size: labelSize + VALUE_GAP + textWidth(value, fontSize)
235
+ }] : [], {
236
+ value: "",
237
+ size: labelSize
238
+ }];
239
+ const whole = () => {
240
+ for (const variant of variants) for (const anchor of sides) {
241
+ const box = boxFor(anchor, variant.size);
242
+ if (fits(box)) return {
243
+ anchor,
244
+ label: node.label,
245
+ value: variant.value,
246
+ box
247
+ };
248
+ }
249
+ return null;
250
+ };
251
+ const shortened = () => {
252
+ for (const anchor of sides) {
253
+ const start = boxFor(anchor, 0);
254
+ const room = roomFor(start, anchor, width, [...nodeBoxes, ...placed]);
255
+ if (room < minWidth || overlaps(start, placed)) continue;
256
+ const label = truncateText(node.label, room, fontSize);
257
+ return {
258
+ anchor,
259
+ label,
260
+ value: "",
261
+ box: boxFor(anchor, textWidth(label, fontSize))
262
+ };
263
+ }
264
+ return null;
265
+ };
266
+ const chosen = whole() ?? shortened();
267
+ if (chosen) placed.push(chosen.box);
268
+ const x = (chosen?.anchor ?? sides[0]) === "end" ? node.x - labelGap : node.x + node.width + labelGap;
269
+ result.set(index, {
270
+ key: node.id,
271
+ x,
272
+ y,
273
+ anchor: chosen?.anchor ?? sides[0],
274
+ label: chosen?.label ?? "",
275
+ value: chosen?.value ?? ""
276
+ });
277
+ }
278
+ return nodes.map((_, index) => result.get(index));
279
+ }
280
+ function roomFor(start, anchor, width, others) {
281
+ let limit = anchor === "end" ? 0 : width;
282
+ for (const other of others) {
283
+ if (other.top >= start.bottom || other.bottom <= start.top) continue;
284
+ if (anchor === "end" && other.right <= start.left) limit = Math.max(limit, other.right);
285
+ if (anchor === "start" && other.left >= start.right) limit = Math.min(limit, other.left);
286
+ }
287
+ return anchor === "end" ? start.left - limit : limit - start.right;
288
+ }
200
289
  const SANKEY_ICON_DEFAULTS = {
201
290
  "chart-bar": txIconChartBar,
202
291
  link: txIconLink
@@ -279,22 +368,14 @@ var TxSankeyChart = class TxSankeyChart {
279
368
  drawnLinks = computed(() => [...this.layout().links].sort((a, b) => b.width - a.width), ...ngDevMode ? [{ debugName: "drawnLinks" }] : /* istanbul ignore next */ []);
280
369
  labels = computed(() => {
281
370
  const { labelGap, fontSize } = this.geometry();
282
- const last = this.layout().columns - 1;
283
- const width = this.size().width;
284
- return this.layout().nodes.map((node) => {
285
- const before = node.depth === last && last > 0;
286
- const value = this.showValues() ? this.valueFormatter()(node.value) : "";
287
- const room = before ? node.x - labelGap : width - node.x - node.width - labelGap;
288
- const fits = textWidth(`${node.label} ${value}`, fontSize) <= room;
289
- return {
290
- key: node.id,
291
- x: before ? node.x - labelGap : node.x + node.width + labelGap,
292
- y: node.y + node.height / 2,
293
- anchor: before ? "end" : "start",
294
- label: node.label,
295
- value: fits ? value : ""
296
- };
297
- });
371
+ const nodes = this.layout().nodes;
372
+ const values = nodes.map((node) => this.showValues() ? this.valueFormatter()(node.value) : "");
373
+ return sankeyLabels(nodes, {
374
+ width: this.size().width,
375
+ labelGap,
376
+ fontSize,
377
+ values
378
+ }).filter((label) => label.label);
298
379
  }, ...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
299
380
  related = computed(() => {
300
381
  const active = this.active();
@@ -489,7 +570,7 @@ var TxSankeyChart = class TxSankeyChart {
489
570
  }
490
571
  static ɵfac = i0.ɵɵngDeclareFactory({
491
572
  minVersion: "12.0.0",
492
- version: "22.2.5",
573
+ version: "22.2.6",
493
574
  ngImport: i0,
494
575
  type: TxSankeyChart,
495
576
  deps: [],
@@ -497,7 +578,7 @@ var TxSankeyChart = class TxSankeyChart {
497
578
  });
498
579
  static ɵcmp = i0.ɵɵngDeclareComponent({
499
580
  minVersion: "17.0.0",
500
- version: "22.2.5",
581
+ version: "22.2.6",
501
582
  type: TxSankeyChart,
502
583
  isStandalone: true,
503
584
  selector: "tx-sankey-chart",
@@ -685,7 +766,7 @@ var TxSankeyChart = class TxSankeyChart {
685
766
  };
686
767
  i0.ɵɵngDeclareClassMetadata({
687
768
  minVersion: "12.0.0",
688
- version: "22.2.5",
769
+ version: "22.2.6",
689
770
  ngImport: i0,
690
771
  type: TxSankeyChart,
691
772
  decorators: [{
@@ -841,6 +922,6 @@ i0.ɵɵngDeclareClassMetadata({
841
922
  }]
842
923
  }
843
924
  });
844
- export { TxSankeyChart, sankeyLayout, sankeyLinkPath, sankeyLinkY, sankeyRibbonPath };
925
+ export { TxSankeyChart, sankeyLabels, sankeyLayout, sankeyLinkPath, sankeyLinkY, sankeyRibbonPath };
845
926
 
846
927
  //# sourceMappingURL=tectra-ng-charts-sankey.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-sankey.mjs","names":[],"sources":["../../../../packages/charts/sankey/src/sankey-layout.ts","../../../../packages/charts/sankey/src/sankey.icons.ts","../../../../packages/charts/sankey/src/sankey.theme.ts","../../../../packages/charts/sankey/src/sankey-chart.component.ts","../../../../packages/charts/sankey/src/sankey-chart.component.html"],"sourcesContent":["import { seriesColor } from '@tectra-ng/charts/core';\nimport { TxSankeyAlign, TxSankeyLayout, TxSankeyLayoutLink, TxSankeyLayoutNode, TxSankeyLink, TxSankeyNode } from './sankey-chart.types';\n\n/** Size and spacing settings of `sankeyLayout`. */\nexport interface TxSankeyOptions {\n /** Width of the area, in px. */\n width: number;\n /** Height of the area, in px. */\n height: number;\n /** Width of a node, in px. */\n nodeWidth: number;\n /** Vertical gap between nodes of a column, in px. */\n nodePadding: number;\n /** Where nodes without outgoing links go (default `justify`). */\n align?: TxSankeyAlign;\n /** Number of passes that move nodes towards their linked nodes (default 24). */\n iterations?: number;\n /** Offset added to every vertical position, in px (default 0). */\n top?: number;\n}\n\nconst round = (value: number) => Math.round(value * 100) / 100;\n\n/** SVG path of a smooth centre line between two points, for a flow of no width. */\nexport function sankeyLinkPath(x0: number, y0: number, x1: number, y1: number): string {\n const middle = (x0 + x1) / 2;\n return `M${round(x0)},${round(y0)}C${round(middle)},${round(y0)} ${round(middle)},${round(y1)} ${round(x1)},${round(y1)}`;\n}\n\n/** SVG path of a flow ribbon of the given width between two points. */\nexport function sankeyRibbonPath(x0: number, y0: number, x1: number, y1: number, width: number): string {\n const middle = (x0 + x1) / 2;\n const half = width / 2;\n return (\n `M${round(x0)},${round(y0 - half)}C${round(middle)},${round(y0 - half)} ${round(middle)},${round(y1 - half)} ${round(x1)},${round(y1 - half)}` +\n `L${round(x1)},${round(y1 + half)}C${round(middle)},${round(y1 + half)} ${round(middle)},${round(y0 + half)} ${round(x0)},${round(y0 + half)}Z`\n );\n}\n\n/** Vertical position of the link centre line at a horizontal position `x`. */\nexport function sankeyLinkY(x0: number, y0: number, x1: number, y1: number, x: number): number {\n if (x <= x0) return y0;\n if (x >= x1) return y1;\n let low = 0;\n let high = 1;\n for (let step = 0; step < 24; step++) {\n const t = (low + high) / 2;\n const at = (1 - t) ** 3 * x0 + 3 * (1 - t) ** 2 * t * ((x0 + x1) / 2) + 3 * (1 - t) * t ** 2 * ((x0 + x1) / 2) + t ** 3 * x1;\n if (at < x) low = t;\n else high = t;\n }\n const t = (low + high) / 2;\n return (1 - t) ** 3 * y0 + 3 * (1 - t) ** 2 * t * y0 + 3 * (1 - t) * t ** 2 * y1 + t ** 3 * y1;\n}\n\n/** Positions nodes in columns and sizes the links; cycles are broken and invalid links dropped. */\nexport function sankeyLayout(nodesInput: readonly TxSankeyNode[], linksInput: readonly TxSankeyLink[], options: TxSankeyOptions): TxSankeyLayout {\n const ids: string[] = [];\n const add = (id: string) => {\n if (!ids.includes(id)) ids.push(id);\n };\n nodesInput.forEach((node) => add(node.id));\n const valid = linksInput.filter((link) => link.source !== link.target && Number.isFinite(link.value) && link.value > 0);\n valid.forEach((link) => {\n add(link.source);\n add(link.target);\n });\n const meta = new Map(nodesInput.map((node) => [node.id, node]));\n const outgoing = ids.map(() => [] as number[]);\n const incoming = ids.map(() => [] as number[]);\n const linkPairs = valid.map((link) => ({ link, source: ids.indexOf(link.source), target: ids.indexOf(link.target) }));\n\n const depth = ids.map(() => 0);\n const order: number[] = [];\n const state = ids.map(() => 0);\n const kept: typeof linkPairs = [];\n const visit = (node: number) => {\n state[node] = 1;\n for (const pair of linkPairs) {\n if (pair.source !== node) continue;\n if (state[pair.target] === 1) continue;\n kept.push(pair);\n if (state[pair.target] === 0) visit(pair.target);\n }\n state[node] = 2;\n order.unshift(node);\n };\n ids.forEach((_, node) => {\n if (state[node] === 0 && !linkPairs.some((pair) => pair.target === node)) visit(node);\n });\n ids.forEach((_, node) => {\n if (state[node] === 0) visit(node);\n });\n const links = linkPairs.filter((pair) => kept.includes(pair));\n links.forEach((pair, index) => {\n outgoing[pair.source].push(index);\n incoming[pair.target].push(index);\n });\n for (const node of order) {\n for (const index of outgoing[node]) {\n const target = links[index].target;\n depth[target] = Math.max(depth[target], depth[node] + 1);\n }\n }\n const columns = Math.max(1, ...depth.map((value) => value + 1));\n if ((options.align ?? 'justify') === 'justify') {\n ids.forEach((_, node) => {\n if (!outgoing[node].length && incoming[node].length) depth[node] = columns - 1;\n });\n }\n\n const sum = (list: number[]) => list.reduce((total, index) => total + links[index].link.value, 0);\n const values = ids.map((_, node) => Math.max(sum(incoming[node]), sum(outgoing[node])));\n const byColumn = Array.from({ length: columns }, (_, column) => ids.map((_, node) => node).filter((node) => depth[node] === column));\n const padding = options.nodePadding;\n const ky = Math.min(\n ...byColumn.filter((column) => column.length).map((column) => (options.height - (column.length - 1) * padding) / Math.max(1e-9, column.reduce((total, node) => total + values[node], 0))),\n );\n const step = columns > 1 ? (options.width - options.nodeWidth) / (columns - 1) : 0;\n const height = values.map((value) => Math.max(1, value * ky));\n const y = ids.map(() => 0);\n byColumn.forEach((column, at) => {\n if (at) {\n const weight = (node: number) => {\n const total = incoming[node].reduce((acc, index) => acc + links[index].link.value, 0);\n return total ? incoming[node].reduce((acc, index) => acc + (y[links[index].source] + height[links[index].source] / 2) * links[index].link.value, 0) / total : Infinity;\n };\n const order = new Map(column.map((node) => [node, weight(node)]));\n column.sort((a, b) => (order.get(a) ?? 0) - (order.get(b) ?? 0));\n }\n let cursor = 0;\n column.forEach((node) => {\n y[node] = cursor;\n cursor += height[node] + padding;\n });\n });\n\n const center = (node: number) => y[node] + height[node] / 2;\n const resolve = (column: number[]) => {\n column.sort((a, b) => y[a] - y[b]);\n let cursor = 0;\n for (const node of column) {\n y[node] = Math.max(y[node], cursor);\n cursor = y[node] + height[node] + padding;\n }\n let limit = options.height;\n for (let at = column.length - 1; at >= 0; at--) {\n const node = column[at];\n y[node] = Math.min(y[node], limit - height[node]);\n limit = y[node] - padding;\n }\n cursor = 0;\n for (const node of column) {\n y[node] = Math.max(y[node], cursor);\n cursor = y[node] + height[node] + padding;\n }\n };\n const iterations = options.iterations ?? 24;\n for (let pass = 0; pass < iterations; pass++) {\n const weight = 0.99 ** pass;\n const forward = pass % 2 === 0;\n const columnsOrder = forward ? byColumn.slice(1) : byColumn.slice(0, -1).reverse();\n for (const column of columnsOrder) {\n for (const node of column) {\n const related = forward ? incoming[node].map((index) => links[index].source) : outgoing[node].map((index) => links[index].target);\n const linked = forward ? incoming[node] : outgoing[node];\n if (!related.length) continue;\n const total = linked.reduce((acc, index) => acc + links[index].link.value, 0);\n const target = linked.reduce((acc, index, at) => acc + center(related[at]) * links[index].link.value, 0) / Math.max(1e-9, total);\n y[node] += (target - center(node)) * weight;\n }\n resolve(column);\n }\n }\n\n const top = options.top ?? 0;\n const layoutNodes: TxSankeyLayoutNode[] = ids.map((id, node) => ({\n id,\n index: node,\n label: meta.get(id)?.label ?? id,\n color: seriesColor(meta.get(id)?.color, node),\n depth: depth[node],\n value: values[node],\n incoming: sum(incoming[node]),\n outgoing: sum(outgoing[node]),\n x: round(depth[node] * step),\n y: round(y[node] + top),\n width: options.nodeWidth,\n height: round(height[node]),\n }));\n\n const sourceOffset = ids.map(() => 0);\n const targetOffset = ids.map(() => 0);\n const sorted = links.map((_, index) => index);\n const byTarget = [...sorted].sort((a, b) => center(links[a].target) - center(links[b].target));\n const bySource = [...sorted].sort((a, b) => center(links[a].source) - center(links[b].source));\n const y0 = links.map(() => 0);\n const y1 = links.map(() => 0);\n for (const index of byTarget) {\n const pair = links[index];\n const width = pair.link.value * ky;\n y0[index] = y[pair.source] + top + sourceOffset[pair.source] + width / 2;\n sourceOffset[pair.source] += width;\n }\n for (const index of bySource) {\n const pair = links[index];\n const width = pair.link.value * ky;\n y1[index] = y[pair.target] + top + targetOffset[pair.target] + width / 2;\n targetOffset[pair.target] += width;\n }\n const layoutLinks: TxSankeyLayoutLink[] = links.map((pair, index) => {\n const source = layoutNodes[pair.source];\n const target = layoutNodes[pair.target];\n return {\n index,\n key: `${source.id}>${target.id}`,\n source,\n target,\n value: pair.link.value,\n width: round(Math.max(1, pair.link.value * ky)),\n y0: round(y0[index]),\n y1: round(y1[index]),\n path: sankeyRibbonPath(source.x + source.width, y0[index], target.x, y1[index], Math.max(1, pair.link.value * ky)),\n color: pair.link.color ?? source.color,\n };\n });\n return { nodes: layoutNodes, links: layoutLinks, columns };\n}\n","import { TxIconSet, txIconChartBar, txIconLink } from '@tectra-ng/icons';\n\nexport const SANKEY_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n link: txIconLink,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const SANKEY_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxChartFrame,\n TxChartHeight,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n chartNumberFormatter,\n initialChartSize,\n injectChartEntrance,\n readTokenNumber,\n textWidth,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { sankeyLayout, sankeyLinkY } from './sankey-layout';\nimport { TxSankeyAlign, TxSankeyChartPart, TxSankeyLayoutLink, TxSankeyLayoutNode, TxSankeyLink, TxSankeyLinkEvent, TxSankeyNode, TxSankeyNodeEvent } from './sankey-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SANKEY_ICON_DEFAULTS } from './sankey.icons';\nimport { SANKEY_THEME } from './sankey.theme';\n\nconst DEFAULTS = { nodeWidth: 12, nodePadding: 14, labelGap: 8, fontSize: 12 };\nconst PADDING = 4;\nconst HIT_SLACK = 3;\n\n/** The node or the link that is hovered or focused, by index. */\ntype TxSankeyActive = { kind: 'node'; index: number } | { kind: 'link'; index: number };\n\n@Component({\n selector: 'tx-sankey-chart',\n imports: [TxChartFrame],\n templateUrl: './sankey-chart.component.html',\n styleUrl: './sankey-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-sankey-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-sankey-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-sankey-chart--entering]': 'entrance.active()',\n '[class.tx-sankey-chart--morph]': 'morph()',\n '[class.tx-sankey-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(SANKEY_ICON_DEFAULTS)],\n})\nexport class TxSankeyChart {\n private readonly sankeyTheme = injectTokens(SANKEY_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly nodes = input<readonly TxSankeyNode[] | null | undefined>([]);\n readonly links = input<readonly TxSankeyLink[] | null | undefined>([]);\n readonly height = input<TxChartHeight>(360);\n readonly align = input<TxSankeyAlign>('justify');\n readonly showValues = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSankeyChartPart, TxSankeyChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly nodeClick = output<TxSankeyNodeEvent>();\n readonly linkClick = output<TxSankeyLinkEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('sankeyChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n readonly active = signal<TxSankeyActive | null>(null);\n readonly geometry = signal(DEFAULTS);\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly size = linkedSignal(() => initialChartSize(this.height(), null, undefined, this.toolbar()));\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly percentFormatter = computed(() => chartNumberFormatter(this.intl(), 'percent'));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const { nodeWidth, nodePadding } = this.geometry();\n return sankeyLayout(this.nodes() ?? [], this.links() ?? [], { width: Math.max(1, width), height: Math.max(1, height - PADDING * 2), nodeWidth, nodePadding, align: this.align(), top: PADDING });\n });\n\n readonly isEmpty = computed(() => !this.layout().links.length);\n readonly drawnLinks = computed(() => [...this.layout().links].sort((a, b) => b.width - a.width));\n\n readonly labels = computed(() => {\n const { labelGap, fontSize } = this.geometry();\n const last = this.layout().columns - 1;\n const width = this.size().width;\n return this.layout().nodes.map((node) => {\n const before = node.depth === last && last > 0;\n const value = this.showValues() ? this.valueFormatter()(node.value) : '';\n const room = before ? node.x - labelGap : width - node.x - node.width - labelGap;\n const fits = textWidth(`${node.label} ${value}`, fontSize) <= room;\n return { key: node.id, x: before ? node.x - labelGap : node.x + node.width + labelGap, y: node.y + node.height / 2, anchor: before ? 'end' : 'start', label: node.label, value: fits ? value : '' };\n });\n });\n\n readonly related = computed(() => {\n const active = this.active();\n const layout = this.layout();\n if (!active) return null;\n if (active.kind === 'link') {\n const link = layout.links[active.index];\n return link ? { links: new Set([link.index]), nodes: new Set([link.source.index, link.target.index]) } : null;\n }\n const links = layout.links.filter((link) => link.source.index === active.index || link.target.index === active.index);\n return { links: new Set(links.map((link) => link.index)), nodes: new Set([active.index, ...links.flatMap((link) => [link.source.index, link.target.index])]) };\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip()) return null;\n const t = this.translations();\n const format = this.valueFormatter();\n if (active.kind === 'node') {\n const node = this.layout().nodes[active.index];\n if (!node) return null;\n const rows = [\n ...(node.incoming ? [{ label: t.chartIncoming, value: format(node.incoming), color: node.color, raw: node.incoming, seriesIndex: 0 }] : []),\n ...(node.outgoing ? [{ label: t.chartOutgoing, value: format(node.outgoing), color: node.incoming ? 'transparent' : node.color, raw: node.outgoing, seriesIndex: 1 }] : []),\n ];\n return { title: node.label, rows, index: active.index, x: node.x + node.width / 2, y: node.y, placement: 'top' };\n }\n const link = this.layout().links[active.index];\n if (!link) return null;\n const share = link.source.outgoing ? (link.value / link.source.outgoing) * 100 : 0;\n const x = (link.source.x + link.source.width + link.target.x) / 2;\n return {\n title: formatMessage(t.chartFlow, { source: link.source.label, target: link.target.label }),\n rows: [{ label: t.chartValue, value: format(link.value), share: this.percentFormatter()(Number(share.toFixed(1))), color: link.color, raw: link.value, seriesIndex: 0 }],\n index: active.index,\n x,\n y: sankeyLinkY(link.source.x + link.source.width, link.y0, link.target.x, link.y1, x) - link.width / 2,\n placement: 'top',\n };\n });\n\n readonly order = computed(() => [...this.layout().nodes].sort((a, b) => a.depth - b.depth || a.y - b.y).map((node) => node.index));\n\n readonly summary = computed(() => {\n const t = this.translations();\n const text = `${t.chartSankey}, ${formatMessage(t.chartFlows, { count: this.layout().links.length }, this.intl())}`;\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n return {\n columns: [{ key: 'value', label: t.chartValue }],\n rows: this.layout().links.map((link) => ({ label: formatMessage(t.chartFlow, { source: link.source.label, target: link.target.label }), cells: [this.valueFormatter()(link.value)] })),\n };\n });\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n this.readGeometry();\n });\n }\n\n isNodeDimmed(node: TxSankeyLayoutNode): boolean {\n const related = this.related();\n return !!related && !related.nodes.has(node.index);\n }\n\n isLinkLit(link: TxSankeyLayoutLink): boolean {\n return !!this.related()?.links.has(link.index);\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const hit = this.hitTest(event.x, event.y);\n this.active.set(hit);\n if (event.type !== 'click' || !hit) return;\n if (hit.kind === 'node') {\n const node = this.layout().nodes[hit.index];\n this.nodeClick.emit({ id: node.id, label: node.label, incoming: node.incoming, outgoing: node.outgoing });\n } else {\n const link = this.layout().links[hit.index];\n this.linkClick.emit({ source: link.source.id, target: link.target.id, value: link.value });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const order = this.order();\n if (!order.length) return;\n const current = this.active();\n const at = current?.kind === 'node' ? order.indexOf(current.index) : -1;\n const forward = event.key === 'ArrowRight' || event.key === 'ArrowDown';\n if (!['ArrowRight', 'ArrowDown', 'ArrowLeft', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? order.length - 1 : at < 0 ? (forward ? 0 : order.length - 1) : Math.max(0, Math.min(order.length - 1, at + (forward ? 1 : -1)));\n const node = this.layout().nodes[order[next]];\n this.active.set({ kind: 'node', index: node.index });\n const t = this.translations();\n const format = this.valueFormatter();\n const parts = [node.incoming ? `${t.chartIncoming} ${format(node.incoming)}` : '', node.outgoing ? `${t.chartOutgoing} ${format(node.outgoing)}` : ''].filter(Boolean);\n this.frame()?.announce(`${node.label}: ${parts.join(', ')}`);\n }\n\n private hitTest(x: number, y: number): TxSankeyActive | null {\n const layout = this.layout();\n const node = layout.nodes.find((item) => x >= item.x - HIT_SLACK && x <= item.x + item.width + HIT_SLACK && y >= item.y - HIT_SLACK && y <= item.y + item.height + HIT_SLACK);\n if (node) return { kind: 'node', index: node.index };\n let best: TxSankeyLayoutLink | null = null;\n for (const link of layout.links) {\n const x0 = link.source.x + link.source.width;\n const x1 = link.target.x;\n if (x < x0 || x > x1) continue;\n const centre = sankeyLinkY(x0, link.y0, x1, link.y1, x);\n if (Math.abs(y - centre) <= link.width / 2 + 1 && (!best || link.width < best.width)) best = link;\n }\n return best ? { kind: 'link', index: best.index } : null;\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n nodeWidth: readTokenNumber(element, '--tx-chart-sankey-node-width', DEFAULTS.nodeWidth),\n nodePadding: readTokenNumber(element, '--tx-chart-sankey-node-padding', DEFAULTS.nodePadding),\n labelGap: readTokenNumber(element, '--tx-chart-sankey-label-gap', DEFAULTS.labelGap),\n fontSize: readTokenNumber(element, '--tx-chart-sankey-label-font-size', DEFAULTS.fontSize),\n };\n const current = this.geometry();\n if ((Object.keys(next) as (keyof typeof next)[]).some((key) => next[key] !== current[key])) this.geometry.set(next);\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [showLegend]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g class=\"tx-sankey-chart__links\">\n @for (link of drawnLinks(); track link.key) {\n <svg:path\n class=\"tx-sankey-chart__link\"\n [class.tx-sankey-chart__link--lit]=\"isLinkLit(link)\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [attr.data-link]=\"link.key\"\n [attr.d]=\"link.path\"\n [style.--tx-sankey-chart-color]=\"link.color\"\n />\n }\n </svg:g>\n <svg:g class=\"tx-sankey-chart__nodes\">\n @for (node of layout().nodes; track node.id) {\n <svg:rect\n class=\"tx-sankey-chart__node\"\n [class.tx-sankey-chart__node--dimmed]=\"isNodeDimmed(node)\"\n [class]=\"passThrough().node?.class\"\n [style]=\"passThrough().node?.style\"\n [attr.data-node]=\"node.id\"\n [attr.x]=\"node.x\"\n [attr.y]=\"node.y\"\n [attr.width]=\"node.width\"\n [attr.height]=\"node.height\"\n [style.fill]=\"node.color\"\n [style.--tx-sankey-chart-order]=\"node.depth\"\n />\n }\n </svg:g>\n <svg:g class=\"tx-sankey-chart__labels\">\n @for (label of labels(); track label.key) {\n <svg:text\n class=\"tx-sankey-chart__label\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n dominant-baseline=\"central\"\n [attr.x]=\"label.x\"\n [attr.y]=\"label.y\"\n [attr.text-anchor]=\"label.an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A,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,sBAAsB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC3B,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"tectra-ng-charts-sankey.mjs","names":[],"sources":["../../../../packages/charts/sankey/src/sankey-layout.ts","../../../../packages/charts/sankey/src/sankey.icons.ts","../../../../packages/charts/sankey/src/sankey.theme.ts","../../../../packages/charts/sankey/src/sankey-chart.component.ts","../../../../packages/charts/sankey/src/sankey-chart.component.html"],"sourcesContent":["import { seriesColor, textWidth, truncateText } from '@tectra-ng/charts/core';\nimport { TxSankeyAlign, TxSankeyLabel, TxSankeyLayout, TxSankeyLayoutLink, TxSankeyLayoutNode, TxSankeyLink, TxSankeyNode } from './sankey-chart.types';\n\n/** Size and spacing settings of `sankeyLayout`. */\nexport interface TxSankeyOptions {\n /** Width of the area, in px. */\n width: number;\n /** Height of the area, in px. */\n height: number;\n /** Width of a node, in px. */\n nodeWidth: number;\n /** Vertical gap between nodes of a column, in px. */\n nodePadding: number;\n /** Where nodes without outgoing links go (default `justify`). */\n align?: TxSankeyAlign;\n /** Number of passes that move nodes towards their linked nodes (default 24). */\n iterations?: number;\n /** Offset added to every vertical position, in px (default 0). */\n top?: number;\n}\n\nconst round = (value: number) => Math.round(value * 100) / 100;\n\n/** SVG path of a smooth centre line between two points, for a flow of no width. */\nexport function sankeyLinkPath(x0: number, y0: number, x1: number, y1: number): string {\n const middle = (x0 + x1) / 2;\n return `M${round(x0)},${round(y0)}C${round(middle)},${round(y0)} ${round(middle)},${round(y1)} ${round(x1)},${round(y1)}`;\n}\n\n/** SVG path of a flow ribbon of the given width between two points. */\nexport function sankeyRibbonPath(x0: number, y0: number, x1: number, y1: number, width: number): string {\n const middle = (x0 + x1) / 2;\n const half = width / 2;\n return (\n `M${round(x0)},${round(y0 - half)}C${round(middle)},${round(y0 - half)} ${round(middle)},${round(y1 - half)} ${round(x1)},${round(y1 - half)}` +\n `L${round(x1)},${round(y1 + half)}C${round(middle)},${round(y1 + half)} ${round(middle)},${round(y0 + half)} ${round(x0)},${round(y0 + half)}Z`\n );\n}\n\n/** Vertical position of the link centre line at a horizontal position `x`. */\nexport function sankeyLinkY(x0: number, y0: number, x1: number, y1: number, x: number): number {\n if (x <= x0) return y0;\n if (x >= x1) return y1;\n let low = 0;\n let high = 1;\n for (let step = 0; step < 24; step++) {\n const t = (low + high) / 2;\n const at = (1 - t) ** 3 * x0 + 3 * (1 - t) ** 2 * t * ((x0 + x1) / 2) + 3 * (1 - t) * t ** 2 * ((x0 + x1) / 2) + t ** 3 * x1;\n if (at < x) low = t;\n else high = t;\n }\n const t = (low + high) / 2;\n return (1 - t) ** 3 * y0 + 3 * (1 - t) ** 2 * t * y0 + 3 * (1 - t) * t ** 2 * y1 + t ** 3 * y1;\n}\n\n/** Positions nodes in columns and sizes the links; cycles are broken and invalid links dropped. */\nexport function sankeyLayout(nodesInput: readonly TxSankeyNode[], linksInput: readonly TxSankeyLink[], options: TxSankeyOptions): TxSankeyLayout {\n const ids: string[] = [];\n const add = (id: string) => {\n if (!ids.includes(id)) ids.push(id);\n };\n nodesInput.forEach((node) => add(node.id));\n const valid = linksInput.filter((link) => link.source !== link.target && Number.isFinite(link.value) && link.value > 0);\n valid.forEach((link) => {\n add(link.source);\n add(link.target);\n });\n const meta = new Map(nodesInput.map((node) => [node.id, node]));\n const outgoing = ids.map(() => [] as number[]);\n const incoming = ids.map(() => [] as number[]);\n const linkPairs = valid.map((link) => ({ link, source: ids.indexOf(link.source), target: ids.indexOf(link.target) }));\n\n const depth = ids.map(() => 0);\n const order: number[] = [];\n const state = ids.map(() => 0);\n const kept: typeof linkPairs = [];\n const visit = (node: number) => {\n state[node] = 1;\n for (const pair of linkPairs) {\n if (pair.source !== node) continue;\n if (state[pair.target] === 1) continue;\n kept.push(pair);\n if (state[pair.target] === 0) visit(pair.target);\n }\n state[node] = 2;\n order.unshift(node);\n };\n ids.forEach((_, node) => {\n if (state[node] === 0 && !linkPairs.some((pair) => pair.target === node)) visit(node);\n });\n ids.forEach((_, node) => {\n if (state[node] === 0) visit(node);\n });\n const links = linkPairs.filter((pair) => kept.includes(pair));\n links.forEach((pair, index) => {\n outgoing[pair.source].push(index);\n incoming[pair.target].push(index);\n });\n for (const node of order) {\n for (const index of outgoing[node]) {\n const target = links[index].target;\n depth[target] = Math.max(depth[target], depth[node] + 1);\n }\n }\n const columns = Math.max(1, ...depth.map((value) => value + 1));\n if ((options.align ?? 'justify') === 'justify') {\n ids.forEach((_, node) => {\n if (!outgoing[node].length && incoming[node].length) depth[node] = columns - 1;\n });\n }\n\n const sum = (list: number[]) => list.reduce((total, index) => total + links[index].link.value, 0);\n const values = ids.map((_, node) => Math.max(sum(incoming[node]), sum(outgoing[node])));\n const byColumn = Array.from({ length: columns }, (_, column) => ids.map((_, node) => node).filter((node) => depth[node] === column));\n const padding = options.nodePadding;\n const ky = Math.min(\n ...byColumn.filter((column) => column.length).map((column) => (options.height - (column.length - 1) * padding) / Math.max(1e-9, column.reduce((total, node) => total + values[node], 0))),\n );\n const step = columns > 1 ? (options.width - options.nodeWidth) / (columns - 1) : 0;\n const height = values.map((value) => Math.max(1, value * ky));\n const y = ids.map(() => 0);\n byColumn.forEach((column, at) => {\n if (at) {\n const weight = (node: number) => {\n const total = incoming[node].reduce((acc, index) => acc + links[index].link.value, 0);\n return total ? incoming[node].reduce((acc, index) => acc + (y[links[index].source] + height[links[index].source] / 2) * links[index].link.value, 0) / total : Infinity;\n };\n const order = new Map(column.map((node) => [node, weight(node)]));\n column.sort((a, b) => (order.get(a) ?? 0) - (order.get(b) ?? 0));\n }\n let cursor = 0;\n column.forEach((node) => {\n y[node] = cursor;\n cursor += height[node] + padding;\n });\n });\n\n const center = (node: number) => y[node] + height[node] / 2;\n const resolve = (column: number[]) => {\n column.sort((a, b) => y[a] - y[b]);\n let cursor = 0;\n for (const node of column) {\n y[node] = Math.max(y[node], cursor);\n cursor = y[node] + height[node] + padding;\n }\n let limit = options.height;\n for (let at = column.length - 1; at >= 0; at--) {\n const node = column[at];\n y[node] = Math.min(y[node], limit - height[node]);\n limit = y[node] - padding;\n }\n cursor = 0;\n for (const node of column) {\n y[node] = Math.max(y[node], cursor);\n cursor = y[node] + height[node] + padding;\n }\n };\n const iterations = options.iterations ?? 24;\n for (let pass = 0; pass < iterations; pass++) {\n const weight = 0.99 ** pass;\n const forward = pass % 2 === 0;\n const columnsOrder = forward ? byColumn.slice(1) : byColumn.slice(0, -1).reverse();\n for (const column of columnsOrder) {\n for (const node of column) {\n const related = forward ? incoming[node].map((index) => links[index].source) : outgoing[node].map((index) => links[index].target);\n const linked = forward ? incoming[node] : outgoing[node];\n if (!related.length) continue;\n const total = linked.reduce((acc, index) => acc + links[index].link.value, 0);\n const target = linked.reduce((acc, index, at) => acc + center(related[at]) * links[index].link.value, 0) / Math.max(1e-9, total);\n y[node] += (target - center(node)) * weight;\n }\n resolve(column);\n }\n }\n\n const top = options.top ?? 0;\n const layoutNodes: TxSankeyLayoutNode[] = ids.map((id, node) => ({\n id,\n index: node,\n label: meta.get(id)?.label ?? id,\n color: seriesColor(meta.get(id)?.color, node),\n depth: depth[node],\n value: values[node],\n incoming: sum(incoming[node]),\n outgoing: sum(outgoing[node]),\n x: round(depth[node] * step),\n y: round(y[node] + top),\n width: options.nodeWidth,\n height: round(height[node]),\n }));\n\n const sourceOffset = ids.map(() => 0);\n const targetOffset = ids.map(() => 0);\n const sorted = links.map((_, index) => index);\n const byTarget = [...sorted].sort((a, b) => center(links[a].target) - center(links[b].target));\n const bySource = [...sorted].sort((a, b) => center(links[a].source) - center(links[b].source));\n const y0 = links.map(() => 0);\n const y1 = links.map(() => 0);\n for (const index of byTarget) {\n const pair = links[index];\n const width = pair.link.value * ky;\n y0[index] = y[pair.source] + top + sourceOffset[pair.source] + width / 2;\n sourceOffset[pair.source] += width;\n }\n for (const index of bySource) {\n const pair = links[index];\n const width = pair.link.value * ky;\n y1[index] = y[pair.target] + top + targetOffset[pair.target] + width / 2;\n targetOffset[pair.target] += width;\n }\n const layoutLinks: TxSankeyLayoutLink[] = links.map((pair, index) => {\n const source = layoutNodes[pair.source];\n const target = layoutNodes[pair.target];\n return {\n index,\n key: `${source.id}>${target.id}`,\n source,\n target,\n value: pair.link.value,\n width: round(Math.max(1, pair.link.value * ky)),\n y0: round(y0[index]),\n y1: round(y1[index]),\n path: sankeyRibbonPath(source.x + source.width, y0[index], target.x, y1[index], Math.max(1, pair.link.value * ky)),\n color: pair.link.color ?? source.color,\n };\n });\n return { nodes: layoutNodes, links: layoutLinks, columns };\n}\n\n/** Settings of `sankeyLabels`. */\nexport interface TxSankeyLabelOptions {\n /** Width of the area, in px. */\n width: number;\n /** Gap between a node and its label, in px. */\n labelGap: number;\n /** Font size of the labels, in px. */\n fontSize: number;\n /** Formatted value of each node by its index; empty strings hide values. */\n values: readonly string[];\n /** Narrowest shortened name worth showing, in px (default 40). */\n minWidth?: number;\n}\n\ninterface Box {\n left: number;\n right: number;\n top: number;\n bottom: number;\n}\n\nconst VALUE_GAP = 5;\n\ninterface Placed {\n anchor: 'start' | 'end';\n label: string;\n value: string;\n box: Box;\n}\n\n/**\n * Places the node labels so they stay inside the area and clear of the nodes and of each other: the last column on\n * the left of its nodes, the others on the right; a label that does not fit moves to the other side, drops its value,\n * is shortened with an ellipsis or, when even that does not fit, is hidden.\n */\nexport function sankeyLabels(nodes: readonly TxSankeyLayoutNode[], options: TxSankeyLabelOptions): TxSankeyLabel[] {\n const { width, labelGap, fontSize, values } = options;\n const minWidth = options.minWidth ?? 40;\n const last = Math.max(0, ...nodes.map((node) => node.depth));\n const half = fontSize * 0.6;\n const nodeBoxes: Box[] = nodes.map((node) => ({ left: node.x, right: node.x + node.width, top: node.y, bottom: node.y + node.height }));\n const placed: Box[] = [];\n const overlaps = (box: Box, others: readonly Box[]) => others.some((other) => box.left < other.right && box.right > other.left && box.top < other.bottom && box.bottom > other.top);\n const order = nodes.map((_, index) => index).sort((a, b) => nodes[b].depth - nodes[a].depth || nodes[a].y - nodes[b].y);\n const result = new Map<number, TxSankeyLabel>();\n\n for (const index of order) {\n const node = nodes[index];\n const y = node.y + node.height / 2;\n const value = values[index];\n const preferBefore = node.depth === last && last > 0;\n const sides: ('start' | 'end')[] = preferBefore ? ['end', 'start'] : ['start', 'end'];\n const boxFor = (anchor: 'start' | 'end', textSize: number): Box => {\n const x = anchor === 'end' ? node.x - labelGap : node.x + node.width + labelGap;\n return { left: anchor === 'end' ? x - textSize : x, right: anchor === 'end' ? x : x + textSize, top: y - half, bottom: y + half };\n };\n const fits = (box: Box) => box.left >= 0 && box.right <= width && !overlaps(box, nodeBoxes) && !overlaps(box, placed);\n const labelSize = textWidth(node.label, fontSize);\n const variants = [...(value ? [{ value, size: labelSize + VALUE_GAP + textWidth(value, fontSize) }] : []), { value: '', size: labelSize }];\n const whole = (): Placed | null => {\n for (const variant of variants) {\n for (const anchor of sides) {\n const box = boxFor(anchor, variant.size);\n if (fits(box)) return { anchor, label: node.label, value: variant.value, box };\n }\n }\n return null;\n };\n const shortened = (): Placed | null => {\n for (const anchor of sides) {\n const start = boxFor(anchor, 0);\n const room = roomFor(start, anchor, width, [...nodeBoxes, ...placed]);\n if (room < minWidth || overlaps(start, placed)) continue;\n const label = truncateText(node.label, room, fontSize);\n return { anchor, label, value: '', box: boxFor(anchor, textWidth(label, fontSize)) };\n }\n return null;\n };\n const chosen = whole() ?? shortened();\n if (chosen) placed.push(chosen.box);\n const x = (chosen?.anchor ?? sides[0]) === 'end' ? node.x - labelGap : node.x + node.width + labelGap;\n result.set(index, { key: node.id, x, y, anchor: chosen?.anchor ?? sides[0], label: chosen?.label ?? '', value: chosen?.value ?? '' });\n }\n return nodes.map((_, index) => result.get(index) as TxSankeyLabel);\n}\n\nfunction roomFor(start: Box, anchor: 'start' | 'end', width: number, others: readonly Box[]): number {\n let limit = anchor === 'end' ? 0 : width;\n for (const other of others) {\n if (other.top >= start.bottom || other.bottom <= start.top) continue;\n if (anchor === 'end' && other.right <= start.left) limit = Math.max(limit, other.right);\n if (anchor === 'start' && other.left >= start.right) limit = Math.min(limit, other.left);\n }\n return anchor === 'end' ? start.left - limit : limit - start.right;\n}\n","import { TxIconSet, txIconChartBar, txIconLink } from '@tectra-ng/icons';\n\nexport const SANKEY_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n link: txIconLink,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const SANKEY_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxChartFrame,\n TxChartHeight,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n chartNumberFormatter,\n initialChartSize,\n injectChartEntrance,\n readTokenNumber,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { sankeyLabels, sankeyLayout, sankeyLinkY } from './sankey-layout';\nimport { TxSankeyAlign, TxSankeyChartPart, TxSankeyLayoutLink, TxSankeyLayoutNode, TxSankeyLink, TxSankeyLinkEvent, TxSankeyNode, TxSankeyNodeEvent } from './sankey-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { SANKEY_ICON_DEFAULTS } from './sankey.icons';\nimport { SANKEY_THEME } from './sankey.theme';\n\nconst DEFAULTS = { nodeWidth: 12, nodePadding: 14, labelGap: 8, fontSize: 12 };\nconst PADDING = 4;\nconst HIT_SLACK = 3;\n\n/** The node or the link that is hovered or focused, by index. */\ntype TxSankeyActive = { kind: 'node'; index: number } | { kind: 'link'; index: number };\n\n@Component({\n selector: 'tx-sankey-chart',\n imports: [TxChartFrame],\n templateUrl: './sankey-chart.component.html',\n styleUrl: './sankey-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-sankey-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-sankey-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-sankey-chart--entering]': 'entrance.active()',\n '[class.tx-sankey-chart--morph]': 'morph()',\n '[class.tx-sankey-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(SANKEY_ICON_DEFAULTS)],\n})\nexport class TxSankeyChart {\n private readonly sankeyTheme = injectTokens(SANKEY_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly nodes = input<readonly TxSankeyNode[] | null | undefined>([]);\n readonly links = input<readonly TxSankeyLink[] | null | undefined>([]);\n readonly height = input<TxChartHeight>(360);\n readonly align = input<TxSankeyAlign>('justify');\n readonly showValues = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxSankeyChartPart, TxSankeyChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly nodeClick = output<TxSankeyNodeEvent>();\n readonly linkClick = output<TxSankeyLinkEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('sankeyChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n readonly active = signal<TxSankeyActive | null>(null);\n readonly geometry = signal(DEFAULTS);\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly size = linkedSignal(() => initialChartSize(this.height(), null, undefined, this.toolbar()));\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly percentFormatter = computed(() => chartNumberFormatter(this.intl(), 'percent'));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const { nodeWidth, nodePadding } = this.geometry();\n return sankeyLayout(this.nodes() ?? [], this.links() ?? [], { width: Math.max(1, width), height: Math.max(1, height - PADDING * 2), nodeWidth, nodePadding, align: this.align(), top: PADDING });\n });\n\n readonly isEmpty = computed(() => !this.layout().links.length);\n readonly drawnLinks = computed(() => [...this.layout().links].sort((a, b) => b.width - a.width));\n\n readonly labels = computed(() => {\n const { labelGap, fontSize } = this.geometry();\n const nodes = this.layout().nodes;\n const values = nodes.map((node) => (this.showValues() ? this.valueFormatter()(node.value) : ''));\n return sankeyLabels(nodes, { width: this.size().width, labelGap, fontSize, values }).filter((label) => label.label);\n });\n\n readonly related = computed(() => {\n const active = this.active();\n const layout = this.layout();\n if (!active) return null;\n if (active.kind === 'link') {\n const link = layout.links[active.index];\n return link ? { links: new Set([link.index]), nodes: new Set([link.source.index, link.target.index]) } : null;\n }\n const links = layout.links.filter((link) => link.source.index === active.index || link.target.index === active.index);\n return { links: new Set(links.map((link) => link.index)), nodes: new Set([active.index, ...links.flatMap((link) => [link.source.index, link.target.index])]) };\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip()) return null;\n const t = this.translations();\n const format = this.valueFormatter();\n if (active.kind === 'node') {\n const node = this.layout().nodes[active.index];\n if (!node) return null;\n const rows = [\n ...(node.incoming ? [{ label: t.chartIncoming, value: format(node.incoming), color: node.color, raw: node.incoming, seriesIndex: 0 }] : []),\n ...(node.outgoing ? [{ label: t.chartOutgoing, value: format(node.outgoing), color: node.incoming ? 'transparent' : node.color, raw: node.outgoing, seriesIndex: 1 }] : []),\n ];\n return { title: node.label, rows, index: active.index, x: node.x + node.width / 2, y: node.y, placement: 'top' };\n }\n const link = this.layout().links[active.index];\n if (!link) return null;\n const share = link.source.outgoing ? (link.value / link.source.outgoing) * 100 : 0;\n const x = (link.source.x + link.source.width + link.target.x) / 2;\n return {\n title: formatMessage(t.chartFlow, { source: link.source.label, target: link.target.label }),\n rows: [{ label: t.chartValue, value: format(link.value), share: this.percentFormatter()(Number(share.toFixed(1))), color: link.color, raw: link.value, seriesIndex: 0 }],\n index: active.index,\n x,\n y: sankeyLinkY(link.source.x + link.source.width, link.y0, link.target.x, link.y1, x) - link.width / 2,\n placement: 'top',\n };\n });\n\n readonly order = computed(() => [...this.layout().nodes].sort((a, b) => a.depth - b.depth || a.y - b.y).map((node) => node.index));\n\n readonly summary = computed(() => {\n const t = this.translations();\n const text = `${t.chartSankey}, ${formatMessage(t.chartFlows, { count: this.layout().links.length }, this.intl())}`;\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n return {\n columns: [{ key: 'value', label: t.chartValue }],\n rows: this.layout().links.map((link) => ({ label: formatMessage(t.chartFlow, { source: link.source.label, target: link.target.label }), cells: [this.valueFormatter()(link.value)] })),\n };\n });\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n this.readGeometry();\n });\n }\n\n isNodeDimmed(node: TxSankeyLayoutNode): boolean {\n const related = this.related();\n return !!related && !related.nodes.has(node.index);\n }\n\n isLinkLit(link: TxSankeyLayoutLink): boolean {\n return !!this.related()?.links.has(link.index);\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const hit = this.hitTest(event.x, event.y);\n this.active.set(hit);\n if (event.type !== 'click' || !hit) return;\n if (hit.kind === 'node') {\n const node = this.layout().nodes[hit.index];\n this.nodeClick.emit({ id: node.id, label: node.label, incoming: node.incoming, outgoing: node.outgoing });\n } else {\n const link = this.layout().links[hit.index];\n this.linkClick.emit({ source: link.source.id, target: link.target.id, value: link.value });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const order = this.order();\n if (!order.length) return;\n const current = this.active();\n const at = current?.kind === 'node' ? order.indexOf(current.index) : -1;\n const forward = event.key === 'ArrowRight' || event.key === 'ArrowDown';\n if (!['ArrowRight', 'ArrowDown', 'ArrowLeft', 'ArrowUp', 'Home', 'End'].includes(event.key)) return;\n const next = event.key === 'Home' ? 0 : event.key === 'End' ? order.length - 1 : at < 0 ? (forward ? 0 : order.length - 1) : Math.max(0, Math.min(order.length - 1, at + (forward ? 1 : -1)));\n const node = this.layout().nodes[order[next]];\n this.active.set({ kind: 'node', index: node.index });\n const t = this.translations();\n const format = this.valueFormatter();\n const parts = [node.incoming ? `${t.chartIncoming} ${format(node.incoming)}` : '', node.outgoing ? `${t.chartOutgoing} ${format(node.outgoing)}` : ''].filter(Boolean);\n this.frame()?.announce(`${node.label}: ${parts.join(', ')}`);\n }\n\n private hitTest(x: number, y: number): TxSankeyActive | null {\n const layout = this.layout();\n const node = layout.nodes.find((item) => x >= item.x - HIT_SLACK && x <= item.x + item.width + HIT_SLACK && y >= item.y - HIT_SLACK && y <= item.y + item.height + HIT_SLACK);\n if (node) return { kind: 'node', index: node.index };\n let best: TxSankeyLayoutLink | null = null;\n for (const link of layout.links) {\n const x0 = link.source.x + link.source.width;\n const x1 = link.target.x;\n if (x < x0 || x > x1) continue;\n const centre = sankeyLinkY(x0, link.y0, x1, link.y1, x);\n if (Math.abs(y - centre) <= link.width / 2 + 1 && (!best || link.width < best.width)) best = link;\n }\n return best ? { kind: 'link', index: best.index } : null;\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n nodeWidth: readTokenNumber(element, '--tx-chart-sankey-node-width', DEFAULTS.nodeWidth),\n nodePadding: readTokenNumber(element, '--tx-chart-sankey-node-padding', DEFAULTS.nodePadding),\n labelGap: readTokenNumber(element, '--tx-chart-sankey-label-gap', DEFAULTS.labelGap),\n fontSize: readTokenNumber(element, '--tx-chart-sankey-label-font-size', DEFAULTS.fontSize),\n };\n const current = this.geometry();\n if ((Object.keys(next) as (keyof typeof next)[]).some((key) => next[key] !== current[key])) this.geometry.set(next);\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [showLegend]=\"false\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g class=\"tx-sankey-chart__links\">\n @for (link of drawnLinks(); track link.key) {\n <svg:path\n class=\"tx-sankey-chart__link\"\n [class.tx-sankey-chart__link--lit]=\"isLinkLit(link)\"\n [class]=\"passThrough().link?.class\"\n [style]=\"passThrough().link?.style\"\n [attr.data-link]=\"link.key\"\n [attr.d]=\"link.path\"\n [style.--tx-sankey-chart-color]=\"link.color\"\n />\n }\n </svg:g>\n <svg:g class=\"tx-sankey-chart__nodes\">\n @for (node of layout().nodes; track node.id) {\n <svg:rect\n class=\"tx-sankey-chart__node\"\n [class.tx-sankey-chart__node--dimmed]=\"isNodeDimmed(node)\"\n [class]=\"passThrough().node?.class\"\n [style]=\"passThrough().node?.style\"\n [attr.data-node]=\"node.id\"\n [attr.x]=\"node.x\"\n [attr.y]=\"node.y\"\n [attr.width]=\"node.width\"\n [attr.height]=\"node.height\"\n [style.fill]=\"node.color\"\n [style.--tx-sankey-chart-order]=\"node.depth\"\n />\n }\n </svg:g>\n <svg:g class=\"tx-sankey-chart__labels\">\n @for (label of labels(); track label.key) {\n <svg:text\n class=\"tx-sankey-chart__label\"\n [class]=\"passThrough().label?.class\"\n [style]=\"passThrough().label?.style\"\n dominant-baseline=\"central\"\n [attr.x]=\"label.x\"\n [attr.y]=\"label.y\"\n [attr.text-anchor]=\"label.anchor\"\n >\n {{ label.label }}\n @if (label.value) {\n <svg:tspan class=\"tx-sankey-chart__value\" dx=\"5\">{{ label.value }}</svg:tspan>\n }\n </svg:text>\n }\n </svg:g>\n</tx-chart-frame>\n"],"mappings":";;;;;;;;AAqBA,MAAM,SAAS,UAAkB,KAAK,MAAM,QAAQ,GAAG,IAAI;AAG3D,SAAgB,eAAe,IAAY,IAAY,IAAY,IAAU;CAC3E,MAAM,UAAU,KAAK,MAAM;CAC3B,OAAO,IAAI,MAAM,EAAE,EAAC,GAAI,MAAM,EAAE,EAAC,GAAI,MAAM,MAAM,EAAC,GAAI,MAAM,EAAE,EAAC,GAAI,MAAM,MAAM,EAAC,GAAI,MAAM,EAAE,EAAC,GAAI,MAAM,EAAE,EAAC,GAAI,MAAM,EAAE;AACxH;AAGA,SAAgB,iBAAiB,IAA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class TxScatterChart {
528
528
  }
529
529
  static ɵfac = i0.ɵɵngDeclareFactory({
530
530
  minVersion: "12.0.0",
531
- version: "22.2.5",
531
+ version: "22.2.6",
532
532
  ngImport: i0,
533
533
  type: TxScatterChart,
534
534
  deps: [],
@@ -536,7 +536,7 @@ var TxScatterChart = class TxScatterChart {
536
536
  });
537
537
  static ɵcmp = i0.ɵɵngDeclareComponent({
538
538
  minVersion: "17.0.0",
539
- version: "22.2.5",
539
+ version: "22.2.6",
540
540
  type: TxScatterChart,
541
541
  isStandalone: true,
542
542
  selector: "tx-scatter-chart",
@@ -873,7 +873,7 @@ var TxScatterChart = class TxScatterChart {
873
873
  };
874
874
  i0.ɵɵngDeclareClassMetadata({
875
875
  minVersion: "12.0.0",
876
- version: "22.2.5",
876
+ version: "22.2.6",
877
877
  ngImport: i0,
878
878
  type: TxScatterChart,
879
879
  decorators: [{