vizmatic 0.3.0 → 0.3.2
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/README.md +21 -3
- package/dist/cli.js +17 -8
- package/dist/index.cjs +53 -37
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +52 -37
- package/examples/README.md +4 -0
- package/examples/aurora-incident.tsx +108 -0
- package/examples/daybreak-launch.tsx +81 -0
- package/examples/model-garden.tsx +97 -0
- package/examples/vizmatic-bare.d.ts +7 -0
- package/examples/weekend-field-notes.tsx +81 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -223,7 +223,7 @@ function getReadableToneColor(tone, c, background = c.bgCard, backdrop = c.bgCar
|
|
|
223
223
|
return colorContrast(color, background, backdrop) >= 4.5 ? color : getReadableTextColor(background, c, backdrop);
|
|
224
224
|
}
|
|
225
225
|
function getToneFill(tone, c) {
|
|
226
|
-
if (c.preset !== "engineering") return
|
|
226
|
+
if (c.preset !== "engineering") return withColorAlpha(getToneColor(tone, c), 22 / 255);
|
|
227
227
|
return {
|
|
228
228
|
blue: "#cddcfa",
|
|
229
229
|
purple: "#dfcff8",
|
|
@@ -360,6 +360,17 @@ function parseColor(color) {
|
|
|
360
360
|
alpha: parsed.alpha
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
+
function withColorAlpha(color, opacity) {
|
|
364
|
+
if (typeof color !== "string" || !Number.isFinite(opacity)) return "transparent";
|
|
365
|
+
const parsed = parseColor(color);
|
|
366
|
+
if (!parsed) return "transparent";
|
|
367
|
+
const alpha = Math.min(1, Math.max(0, parsed.alpha * Math.min(1, Math.max(0, opacity))));
|
|
368
|
+
const hex = color.trim();
|
|
369
|
+
if (/^#[\da-f]{6}$/i.test(hex)) {
|
|
370
|
+
return `${hex}${Math.round(alpha * 255).toString(16).padStart(2, "0")}`;
|
|
371
|
+
}
|
|
372
|
+
return `rgba(${parsed.channels.join(", ")}, ${Number(alpha.toFixed(6))})`;
|
|
373
|
+
}
|
|
363
374
|
function colorLuminance(color, backdrop) {
|
|
364
375
|
const parsed = parseColor(color);
|
|
365
376
|
if (!parsed) return void 0;
|
|
@@ -1274,10 +1285,10 @@ function Box({
|
|
|
1274
1285
|
style.backgroundColor = "transparent";
|
|
1275
1286
|
} else if (gradient) {
|
|
1276
1287
|
style.backgroundImage = gradientBg;
|
|
1277
|
-
style.boxShadow = `0 4px 20px ${solidColor}
|
|
1288
|
+
style.boxShadow = `0 4px 20px ${withColorAlpha(solidColor, 48 / 255)}`;
|
|
1278
1289
|
} else {
|
|
1279
1290
|
style.backgroundColor = solidColor;
|
|
1280
|
-
style.boxShadow = `0 4px 20px ${solidColor}
|
|
1291
|
+
style.boxShadow = `0 4px 20px ${withColorAlpha(solidColor, 48 / 255)}`;
|
|
1281
1292
|
}
|
|
1282
1293
|
return React2.createElement(
|
|
1283
1294
|
"div",
|
|
@@ -1299,7 +1310,7 @@ function Box({
|
|
|
1299
1310
|
style: {
|
|
1300
1311
|
fontSize: fontSize - 2,
|
|
1301
1312
|
fontWeight: 400,
|
|
1302
|
-
color: outlined ? c.textMuted : gradient ?
|
|
1313
|
+
color: outlined ? c.textMuted : gradient ? withColorAlpha(c.textOnColor, 179 / 255) : solidTextColor,
|
|
1303
1314
|
fontFamily: c.fontMono,
|
|
1304
1315
|
textAlign: "center"
|
|
1305
1316
|
}
|
|
@@ -1829,8 +1840,8 @@ function BadgePill({
|
|
|
1829
1840
|
...height != null ? { height } : {},
|
|
1830
1841
|
padding,
|
|
1831
1842
|
borderRadius: engineering ? Math.min(radius, 5) : radius,
|
|
1832
|
-
...engineering ? { backgroundColor: getToneFill(tone, c) } : filled ? { backgroundImage: getToneGradient(tone) } : { backgroundColor:
|
|
1833
|
-
border: `1px solid ${engineering ? accent : filled ?
|
|
1843
|
+
...engineering ? { backgroundColor: getToneFill(tone, c) } : filled ? { backgroundImage: getToneGradient(tone) } : { backgroundColor: withColorAlpha(accent, 24 / 255) },
|
|
1844
|
+
border: `1px solid ${engineering ? accent : filled ? withColorAlpha(accent, 0) : withColorAlpha(accent, 85 / 255)}`,
|
|
1834
1845
|
color: engineering ? c.textPrimary : filled ? c.textOnColor : accentText,
|
|
1835
1846
|
fontSize,
|
|
1836
1847
|
fontWeight: 800,
|
|
@@ -1932,7 +1943,7 @@ function StepCard({
|
|
|
1932
1943
|
radius: engineering ? 5 : radius,
|
|
1933
1944
|
shadow: engineering ? false : shadow,
|
|
1934
1945
|
background: engineering ? getToneFill(tone, c) : void 0,
|
|
1935
|
-
borderColor: engineering ? accent :
|
|
1946
|
+
borderColor: engineering ? accent : withColorAlpha(accent, 136 / 255),
|
|
1936
1947
|
children: React3.createElement(
|
|
1937
1948
|
"div",
|
|
1938
1949
|
{
|
|
@@ -2008,7 +2019,7 @@ function MetricCard({
|
|
|
2008
2019
|
padding,
|
|
2009
2020
|
radius,
|
|
2010
2021
|
shadow,
|
|
2011
|
-
borderColor:
|
|
2022
|
+
borderColor: withColorAlpha(accent, 102 / 255),
|
|
2012
2023
|
children: React3.createElement(
|
|
2013
2024
|
"div",
|
|
2014
2025
|
{
|
|
@@ -2258,7 +2269,7 @@ function DetailList({
|
|
|
2258
2269
|
padding,
|
|
2259
2270
|
borderRadius: 8,
|
|
2260
2271
|
backgroundColor: c.bgSubtle,
|
|
2261
|
-
border: `1px solid ${tone ?
|
|
2272
|
+
border: `1px solid ${tone ? withColorAlpha(accent, 68 / 255) : c.borderSubtle}`,
|
|
2262
2273
|
color: c.textSecondary,
|
|
2263
2274
|
fontSize,
|
|
2264
2275
|
lineHeight: 1.3,
|
|
@@ -2322,7 +2333,7 @@ function Tile({
|
|
|
2322
2333
|
padding,
|
|
2323
2334
|
radius,
|
|
2324
2335
|
shadow,
|
|
2325
|
-
borderColor:
|
|
2336
|
+
borderColor: withColorAlpha(accent, 136 / 255),
|
|
2326
2337
|
children: React4.createElement(
|
|
2327
2338
|
"div",
|
|
2328
2339
|
{
|
|
@@ -2456,7 +2467,7 @@ function CodeBlock({
|
|
|
2456
2467
|
width: "100%",
|
|
2457
2468
|
padding: accent ? "3px 7px" : "1px 0",
|
|
2458
2469
|
borderRadius: accent ? 5 : 0,
|
|
2459
|
-
...accent ? { backgroundColor:
|
|
2470
|
+
...accent ? { backgroundColor: withColorAlpha(accent, 31 / 255) } : {},
|
|
2460
2471
|
boxSizing: "border-box"
|
|
2461
2472
|
}
|
|
2462
2473
|
},
|
|
@@ -2512,7 +2523,7 @@ function CodeBlock({
|
|
|
2512
2523
|
padding,
|
|
2513
2524
|
borderRadius: radius,
|
|
2514
2525
|
backgroundColor: background ?? c.bgSubtle,
|
|
2515
|
-
border: `1px solid ${tone ?
|
|
2526
|
+
border: `1px solid ${tone ? withColorAlpha(headerAccent, 68 / 255) : c.borderSubtle}`,
|
|
2516
2527
|
boxSizing: "border-box",
|
|
2517
2528
|
...shadow ? { boxShadow: `0 9px 24px ${c.shadow}` } : {}
|
|
2518
2529
|
}
|
|
@@ -2874,7 +2885,7 @@ function StatusRow({
|
|
|
2874
2885
|
const markerAlpha = 38 / 255;
|
|
2875
2886
|
const rowAlpha = boxed ? 18 / 255 : 0;
|
|
2876
2887
|
const markerBackgroundAlpha = Math.round((rowAlpha + markerAlpha * (1 - rowAlpha)) * 255);
|
|
2877
|
-
const markerBackground =
|
|
2888
|
+
const markerBackground = withColorAlpha(accent, markerBackgroundAlpha / 255);
|
|
2878
2889
|
const accentText = getReadableToneColor(resolvedTone, c, markerBackground, c.bgCard);
|
|
2879
2890
|
const glyph = statusGlyphs[status];
|
|
2880
2891
|
const marker = React5.createElement("div", {
|
|
@@ -2886,7 +2897,7 @@ function StatusRow({
|
|
|
2886
2897
|
height: 18,
|
|
2887
2898
|
flexShrink: 0,
|
|
2888
2899
|
borderRadius: 999,
|
|
2889
|
-
backgroundColor: status === "dot" ? accent :
|
|
2900
|
+
backgroundColor: status === "dot" ? accent : withColorAlpha(accent, 38 / 255),
|
|
2890
2901
|
border: `1px solid ${accent}`,
|
|
2891
2902
|
color: accentText,
|
|
2892
2903
|
fontFamily: "Inter",
|
|
@@ -2907,8 +2918,8 @@ function StatusRow({
|
|
|
2907
2918
|
...boxed ? {
|
|
2908
2919
|
padding: "7px 10px",
|
|
2909
2920
|
borderRadius: 8,
|
|
2910
|
-
backgroundColor:
|
|
2911
|
-
border: `1px solid ${accent}
|
|
2921
|
+
backgroundColor: withColorAlpha(accent, 18 / 255),
|
|
2922
|
+
border: `1px solid ${withColorAlpha(accent, 58 / 255)}`
|
|
2912
2923
|
} : { padding: "3px 0" }
|
|
2913
2924
|
}
|
|
2914
2925
|
},
|
|
@@ -2973,7 +2984,7 @@ function renderTimelineCard(event, c, math, width) {
|
|
|
2973
2984
|
...typeof resolvedWidth === "string" ? { minWidth: 0 } : {},
|
|
2974
2985
|
padding: "10px 12px",
|
|
2975
2986
|
borderRadius: 8,
|
|
2976
|
-
border: `1px solid ${accent}
|
|
2987
|
+
border: `1px solid ${withColorAlpha(accent, 68 / 255)}`,
|
|
2977
2988
|
backgroundColor: c.bgCard,
|
|
2978
2989
|
boxShadow: `0 7px 18px ${c.shadow}`,
|
|
2979
2990
|
boxSizing: "border-box"
|
|
@@ -3851,10 +3862,10 @@ function LayeredNetwork({
|
|
|
3851
3862
|
width: nodeSize + 28,
|
|
3852
3863
|
height: nodeSize + 28,
|
|
3853
3864
|
borderRadius: 999,
|
|
3854
|
-
backgroundColor:
|
|
3865
|
+
backgroundColor: withColorAlpha(c.warningLight, 46 / 255),
|
|
3855
3866
|
border: `4px solid ${c.warningLight}`,
|
|
3856
3867
|
boxSizing: "border-box",
|
|
3857
|
-
boxShadow: `0 0 18px ${c.warningLight}
|
|
3868
|
+
boxShadow: `0 0 18px ${withColorAlpha(c.warningLight, 102 / 255)}`
|
|
3858
3869
|
}
|
|
3859
3870
|
}),
|
|
3860
3871
|
React6.createElement("div", {
|
|
@@ -3873,7 +3884,7 @@ function LayeredNetwork({
|
|
|
3873
3884
|
color: getReadableTextColor(color, c),
|
|
3874
3885
|
border: active ? `3px solid ${c.warningLight}` : `1.5px solid ${color}`,
|
|
3875
3886
|
boxSizing: "border-box",
|
|
3876
|
-
boxShadow: active ? `0 0 16px ${c.warningLight}
|
|
3887
|
+
boxShadow: active ? `0 0 16px ${withColorAlpha(c.warningLight, 112 / 255)}` : `0 8px 14px ${c.shadow}`,
|
|
3877
3888
|
fontFamily: "JetBrains Mono",
|
|
3878
3889
|
fontSize: 16,
|
|
3879
3890
|
fontWeight: 900,
|
|
@@ -4447,8 +4458,8 @@ function GraphDiagram({
|
|
|
4447
4458
|
display: "flex",
|
|
4448
4459
|
boxSizing: "border-box",
|
|
4449
4460
|
borderRadius: c.preset === "engineering" ? 6 : 12,
|
|
4450
|
-
border: `${c.preset === "engineering" ? 1.25 : 1.5}px ${group.muted ? "dashed" : "solid"} ${accent
|
|
4451
|
-
backgroundColor:
|
|
4461
|
+
border: `${c.preset === "engineering" ? 1.25 : 1.5}px ${group.muted ? "dashed" : "solid"} ${withColorAlpha(accent, (group.muted ? 85 : 119) / 255)}`,
|
|
4462
|
+
backgroundColor: withColorAlpha(accent, (c.preset === "engineering" ? 8 : 13) / 255),
|
|
4452
4463
|
opacity: group.muted ? 0.68 : 1
|
|
4453
4464
|
}
|
|
4454
4465
|
}, React6.createElement(
|
|
@@ -4618,7 +4629,7 @@ function GraphDiagram({
|
|
|
4618
4629
|
boxSizing: "border-box",
|
|
4619
4630
|
borderRadius: c.preset === "engineering" ? 5 : 10,
|
|
4620
4631
|
backgroundColor: node.muted ? c.bgSubtle : fill,
|
|
4621
|
-
border: `${c.preset === "engineering" ? 1.25 : 1.5}px solid ${node.muted ? c.borderLight :
|
|
4632
|
+
border: `${c.preset === "engineering" ? 1.25 : 1.5}px solid ${node.muted ? c.borderLight : c.preset === "engineering" ? accent : withColorAlpha(accent, 136 / 255)}`,
|
|
4622
4633
|
...!node.muted && c.preset !== "engineering" ? { boxShadow: `0 8px 18px ${c.shadow}` } : {},
|
|
4623
4634
|
opacity: node.muted ? 0.62 : 1,
|
|
4624
4635
|
color: c.preset === "engineering" ? c.textPrimary : accentText,
|
|
@@ -4842,7 +4853,7 @@ function TreeDiagram({
|
|
|
4842
4853
|
boxSizing: "border-box",
|
|
4843
4854
|
borderRadius: 8,
|
|
4844
4855
|
backgroundColor: node.muted ? c.bgSubtle : c.bgCard,
|
|
4845
|
-
border: `1.5px solid ${node.muted ? c.borderLight :
|
|
4856
|
+
border: `1.5px solid ${node.muted ? c.borderLight : withColorAlpha(accent, 136 / 255)}`,
|
|
4846
4857
|
...!node.muted ? { boxShadow: `0 8px 18px ${c.shadow}` } : {},
|
|
4847
4858
|
opacity: node.muted ? 0.62 : 1,
|
|
4848
4859
|
color: accentText,
|
|
@@ -4902,7 +4913,7 @@ function CalloutCard({
|
|
|
4902
4913
|
padding,
|
|
4903
4914
|
borderRadius: engineering ? 5 : 10,
|
|
4904
4915
|
boxSizing: "border-box",
|
|
4905
|
-
...engineering ? { backgroundColor: getToneFill(tone, c), color: c.textPrimary, border: `1px solid ${accent}` } : filled ? { backgroundImage: getToneGradient(tone), color: c.textOnColor, border: `1px solid ${accent}
|
|
4916
|
+
...engineering ? { backgroundColor: getToneFill(tone, c), color: c.textPrimary, border: `1px solid ${accent}` } : filled ? { backgroundImage: getToneGradient(tone), color: c.textOnColor, border: `1px solid ${withColorAlpha(accent, 0)}` } : { backgroundColor: c.bgCard, color: c.textPrimary, border: `1px solid ${withColorAlpha(accent, 102 / 255)}` },
|
|
4906
4917
|
display: "flex",
|
|
4907
4918
|
flexDirection: "column",
|
|
4908
4919
|
alignItems: align === "center" ? "center" : "flex-start",
|
|
@@ -5248,8 +5259,8 @@ function SequenceDiagram({
|
|
|
5248
5259
|
height: spanHeight,
|
|
5249
5260
|
display: "flex",
|
|
5250
5261
|
boxSizing: "border-box",
|
|
5251
|
-
border: `1.25px ${span.fragment.muted ? "dotted" : "dashed"} ${accent
|
|
5252
|
-
backgroundColor:
|
|
5262
|
+
border: `1.25px ${span.fragment.muted ? "dotted" : "dashed"} ${withColorAlpha(accent, (span.fragment.muted ? 85 : 153) / 255)}`,
|
|
5263
|
+
backgroundColor: withColorAlpha(accent, 11 / 255),
|
|
5253
5264
|
borderRadius: c.preset === "engineering" ? 4 : 8,
|
|
5254
5265
|
pointerEvents: "none"
|
|
5255
5266
|
}
|
|
@@ -5399,7 +5410,7 @@ function SequenceDiagram({
|
|
|
5399
5410
|
padding: "6px 9px",
|
|
5400
5411
|
borderRadius: c.preset === "engineering" ? 3 : 7,
|
|
5401
5412
|
backgroundColor: note.muted ? c.bgSubtle : getToneFill(tone, c),
|
|
5402
|
-
border: `1px solid ${accent
|
|
5413
|
+
border: `1px solid ${withColorAlpha(accent, (note.muted ? 102 : 153) / 255)}`,
|
|
5403
5414
|
color: note.muted ? c.textMuted : getReadableTextColor(getToneFill(tone, c), c),
|
|
5404
5415
|
fontFamily: c.fontSans,
|
|
5405
5416
|
fontSize: 11,
|
|
@@ -6574,8 +6585,8 @@ function TiledMatrix({
|
|
|
6574
6585
|
height: cellSize,
|
|
6575
6586
|
boxSizing: "border-box",
|
|
6576
6587
|
borderRadius: Math.max(2, Math.min(6, Math.round(cellSize * 0.18))),
|
|
6577
|
-
backgroundColor: region ?
|
|
6578
|
-
border: `1px solid ${region ?
|
|
6588
|
+
backgroundColor: region ? withColorAlpha(accent, 66 / 255) : muted ? c.bgSubtle : withColorAlpha(baseAccent, 15 / 255),
|
|
6589
|
+
border: `1px solid ${region ? withColorAlpha(accent, 170 / 255) : c.borderSubtle}`,
|
|
6579
6590
|
opacity: muted ? 0.55 : 1
|
|
6580
6591
|
}
|
|
6581
6592
|
});
|
|
@@ -6750,7 +6761,7 @@ function Grid({
|
|
|
6750
6761
|
const config = isGridCell(cell) ? cell : {};
|
|
6751
6762
|
const toneColor = config.tone ? getToneColor(config.tone, c) : void 0;
|
|
6752
6763
|
const isHeader = rowIndex < headerRows || colIndex < headerCols;
|
|
6753
|
-
const backgroundColor = config.backgroundColor ?? (toneColor ?
|
|
6764
|
+
const backgroundColor = config.backgroundColor ?? (toneColor ? withColorAlpha(toneColor, 34 / 255) : isHeader ? c.bgSubtle : c.bgHover);
|
|
6754
6765
|
const toneTextColor = config.tone ? getReadableToneColor(config.tone, c, backgroundColor, c.bgHover) : void 0;
|
|
6755
6766
|
return {
|
|
6756
6767
|
width: cellWidth,
|
|
@@ -6760,7 +6771,7 @@ function Grid({
|
|
|
6760
6771
|
justifyContent: "center",
|
|
6761
6772
|
borderRadius: radius,
|
|
6762
6773
|
backgroundColor,
|
|
6763
|
-
border: `1px solid ${config.borderColor ?? (toneColor ?
|
|
6774
|
+
border: `1px solid ${config.borderColor ?? (toneColor ? withColorAlpha(toneColor, 85 / 255) : c.borderSubtle)}`,
|
|
6764
6775
|
color: config.color ?? (toneTextColor ?? (isHeader ? c.textPrimary : c.textSecondary)),
|
|
6765
6776
|
...config.opacity !== void 0 ? { opacity: config.opacity } : {},
|
|
6766
6777
|
fontFamily: "JetBrains Mono",
|
|
@@ -8908,14 +8919,14 @@ function Badge({ label, c, color = "primary" }) {
|
|
|
8908
8919
|
display: "flex",
|
|
8909
8920
|
alignItems: "center",
|
|
8910
8921
|
justifyContent: "center",
|
|
8911
|
-
backgroundColor:
|
|
8922
|
+
backgroundColor: withColorAlpha(solidColor, 32 / 255),
|
|
8912
8923
|
color: solidColor,
|
|
8913
8924
|
borderRadius: 999,
|
|
8914
8925
|
padding: "4px 12px",
|
|
8915
8926
|
fontSize: 11,
|
|
8916
8927
|
fontWeight: 600,
|
|
8917
8928
|
fontFamily: "Inter",
|
|
8918
|
-
border: `1px solid ${solidColor}
|
|
8929
|
+
border: `1px solid ${withColorAlpha(solidColor, 64 / 255)}`
|
|
8919
8930
|
}
|
|
8920
8931
|
}, label);
|
|
8921
8932
|
}
|
|
@@ -8934,7 +8945,7 @@ function DotPoint({ x, y, label, color, c, size = 12, labelOffset }) {
|
|
|
8934
8945
|
height: size,
|
|
8935
8946
|
borderRadius: "50%",
|
|
8936
8947
|
backgroundColor: color,
|
|
8937
|
-
boxShadow: `0 0 14px ${color}
|
|
8948
|
+
boxShadow: `0 0 14px ${withColorAlpha(color, 80 / 255)}`,
|
|
8938
8949
|
display: "flex"
|
|
8939
8950
|
}
|
|
8940
8951
|
}),
|
|
@@ -9058,8 +9069,11 @@ function CanvasItem({ children, x, y, width, height }) {
|
|
|
9058
9069
|
if (!Number.isFinite(x) || !Number.isFinite(y)) throw new Error("CanvasItem x and y must be finite numbers.");
|
|
9059
9070
|
const sizedChildren = React13.Children.map(children, (child) => {
|
|
9060
9071
|
if (!React13.isValidElement(child)) return child;
|
|
9061
|
-
|
|
9062
|
-
|
|
9072
|
+
if (width !== void 0 && height !== void 0 && isCanvasChart(child.type)) {
|
|
9073
|
+
const chart = React13.cloneElement(child, { width: child.props.width ?? width, height: child.props.height ?? height });
|
|
9074
|
+
return React13.createElement(CanvasChartFit, { width, height, __vizmaticTextScope: child.props.__vizmaticTextScope }, chart);
|
|
9075
|
+
}
|
|
9076
|
+
return React13.cloneElement(child, { ...width !== void 0 ? { width } : {}, ...height !== void 0 ? { height } : {} });
|
|
9063
9077
|
});
|
|
9064
9078
|
return React13.createElement("div", { style: {
|
|
9065
9079
|
display: "flex",
|
|
@@ -12047,6 +12061,7 @@ export {
|
|
|
12047
12061
|
toneGradients,
|
|
12048
12062
|
tween,
|
|
12049
12063
|
typography,
|
|
12064
|
+
withColorAlpha,
|
|
12050
12065
|
wrapWithBrand,
|
|
12051
12066
|
wrapWithWatermark
|
|
12052
12067
|
};
|
package/examples/README.md
CHANGED
|
@@ -9,6 +9,7 @@ Rendered assets live on the [Vizmatic gallery](https://bvolpato.github.io/vizmat
|
|
|
9
9
|
| [Agent Pipeline](agent-pipeline.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/agent-pipeline_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/agent-pipeline_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/agent-pipeline_light.png" alt="Agent Pipeline preview" width="720" /></picture> |
|
|
10
10
|
| [Animated Pipeline](animated-pipeline.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/animated-pipeline_dark.gif" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/animated-pipeline_light.gif" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/animated-pipeline_light.gif" alt="Animated Pipeline preview" width="720" /></picture> |
|
|
11
11
|
| [Attention Head](attention-head.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/attention-head_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/attention-head_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/attention-head_light.png" alt="Attention Head preview" width="720" /></picture> |
|
|
12
|
+
| [Aurora Incident](aurora-incident.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/aurora-incident_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/aurora-incident_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/aurora-incident_light.png" alt="Aurora Incident preview" width="720" /></picture> |
|
|
12
13
|
| [Building Blocks](building-blocks.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/building-blocks_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/building-blocks_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/building-blocks_light.png" alt="Building Blocks preview" width="720" /></picture> |
|
|
13
14
|
| [Catalog Charts](catalog-charts.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-charts_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-charts_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-charts_light.png" alt="Catalog Charts preview" width="720" /></picture> |
|
|
14
15
|
| [Catalog Content](catalog-content.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-content_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-content_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-content_light.png" alt="Catalog Content preview" width="720" /></picture> |
|
|
@@ -21,10 +22,12 @@ Rendered assets live on the [Vizmatic gallery](https://bvolpato.github.io/vizmat
|
|
|
21
22
|
| [Catalog Foundations](catalog-foundations.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-foundations_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-foundations_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-foundations_light.png" alt="Catalog Foundations preview" width="720" /></picture> |
|
|
22
23
|
| [Catalog ML](catalog-ml.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-ml_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-ml_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-ml_light.png" alt="Catalog ML preview" width="720" /></picture> |
|
|
23
24
|
| [Catalog Sequence](catalog-sequence.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-sequence_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-sequence_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-sequence_light.png" alt="Catalog Sequence preview" width="720" /></picture> |
|
|
25
|
+
| [Daybreak Launch](daybreak-launch.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/daybreak-launch_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/daybreak-launch_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/daybreak-launch_light.png" alt="Daybreak Launch preview" width="720" /></picture> |
|
|
24
26
|
| [Desired Quadrant](desired-quadrant.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/desired-quadrant_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/desired-quadrant_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/desired-quadrant_light.png" alt="Desired Quadrant preview" width="720" /></picture> |
|
|
25
27
|
| [Embedding Map](embedding-map.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/embedding-map_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/embedding-map_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/embedding-map_light.png" alt="Embedding Map preview" width="720" /></picture> |
|
|
26
28
|
| [Engineering Flow](engineering-flow.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-flow_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-flow_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/engineering-flow_light.png" alt="Engineering Flow preview" width="720" /></picture> |
|
|
27
29
|
| [Eval Dashboard](eval-dashboard.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/eval-dashboard_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/eval-dashboard_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/eval-dashboard_light.png" alt="Eval Dashboard preview" width="720" /></picture> |
|
|
30
|
+
| [Model Garden](model-garden.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/model-garden_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/model-garden_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/model-garden_light.png" alt="Model Garden preview" width="720" /></picture> |
|
|
28
31
|
| [Model Router](model-router.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/model-router_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/model-router_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/model-router_light.png" alt="Model Router preview" width="720" /></picture> |
|
|
29
32
|
| [NCCL All Gather](nccl-all-gather.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/nccl-all-gather_dark.gif" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/nccl-all-gather_light.gif" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/nccl-all-gather_light.gif" alt="NCCL All Gather preview" width="720" /></picture> |
|
|
30
33
|
| [NCCL All Reduce](nccl-all-reduce.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/nccl-all-reduce_dark.gif" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/nccl-all-reduce_light.gif" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/nccl-all-reduce_light.gif" alt="NCCL All Reduce preview" width="720" /></picture> |
|
|
@@ -47,3 +50,4 @@ Rendered assets live on the [Vizmatic gallery](https://bvolpato.github.io/vizmat
|
|
|
47
50
|
| [Transparent Badge](transparent-badge.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/transparent-badge_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/transparent-badge_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/transparent-badge_light.png" alt="Transparent Badge preview" width="720" /></picture> |
|
|
48
51
|
| [Vizmatic Hero](vizmatic-hero.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/vizmatic-hero_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/vizmatic-hero_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/vizmatic-hero_light.png" alt="Vizmatic Hero preview" width="720" /></picture> |
|
|
49
52
|
| [Website Workflow](website-workflow.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/website-workflow_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/website-workflow_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/website-workflow_light.png" alt="Website Workflow preview" width="720" /></picture> |
|
|
53
|
+
| [Weekend Field Notes](weekend-field-notes.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/weekend-field-notes_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/weekend-field-notes_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/weekend-field-notes_light.png" alt="Weekend Field Notes preview" width="720" /></picture> |
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
width = 1120;
|
|
2
|
+
height = 800;
|
|
3
|
+
background = "theme";
|
|
4
|
+
|
|
5
|
+
<Board c={c} width={1120} height={800}>
|
|
6
|
+
<CanvasItem x={24} y={20} width={1072} height={112}>
|
|
7
|
+
<CalloutCard
|
|
8
|
+
c={c}
|
|
9
|
+
width={1072}
|
|
10
|
+
minHeight={112}
|
|
11
|
+
padding={22}
|
|
12
|
+
align="left"
|
|
13
|
+
tone="purple"
|
|
14
|
+
filled={false}
|
|
15
|
+
title="AURORA / RELIABILITY DRILL 07"
|
|
16
|
+
titleFontSize={12}
|
|
17
|
+
detail="FICTIONAL CHECKOUT INCIDENT · traffic shifts around a degraded queue while recovery unfolds live."
|
|
18
|
+
detailFontSize={17}
|
|
19
|
+
/>
|
|
20
|
+
</CanvasItem>
|
|
21
|
+
|
|
22
|
+
<CanvasItem x={24} y={146} width={254} height={86}>
|
|
23
|
+
<MetricCard c={c} width={254} minHeight={86} tone="warm" label="P95 LATENCY" value="428 ms" detail="down from 1.8 s" valueFontSize={25} />
|
|
24
|
+
</CanvasItem>
|
|
25
|
+
<CanvasItem x={296} y={146} width={254} height={86}>
|
|
26
|
+
<MetricCard c={c} width={254} minHeight={86} tone="green" label="CHECKOUT SUCCESS" value="99.93%" detail="recovered above objective" valueFontSize={25} />
|
|
27
|
+
</CanvasItem>
|
|
28
|
+
<CanvasItem x={568} y={146} width={254} height={86}>
|
|
29
|
+
<MetricCard c={c} width={254} minHeight={86} tone="cyan" label="OLDEST QUEUE ITEM" value="18 s" detail="was 94 s at peak" valueFontSize={25} />
|
|
30
|
+
</CanvasItem>
|
|
31
|
+
<CanvasItem x={840} y={146} width={256} height={86}>
|
|
32
|
+
<MetricCard c={c} width={256} minHeight={86} tone="blue" label="TRAFFIC ON HEALTHY POOL" value="100%" detail="zone-b serving checkout" valueFontSize={25} />
|
|
33
|
+
</CanvasItem>
|
|
34
|
+
|
|
35
|
+
<CanvasItem x={24} y={244} width={650} height={260}>
|
|
36
|
+
<Panel
|
|
37
|
+
c={c}
|
|
38
|
+
width={650}
|
|
39
|
+
height={260}
|
|
40
|
+
padding={12}
|
|
41
|
+
gap={6}
|
|
42
|
+
tone="cyan"
|
|
43
|
+
title="LIVE ROUTING / CHECKOUT PLANE"
|
|
44
|
+
subtitle="The degraded worker is isolated; the healthy pool carries the rerouted queue."
|
|
45
|
+
>
|
|
46
|
+
<GraphDiagram
|
|
47
|
+
c={c}
|
|
48
|
+
width={624}
|
|
49
|
+
height={190}
|
|
50
|
+
layout="manual"
|
|
51
|
+
routing="orthogonal"
|
|
52
|
+
routingClearance={8}
|
|
53
|
+
edgeGap={18}
|
|
54
|
+
padding={12}
|
|
55
|
+
nodeWidth={122}
|
|
56
|
+
nodeHeight={58}
|
|
57
|
+
labelFontSize={11}
|
|
58
|
+
detailFontSize={11}
|
|
59
|
+
nodes={[
|
|
60
|
+
{ id: 'edge', label: 'Edge gateway', detail: 'checkout API', x: 0.10, y: 0.50, tone: 'blue', icon: 'gateway' },
|
|
61
|
+
{ id: 'queue', label: 'Event queue', detail: 'replay paused', x: 0.34, y: 0.50, tone: 'purple', icon: 'queue' },
|
|
62
|
+
{ id: 'worker-a', label: 'Zone A pool', detail: 'degraded · 1/3', x: 0.63, y: 0.27, tone: 'critical', icon: 'server' },
|
|
63
|
+
{ id: 'worker-b', label: 'Zone B pool', detail: 'healthy · 3/3', x: 0.63, y: 0.73, tone: 'green', icon: 'container' },
|
|
64
|
+
{ id: 'orders', label: 'Orders store', detail: 'writes steady', x: 0.91, y: 0.50, tone: 'green', icon: 'database' },
|
|
65
|
+
]}
|
|
66
|
+
edges={[
|
|
67
|
+
{ from: 'edge', to: 'queue', fromSide: 'right', toSide: 'left', tone: 'blue' },
|
|
68
|
+
{ from: 'queue', to: 'worker-a', fromSide: 'right', toSide: 'left', tone: 'critical', style: 'dashed' },
|
|
69
|
+
{ from: 'queue', to: 'worker-b', fromSide: 'right', toSide: 'left', tone: 'green' },
|
|
70
|
+
{ from: 'worker-a', to: 'orders', fromSide: 'right', toSide: 'left', tone: 'warm', style: 'dashed' },
|
|
71
|
+
{ from: 'worker-b', to: 'orders', fromSide: 'right', toSide: 'left', tone: 'green' },
|
|
72
|
+
]}
|
|
73
|
+
/>
|
|
74
|
+
</Panel>
|
|
75
|
+
</CanvasItem>
|
|
76
|
+
|
|
77
|
+
<CanvasItem x={700} y={244} width={396} height={260}>
|
|
78
|
+
<Timeline
|
|
79
|
+
c={c}
|
|
80
|
+
width={396}
|
|
81
|
+
direction="vertical"
|
|
82
|
+
gap={7}
|
|
83
|
+
title="DRILL TIMELINE / RESPONSE"
|
|
84
|
+
events={[
|
|
85
|
+
{ time: '14:32', title: 'Queue crosses 90 s', detail: 'Retry rate spikes 3×.', tone: 'critical' },
|
|
86
|
+
{ time: '14:34', title: 'Replay throttled', detail: 'Protect healthy pool.', tone: 'warm' },
|
|
87
|
+
{ time: '14:38', title: 'Fail over to zone B', detail: 'Lag falls steadily.', tone: 'green' },
|
|
88
|
+
]}
|
|
89
|
+
/>
|
|
90
|
+
</CanvasItem>
|
|
91
|
+
|
|
92
|
+
<CanvasItem x={24} y={514} width={1072} height={236}>
|
|
93
|
+
<LineChart
|
|
94
|
+
c={c}
|
|
95
|
+
width={1020}
|
|
96
|
+
height={106}
|
|
97
|
+
title="P95 LATENCY / RECOVERY CURVE"
|
|
98
|
+
subtitle="Lower is better · reroute restored the checkout SLO."
|
|
99
|
+
min={0}
|
|
100
|
+
max={2000}
|
|
101
|
+
format="integer"
|
|
102
|
+
labels={['14:32', '14:33', '14:34', '14:35', '14:36', '14:37', '14:38', '14:39']}
|
|
103
|
+
series={[
|
|
104
|
+
{ name: 'p95 latency', points: [1800, 1690, 1320, 980, 710, 540, 428, 428], color: 'positive', area: true },
|
|
105
|
+
]}
|
|
106
|
+
/>
|
|
107
|
+
</CanvasItem>
|
|
108
|
+
</Board>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
width = 1120;
|
|
2
|
+
height = 800;
|
|
3
|
+
background = "theme";
|
|
4
|
+
|
|
5
|
+
// themeColors = {"primary":"#6d28d9","primaryLight":"#c4b5fd","primaryDark":"#4c1d95","secondary":"#0e7490","secondaryLight":"#22d3ee","secondaryDark":"#155e75","positive":"#15803d","positiveLight":"#4ade80","positiveDark":"#166534","warning":"#c2410c","warningLight":"#fb923c","warningDark":"#9a3412","info":"#0369a1","infoLight":"#38bdf8","infoDark":"#075985","accent":"#be185d","accentLight":"#f9a8d4"}
|
|
6
|
+
|
|
7
|
+
<Board width={1120} height={800}>
|
|
8
|
+
<CanvasItem x={40} y={28} width={208} height={28}>
|
|
9
|
+
<BadgePill text="DAYBREAK / ISSUE 01" tone="purple" filled />
|
|
10
|
+
</CanvasItem>
|
|
11
|
+
<CanvasItem x={40} y={66} width={690} height={46}>
|
|
12
|
+
<TextLabel text="The launch found its people." variant="title" fontSize={31} color={c.textPrimary} />
|
|
13
|
+
</CanvasItem>
|
|
14
|
+
<CanvasItem x={40} y={116} width={690} height={32}>
|
|
15
|
+
<TextLabel text="A first-day field report · all figures are illustrative demo data" variant="body" fontSize={14} color={c.textSecondary} />
|
|
16
|
+
</CanvasItem>
|
|
17
|
+
<CanvasItem x={790} y={28} width={290} height={126}>
|
|
18
|
+
<MetricCard label="THE FIRST 24 HOURS" value="18,402" detail="new readers · +42% over goal" tone="purple" valueFontSize={34} align="left" />
|
|
19
|
+
</CanvasItem>
|
|
20
|
+
|
|
21
|
+
<CanvasItem x={40} y={172} width={248} height={82}>
|
|
22
|
+
<MetricCard label="ACTIVATION" value="64%" detail="opened a second story" tone="green" align="left" />
|
|
23
|
+
</CanvasItem>
|
|
24
|
+
<CanvasItem x={304} y={172} width={248} height={82}>
|
|
25
|
+
<MetricCard label="READ TIME" value="8m 24s" detail="median first session" tone="cyan" align="left" />
|
|
26
|
+
</CanvasItem>
|
|
27
|
+
<CanvasItem x={568} y={172} width={248} height={82}>
|
|
28
|
+
<MetricCard label="PAID TRIALS" value="1,286" detail="started before midnight" tone="warm" align="left" />
|
|
29
|
+
</CanvasItem>
|
|
30
|
+
<CanvasItem x={832} y={172} width={248} height={82}>
|
|
31
|
+
<MetricCard label="REFERRALS" value="2,940" detail="readers brought a friend" tone="pink" align="left" />
|
|
32
|
+
</CanvasItem>
|
|
33
|
+
|
|
34
|
+
<CanvasItem x={40} y={276} width={676} height={472}>
|
|
35
|
+
<LineChart
|
|
36
|
+
width={628}
|
|
37
|
+
height={358}
|
|
38
|
+
title="Momentum peaked at 6 pm"
|
|
39
|
+
subtitle="Hourly readers · mobile and desktop · demo cohort"
|
|
40
|
+
labels={['08', '10', '12', '14', '16', '18', '20', '22']}
|
|
41
|
+
format="compact"
|
|
42
|
+
yAxisLabel="readers"
|
|
43
|
+
series={[
|
|
44
|
+
{ name: 'Mobile', points: [460, 720, 940, 1240, 1680, 1980, 1660, 1120], color: 'info', area: true },
|
|
45
|
+
{ name: 'Desktop', points: [340, 570, 780, 1110, 1460, 1600, 1200, 900], color: 'accent' },
|
|
46
|
+
]}
|
|
47
|
+
/>
|
|
48
|
+
</CanvasItem>
|
|
49
|
+
<CanvasItem x={740} y={276} width={340} height={218}>
|
|
50
|
+
<DonutChart
|
|
51
|
+
width={306}
|
|
52
|
+
height={218}
|
|
53
|
+
size={132}
|
|
54
|
+
title="A launch list led discovery"
|
|
55
|
+
centerLabel="new readers"
|
|
56
|
+
centerValue="18.4k"
|
|
57
|
+
format="percent"
|
|
58
|
+
segments={[
|
|
59
|
+
{ label: 'Launch list', value: 0.38, color: 'primary' },
|
|
60
|
+
{ label: 'Search', value: 0.26, color: 'info' },
|
|
61
|
+
{ label: 'Community', value: 0.21, color: 'positive' },
|
|
62
|
+
{ label: 'Direct', value: 0.15, color: 'warning' },
|
|
63
|
+
]}
|
|
64
|
+
/>
|
|
65
|
+
</CanvasItem>
|
|
66
|
+
<CanvasItem x={740} y={516} width={340} height={222}>
|
|
67
|
+
<ParetoBarChart
|
|
68
|
+
width={306}
|
|
69
|
+
height={158}
|
|
70
|
+
title="Two steps drove most setup questions"
|
|
71
|
+
format="integer"
|
|
72
|
+
showValues={false}
|
|
73
|
+
data={[
|
|
74
|
+
{ label: 'Setup', value: 40, color: 'warning' },
|
|
75
|
+
{ label: 'Import', value: 28, color: 'critical' },
|
|
76
|
+
{ label: 'Invite', value: 19, color: 'info' },
|
|
77
|
+
{ label: 'Billing', value: 13, color: 'neutral' },
|
|
78
|
+
]}
|
|
79
|
+
/>
|
|
80
|
+
</CanvasItem>
|
|
81
|
+
</Board>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
width = 1120;
|
|
2
|
+
height = 760;
|
|
3
|
+
background = "theme";
|
|
4
|
+
|
|
5
|
+
<Board c={c} width={1120} height={760}>
|
|
6
|
+
<CanvasItem x={24} y={20} width={1072} height={104}>
|
|
7
|
+
<CalloutCard
|
|
8
|
+
c={c}
|
|
9
|
+
width={1072}
|
|
10
|
+
minHeight={104}
|
|
11
|
+
padding={20}
|
|
12
|
+
align="left"
|
|
13
|
+
tone="blue"
|
|
14
|
+
filled={false}
|
|
15
|
+
title="MODEL GARDEN / ROUTE BY THE JOB"
|
|
16
|
+
titleFontSize={12}
|
|
17
|
+
detail="ILLUSTRATIVE DATA ONLY · compare the cost, quality, and latency trade-offs before choosing a default."
|
|
18
|
+
detailFontSize={16}
|
|
19
|
+
/>
|
|
20
|
+
</CanvasItem>
|
|
21
|
+
|
|
22
|
+
<CanvasItem x={24} y={140} width={668} height={420}>
|
|
23
|
+
<ParetoChart
|
|
24
|
+
c={c}
|
|
25
|
+
width={450}
|
|
26
|
+
height={294}
|
|
27
|
+
title="MODEL OPTIONS / COST × QUALITY FRONTIER"
|
|
28
|
+
subtitle="Synthetic values · lower cost and higher quality are preferred."
|
|
29
|
+
xMin={0}
|
|
30
|
+
xMax={10}
|
|
31
|
+
yMin={50}
|
|
32
|
+
yMax={100}
|
|
33
|
+
xAxisLabel="credits per request · illustrative"
|
|
34
|
+
formatX="decimal"
|
|
35
|
+
formatY="integer"
|
|
36
|
+
frontierColor="positive"
|
|
37
|
+
showGoal={false}
|
|
38
|
+
points={[
|
|
39
|
+
{ x: 0.5, y: 64, label: 'Swift', color: 'info', size: 8 },
|
|
40
|
+
{ x: 1.2, y: 76, label: 'Sage', color: 'primary', size: 9 },
|
|
41
|
+
{ x: 2.7, y: 88, label: 'Orbit', color: 'secondary', size: 9 },
|
|
42
|
+
{ x: 5.8, y: 95, label: 'Apex', color: 'warning', size: 9 },
|
|
43
|
+
{ x: 8.4, y: 97, label: 'Max', color: 'positive', size: 8 },
|
|
44
|
+
{ x: 4.2, y: 81, label: 'Classic', color: 'critical', size: 8 },
|
|
45
|
+
{ x: 7.1, y: 91, label: 'Studio', color: 'neutral', size: 8 },
|
|
46
|
+
]}
|
|
47
|
+
footer="Fictional values for illustration, not model benchmarks."
|
|
48
|
+
/>
|
|
49
|
+
</CanvasItem>
|
|
50
|
+
|
|
51
|
+
<CanvasItem x={712} y={140} width={384} height={178}>
|
|
52
|
+
<CalloutCard
|
|
53
|
+
c={c}
|
|
54
|
+
width={384}
|
|
55
|
+
minHeight={178}
|
|
56
|
+
padding={20}
|
|
57
|
+
align="left"
|
|
58
|
+
tone="green"
|
|
59
|
+
filled={false}
|
|
60
|
+
title="THE BALANCED DEFAULT"
|
|
61
|
+
titleFontSize={15}
|
|
62
|
+
detail="Sage covers routine support at 1.2 credits per request, with a fictional quality index of 76. Escalate only when the task needs deeper reasoning."
|
|
63
|
+
detailFontSize={13}
|
|
64
|
+
/>
|
|
65
|
+
</CanvasItem>
|
|
66
|
+
|
|
67
|
+
<CanvasItem x={712} y={322} width={384} height={240}>
|
|
68
|
+
<BarChart
|
|
69
|
+
c={c}
|
|
70
|
+
width={350}
|
|
71
|
+
height={128}
|
|
72
|
+
title="SPEED / SECONDS · ILLUSTRATIVE P50"
|
|
73
|
+
subtitle="Lower latency · measure on your own workloads."
|
|
74
|
+
footer="P50 s: Swift 0.42 · Sage 0.68 · Orbit 1.20 · Apex 2.40"
|
|
75
|
+
format="decimal"
|
|
76
|
+
showValues={false}
|
|
77
|
+
min={0}
|
|
78
|
+
max={3}
|
|
79
|
+
data={[
|
|
80
|
+
{ label: 'Swift', value: 0.42, color: 'info' },
|
|
81
|
+
{ label: 'Sage', value: 0.68, color: 'primary' },
|
|
82
|
+
{ label: 'Orbit', value: 1.2, color: 'secondary' },
|
|
83
|
+
{ label: 'Apex', value: 2.4, color: 'warning' },
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
86
|
+
</CanvasItem>
|
|
87
|
+
|
|
88
|
+
<CanvasItem x={24} y={578} width={344} height={134}>
|
|
89
|
+
<CalloutCard c={c} width={344} minHeight={134} padding={16} align="left" tone="cyan" filled={false} title="FAST PATH / SWIFT" titleFontSize={13} detail="Tagging, extraction, and low stakes actions." detailFontSize={13} />
|
|
90
|
+
</CanvasItem>
|
|
91
|
+
<CanvasItem x={388} y={578} width={344} height={134}>
|
|
92
|
+
<CalloutCard c={c} width={344} minHeight={134} padding={16} align="left" tone="purple" filled={false} title="BALANCED / SAGE" titleFontSize={13} detail="Everyday support and dependable summaries." detailFontSize={13} />
|
|
93
|
+
</CanvasItem>
|
|
94
|
+
<CanvasItem x={752} y={578} width={344} height={134}>
|
|
95
|
+
<CalloutCard c={c} width={344} minHeight={134} padding={16} align="left" tone="warm" filled={false} title="DEEP WORK / APEX" titleFontSize={13} detail="Long plans, hard analysis, and careful reviews." detailFontSize={13} />
|
|
96
|
+
</CanvasItem>
|
|
97
|
+
</Board>
|