@sentropic/design-system-vue 0.36.35 → 0.36.38
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/dist/AnomalySwimLaneChart.d.ts +88 -0
- package/dist/AnomalySwimLaneChart.d.ts.map +1 -0
- package/dist/AnomalySwimLaneChart.js +227 -0
- package/dist/AnomalySwimLaneChart.js.map +1 -0
- package/dist/CopyButton.d.ts +1 -1
- package/dist/DecompositionTreeChart.d.ts +81 -0
- package/dist/DecompositionTreeChart.d.ts.map +1 -0
- package/dist/DecompositionTreeChart.js +206 -0
- package/dist/DecompositionTreeChart.js.map +1 -0
- package/dist/Density2DChart.d.ts +85 -0
- package/dist/Density2DChart.d.ts.map +1 -0
- package/dist/Density2DChart.js +254 -0
- package/dist/Density2DChart.js.map +1 -0
- package/dist/FlamegraphChart.d.ts +73 -0
- package/dist/FlamegraphChart.d.ts.map +1 -0
- package/dist/FlamegraphChart.js +146 -0
- package/dist/FlamegraphChart.js.map +1 -0
- package/dist/RibbonChart.d.ts +76 -0
- package/dist/RibbonChart.d.ts.map +1 -0
- package/dist/RibbonChart.js +223 -0
- package/dist/RibbonChart.js.map +1 -0
- package/dist/TraceWaterfallChart.d.ts +88 -0
- package/dist/TraceWaterfallChart.d.ts.map +1 -0
- package/dist/TraceWaterfallChart.js +278 -0
- package/dist/TraceWaterfallChart.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +642 -0
- package/package.json +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type AnomalySwimLaneTone = "category1" | "category2" | "category3" | "category4" | "category5" | "category6" | "category7" | "category8";
|
|
2
|
+
export type AnomalySwimLaneBucket = {
|
|
3
|
+
at: number;
|
|
4
|
+
score: number;
|
|
5
|
+
};
|
|
6
|
+
export type AnomalySwimLaneSeries = {
|
|
7
|
+
job: string;
|
|
8
|
+
buckets: AnomalySwimLaneBucket[];
|
|
9
|
+
};
|
|
10
|
+
export type AnomalySwimLaneChartProps = {
|
|
11
|
+
data: AnomalySwimLaneSeries[];
|
|
12
|
+
max?: number;
|
|
13
|
+
label?: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
size?: number;
|
|
17
|
+
class?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const AnomalySwimLaneChart: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
20
|
+
data: {
|
|
21
|
+
type: () => AnomalySwimLaneSeries[];
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
max: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
width: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
height: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
class: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
data: {
|
|
52
|
+
type: () => AnomalySwimLaneSeries[];
|
|
53
|
+
default: () => never[];
|
|
54
|
+
};
|
|
55
|
+
max: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
label: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
width: {
|
|
64
|
+
type: NumberConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
height: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
size: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
class: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
79
|
+
}>> & Readonly<{}>, {
|
|
80
|
+
size: number;
|
|
81
|
+
class: string;
|
|
82
|
+
data: AnomalySwimLaneSeries[];
|
|
83
|
+
label: string;
|
|
84
|
+
height: number;
|
|
85
|
+
max: number;
|
|
86
|
+
width: number;
|
|
87
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
88
|
+
//# sourceMappingURL=AnomalySwimLaneChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnomalySwimLaneChart.d.ts","sourceRoot":"","sources":["../src/AnomalySwimLaneChart.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAC3B,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,qBAAqB,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,qBAAqB,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAoCF,eAAO,MAAM,oBAAoB;;cAGN,MAAM,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA7B,MAAM,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA0QtD,CAAC"}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
import { chartDataList } from "./chartScale.js";
|
|
4
|
+
const MARGIN = { top: 28, right: 18, bottom: 44, left: 132 };
|
|
5
|
+
const TONES = [
|
|
6
|
+
"category1",
|
|
7
|
+
"category2",
|
|
8
|
+
"category3",
|
|
9
|
+
"category4",
|
|
10
|
+
"category5",
|
|
11
|
+
"category6",
|
|
12
|
+
"category7",
|
|
13
|
+
"category8",
|
|
14
|
+
];
|
|
15
|
+
// Continuous scale: score intensity normalised 0..max → category1..8 (shared
|
|
16
|
+
// with HeatmapChart). max ≤ 0 or non-finite score → category1 (floor intensity).
|
|
17
|
+
function toneForScore(score, scoreMax) {
|
|
18
|
+
if (!Number.isFinite(score) || scoreMax <= 0)
|
|
19
|
+
return "category1";
|
|
20
|
+
const ratio = Math.max(0, Math.min(1, score / scoreMax));
|
|
21
|
+
const index = Math.max(0, Math.min(TONES.length - 1, Math.floor(ratio * TONES.length)));
|
|
22
|
+
return TONES[index];
|
|
23
|
+
}
|
|
24
|
+
// Truncate a label to the left margin width (approx. by char count).
|
|
25
|
+
function ellipsize(text, maxChars) {
|
|
26
|
+
if (text.length <= maxChars)
|
|
27
|
+
return text;
|
|
28
|
+
if (maxChars <= 1)
|
|
29
|
+
return "…";
|
|
30
|
+
return `${text.slice(0, maxChars - 1)}…`;
|
|
31
|
+
}
|
|
32
|
+
function formatTick(v) {
|
|
33
|
+
if (Math.abs(v) >= 1000)
|
|
34
|
+
return `${(v / 1000).toFixed(v % 1000 === 0 ? 0 : 1)}k`;
|
|
35
|
+
if (Number.isInteger(v))
|
|
36
|
+
return String(v);
|
|
37
|
+
return v.toFixed(1);
|
|
38
|
+
}
|
|
39
|
+
export const AnomalySwimLaneChart = defineComponent({
|
|
40
|
+
name: "AnomalySwimLaneChart",
|
|
41
|
+
props: {
|
|
42
|
+
data: { type: Array, default: () => [] },
|
|
43
|
+
max: { type: Number, default: undefined },
|
|
44
|
+
label: { type: String, default: undefined },
|
|
45
|
+
width: { type: Number, default: undefined },
|
|
46
|
+
height: { type: Number, default: 300 },
|
|
47
|
+
size: { type: Number, default: undefined },
|
|
48
|
+
class: { type: String, default: undefined },
|
|
49
|
+
},
|
|
50
|
+
setup(props, { attrs }) {
|
|
51
|
+
const hoveredKey = ref(null);
|
|
52
|
+
function handleLeave() {
|
|
53
|
+
hoveredKey.value = null;
|
|
54
|
+
}
|
|
55
|
+
function handlePointerMove(event) {
|
|
56
|
+
const target = event.target;
|
|
57
|
+
if (!(target instanceof Element)) {
|
|
58
|
+
hoveredKey.value = null;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
hoveredKey.value = target.getAttribute("data-chart-key");
|
|
62
|
+
}
|
|
63
|
+
return () => {
|
|
64
|
+
const data = props.data ?? [];
|
|
65
|
+
const label = props.label;
|
|
66
|
+
const height = props.height ?? 300;
|
|
67
|
+
const resolvedWidth = props.width ?? props.size ?? 520;
|
|
68
|
+
const plotWidth = Math.max(resolvedWidth - MARGIN.left - MARGIN.right, 1);
|
|
69
|
+
const plotHeight = Math.max(height - MARGIN.top - MARGIN.bottom, 1);
|
|
70
|
+
// Normalise: drop unlabeled jobs and non-finite buckets.
|
|
71
|
+
const validData = data
|
|
72
|
+
.filter((d) => typeof d.job === "string" && d.job.length > 0)
|
|
73
|
+
.map((d) => ({
|
|
74
|
+
job: d.job,
|
|
75
|
+
buckets: (d.buckets ?? [])
|
|
76
|
+
.filter((b) => Number.isFinite(b.at))
|
|
77
|
+
.map((b) => ({ at: b.at, score: b.score })),
|
|
78
|
+
}));
|
|
79
|
+
// Distinct time columns (by `at`, ascending).
|
|
80
|
+
const columnOrder = [];
|
|
81
|
+
for (const d of validData) {
|
|
82
|
+
for (const b of d.buckets) {
|
|
83
|
+
if (!columnOrder.includes(b.at))
|
|
84
|
+
columnOrder.push(b.at);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
columnOrder.sort((a, b) => a - b);
|
|
88
|
+
// Effective max score: `max` prop when finite and > 0, else from data.
|
|
89
|
+
const scoreMax = (() => {
|
|
90
|
+
if (typeof props.max === "number" && Number.isFinite(props.max) && props.max > 0)
|
|
91
|
+
return props.max;
|
|
92
|
+
const scores = validData
|
|
93
|
+
.flatMap((d) => d.buckets.map((b) => b.score))
|
|
94
|
+
.filter(Number.isFinite);
|
|
95
|
+
return scores.length > 0 ? Math.max(...scores) : 1;
|
|
96
|
+
})();
|
|
97
|
+
let rows = [];
|
|
98
|
+
if (validData.length > 0 && columnOrder.length > 0) {
|
|
99
|
+
const band = plotHeight / validData.length;
|
|
100
|
+
const rowHeight = Math.min(band * 0.78, 34);
|
|
101
|
+
const colWidth = plotWidth / columnOrder.length;
|
|
102
|
+
rows = validData.map((d, i) => {
|
|
103
|
+
const y = MARGIN.top + band * i + (band - rowHeight) / 2;
|
|
104
|
+
const cells = d.buckets.map((b, j) => {
|
|
105
|
+
const colIndex = Math.max(0, columnOrder.indexOf(b.at));
|
|
106
|
+
const x = MARGIN.left + colIndex * colWidth;
|
|
107
|
+
const w = Math.max(colWidth - 2, 1);
|
|
108
|
+
return {
|
|
109
|
+
key: `${i}-${j}`,
|
|
110
|
+
datum: b,
|
|
111
|
+
x,
|
|
112
|
+
width: w,
|
|
113
|
+
cx: x + w / 2,
|
|
114
|
+
tone: toneForScore(b.score, scoreMax),
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
return {
|
|
118
|
+
datum: d,
|
|
119
|
+
index: i,
|
|
120
|
+
y,
|
|
121
|
+
height: rowHeight,
|
|
122
|
+
rowCenterY: MARGIN.top + band * (i + 0.5),
|
|
123
|
+
cells,
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
const columns = columnOrder.length === 0
|
|
128
|
+
? []
|
|
129
|
+
: columnOrder.map((at, index) => ({
|
|
130
|
+
at,
|
|
131
|
+
cx: MARGIN.left + (index + 0.5) * (plotWidth / columnOrder.length),
|
|
132
|
+
}));
|
|
133
|
+
const dataValueItems = validData.map((d) => `${d.job}: ${d.buckets.map((b) => `${b.at} = ${b.score}`).join(", ")}`);
|
|
134
|
+
const legendItems = TONES.map((tone) => ({ tone }));
|
|
135
|
+
const hasLegend = validData.length > 0 && columnOrder.length > 0;
|
|
136
|
+
const svgChildren = [];
|
|
137
|
+
// tick labels (time axis)
|
|
138
|
+
for (const column of columns) {
|
|
139
|
+
svgChildren.push(h("text", {
|
|
140
|
+
key: `t${column.at}`,
|
|
141
|
+
class: "st-anomalySwimLaneChart__tickLabel",
|
|
142
|
+
x: column.cx,
|
|
143
|
+
y: height - MARGIN.bottom + 16,
|
|
144
|
+
"text-anchor": "middle",
|
|
145
|
+
}, formatTick(column.at)));
|
|
146
|
+
}
|
|
147
|
+
// axes
|
|
148
|
+
svgChildren.push(h("line", { class: "st-anomalySwimLaneChart__axis", x1: MARGIN.left, x2: MARGIN.left, y1: MARGIN.top, y2: height - MARGIN.bottom }));
|
|
149
|
+
svgChildren.push(h("line", { class: "st-anomalySwimLaneChart__axis", x1: MARGIN.left, x2: resolvedWidth - MARGIN.right, y1: height - MARGIN.bottom, y2: height - MARGIN.bottom }));
|
|
150
|
+
// one row per job + left label + score cells per bucket
|
|
151
|
+
for (const row of rows) {
|
|
152
|
+
const i = row.index;
|
|
153
|
+
svgChildren.push(h("text", {
|
|
154
|
+
key: `lbl${i}`,
|
|
155
|
+
class: "st-anomalySwimLaneChart__jobLabel",
|
|
156
|
+
x: MARGIN.left - 8,
|
|
157
|
+
y: row.rowCenterY,
|
|
158
|
+
"text-anchor": "end",
|
|
159
|
+
"dominant-baseline": "middle",
|
|
160
|
+
}, ellipsize(row.datum.job, 18)));
|
|
161
|
+
for (const cell of row.cells) {
|
|
162
|
+
const isDim = hoveredKey.value !== null && hoveredKey.value !== cell.key;
|
|
163
|
+
svgChildren.push(h("rect", {
|
|
164
|
+
key: `cell${cell.key}`,
|
|
165
|
+
class: classNames("st-anomalySwimLaneChart__cell", `st-anomalySwimLaneChart__cell--${cell.tone}`, isDim ? "st-anomalySwimLaneChart__cell--dim" : undefined),
|
|
166
|
+
x: cell.x,
|
|
167
|
+
y: row.y,
|
|
168
|
+
width: cell.width,
|
|
169
|
+
height: row.height,
|
|
170
|
+
rx: 2,
|
|
171
|
+
"data-chart-key": cell.key,
|
|
172
|
+
}));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
let hovered = null;
|
|
176
|
+
if (hoveredKey.value !== null) {
|
|
177
|
+
for (const row of rows) {
|
|
178
|
+
for (const cell of row.cells) {
|
|
179
|
+
if (cell.key === hoveredKey.value)
|
|
180
|
+
hovered = { row, cell };
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
const children = [
|
|
185
|
+
h("div", {
|
|
186
|
+
class: "st-anomalySwimLaneChart__visual",
|
|
187
|
+
role: "img",
|
|
188
|
+
"aria-label": label,
|
|
189
|
+
onPointermove: handlePointerMove,
|
|
190
|
+
onPointerleave: handleLeave,
|
|
191
|
+
}, [
|
|
192
|
+
h("svg", {
|
|
193
|
+
viewBox: `0 0 ${resolvedWidth} ${height}`,
|
|
194
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
195
|
+
width: "100%",
|
|
196
|
+
height: "100%",
|
|
197
|
+
focusable: "false",
|
|
198
|
+
"aria-hidden": "true",
|
|
199
|
+
}, svgChildren),
|
|
200
|
+
]),
|
|
201
|
+
];
|
|
202
|
+
if (hasLegend) {
|
|
203
|
+
children.push(h("div", { class: "st-anomalySwimLaneChart__legend", "aria-hidden": "true" }, [
|
|
204
|
+
h("span", { class: "st-anomalySwimLaneChart__legendText" }, "Low"),
|
|
205
|
+
h("span", { class: "st-anomalySwimLaneChart__legendRamp" }, legendItems.map((item) => h("span", {
|
|
206
|
+
key: item.tone,
|
|
207
|
+
class: `st-anomalySwimLaneChart__legendSwatch st-anomalySwimLaneChart__legendSwatch--${item.tone}`,
|
|
208
|
+
}))),
|
|
209
|
+
h("span", { class: "st-anomalySwimLaneChart__legendText" }, "High"),
|
|
210
|
+
]));
|
|
211
|
+
}
|
|
212
|
+
children.push(chartDataList(label ?? "anomaly swim lane", dataValueItems));
|
|
213
|
+
if (hovered) {
|
|
214
|
+
children.push(h("div", {
|
|
215
|
+
class: "st-anomalySwimLaneChart__tooltip",
|
|
216
|
+
role: "presentation",
|
|
217
|
+
style: `left:${(hovered.cell.cx / resolvedWidth) * 100}%;top:${(hovered.row.rowCenterY / height) * 100}%`,
|
|
218
|
+
}, [
|
|
219
|
+
h("span", { class: "st-anomalySwimLaneChart__tooltipLabel" }, `${hovered.row.datum.job} · ${hovered.cell.datum.at}`),
|
|
220
|
+
h("span", { class: "st-anomalySwimLaneChart__tooltipValue" }, `${hovered.cell.datum.score}`),
|
|
221
|
+
]));
|
|
222
|
+
}
|
|
223
|
+
return h("div", { ...attrs, class: classNames("st-anomalySwimLaneChart", props.class) }, children);
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
//# sourceMappingURL=AnomalySwimLaneChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnomalySwimLaneChart.js","sourceRoot":"","sources":["../src/AnomalySwimLaneChart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC9C,OAAO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AAG,MAAM,CAAC,GAAG,GAAG,GAAG;iBAC1G,EACD;oBACE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,uCAAuC,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC;oBACpH,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,uCAAuC,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;iBAC7F,CACF,CACF,CAAC;YACJ,CAAC;YAED,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,yBAAyB,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;QACrG,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/CopyButton.d.ts
CHANGED
|
@@ -65,8 +65,8 @@ export declare const CopyButton: import("vue").DefineComponent<import("vue").Ext
|
|
|
65
65
|
size: CopyButtonSize;
|
|
66
66
|
class: string;
|
|
67
67
|
label: string;
|
|
68
|
-
value: string;
|
|
69
68
|
text: string;
|
|
69
|
+
value: string;
|
|
70
70
|
copiedLabel: string;
|
|
71
71
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
72
|
//# sourceMappingURL=CopyButton.d.ts.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export type DecompositionTreeNode = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
parent?: string;
|
|
5
|
+
};
|
|
6
|
+
export type DecompositionTreeLevel = {
|
|
7
|
+
dimension: string;
|
|
8
|
+
nodes: DecompositionTreeNode[];
|
|
9
|
+
};
|
|
10
|
+
export type DecompositionTreeData = {
|
|
11
|
+
measure: string;
|
|
12
|
+
levels: DecompositionTreeLevel[];
|
|
13
|
+
};
|
|
14
|
+
export type DecompositionTreeChartProps = {
|
|
15
|
+
data: DecompositionTreeData;
|
|
16
|
+
label?: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
size?: number;
|
|
20
|
+
class?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const DecompositionTreeChart: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
23
|
+
data: {
|
|
24
|
+
type: () => DecompositionTreeData;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
label: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
width: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
height: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
size: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
class: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
data: {
|
|
51
|
+
type: () => DecompositionTreeData;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
label: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: undefined;
|
|
57
|
+
};
|
|
58
|
+
width: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
height: {
|
|
63
|
+
type: NumberConstructor;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
class: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
}>> & Readonly<{}>, {
|
|
75
|
+
size: number;
|
|
76
|
+
class: string;
|
|
77
|
+
label: string;
|
|
78
|
+
height: number;
|
|
79
|
+
width: number;
|
|
80
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
|
+
//# sourceMappingURL=DecompositionTreeChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecompositionTreeChart.d.ts","sourceRoot":"","sources":["../src/DecompositionTreeChart.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,qBAAqB,EAAE,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,sBAAsB,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAuDF,eAAO,MAAM,sBAAsB;;cAGP,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA3B,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAiPrD,CAAC"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { defineComponent, h, ref } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
import { chartDataList } from "./chartScale.js";
|
|
4
|
+
const MARGIN = { top: 16, right: 16, bottom: 16, left: 16 };
|
|
5
|
+
const BAR_H = 22;
|
|
6
|
+
const BAR_GAP = 10;
|
|
7
|
+
const COL_GAP = 36;
|
|
8
|
+
const BAR_W = 110;
|
|
9
|
+
const toneForLevel = (level) => `category${(level % 8) + 1}`;
|
|
10
|
+
// Truncate a label to the bar width (approx. by char count).
|
|
11
|
+
function ellipsize(text, maxChars) {
|
|
12
|
+
if (text.length <= maxChars)
|
|
13
|
+
return text;
|
|
14
|
+
if (maxChars <= 1)
|
|
15
|
+
return "…";
|
|
16
|
+
return `${text.slice(0, maxChars - 1)}…`;
|
|
17
|
+
}
|
|
18
|
+
function formatValue(v) {
|
|
19
|
+
if (Math.abs(v) >= 1000)
|
|
20
|
+
return `${(v / 1000).toFixed(v % 1000 === 0 ? 0 : 1)}k`;
|
|
21
|
+
if (Number.isInteger(v))
|
|
22
|
+
return String(v);
|
|
23
|
+
return v.toFixed(1);
|
|
24
|
+
}
|
|
25
|
+
const charsFor = (w) => Math.max(0, Math.floor((w - 8) / 6.6));
|
|
26
|
+
function linkPath(link) {
|
|
27
|
+
const x1 = link.from.x + link.from.barWidth;
|
|
28
|
+
const y1 = link.from.cy;
|
|
29
|
+
const x2 = link.to.x;
|
|
30
|
+
const y2 = link.to.cy;
|
|
31
|
+
const mid = (x1 + x2) / 2;
|
|
32
|
+
return `M ${x1} ${y1} C ${mid} ${y1}, ${mid} ${y2}, ${x2} ${y2}`;
|
|
33
|
+
}
|
|
34
|
+
export const DecompositionTreeChart = defineComponent({
|
|
35
|
+
name: "DecompositionTreeChart",
|
|
36
|
+
props: {
|
|
37
|
+
data: { type: Object, required: true },
|
|
38
|
+
label: { type: String, default: undefined },
|
|
39
|
+
width: { type: Number, default: undefined },
|
|
40
|
+
height: { type: Number, default: 320 },
|
|
41
|
+
size: { type: Number, default: undefined },
|
|
42
|
+
class: { type: String, default: undefined },
|
|
43
|
+
},
|
|
44
|
+
setup(props, { attrs }) {
|
|
45
|
+
const hoveredKey = ref(null);
|
|
46
|
+
function handleLeave() {
|
|
47
|
+
hoveredKey.value = null;
|
|
48
|
+
}
|
|
49
|
+
function handlePointerMove(event) {
|
|
50
|
+
const target = event.target;
|
|
51
|
+
if (!(target instanceof Element)) {
|
|
52
|
+
hoveredKey.value = null;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
hoveredKey.value = target.getAttribute("data-chart-key");
|
|
56
|
+
}
|
|
57
|
+
return () => {
|
|
58
|
+
const data = props.data;
|
|
59
|
+
const label = props.label;
|
|
60
|
+
const height = props.height ?? 320;
|
|
61
|
+
const resolvedWidth = props.width ?? props.size ?? 640;
|
|
62
|
+
const colX = (level) => MARGIN.left + level * (BAR_W + COL_GAP);
|
|
63
|
+
// Build the columns: root (column 0 = total measure), then one column per
|
|
64
|
+
// level; a bar width is ∝ value relative to its level max.
|
|
65
|
+
const cells = [];
|
|
66
|
+
const links = [];
|
|
67
|
+
if (data && typeof data.measure === "string") {
|
|
68
|
+
const plotTop = MARGIN.top;
|
|
69
|
+
const levels = (data.levels ?? []).filter((lvl) => lvl && typeof lvl.dimension === "string");
|
|
70
|
+
const firstLevelTotal = levels[0]
|
|
71
|
+
? levels[0].nodes
|
|
72
|
+
.filter((n) => n && Number.isFinite(n.value))
|
|
73
|
+
.reduce((s, n) => s + Math.max(n.value, 0), 0)
|
|
74
|
+
: 0;
|
|
75
|
+
const rootValue = firstLevelTotal > 0 ? firstLevelTotal : 1;
|
|
76
|
+
const rootCell = {
|
|
77
|
+
key: "root",
|
|
78
|
+
label: data.measure,
|
|
79
|
+
dimension: data.measure,
|
|
80
|
+
value: rootValue,
|
|
81
|
+
level: 0,
|
|
82
|
+
x: colX(0),
|
|
83
|
+
y: plotTop,
|
|
84
|
+
barWidth: BAR_W,
|
|
85
|
+
tone: toneForLevel(0),
|
|
86
|
+
cx: colX(0) + BAR_W / 2,
|
|
87
|
+
cy: plotTop + BAR_H / 2,
|
|
88
|
+
parentKey: null,
|
|
89
|
+
};
|
|
90
|
+
cells.push(rootCell);
|
|
91
|
+
let prevColumn = [rootCell];
|
|
92
|
+
levels.forEach((lvl, li) => {
|
|
93
|
+
const level = li + 1;
|
|
94
|
+
const nodes = (lvl.nodes ?? []).filter((n) => n && typeof n.label === "string" && Number.isFinite(n.value));
|
|
95
|
+
const levelMax = nodes.reduce((m, n) => Math.max(m, Math.max(n.value, 0)), 0) || 1;
|
|
96
|
+
const x = colX(level);
|
|
97
|
+
const column = [];
|
|
98
|
+
nodes.forEach((n, ni) => {
|
|
99
|
+
const y = plotTop + ni * (BAR_H + BAR_GAP);
|
|
100
|
+
const barWidth = Math.max((Math.max(n.value, 0) / levelMax) * BAR_W, 2);
|
|
101
|
+
const parentCell = (n.parent !== undefined && prevColumn.find((p) => p.label === n.parent)) ||
|
|
102
|
+
prevColumn[0] ||
|
|
103
|
+
null;
|
|
104
|
+
const cell = {
|
|
105
|
+
key: `${level}-${ni}`,
|
|
106
|
+
label: n.label,
|
|
107
|
+
dimension: lvl.dimension,
|
|
108
|
+
value: n.value,
|
|
109
|
+
level,
|
|
110
|
+
x,
|
|
111
|
+
y,
|
|
112
|
+
barWidth,
|
|
113
|
+
tone: toneForLevel(level),
|
|
114
|
+
cx: x + barWidth / 2,
|
|
115
|
+
cy: y + BAR_H / 2,
|
|
116
|
+
parentKey: parentCell ? parentCell.key : null,
|
|
117
|
+
};
|
|
118
|
+
cells.push(cell);
|
|
119
|
+
column.push(cell);
|
|
120
|
+
if (parentCell) {
|
|
121
|
+
links.push({ key: `${parentCell.key}>${cell.key}`, from: parentCell, to: cell });
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
if (column.length > 0)
|
|
125
|
+
prevColumn = column;
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
const computedHeight = cells.length === 0
|
|
129
|
+
? height
|
|
130
|
+
: Math.max(height, cells.reduce((m, c) => Math.max(m, c.y + BAR_H), MARGIN.top) + MARGIN.bottom);
|
|
131
|
+
const computedWidth = cells.length === 0
|
|
132
|
+
? resolvedWidth
|
|
133
|
+
: Math.max(resolvedWidth, cells.reduce((m, c) => Math.max(m, c.x + BAR_W), MARGIN.left) + MARGIN.right);
|
|
134
|
+
const dataValueItems = cells.map((c) => `${"·".repeat(c.level)}${c.label}: ${c.value}`);
|
|
135
|
+
const svgChildren = [];
|
|
136
|
+
// smoothed parent→child links
|
|
137
|
+
for (const link of links) {
|
|
138
|
+
const isDim = hoveredKey.value !== null &&
|
|
139
|
+
hoveredKey.value !== link.from.key &&
|
|
140
|
+
hoveredKey.value !== link.to.key;
|
|
141
|
+
svgChildren.push(h("path", {
|
|
142
|
+
key: link.key,
|
|
143
|
+
class: classNames("st-decompositionTreeChart__link", isDim ? "st-decompositionTreeChart__link--dim" : undefined),
|
|
144
|
+
d: linkPath(link),
|
|
145
|
+
}));
|
|
146
|
+
}
|
|
147
|
+
// one column per level: horizontal bar whose width ∝ value
|
|
148
|
+
for (const cell of cells) {
|
|
149
|
+
const chars = charsFor(cell.barWidth);
|
|
150
|
+
const isDim = hoveredKey.value !== null && hoveredKey.value !== cell.key;
|
|
151
|
+
const nodeChildren = [
|
|
152
|
+
h("rect", {
|
|
153
|
+
class: classNames("st-decompositionTreeChart__bar", `st-decompositionTreeChart__bar--${cell.tone}`, isDim ? "st-decompositionTreeChart__bar--dim" : undefined),
|
|
154
|
+
x: cell.x,
|
|
155
|
+
y: cell.y,
|
|
156
|
+
width: Math.max(cell.barWidth, 2),
|
|
157
|
+
height: BAR_H,
|
|
158
|
+
rx: 2,
|
|
159
|
+
"data-chart-key": cell.key,
|
|
160
|
+
}),
|
|
161
|
+
];
|
|
162
|
+
if (chars >= 2) {
|
|
163
|
+
nodeChildren.push(h("text", {
|
|
164
|
+
class: "st-decompositionTreeChart__label",
|
|
165
|
+
x: cell.x + 4,
|
|
166
|
+
y: cell.y + BAR_H / 2,
|
|
167
|
+
"dominant-baseline": "central",
|
|
168
|
+
}, ellipsize(cell.label, chars)));
|
|
169
|
+
}
|
|
170
|
+
svgChildren.push(h("g", { key: cell.key, class: "st-decompositionTreeChart__node" }, nodeChildren));
|
|
171
|
+
}
|
|
172
|
+
const hoveredCell = hoveredKey.value !== null ? cells.find((c) => c.key === hoveredKey.value) ?? null : null;
|
|
173
|
+
const children = [
|
|
174
|
+
h("div", {
|
|
175
|
+
class: "st-decompositionTreeChart__visual",
|
|
176
|
+
role: "img",
|
|
177
|
+
"aria-label": label,
|
|
178
|
+
onPointermove: handlePointerMove,
|
|
179
|
+
onPointerleave: handleLeave,
|
|
180
|
+
}, [
|
|
181
|
+
h("svg", {
|
|
182
|
+
viewBox: `0 0 ${computedWidth} ${computedHeight}`,
|
|
183
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
184
|
+
width: "100%",
|
|
185
|
+
height: "100%",
|
|
186
|
+
focusable: "false",
|
|
187
|
+
"aria-hidden": "true",
|
|
188
|
+
}, svgChildren),
|
|
189
|
+
]),
|
|
190
|
+
chartDataList(label ?? "decomposition tree", dataValueItems),
|
|
191
|
+
];
|
|
192
|
+
if (hoveredCell) {
|
|
193
|
+
children.push(h("div", {
|
|
194
|
+
class: "st-decompositionTreeChart__tooltip",
|
|
195
|
+
role: "presentation",
|
|
196
|
+
style: `left:${(hoveredCell.cx / computedWidth) * 100}%;top:${(hoveredCell.cy / computedHeight) * 100}%`,
|
|
197
|
+
}, [
|
|
198
|
+
h("span", { class: "st-decompositionTreeChart__tooltipLabel" }, `${hoveredCell.dimension} · ${hoveredCell.label}`),
|
|
199
|
+
h("span", { class: "st-decompositionTreeChart__tooltipValue" }, formatValue(hoveredCell.value)),
|
|
200
|
+
]));
|
|
201
|
+
}
|
|
202
|
+
return h("div", { ...attrs, class: classNames("st-decompositionTreeChart", props.class) }, children);
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
});
|
|
206
|
+
//# sourceMappingURL=DecompositionTreeChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecompositionTreeChart.js","sourceRoot":"","sources":["../src/DecompositionTreeChart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA2BhD,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAC5D,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,MAAM,OAAO,GAAG,EAAE,CAAC;AACnB,MAAM,KAAK,GAAG,GAAG,CAAC;AAElB,MAAM,YAAY,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;AAE7E,6DAA6D;AAC7D,SAAS,SAAS,CAAC,IAAY,EAAE,QAAgB;IAC/C,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ;QAAE,OAAO,IAAI,CAAC;IACzC,IAAI,QAAQ,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IAC9B,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC;AAC3C,CAAC;AAED,SAAS,WAAW,CAAC,CAAS;IAC5B,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI;QAAE,OAAO,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,K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