@tectra-ng/charts 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +44 -1
- package/bar-list/README.md +30 -0
- package/boxplot/README.md +62 -0
- package/bullet/README.md +53 -0
- package/candlestick/README.md +57 -0
- package/column/README.md +73 -0
- package/combo/README.md +83 -0
- package/core/README.md +62 -0
- package/fesm2022/tectra-ng-charts-bar-list.mjs +299 -0
- package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-boxplot.mjs +887 -0
- package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-bullet.mjs +666 -0
- package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-candlestick.mjs +778 -0
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-column.mjs +1166 -0
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-combo.mjs +1218 -0
- package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-core.mjs +3679 -0
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-funnel.mjs +694 -0
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-gantt.mjs +947 -0
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-gauge.mjs +693 -0
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-heatmap.mjs +935 -0
- package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-line.mjs +1541 -0
- package/fesm2022/tectra-ng-charts-line.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-org-chart.mjs +2341 -0
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-pie.mjs +1059 -0
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-radar.mjs +924 -0
- package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +802 -0
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-range-area.mjs +933 -0
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-rank-line.mjs +660 -0
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-sankey.mjs +837 -0
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-scatter.mjs +1174 -0
- package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +328 -0
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-sunburst.mjs +733 -0
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-treemap.mjs +674 -0
- package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-waterfall.mjs +809 -0
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts.mjs +4 -0
- package/fesm2022/tectra-ng-charts.mjs.map +1 -0
- package/funnel/README.md +53 -0
- package/gantt/README.md +53 -0
- package/gauge/README.md +41 -0
- package/heatmap/README.md +47 -0
- package/line/README.md +86 -0
- package/org-chart/README.md +57 -0
- package/package.json +173 -4
- package/pie/README.md +66 -0
- package/radar/README.md +64 -0
- package/radial-bar/README.md +62 -0
- package/range-area/README.md +66 -0
- package/rank-line/README.md +51 -0
- package/sankey/README.md +52 -0
- package/scatter/README.md +71 -0
- package/segmented-bar/README.md +35 -0
- package/sunburst/README.md +55 -0
- package/treemap/README.md +47 -0
- package/types/tectra-ng-charts-bar-list.d.ts +724 -0
- package/types/tectra-ng-charts-bar-list.d.ts.map +1 -0
- package/types/tectra-ng-charts-boxplot.d.ts +882 -0
- package/types/tectra-ng-charts-boxplot.d.ts.map +1 -0
- package/types/tectra-ng-charts-bullet.d.ts +833 -0
- package/types/tectra-ng-charts-bullet.d.ts.map +1 -0
- package/types/tectra-ng-charts-candlestick.d.ts +854 -0
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -0
- package/types/tectra-ng-charts-column.d.ts +951 -0
- package/types/tectra-ng-charts-column.d.ts.map +1 -0
- package/types/tectra-ng-charts-combo.d.ts +987 -0
- package/types/tectra-ng-charts-combo.d.ts.map +1 -0
- package/types/tectra-ng-charts-core.d.ts +859 -0
- package/types/tectra-ng-charts-core.d.ts.map +1 -0
- package/types/tectra-ng-charts-funnel.d.ts +857 -0
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -0
- package/types/tectra-ng-charts-gantt.d.ts +884 -0
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -0
- package/types/tectra-ng-charts-gauge.d.ts +859 -0
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -0
- package/types/tectra-ng-charts-heatmap.d.ts +914 -0
- package/types/tectra-ng-charts-heatmap.d.ts.map +1 -0
- package/types/tectra-ng-charts-line.d.ts +1023 -0
- package/types/tectra-ng-charts-line.d.ts.map +1 -0
- package/types/tectra-ng-charts-org-chart.d.ts +1017 -0
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -0
- package/types/tectra-ng-charts-pie.d.ts +983 -0
- package/types/tectra-ng-charts-pie.d.ts.map +1 -0
- package/types/tectra-ng-charts-radar.d.ts +903 -0
- package/types/tectra-ng-charts-radar.d.ts.map +1 -0
- package/types/tectra-ng-charts-radial-bar.d.ts +886 -0
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -0
- package/types/tectra-ng-charts-range-area.d.ts +897 -0
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -0
- package/types/tectra-ng-charts-rank-line.d.ts +839 -0
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -0
- package/types/tectra-ng-charts-sankey.d.ts +866 -0
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -0
- package/types/tectra-ng-charts-scatter.d.ts +987 -0
- package/types/tectra-ng-charts-scatter.d.ts.map +1 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts +751 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -0
- package/types/tectra-ng-charts-sunburst.d.ts +864 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -0
- package/types/tectra-ng-charts-treemap.d.ts +847 -0
- package/types/tectra-ng-charts-treemap.d.ts.map +1 -0
- package/types/tectra-ng-charts-waterfall.d.ts +869 -0
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -0
- package/types/tectra-ng-charts.d.ts +2 -0
- package/types/tectra-ng-charts.d.ts.map +1 -0
- package/waterfall/README.md +60 -0
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
import { TxChartAxes, TxChartFrame, TxChartLegendTemplate, TxChartTooltipTemplate, cartesianLayout, chartSummary, dateFormat, initialChartSize, injectChartEntrance, linePath, toTime, toggleKey } from "@tectra-ng/charts/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
|
+
import { TxLocaleService, injectTranslations } from "@tectra-ng/core/i18n";
|
|
6
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
7
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
8
|
+
const TX_RANK_LINE_COLORS = 12;
|
|
9
|
+
function rankLineColor(index) {
|
|
10
|
+
return `var(--tx-chart-rank-line-color${(index % 12 + 12) % 12 + 1})`;
|
|
11
|
+
}
|
|
12
|
+
function rankTickStep(maxRank) {
|
|
13
|
+
return maxRank > 20 ? 10 : 5;
|
|
14
|
+
}
|
|
15
|
+
function rankTimeExtent(series) {
|
|
16
|
+
let min = Infinity;
|
|
17
|
+
let max = -Infinity;
|
|
18
|
+
for (const item of series) for (const point of item.points) {
|
|
19
|
+
const time = toTime(point.time);
|
|
20
|
+
if (time !== null) {
|
|
21
|
+
min = Math.min(min, time);
|
|
22
|
+
max = Math.max(max, time);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (!Number.isFinite(min)) return null;
|
|
26
|
+
return min === max ? [min - 432e5, max + 432e5] : [min, max];
|
|
27
|
+
}
|
|
28
|
+
function rankY(rank, maxRank, top, height) {
|
|
29
|
+
return top + (maxRank > 0 ? Math.min(Math.max(rank, 0), maxRank) / maxRank * height : 0);
|
|
30
|
+
}
|
|
31
|
+
const HIT_DISTANCE = 24;
|
|
32
|
+
var TxRankChart = class TxRankChart {
|
|
33
|
+
locale = inject(TxLocaleService);
|
|
34
|
+
translations = injectTranslations();
|
|
35
|
+
series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
|
|
36
|
+
maxRank = input(20, ...ngDevMode ? [{ debugName: "maxRank" }] : /* istanbul ignore next */ []);
|
|
37
|
+
rankLabel = input("", ...ngDevMode ? [{ debugName: "rankLabel" }] : /* istanbul ignore next */ []);
|
|
38
|
+
height = input(360, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
39
|
+
showLegend = input(false, {
|
|
40
|
+
...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
|
|
41
|
+
transform: booleanAttribute
|
|
42
|
+
});
|
|
43
|
+
legendPosition = input("top", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
|
|
44
|
+
legendAlign = input("start", ...ngDevMode ? [{ debugName: "legendAlign" }] : /* istanbul ignore next */ []);
|
|
45
|
+
legendVariant = input("line", ...ngDevMode ? [{ debugName: "legendVariant" }] : /* istanbul ignore next */ []);
|
|
46
|
+
showTooltip = input(true, {
|
|
47
|
+
...ngDevMode ? { debugName: "showTooltip" } : /* istanbul ignore next */ {},
|
|
48
|
+
transform: booleanAttribute
|
|
49
|
+
});
|
|
50
|
+
loading = input(false, {
|
|
51
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
52
|
+
transform: booleanAttribute
|
|
53
|
+
});
|
|
54
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
55
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
56
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
57
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
58
|
+
unstyled = input(void 0, {
|
|
59
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
60
|
+
transform: optionalBoolean
|
|
61
|
+
});
|
|
62
|
+
pointClick = output();
|
|
63
|
+
seriesToggle = output();
|
|
64
|
+
legendTemplate = contentChild(TxChartLegendTemplate, ...ngDevMode ? [{ debugName: "legendTemplate" }] : /* istanbul ignore next */ []);
|
|
65
|
+
tooltipTemplate = contentChild(TxChartTooltipTemplate, ...ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []);
|
|
66
|
+
frame = viewChild(TxChartFrame, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
|
|
67
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
68
|
+
passThrough = injectPassThrough("rankChart", this, this.pt, this.ptOptions);
|
|
69
|
+
tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-chart"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
|
|
70
|
+
hostStyle = computed(() => ({
|
|
71
|
+
...this.tokenStyle(),
|
|
72
|
+
...this.passThrough().root?.style
|
|
73
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
74
|
+
entrance = injectChartEntrance();
|
|
75
|
+
hidden = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
|
|
76
|
+
active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
77
|
+
legendShown = computed(() => this.showLegend() && (this.series() ?? []).length > 0, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
|
|
78
|
+
size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
79
|
+
intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
|
|
80
|
+
list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
|
|
81
|
+
keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`), ...ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []);
|
|
82
|
+
colors = computed(() => this.list().map((item, index) => item.color || rankLineColor(index)), ...ngDevMode ? [{ debugName: "colors" }] : /* istanbul ignore next */ []);
|
|
83
|
+
extent = computed(() => rankTimeExtent(this.list()), ...ngDevMode ? [{ debugName: "extent" }] : /* istanbul ignore next */ []);
|
|
84
|
+
isEmpty = computed(() => !this.list().some((item) => item.points.some((point) => point.rank !== null && toTime(point.time) !== null)), ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
|
|
85
|
+
dateTimeFormat = computed(() => dateFormat(this.intl(), {
|
|
86
|
+
dateStyle: "medium",
|
|
87
|
+
timeStyle: "short"
|
|
88
|
+
}), ...ngDevMode ? [{ debugName: "dateTimeFormat" }] : /* istanbul ignore next */ []);
|
|
89
|
+
layout = computed(() => {
|
|
90
|
+
const { width, height } = this.size();
|
|
91
|
+
const maxRank = Math.max(1, this.maxRank());
|
|
92
|
+
const base = cartesianLayout({
|
|
93
|
+
width,
|
|
94
|
+
height,
|
|
95
|
+
intl: this.intl(),
|
|
96
|
+
category: {
|
|
97
|
+
kind: "time",
|
|
98
|
+
domain: this.extent() ?? [0, 1]
|
|
99
|
+
},
|
|
100
|
+
value: {
|
|
101
|
+
extent: [0, maxRank],
|
|
102
|
+
min: 0,
|
|
103
|
+
max: maxRank,
|
|
104
|
+
tickCount: Math.ceil(maxRank / rankTickStep(maxRank)),
|
|
105
|
+
format: (value) => String(Math.max(1, Math.round(value)))
|
|
106
|
+
},
|
|
107
|
+
grid: "value"
|
|
108
|
+
});
|
|
109
|
+
const { plot } = base;
|
|
110
|
+
const mirror = (y) => plot.top * 2 + plot.height - y;
|
|
111
|
+
return {
|
|
112
|
+
plot,
|
|
113
|
+
axes: {
|
|
114
|
+
...base.axes,
|
|
115
|
+
grid: base.axes.grid.map((line) => ({
|
|
116
|
+
...line,
|
|
117
|
+
y1: mirror(line.y1),
|
|
118
|
+
y2: mirror(line.y2)
|
|
119
|
+
})),
|
|
120
|
+
axes: base.axes.axes.map((axis) => axis.position === "left" || axis.position === "right" ? {
|
|
121
|
+
...axis,
|
|
122
|
+
labels: axis.labels.map((label) => ({
|
|
123
|
+
...label,
|
|
124
|
+
y: mirror(label.y)
|
|
125
|
+
}))
|
|
126
|
+
} : axis)
|
|
127
|
+
},
|
|
128
|
+
x: (time) => base.categoryPosition(0, time),
|
|
129
|
+
maxRank
|
|
130
|
+
};
|
|
131
|
+
}, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
|
|
132
|
+
lines = computed(() => {
|
|
133
|
+
const { plot, x, maxRank } = this.layout();
|
|
134
|
+
const hidden = this.hidden();
|
|
135
|
+
return this.list().flatMap((item, series) => {
|
|
136
|
+
const key = this.keys()[series];
|
|
137
|
+
if (hidden.has(key)) return [];
|
|
138
|
+
const markers = [];
|
|
139
|
+
const points = item.points.map((point, index) => {
|
|
140
|
+
const time = toTime(point.time);
|
|
141
|
+
if (time === null || point.rank === null || !Number.isFinite(point.rank)) return null;
|
|
142
|
+
const marker = {
|
|
143
|
+
key: `${series}-${index}`,
|
|
144
|
+
series,
|
|
145
|
+
point: index,
|
|
146
|
+
x: x(time),
|
|
147
|
+
y: rankY(point.rank, maxRank, plot.top, plot.height),
|
|
148
|
+
time,
|
|
149
|
+
rank: point.rank,
|
|
150
|
+
note: point.note
|
|
151
|
+
};
|
|
152
|
+
markers.push(marker);
|
|
153
|
+
return {
|
|
154
|
+
x: marker.x,
|
|
155
|
+
y: marker.y
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
return [{
|
|
159
|
+
key,
|
|
160
|
+
series,
|
|
161
|
+
color: this.colors()[series],
|
|
162
|
+
path: linePath(points, "straight"),
|
|
163
|
+
markers
|
|
164
|
+
}];
|
|
165
|
+
});
|
|
166
|
+
}, ...ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []);
|
|
167
|
+
markers = computed(() => this.lines().flatMap((line) => line.markers).sort((a, b) => a.time - b.time || a.series - b.series), ...ngDevMode ? [{ debugName: "markers" }] : /* istanbul ignore next */ []);
|
|
168
|
+
activeMarker = computed(() => this.markers().find((marker) => marker.key === this.active()) ?? null, ...ngDevMode ? [{ debugName: "activeMarker" }] : /* istanbul ignore next */ []);
|
|
169
|
+
legendItems = computed(() => this.list().map((item, index) => ({
|
|
170
|
+
key: this.keys()[index],
|
|
171
|
+
label: item.name,
|
|
172
|
+
color: this.colors()[index],
|
|
173
|
+
hidden: this.hidden().has(this.keys()[index])
|
|
174
|
+
})), ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
|
|
175
|
+
tooltip = computed(() => {
|
|
176
|
+
const marker = this.activeMarker();
|
|
177
|
+
if (!marker || !this.showTooltip()) return null;
|
|
178
|
+
const item = this.list()[marker.series];
|
|
179
|
+
return {
|
|
180
|
+
title: this.dateTimeFormat().format(marker.time),
|
|
181
|
+
rows: [{
|
|
182
|
+
label: item.name,
|
|
183
|
+
value: this.rankLabel() ? `${this.rankLabel()}: ${marker.rank}` : String(marker.rank),
|
|
184
|
+
color: this.colors()[marker.series],
|
|
185
|
+
raw: marker.rank,
|
|
186
|
+
seriesIndex: marker.series,
|
|
187
|
+
active: true
|
|
188
|
+
}],
|
|
189
|
+
index: marker.point,
|
|
190
|
+
x: marker.x,
|
|
191
|
+
y: marker.y,
|
|
192
|
+
placement: "top",
|
|
193
|
+
note: marker.note
|
|
194
|
+
};
|
|
195
|
+
}, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
196
|
+
summary = computed(() => {
|
|
197
|
+
const t = this.translations();
|
|
198
|
+
const extent = this.extent();
|
|
199
|
+
const format = this.dateTimeFormat();
|
|
200
|
+
const text = chartSummary(t, this.intl(), t.chartRank, this.list().length, this.markers().length, extent ? [format.format(extent[0]), format.format(extent[1])] : null);
|
|
201
|
+
return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;
|
|
202
|
+
}, ...ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []);
|
|
203
|
+
dataTable = computed(() => {
|
|
204
|
+
const t = this.translations();
|
|
205
|
+
const format = this.dateTimeFormat();
|
|
206
|
+
return {
|
|
207
|
+
columns: [{
|
|
208
|
+
key: "rank",
|
|
209
|
+
label: this.rankLabel() || t.chartRankValue
|
|
210
|
+
}],
|
|
211
|
+
rows: this.markers().map((marker) => ({
|
|
212
|
+
label: `${this.list()[marker.series].name}, ${format.format(marker.time)}`,
|
|
213
|
+
cells: [marker.note ? `${marker.rank} (${marker.note})` : String(marker.rank)]
|
|
214
|
+
}))
|
|
215
|
+
};
|
|
216
|
+
}, ...ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []);
|
|
217
|
+
onPointer(event) {
|
|
218
|
+
if (event.type === "leave") {
|
|
219
|
+
this.active.set(null);
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
let best = null;
|
|
223
|
+
let distance = HIT_DISTANCE;
|
|
224
|
+
for (const marker of this.markers()) {
|
|
225
|
+
const next = Math.hypot(marker.x - event.x, marker.y - event.y);
|
|
226
|
+
if (next <= distance) {
|
|
227
|
+
distance = next;
|
|
228
|
+
best = marker;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
this.active.set(best?.key ?? null);
|
|
232
|
+
if (event.type === "click" && best) this.pointClick.emit({
|
|
233
|
+
seriesIndex: best.series,
|
|
234
|
+
pointIndex: best.point,
|
|
235
|
+
name: this.list()[best.series].name,
|
|
236
|
+
time: best.time,
|
|
237
|
+
rank: best.rank,
|
|
238
|
+
note: best.note
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
onNavigate(event) {
|
|
242
|
+
if (event.key === "Escape") {
|
|
243
|
+
this.active.set(null);
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
const markers = this.markers();
|
|
247
|
+
if (!markers.length) return;
|
|
248
|
+
const current = this.activeMarker();
|
|
249
|
+
let next;
|
|
250
|
+
if (event.key === "Home") next = markers[0];
|
|
251
|
+
else if (event.key === "End") next = markers[markers.length - 1];
|
|
252
|
+
else if (!current) next = event.key === "ArrowLeft" || event.key === "ArrowUp" ? markers[markers.length - 1] : markers[0];
|
|
253
|
+
else if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
|
254
|
+
const series = [...new Set(markers.map((marker) => marker.series))].sort((a, b) => a - b);
|
|
255
|
+
const target = series[(series.indexOf(current.series) + (event.key === "ArrowDown" ? 1 : -1) + series.length) % series.length];
|
|
256
|
+
next = markers.filter((marker) => marker.series === target).reduce((best, marker) => !best || Math.abs(marker.time - current.time) < Math.abs(best.time - current.time) ? marker : best, void 0);
|
|
257
|
+
} else {
|
|
258
|
+
const own = markers.filter((marker) => marker.series === current.series);
|
|
259
|
+
const at = own.indexOf(current);
|
|
260
|
+
next = own[Math.min(own.length - 1, Math.max(0, at + (event.key === "ArrowRight" ? 1 : -1)))];
|
|
261
|
+
}
|
|
262
|
+
if (!next) return;
|
|
263
|
+
this.active.set(next.key);
|
|
264
|
+
const name = this.list()[next.series].name;
|
|
265
|
+
this.frame()?.announce(`${name}, ${this.dateTimeFormat().format(next.time)}: ${this.rankLabel() || this.translations().chartRankValue} ${next.rank}${next.note ? `, ${next.note}` : ""}`);
|
|
266
|
+
}
|
|
267
|
+
onLegendToggle(key) {
|
|
268
|
+
const index = this.keys().indexOf(key);
|
|
269
|
+
this.hidden.update((keys) => toggleKey(keys, key));
|
|
270
|
+
this.active.set(null);
|
|
271
|
+
this.seriesToggle.emit({
|
|
272
|
+
index,
|
|
273
|
+
name: this.list()[index]?.name ?? "",
|
|
274
|
+
hidden: this.hidden().has(key)
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
278
|
+
minVersion: "12.0.0",
|
|
279
|
+
version: "22.2.3",
|
|
280
|
+
ngImport: i0,
|
|
281
|
+
type: TxRankChart,
|
|
282
|
+
deps: [],
|
|
283
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
284
|
+
});
|
|
285
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
286
|
+
minVersion: "17.0.0",
|
|
287
|
+
version: "22.2.3",
|
|
288
|
+
type: TxRankChart,
|
|
289
|
+
isStandalone: true,
|
|
290
|
+
selector: "tx-rank-chart",
|
|
291
|
+
inputs: {
|
|
292
|
+
series: {
|
|
293
|
+
classPropertyName: "series",
|
|
294
|
+
publicName: "series",
|
|
295
|
+
isSignal: true,
|
|
296
|
+
isRequired: false,
|
|
297
|
+
transformFunction: null
|
|
298
|
+
},
|
|
299
|
+
maxRank: {
|
|
300
|
+
classPropertyName: "maxRank",
|
|
301
|
+
publicName: "maxRank",
|
|
302
|
+
isSignal: true,
|
|
303
|
+
isRequired: false,
|
|
304
|
+
transformFunction: null
|
|
305
|
+
},
|
|
306
|
+
rankLabel: {
|
|
307
|
+
classPropertyName: "rankLabel",
|
|
308
|
+
publicName: "rankLabel",
|
|
309
|
+
isSignal: true,
|
|
310
|
+
isRequired: false,
|
|
311
|
+
transformFunction: null
|
|
312
|
+
},
|
|
313
|
+
height: {
|
|
314
|
+
classPropertyName: "height",
|
|
315
|
+
publicName: "height",
|
|
316
|
+
isSignal: true,
|
|
317
|
+
isRequired: false,
|
|
318
|
+
transformFunction: null
|
|
319
|
+
},
|
|
320
|
+
showLegend: {
|
|
321
|
+
classPropertyName: "showLegend",
|
|
322
|
+
publicName: "showLegend",
|
|
323
|
+
isSignal: true,
|
|
324
|
+
isRequired: false,
|
|
325
|
+
transformFunction: null
|
|
326
|
+
},
|
|
327
|
+
legendPosition: {
|
|
328
|
+
classPropertyName: "legendPosition",
|
|
329
|
+
publicName: "legendPosition",
|
|
330
|
+
isSignal: true,
|
|
331
|
+
isRequired: false,
|
|
332
|
+
transformFunction: null
|
|
333
|
+
},
|
|
334
|
+
legendAlign: {
|
|
335
|
+
classPropertyName: "legendAlign",
|
|
336
|
+
publicName: "legendAlign",
|
|
337
|
+
isSignal: true,
|
|
338
|
+
isRequired: false,
|
|
339
|
+
transformFunction: null
|
|
340
|
+
},
|
|
341
|
+
legendVariant: {
|
|
342
|
+
classPropertyName: "legendVariant",
|
|
343
|
+
publicName: "legendVariant",
|
|
344
|
+
isSignal: true,
|
|
345
|
+
isRequired: false,
|
|
346
|
+
transformFunction: null
|
|
347
|
+
},
|
|
348
|
+
showTooltip: {
|
|
349
|
+
classPropertyName: "showTooltip",
|
|
350
|
+
publicName: "showTooltip",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
loading: {
|
|
356
|
+
classPropertyName: "loading",
|
|
357
|
+
publicName: "loading",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
},
|
|
362
|
+
ariaLabel: {
|
|
363
|
+
classPropertyName: "ariaLabel",
|
|
364
|
+
publicName: "ariaLabel",
|
|
365
|
+
isSignal: true,
|
|
366
|
+
isRequired: false,
|
|
367
|
+
transformFunction: null
|
|
368
|
+
},
|
|
369
|
+
dt: {
|
|
370
|
+
classPropertyName: "dt",
|
|
371
|
+
publicName: "dt",
|
|
372
|
+
isSignal: true,
|
|
373
|
+
isRequired: false,
|
|
374
|
+
transformFunction: null
|
|
375
|
+
},
|
|
376
|
+
pt: {
|
|
377
|
+
classPropertyName: "pt",
|
|
378
|
+
publicName: "pt",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
ptOptions: {
|
|
384
|
+
classPropertyName: "ptOptions",
|
|
385
|
+
publicName: "ptOptions",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
},
|
|
390
|
+
unstyled: {
|
|
391
|
+
classPropertyName: "unstyled",
|
|
392
|
+
publicName: "unstyled",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
outputs: {
|
|
399
|
+
pointClick: "pointClick",
|
|
400
|
+
seriesToggle: "seriesToggle"
|
|
401
|
+
},
|
|
402
|
+
host: {
|
|
403
|
+
properties: {
|
|
404
|
+
"class": "passThrough().root?.class",
|
|
405
|
+
"style": "hostStyle()",
|
|
406
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
407
|
+
"class.tx-rank-chart--entering": "entrance.active()",
|
|
408
|
+
"class.tx-rank-chart--hovering": "active() !== null"
|
|
409
|
+
},
|
|
410
|
+
classAttribute: "tx-rank-chart"
|
|
411
|
+
},
|
|
412
|
+
queries: [{
|
|
413
|
+
propertyName: "legendTemplate",
|
|
414
|
+
first: true,
|
|
415
|
+
predicate: TxChartLegendTemplate,
|
|
416
|
+
descendants: true,
|
|
417
|
+
isSignal: true
|
|
418
|
+
}, {
|
|
419
|
+
propertyName: "tooltipTemplate",
|
|
420
|
+
first: true,
|
|
421
|
+
predicate: TxChartTooltipTemplate,
|
|
422
|
+
descendants: true,
|
|
423
|
+
isSignal: true
|
|
424
|
+
}],
|
|
425
|
+
viewQueries: [{
|
|
426
|
+
propertyName: "frame",
|
|
427
|
+
first: true,
|
|
428
|
+
predicate: TxChartFrame,
|
|
429
|
+
descendants: true,
|
|
430
|
+
isSignal: true
|
|
431
|
+
}],
|
|
432
|
+
ngImport: i0,
|
|
433
|
+
template: "@let parts = passThrough();\n<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n emptyIcon=\"chart-line\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"parts\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"parts.grid\" [axisPart]=\"parts.axis\" />\n <svg:g class=\"tx-rank-chart__lines\">\n @for (line of lines(); track line.key) {\n <svg:path class=\"tx-rank-chart__line\" [class]=\"parts.line?.class\" [style]=\"parts.line?.style\" [attr.d]=\"line.path\" [style.--tx-rank-chart-color]=\"line.color\" />\n }\n </svg:g>\n <svg:g class=\"tx-rank-chart__markers\">\n @for (line of lines(); track line.key) {\n @for (marker of line.markers; track marker.key) {\n <svg:circle\n class=\"tx-rank-chart__marker\"\n [class.tx-rank-chart__marker--active]=\"active() === marker.key\"\n [class]=\"parts.marker?.class\"\n [style]=\"parts.marker?.style\"\n [style.--tx-rank-chart-color]=\"line.color\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n />\n }\n }\n </svg:g>\n</tx-chart-frame>\n",
|
|
434
|
+
styles: [":host{display:block;width:100%;min-width:0}.tx-rank-chart__line{fill:none;stroke:var(--tx-rank-chart-color)}.tx-rank-chart__marker{fill:var(--tx-rank-chart-color);r:4px;pointer-events:none}:host([data-styled]) .tx-rank-chart__line{stroke-width:var(--tx-chart-rank-line-stroke-width);stroke-linejoin:round;stroke-linecap:round}:host([data-styled]) .tx-rank-chart__marker{r:calc(var(--tx-chart-rank-line-marker-radius) * 1px);transition:r var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-rank-chart__marker--active{r:calc(var(--tx-chart-rank-line-marker-hover-radius) * 1px)}:host([data-styled].tx-rank-chart--entering) .tx-rank-chart__lines,:host([data-styled].tx-rank-chart--entering) .tx-rank-chart__markers{animation:tx-rank-chart-enter var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both}@keyframes tx-rank-chart-enter{0%{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-rank-chart__marker,:host([data-styled]) .tx-rank-chart__lines,:host([data-styled]) .tx-rank-chart__markers{transition:none;animation:none}}\n"],
|
|
435
|
+
dependencies: [{
|
|
436
|
+
kind: "component",
|
|
437
|
+
type: TxChartFrame,
|
|
438
|
+
selector: "tx-chart-frame",
|
|
439
|
+
inputs: [
|
|
440
|
+
"height",
|
|
441
|
+
"size",
|
|
442
|
+
"legendItems",
|
|
443
|
+
"showLegend",
|
|
444
|
+
"legendPosition",
|
|
445
|
+
"legendAlign",
|
|
446
|
+
"legendVariant",
|
|
447
|
+
"legendToggle",
|
|
448
|
+
"legendTemplate",
|
|
449
|
+
"empty",
|
|
450
|
+
"loading",
|
|
451
|
+
"emptyIcon",
|
|
452
|
+
"summary",
|
|
453
|
+
"table",
|
|
454
|
+
"tooltip",
|
|
455
|
+
"tooltipTemplate",
|
|
456
|
+
"tooltipPlacement",
|
|
457
|
+
"panelStyle",
|
|
458
|
+
"parts",
|
|
459
|
+
"styled",
|
|
460
|
+
"interactive",
|
|
461
|
+
"actionKeys",
|
|
462
|
+
"zoomable",
|
|
463
|
+
"zoomedIn",
|
|
464
|
+
"plotHeight",
|
|
465
|
+
"toolbar",
|
|
466
|
+
"exportName"
|
|
467
|
+
],
|
|
468
|
+
outputs: [
|
|
469
|
+
"sizeChange",
|
|
470
|
+
"pointer",
|
|
471
|
+
"navigate",
|
|
472
|
+
"legendToggled",
|
|
473
|
+
"legendHovered",
|
|
474
|
+
"tooltipClosed",
|
|
475
|
+
"zoomed",
|
|
476
|
+
"panned",
|
|
477
|
+
"zoomReset"
|
|
478
|
+
]
|
|
479
|
+
}, {
|
|
480
|
+
kind: "component",
|
|
481
|
+
type: TxChartAxes,
|
|
482
|
+
selector: "g[tx-chart-axes]",
|
|
483
|
+
inputs: [
|
|
484
|
+
"tx-chart-axes",
|
|
485
|
+
"gridPart",
|
|
486
|
+
"axisPart"
|
|
487
|
+
]
|
|
488
|
+
}],
|
|
489
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
490
|
+
});
|
|
491
|
+
};
|
|
492
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
493
|
+
minVersion: "12.0.0",
|
|
494
|
+
version: "22.2.3",
|
|
495
|
+
ngImport: i0,
|
|
496
|
+
type: TxRankChart,
|
|
497
|
+
decorators: [{
|
|
498
|
+
type: Component,
|
|
499
|
+
args: [{
|
|
500
|
+
selector: "tx-rank-chart",
|
|
501
|
+
imports: [TxChartFrame, TxChartAxes],
|
|
502
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
503
|
+
host: {
|
|
504
|
+
class: "tx-rank-chart",
|
|
505
|
+
"[class]": "passThrough().root?.class",
|
|
506
|
+
"[style]": "hostStyle()",
|
|
507
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
508
|
+
"[class.tx-rank-chart--entering]": "entrance.active()",
|
|
509
|
+
"[class.tx-rank-chart--hovering]": "active() !== null"
|
|
510
|
+
},
|
|
511
|
+
template: "@let parts = passThrough();\n<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n emptyIcon=\"chart-line\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"parts\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"parts.grid\" [axisPart]=\"parts.axis\" />\n <svg:g class=\"tx-rank-chart__lines\">\n @for (line of lines(); track line.key) {\n <svg:path class=\"tx-rank-chart__line\" [class]=\"parts.line?.class\" [style]=\"parts.line?.style\" [attr.d]=\"line.path\" [style.--tx-rank-chart-color]=\"line.color\" />\n }\n </svg:g>\n <svg:g class=\"tx-rank-chart__markers\">\n @for (line of lines(); track line.key) {\n @for (marker of line.markers; track marker.key) {\n <svg:circle\n class=\"tx-rank-chart__marker\"\n [class.tx-rank-chart__marker--active]=\"active() === marker.key\"\n [class]=\"parts.marker?.class\"\n [style]=\"parts.marker?.style\"\n [style.--tx-rank-chart-color]=\"line.color\"\n [attr.cx]=\"marker.x\"\n [attr.cy]=\"marker.y\"\n />\n }\n }\n </svg:g>\n</tx-chart-frame>\n",
|
|
512
|
+
styles: [":host{display:block;width:100%;min-width:0}.tx-rank-chart__line{fill:none;stroke:var(--tx-rank-chart-color)}.tx-rank-chart__marker{fill:var(--tx-rank-chart-color);r:4px;pointer-events:none}:host([data-styled]) .tx-rank-chart__line{stroke-width:var(--tx-chart-rank-line-stroke-width);stroke-linejoin:round;stroke-linecap:round}:host([data-styled]) .tx-rank-chart__marker{r:calc(var(--tx-chart-rank-line-marker-radius) * 1px);transition:r var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-rank-chart__marker--active{r:calc(var(--tx-chart-rank-line-marker-hover-radius) * 1px)}:host([data-styled].tx-rank-chart--entering) .tx-rank-chart__lines,:host([data-styled].tx-rank-chart--entering) .tx-rank-chart__markers{animation:tx-rank-chart-enter var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both}@keyframes tx-rank-chart-enter{0%{opacity:0}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-rank-chart__marker,:host([data-styled]) .tx-rank-chart__lines,:host([data-styled]) .tx-rank-chart__markers{transition:none;animation:none}}\n"]
|
|
513
|
+
}]
|
|
514
|
+
}],
|
|
515
|
+
propDecorators: {
|
|
516
|
+
series: [{
|
|
517
|
+
type: i0.Input,
|
|
518
|
+
args: [{
|
|
519
|
+
isSignal: true,
|
|
520
|
+
alias: "series",
|
|
521
|
+
required: false
|
|
522
|
+
}]
|
|
523
|
+
}],
|
|
524
|
+
maxRank: [{
|
|
525
|
+
type: i0.Input,
|
|
526
|
+
args: [{
|
|
527
|
+
isSignal: true,
|
|
528
|
+
alias: "maxRank",
|
|
529
|
+
required: false
|
|
530
|
+
}]
|
|
531
|
+
}],
|
|
532
|
+
rankLabel: [{
|
|
533
|
+
type: i0.Input,
|
|
534
|
+
args: [{
|
|
535
|
+
isSignal: true,
|
|
536
|
+
alias: "rankLabel",
|
|
537
|
+
required: false
|
|
538
|
+
}]
|
|
539
|
+
}],
|
|
540
|
+
height: [{
|
|
541
|
+
type: i0.Input,
|
|
542
|
+
args: [{
|
|
543
|
+
isSignal: true,
|
|
544
|
+
alias: "height",
|
|
545
|
+
required: false
|
|
546
|
+
}]
|
|
547
|
+
}],
|
|
548
|
+
showLegend: [{
|
|
549
|
+
type: i0.Input,
|
|
550
|
+
args: [{
|
|
551
|
+
isSignal: true,
|
|
552
|
+
alias: "showLegend",
|
|
553
|
+
required: false
|
|
554
|
+
}]
|
|
555
|
+
}],
|
|
556
|
+
legendPosition: [{
|
|
557
|
+
type: i0.Input,
|
|
558
|
+
args: [{
|
|
559
|
+
isSignal: true,
|
|
560
|
+
alias: "legendPosition",
|
|
561
|
+
required: false
|
|
562
|
+
}]
|
|
563
|
+
}],
|
|
564
|
+
legendAlign: [{
|
|
565
|
+
type: i0.Input,
|
|
566
|
+
args: [{
|
|
567
|
+
isSignal: true,
|
|
568
|
+
alias: "legendAlign",
|
|
569
|
+
required: false
|
|
570
|
+
}]
|
|
571
|
+
}],
|
|
572
|
+
legendVariant: [{
|
|
573
|
+
type: i0.Input,
|
|
574
|
+
args: [{
|
|
575
|
+
isSignal: true,
|
|
576
|
+
alias: "legendVariant",
|
|
577
|
+
required: false
|
|
578
|
+
}]
|
|
579
|
+
}],
|
|
580
|
+
showTooltip: [{
|
|
581
|
+
type: i0.Input,
|
|
582
|
+
args: [{
|
|
583
|
+
isSignal: true,
|
|
584
|
+
alias: "showTooltip",
|
|
585
|
+
required: false
|
|
586
|
+
}]
|
|
587
|
+
}],
|
|
588
|
+
loading: [{
|
|
589
|
+
type: i0.Input,
|
|
590
|
+
args: [{
|
|
591
|
+
isSignal: true,
|
|
592
|
+
alias: "loading",
|
|
593
|
+
required: false
|
|
594
|
+
}]
|
|
595
|
+
}],
|
|
596
|
+
ariaLabel: [{
|
|
597
|
+
type: i0.Input,
|
|
598
|
+
args: [{
|
|
599
|
+
isSignal: true,
|
|
600
|
+
alias: "ariaLabel",
|
|
601
|
+
required: false
|
|
602
|
+
}]
|
|
603
|
+
}],
|
|
604
|
+
dt: [{
|
|
605
|
+
type: i0.Input,
|
|
606
|
+
args: [{
|
|
607
|
+
isSignal: true,
|
|
608
|
+
alias: "dt",
|
|
609
|
+
required: false
|
|
610
|
+
}]
|
|
611
|
+
}],
|
|
612
|
+
pt: [{
|
|
613
|
+
type: i0.Input,
|
|
614
|
+
args: [{
|
|
615
|
+
isSignal: true,
|
|
616
|
+
alias: "pt",
|
|
617
|
+
required: false
|
|
618
|
+
}]
|
|
619
|
+
}],
|
|
620
|
+
ptOptions: [{
|
|
621
|
+
type: i0.Input,
|
|
622
|
+
args: [{
|
|
623
|
+
isSignal: true,
|
|
624
|
+
alias: "ptOptions",
|
|
625
|
+
required: false
|
|
626
|
+
}]
|
|
627
|
+
}],
|
|
628
|
+
unstyled: [{
|
|
629
|
+
type: i0.Input,
|
|
630
|
+
args: [{
|
|
631
|
+
isSignal: true,
|
|
632
|
+
alias: "unstyled",
|
|
633
|
+
required: false
|
|
634
|
+
}]
|
|
635
|
+
}],
|
|
636
|
+
pointClick: [{
|
|
637
|
+
type: i0.Output,
|
|
638
|
+
args: ["pointClick"]
|
|
639
|
+
}],
|
|
640
|
+
seriesToggle: [{
|
|
641
|
+
type: i0.Output,
|
|
642
|
+
args: ["seriesToggle"]
|
|
643
|
+
}],
|
|
644
|
+
legendTemplate: [{
|
|
645
|
+
type: i0.ContentChild,
|
|
646
|
+
args: [i0.forwardRef(() => TxChartLegendTemplate), { isSignal: true }]
|
|
647
|
+
}],
|
|
648
|
+
tooltipTemplate: [{
|
|
649
|
+
type: i0.ContentChild,
|
|
650
|
+
args: [i0.forwardRef(() => TxChartTooltipTemplate), { isSignal: true }]
|
|
651
|
+
}],
|
|
652
|
+
frame: [{
|
|
653
|
+
type: i0.ViewChild,
|
|
654
|
+
args: [i0.forwardRef(() => TxChartFrame), { isSignal: true }]
|
|
655
|
+
}]
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
export { TX_RANK_LINE_COLORS, TxRankChart, rankLineColor, rankTickStep, rankTimeExtent, rankY };
|
|
659
|
+
|
|
660
|
+
//# sourceMappingURL=tectra-ng-charts-rank-line.mjs.map
|