@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,85 @@
|
|
|
1
|
+
export type Density2DTone = "category1" | "category2" | "category3" | "category4" | "category5" | "category6" | "category7" | "category8";
|
|
2
|
+
export type Density2DPoint = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
weight?: number;
|
|
6
|
+
};
|
|
7
|
+
export type Density2DChartProps = {
|
|
8
|
+
data: Density2DPoint[];
|
|
9
|
+
bins?: number;
|
|
10
|
+
label?: string;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
size?: number;
|
|
14
|
+
class?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const Density2DChart: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
17
|
+
data: {
|
|
18
|
+
type: () => Density2DPoint[];
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
bins: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
label: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
height: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
size: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
class: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
data: {
|
|
49
|
+
type: () => Density2DPoint[];
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
bins: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
label: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
width: {
|
|
61
|
+
type: NumberConstructor;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
height: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
class: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{}>, {
|
|
77
|
+
size: number;
|
|
78
|
+
class: string;
|
|
79
|
+
data: Density2DPoint[];
|
|
80
|
+
label: string;
|
|
81
|
+
height: number;
|
|
82
|
+
width: number;
|
|
83
|
+
bins: number;
|
|
84
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
//# sourceMappingURL=Density2DChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Density2DChart.d.ts","sourceRoot":"","sources":["../src/Density2DChart.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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;AAuEF,eAAO,MAAM,cAAc;;cAGA,MAAM,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAtB,MAAM,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAgR/C,CAAC"}
|
|
@@ -0,0 +1,254 @@
|
|
|
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: 18, bottom: 36, left: 48 };
|
|
5
|
+
const TONES = [
|
|
6
|
+
"category1",
|
|
7
|
+
"category2",
|
|
8
|
+
"category3",
|
|
9
|
+
"category4",
|
|
10
|
+
"category5",
|
|
11
|
+
"category6",
|
|
12
|
+
"category7",
|
|
13
|
+
"category8",
|
|
14
|
+
];
|
|
15
|
+
// Continuous scale: density normalised 0..max → category1..8 (shared with
|
|
16
|
+
// HeatmapChart). max ≤ 0 or non-finite density → category1 (floor intensity).
|
|
17
|
+
function toneForDensity(density, densityMax) {
|
|
18
|
+
if (!Number.isFinite(density) || densityMax <= 0)
|
|
19
|
+
return "category1";
|
|
20
|
+
const ratio = Math.max(0, Math.min(1, density / densityMax));
|
|
21
|
+
const index = Math.max(0, Math.min(TONES.length - 1, Math.floor(ratio * TONES.length)));
|
|
22
|
+
return TONES[index];
|
|
23
|
+
}
|
|
24
|
+
function niceTicks(min, max, target = 5) {
|
|
25
|
+
if (!Number.isFinite(min) || !Number.isFinite(max) || min === max) {
|
|
26
|
+
return [Number.isFinite(max) ? max : 0];
|
|
27
|
+
}
|
|
28
|
+
const range = max - min;
|
|
29
|
+
const rough = range / Math.max(target - 1, 1);
|
|
30
|
+
const pow = Math.pow(10, Math.floor(Math.log10(rough)));
|
|
31
|
+
const norm = rough / pow;
|
|
32
|
+
let step;
|
|
33
|
+
if (norm < 1.5)
|
|
34
|
+
step = pow;
|
|
35
|
+
else if (norm < 3)
|
|
36
|
+
step = 2 * pow;
|
|
37
|
+
else if (norm < 7)
|
|
38
|
+
step = 5 * pow;
|
|
39
|
+
else
|
|
40
|
+
step = 10 * pow;
|
|
41
|
+
const start = Math.floor(min / step) * step;
|
|
42
|
+
const end = Math.ceil(max / step) * step;
|
|
43
|
+
const ticks = [];
|
|
44
|
+
for (let v = start; v <= end + step / 2; v += step)
|
|
45
|
+
ticks.push(Number(v.toFixed(10)));
|
|
46
|
+
return ticks;
|
|
47
|
+
}
|
|
48
|
+
function scaleLinear(v, d0, d1, r0, r1) {
|
|
49
|
+
if (d1 === d0)
|
|
50
|
+
return r0;
|
|
51
|
+
return r0 + ((v - d0) * (r1 - r0)) / (d1 - d0);
|
|
52
|
+
}
|
|
53
|
+
function formatTick(v) {
|
|
54
|
+
if (Math.abs(v) >= 1000)
|
|
55
|
+
return `${(v / 1000).toFixed(v % 1000 === 0 ? 0 : 1)}k`;
|
|
56
|
+
return Number.isInteger(v) ? String(v) : v.toFixed(1);
|
|
57
|
+
}
|
|
58
|
+
export const Density2DChart = defineComponent({
|
|
59
|
+
name: "Density2DChart",
|
|
60
|
+
props: {
|
|
61
|
+
data: { type: Array, default: () => [] },
|
|
62
|
+
bins: { type: Number, default: 12 },
|
|
63
|
+
label: { type: String, default: undefined },
|
|
64
|
+
width: { type: Number, default: undefined },
|
|
65
|
+
height: { type: Number, default: 320 },
|
|
66
|
+
size: { type: Number, default: undefined },
|
|
67
|
+
class: { type: String, default: undefined },
|
|
68
|
+
},
|
|
69
|
+
setup(props, { attrs }) {
|
|
70
|
+
const hoveredKey = ref(null);
|
|
71
|
+
function handleLeave() {
|
|
72
|
+
hoveredKey.value = null;
|
|
73
|
+
}
|
|
74
|
+
function handlePointerMove(event) {
|
|
75
|
+
const target = event.target;
|
|
76
|
+
if (!(target instanceof Element)) {
|
|
77
|
+
hoveredKey.value = null;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
hoveredKey.value = target.getAttribute("data-chart-key");
|
|
81
|
+
}
|
|
82
|
+
return () => {
|
|
83
|
+
const data = props.data ?? [];
|
|
84
|
+
const label = props.label;
|
|
85
|
+
const height = props.height ?? 320;
|
|
86
|
+
const resolvedWidth = props.width ?? props.size ?? 640;
|
|
87
|
+
const plotWidth = Math.max(resolvedWidth - MARGIN.left - MARGIN.right, 1);
|
|
88
|
+
const plotHeight = Math.max(height - MARGIN.top - MARGIN.bottom, 1);
|
|
89
|
+
// Effective bin count: integer ≥ 1, capped to stay legible.
|
|
90
|
+
const binCount = Math.max(1, Math.min(40, Math.floor(Number.isFinite(props.bins) ? props.bins : 12)));
|
|
91
|
+
// Normalise: keep only finite-coordinate points.
|
|
92
|
+
const validData = data.filter((d) => d && Number.isFinite(d.x) && Number.isFinite(d.y));
|
|
93
|
+
// Extent [minX,maxX]×[minY,maxY] + nice ticks for the axes.
|
|
94
|
+
const xs = validData.map((d) => d.x);
|
|
95
|
+
const ys = validData.map((d) => d.y);
|
|
96
|
+
const xTicks = niceTicks(xs.length ? Math.min(...xs) : 0, xs.length ? Math.max(...xs) : 1);
|
|
97
|
+
const yTicks = niceTicks(ys.length ? Math.min(...ys) : 0, ys.length ? Math.max(...ys) : 1);
|
|
98
|
+
const xMin = xTicks[0];
|
|
99
|
+
const xMax = xTicks[xTicks.length - 1];
|
|
100
|
+
const yMin = yTicks[0];
|
|
101
|
+
const yMax = yTicks[yTicks.length - 1];
|
|
102
|
+
// Regular binning: binCount×binCount grid over the extent; each point
|
|
103
|
+
// falls into a cell, whose density = sum of weights (default 1).
|
|
104
|
+
let densityMax = 0;
|
|
105
|
+
const binCells = [];
|
|
106
|
+
if (validData.length > 0 && xMax !== xMin && yMax !== yMin) {
|
|
107
|
+
const counts = new Float64Array(binCount * binCount);
|
|
108
|
+
const idx = (ix, iy) => iy * binCount + ix;
|
|
109
|
+
for (const d of validData) {
|
|
110
|
+
const fx = (d.x - xMin) / (xMax - xMin);
|
|
111
|
+
const fy = (d.y - yMin) / (yMax - yMin);
|
|
112
|
+
const ix = Math.max(0, Math.min(binCount - 1, Math.floor(fx * binCount)));
|
|
113
|
+
const iy = Math.max(0, Math.min(binCount - 1, Math.floor(fy * binCount)));
|
|
114
|
+
const w = typeof d.weight === "number" && Number.isFinite(d.weight) ? d.weight : 1;
|
|
115
|
+
counts[idx(ix, iy)] += w;
|
|
116
|
+
}
|
|
117
|
+
for (let i = 0; i < counts.length; i++)
|
|
118
|
+
densityMax = Math.max(densityMax, counts[i]);
|
|
119
|
+
const cellW = plotWidth / binCount;
|
|
120
|
+
const cellH = plotHeight / binCount;
|
|
121
|
+
for (let iy = 0; iy < binCount; iy++) {
|
|
122
|
+
for (let ix = 0; ix < binCount; ix++) {
|
|
123
|
+
const density = counts[idx(ix, iy)];
|
|
124
|
+
if (density <= 0)
|
|
125
|
+
continue;
|
|
126
|
+
const x = MARGIN.left + ix * cellW;
|
|
127
|
+
const y = MARGIN.top + (binCount - 1 - iy) * cellH;
|
|
128
|
+
binCells.push({
|
|
129
|
+
key: `${ix}-${iy}`,
|
|
130
|
+
ix,
|
|
131
|
+
iy,
|
|
132
|
+
density,
|
|
133
|
+
x,
|
|
134
|
+
y,
|
|
135
|
+
width: Math.max(cellW - 1, 1),
|
|
136
|
+
height: Math.max(cellH - 1, 1),
|
|
137
|
+
cx: x + cellW / 2,
|
|
138
|
+
cy: y + cellH / 2,
|
|
139
|
+
x0: xMin + (ix / binCount) * (xMax - xMin),
|
|
140
|
+
x1: xMin + ((ix + 1) / binCount) * (xMax - xMin),
|
|
141
|
+
y0: yMin + (iy / binCount) * (yMax - yMin),
|
|
142
|
+
y1: yMin + ((iy + 1) / binCount) * (yMax - yMin),
|
|
143
|
+
tone: toneForDensity(density, densityMax),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const xAxisTicks = xTicks.map((t) => ({
|
|
149
|
+
value: t,
|
|
150
|
+
x: MARGIN.left + scaleLinear(t, xMin, xMax, 0, plotWidth),
|
|
151
|
+
}));
|
|
152
|
+
const yAxisTicks = yTicks.map((t) => ({
|
|
153
|
+
value: t,
|
|
154
|
+
y: MARGIN.top + scaleLinear(t, yMin, yMax, plotHeight, 0),
|
|
155
|
+
}));
|
|
156
|
+
const dataValueItems = binCells.map((b) => `[${formatTick(b.x0)}–${formatTick(b.x1)}] × [${formatTick(b.y0)}–${formatTick(b.y1)}]: ${b.density}`);
|
|
157
|
+
const legendItems = TONES.map((tone) => ({ tone }));
|
|
158
|
+
const hasLegend = binCells.length > 0;
|
|
159
|
+
const svgChildren = [];
|
|
160
|
+
// tick labels (Y axis)
|
|
161
|
+
for (const tick of yAxisTicks) {
|
|
162
|
+
svgChildren.push(h("text", {
|
|
163
|
+
key: `y${tick.value}`,
|
|
164
|
+
class: "st-density2DChart__tickLabel",
|
|
165
|
+
x: MARGIN.left - 8,
|
|
166
|
+
y: tick.y,
|
|
167
|
+
"text-anchor": "end",
|
|
168
|
+
"dominant-baseline": "middle",
|
|
169
|
+
}, formatTick(tick.value)));
|
|
170
|
+
}
|
|
171
|
+
// tick labels (X axis)
|
|
172
|
+
for (const tick of xAxisTicks) {
|
|
173
|
+
svgChildren.push(h("text", {
|
|
174
|
+
key: `x${tick.value}`,
|
|
175
|
+
class: "st-density2DChart__tickLabel",
|
|
176
|
+
x: tick.x,
|
|
177
|
+
y: height - MARGIN.bottom + 16,
|
|
178
|
+
"text-anchor": "middle",
|
|
179
|
+
}, formatTick(tick.value)));
|
|
180
|
+
}
|
|
181
|
+
// axes
|
|
182
|
+
svgChildren.push(h("line", {
|
|
183
|
+
class: "st-density2DChart__axis",
|
|
184
|
+
x1: MARGIN.left,
|
|
185
|
+
x2: MARGIN.left,
|
|
186
|
+
y1: MARGIN.top,
|
|
187
|
+
y2: height - MARGIN.bottom,
|
|
188
|
+
}));
|
|
189
|
+
svgChildren.push(h("line", {
|
|
190
|
+
class: "st-density2DChart__axis",
|
|
191
|
+
x1: MARGIN.left,
|
|
192
|
+
x2: resolvedWidth - MARGIN.right,
|
|
193
|
+
y1: height - MARGIN.bottom,
|
|
194
|
+
y2: height - MARGIN.bottom,
|
|
195
|
+
}));
|
|
196
|
+
// density cells (binCount×binCount grid, color ∝ density)
|
|
197
|
+
for (const cell of binCells) {
|
|
198
|
+
const isDim = hoveredKey.value !== null && hoveredKey.value !== cell.key;
|
|
199
|
+
svgChildren.push(h("rect", {
|
|
200
|
+
key: cell.key,
|
|
201
|
+
class: classNames("st-density2DChart__cell", `st-density2DChart__cell--${cell.tone}`, isDim ? "st-density2DChart__cell--dim" : undefined),
|
|
202
|
+
x: cell.x,
|
|
203
|
+
y: cell.y,
|
|
204
|
+
width: cell.width,
|
|
205
|
+
height: cell.height,
|
|
206
|
+
rx: 1,
|
|
207
|
+
"data-chart-key": cell.key,
|
|
208
|
+
}));
|
|
209
|
+
}
|
|
210
|
+
const hoveredCell = hoveredKey.value !== null ? binCells.find((b) => b.key === hoveredKey.value) ?? null : null;
|
|
211
|
+
const children = [
|
|
212
|
+
h("div", {
|
|
213
|
+
class: "st-density2DChart__visual",
|
|
214
|
+
role: "img",
|
|
215
|
+
"aria-label": label,
|
|
216
|
+
onPointermove: handlePointerMove,
|
|
217
|
+
onPointerleave: handleLeave,
|
|
218
|
+
}, [
|
|
219
|
+
h("svg", {
|
|
220
|
+
viewBox: `0 0 ${resolvedWidth} ${height}`,
|
|
221
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
222
|
+
width: "100%",
|
|
223
|
+
height: "100%",
|
|
224
|
+
focusable: "false",
|
|
225
|
+
"aria-hidden": "true",
|
|
226
|
+
}, svgChildren),
|
|
227
|
+
]),
|
|
228
|
+
];
|
|
229
|
+
if (hasLegend) {
|
|
230
|
+
children.push(h("div", { class: "st-density2DChart__legend", "aria-hidden": "true" }, [
|
|
231
|
+
h("span", { class: "st-density2DChart__legendText" }, "Low"),
|
|
232
|
+
h("span", { class: "st-density2DChart__legendRamp" }, legendItems.map((item) => h("span", {
|
|
233
|
+
key: item.tone,
|
|
234
|
+
class: `st-density2DChart__legendSwatch st-density2DChart__legendSwatch--${item.tone}`,
|
|
235
|
+
}))),
|
|
236
|
+
h("span", { class: "st-density2DChart__legendText" }, "High"),
|
|
237
|
+
]));
|
|
238
|
+
}
|
|
239
|
+
children.push(chartDataList(label ?? "density 2d", dataValueItems));
|
|
240
|
+
if (hoveredCell) {
|
|
241
|
+
children.push(h("div", {
|
|
242
|
+
class: "st-density2DChart__tooltip",
|
|
243
|
+
role: "presentation",
|
|
244
|
+
style: `left:${(hoveredCell.cx / resolvedWidth) * 100}%;top:${(hoveredCell.cy / height) * 100}%`,
|
|
245
|
+
}, [
|
|
246
|
+
h("span", { class: "st-density2DChart__tooltipLabel" }, `[${formatTick(hoveredCell.x0)}–${formatTick(hoveredCell.x1)}] × [${formatTick(hoveredCell.y0)}–${formatTick(hoveredCell.y1)}]`),
|
|
247
|
+
h("span", { class: "st-density2DChart__tooltipValue" }, `${hoveredCell.density}`),
|
|
248
|
+
]));
|
|
249
|
+
}
|
|
250
|
+
return h("div", { ...attrs, class: classNames("st-density2DChart", props.class) }, children);
|
|
251
|
+
};
|
|
252
|
+
},
|
|
253
|
+
});
|
|
254
|
+
//# sourceMappingURL=Density2DChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Density2DChart.js","sourceRoot":"","sources":["../src/Density2DChart.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;AA4BhD,MAAM,MAAM,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;AAC5D,MAAM,KAAK,GAAoB;IAC7B,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;IACX,WAAW;CACZ,CAAC;AAEF,0EAA0E;AAC1E,8EAA8E;AAC9E,SAA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C5C,IAAI,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,QAAQ,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAChI;oBACD,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,iCAAiC,EAAE,EAAE,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC;iBAClF,CACF,CACF,CAAC;YACJ,CAAC;YAED,OAAO,CAAC,CACN,KAAK,EACL,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,mBAAmB,EAAE,KAAK,CAAC,KAAK,CAAC,EAAE,EACjE,QAAQ,CACT,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type FlamegraphNode = {
|
|
2
|
+
name: string;
|
|
3
|
+
value: number;
|
|
4
|
+
children?: FlamegraphNode[];
|
|
5
|
+
};
|
|
6
|
+
export type FlamegraphChartProps = {
|
|
7
|
+
data: FlamegraphNode;
|
|
8
|
+
label?: string;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
size?: number;
|
|
12
|
+
class?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const FlamegraphChart: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
+
data: {
|
|
16
|
+
type: () => FlamegraphNode;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
label: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
width: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
height: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
size: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
class: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
data: {
|
|
43
|
+
type: () => FlamegraphNode;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
label: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
width: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
height: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
size: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
class: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{}>, {
|
|
67
|
+
size: number;
|
|
68
|
+
class: string;
|
|
69
|
+
label: string;
|
|
70
|
+
height: number;
|
|
71
|
+
width: number;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
//# sourceMappingURL=FlamegraphChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlamegraphChart.d.ts","sourceRoot":"","sources":["../src/FlamegraphChart.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,cAAc,CAAC;IACrB,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;AA8BF,eAAO,MAAM,eAAe;;cAGA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;cAApB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAwK9C,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
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 ROW_H = 26;
|
|
6
|
+
const ROW_GAP = 2;
|
|
7
|
+
const toneForDepth = (depth) => `category${(depth % 8) + 1}`;
|
|
8
|
+
// Truncate a label to the rectangle width (approx. by char count).
|
|
9
|
+
function ellipsize(text, maxChars) {
|
|
10
|
+
if (text.length <= maxChars)
|
|
11
|
+
return text;
|
|
12
|
+
if (maxChars <= 1)
|
|
13
|
+
return "…";
|
|
14
|
+
return `${text.slice(0, maxChars - 1)}…`;
|
|
15
|
+
}
|
|
16
|
+
const charsFor = (w) => Math.max(0, Math.floor((w - 8) / 6.6));
|
|
17
|
+
export const FlamegraphChart = defineComponent({
|
|
18
|
+
name: "FlamegraphChart",
|
|
19
|
+
props: {
|
|
20
|
+
data: { type: Object, required: true },
|
|
21
|
+
label: { type: String, default: undefined },
|
|
22
|
+
width: { type: Number, default: undefined },
|
|
23
|
+
height: { type: Number, default: 320 },
|
|
24
|
+
size: { type: Number, default: undefined },
|
|
25
|
+
class: { type: String, default: undefined },
|
|
26
|
+
},
|
|
27
|
+
setup(props, { attrs }) {
|
|
28
|
+
const hoveredKey = ref(null);
|
|
29
|
+
function handleLeave() {
|
|
30
|
+
hoveredKey.value = null;
|
|
31
|
+
}
|
|
32
|
+
function handlePointerMove(event) {
|
|
33
|
+
const target = event.target;
|
|
34
|
+
if (!(target instanceof Element)) {
|
|
35
|
+
hoveredKey.value = null;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
hoveredKey.value = target.getAttribute("data-chart-key");
|
|
39
|
+
}
|
|
40
|
+
return () => {
|
|
41
|
+
const data = props.data;
|
|
42
|
+
const label = props.label;
|
|
43
|
+
const height = props.height ?? 320;
|
|
44
|
+
const resolvedWidth = props.width ?? props.size ?? 640;
|
|
45
|
+
const plotWidth = Math.max(resolvedWidth - MARGIN.left - MARGIN.right, 1);
|
|
46
|
+
// Recursive icicle layout: the root spans `plotWidth`; each child occupies
|
|
47
|
+
// a `value/sum(siblings)` fraction of its parent's width.
|
|
48
|
+
const cells = [];
|
|
49
|
+
if (data && typeof data.name === "string" && Number.isFinite(data.value)) {
|
|
50
|
+
const walk = (node, depth, x0, w, path) => {
|
|
51
|
+
if (w <= 0)
|
|
52
|
+
return;
|
|
53
|
+
const y = MARGIN.top + depth * (ROW_H + ROW_GAP);
|
|
54
|
+
cells.push({
|
|
55
|
+
key: path,
|
|
56
|
+
name: node.name,
|
|
57
|
+
value: node.value,
|
|
58
|
+
depth,
|
|
59
|
+
x: x0,
|
|
60
|
+
y,
|
|
61
|
+
width: w,
|
|
62
|
+
tone: toneForDepth(depth),
|
|
63
|
+
cx: x0 + w / 2,
|
|
64
|
+
cy: y + ROW_H / 2,
|
|
65
|
+
});
|
|
66
|
+
const kids = (node.children ?? []).filter((c) => c && typeof c.name === "string" && Number.isFinite(c.value) && c.value > 0);
|
|
67
|
+
if (kids.length === 0)
|
|
68
|
+
return;
|
|
69
|
+
const total = kids.reduce((s, c) => s + Math.max(c.value, 0), 0);
|
|
70
|
+
if (total <= 0)
|
|
71
|
+
return;
|
|
72
|
+
let cursor = x0;
|
|
73
|
+
kids.forEach((child, ci) => {
|
|
74
|
+
const cw = (Math.max(child.value, 0) / total) * w;
|
|
75
|
+
walk(child, depth + 1, cursor, cw, `${path}.${ci}`);
|
|
76
|
+
cursor += cw;
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
walk(data, 0, MARGIN.left, plotWidth, "0");
|
|
80
|
+
}
|
|
81
|
+
const maxDepth = cells.reduce((m, c) => Math.max(m, c.depth), 0);
|
|
82
|
+
const computedHeight = cells.length === 0
|
|
83
|
+
? height
|
|
84
|
+
: Math.max(height, MARGIN.top + (maxDepth + 1) * (ROW_H + ROW_GAP) - ROW_GAP + MARGIN.bottom);
|
|
85
|
+
const dataValueItems = cells.map((c) => `${"·".repeat(c.depth)}${c.name}: ${c.value}`);
|
|
86
|
+
const svgChildren = [];
|
|
87
|
+
// one row per depth: rectangle whose width ∝ value
|
|
88
|
+
for (const cell of cells) {
|
|
89
|
+
const chars = charsFor(cell.width);
|
|
90
|
+
const isDim = hoveredKey.value !== null && hoveredKey.value !== cell.key;
|
|
91
|
+
const nodeChildren = [
|
|
92
|
+
h("rect", {
|
|
93
|
+
class: classNames("st-flamegraphChart__frame", `st-flamegraphChart__frame--${cell.tone}`, isDim ? "st-flamegraphChart__frame--dim" : undefined),
|
|
94
|
+
x: cell.x,
|
|
95
|
+
y: cell.y,
|
|
96
|
+
width: Math.max(cell.width, 1),
|
|
97
|
+
height: ROW_H,
|
|
98
|
+
rx: 2,
|
|
99
|
+
"data-chart-key": cell.key,
|
|
100
|
+
}),
|
|
101
|
+
];
|
|
102
|
+
if (chars >= 2) {
|
|
103
|
+
nodeChildren.push(h("text", {
|
|
104
|
+
class: "st-flamegraphChart__label",
|
|
105
|
+
x: cell.x + 4,
|
|
106
|
+
y: cell.y + ROW_H / 2,
|
|
107
|
+
"dominant-baseline": "central",
|
|
108
|
+
}, ellipsize(cell.name, chars)));
|
|
109
|
+
}
|
|
110
|
+
svgChildren.push(h("g", { key: cell.key, class: "st-flamegraphChart__node" }, nodeChildren));
|
|
111
|
+
}
|
|
112
|
+
const hoveredCell = hoveredKey.value !== null ? cells.find((c) => c.key === hoveredKey.value) ?? null : null;
|
|
113
|
+
const children = [
|
|
114
|
+
h("div", {
|
|
115
|
+
class: "st-flamegraphChart__visual",
|
|
116
|
+
role: "img",
|
|
117
|
+
"aria-label": label,
|
|
118
|
+
onPointermove: handlePointerMove,
|
|
119
|
+
onPointerleave: handleLeave,
|
|
120
|
+
}, [
|
|
121
|
+
h("svg", {
|
|
122
|
+
viewBox: `0 0 ${resolvedWidth} ${computedHeight}`,
|
|
123
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
124
|
+
width: "100%",
|
|
125
|
+
height: "100%",
|
|
126
|
+
focusable: "false",
|
|
127
|
+
"aria-hidden": "true",
|
|
128
|
+
}, svgChildren),
|
|
129
|
+
]),
|
|
130
|
+
chartDataList(label ?? "flamegraph", dataValueItems),
|
|
131
|
+
];
|
|
132
|
+
if (hoveredCell) {
|
|
133
|
+
children.push(h("div", {
|
|
134
|
+
class: "st-flamegraphChart__tooltip",
|
|
135
|
+
role: "presentation",
|
|
136
|
+
style: `left:${(hoveredCell.cx / resolvedWidth) * 100}%;top:${(hoveredCell.cy / computedHeight) * 100}%`,
|
|
137
|
+
}, [
|
|
138
|
+
h("span", { class: "st-flamegraphChart__tooltipLabel" }, hoveredCell.name),
|
|
139
|
+
h("span", { class: "st-flamegraphChart__tooltipValue" }, `${hoveredCell.value}`),
|
|
140
|
+
]));
|
|
141
|
+
}
|
|
142
|
+
return h("div", { ...attrs, class: classNames("st-flamegraphChart", props.class) }, children);
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
//# sourceMappingURL=FlamegraphChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlamegraphChart.js","sourceRoot":"","sources":["../src/FlamegraphChart.ts"],"names":[],"mappings":"AAAA,OAAO,EA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