vizmatic 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/PROMPT.md +75 -531
  2. package/README.md +85 -1052
  3. package/ROADMAP.md +49 -67
  4. package/SCIENCE.md +250 -0
  5. package/assets/THIRD_PARTY_LICENSES.md +44 -1
  6. package/assets/fonts/InstrumentSerif-Italic.ttf +0 -0
  7. package/assets/fonts/InstrumentSerif-Regular.ttf +0 -0
  8. package/assets/fonts/SourceSerif4-24pt-Italic.ttf +0 -0
  9. package/assets/fonts/SourceSerif4-24pt-Regular.ttf +0 -0
  10. package/assets/licenses/raster-codecs-MIT.txt +74 -0
  11. package/dist/chunk-3F2VQ7NW.js +1 -0
  12. package/dist/{chunk-FEIPTPBZ.js → chunk-4XE64I2U.js} +53 -463
  13. package/dist/chunk-5ZAFH2JC.js +4231 -0
  14. package/dist/chunk-JHHPLALU.js +79 -0
  15. package/dist/chunk-LTX44BAE.js +112 -0
  16. package/dist/chunk-MLKGABMK.js +9 -0
  17. package/dist/chunk-PSBF4TEK.js +1 -0
  18. package/dist/chunk-RPAHMKAR.js +605 -0
  19. package/dist/chunk-RWF4VBUL.js +3617 -0
  20. package/dist/cli.js +369 -12
  21. package/dist/index.cjs +7413 -1810
  22. package/dist/index.d.cts +900 -599
  23. package/dist/index.d.ts +900 -599
  24. package/dist/index.js +5019 -3278
  25. package/dist/math-LXB4FH4E.js +7 -0
  26. package/dist/math-QVCETQDQ.js +1 -0
  27. package/dist/scene-browser-assets.d.ts +38 -0
  28. package/dist/scene-browser-assets.js +53 -0
  29. package/dist/scene-browser-chunks/chunk-5MVLYGXM.js +70 -0
  30. package/dist/scene-browser-chunks/chunk-ASXKN3NU.js +1 -0
  31. package/dist/scene-browser-chunks/chunk-CM5Y5LZP.js +1 -0
  32. package/dist/scene-browser-chunks/chunk-DP7NB4EW.js +6 -0
  33. package/dist/scene-browser-chunks/emscripten-module.browser-M5AEKJGE.js +1 -0
  34. package/dist/scene-browser-chunks/ffi-FL6ORJU3.js +1 -0
  35. package/dist/scene-browser-chunks/module-ES6BEMUI-JD5S5VKR.js +1 -0
  36. package/dist/scene-browser-chunks/module-asyncify-2EFITU5U-HWPFJFJC.js +1 -0
  37. package/dist/scene-browser-chunks/scene-browser-layout-M3XSXMV4.js +27 -0
  38. package/dist/scene-browser.d.ts +117 -0
  39. package/dist/scene-browser.js +220 -0
  40. package/dist/scene-cli.js +1 -1
  41. package/dist/scene-runtime.cjs +168 -103
  42. package/dist/scene-runtime.d.cts +3 -2
  43. package/dist/scene-runtime.d.ts +3 -2
  44. package/dist/scene-runtime.js +3 -1
  45. package/dist/server-2FYHZ4UO.js +331 -0
  46. package/dist/stage-browser/browser.d.ts +2483 -0
  47. package/dist/stage-browser/chunk-SQE76S5B.js +1 -0
  48. package/dist/stage-browser/chunk-VZNL6JY2.js +59 -0
  49. package/dist/stage-browser/dagre.esm-N2NIVIAZ.js +6 -0
  50. package/dist/stage-browser/math-4WFNHVV2.js +18 -0
  51. package/dist/stage-browser/stage.js +19 -0
  52. package/dist/stage-export.cjs +4980 -0
  53. package/dist/stage-export.d.cts +112 -0
  54. package/dist/stage-export.d.ts +112 -0
  55. package/dist/stage-export.js +544 -0
  56. package/dist/stage.cjs +9789 -0
  57. package/dist/stage.d.cts +1679 -0
  58. package/dist/stage.d.ts +1679 -0
  59. package/dist/stage.js +5418 -0
  60. package/dist/svg-import-Djj2q7Pc.d.cts +742 -0
  61. package/dist/svg-import-Djj2q7Pc.d.ts +742 -0
  62. package/dist/video-CcHW1qhV.d.cts +532 -0
  63. package/dist/video-CcHW1qhV.d.ts +532 -0
  64. package/examples/README.md +18 -0
  65. package/examples/agent-pipeline.tsx +4 -4
  66. package/examples/animated-pipeline.tsx +1 -5
  67. package/examples/attention-head.tsx +12 -12
  68. package/examples/aurora-incident.tsx +4 -3
  69. package/examples/building-blocks.tsx +8 -9
  70. package/examples/catalog-charts.tsx +4 -4
  71. package/examples/catalog-content.tsx +7 -9
  72. package/examples/catalog-convolution-kernel.tsx +116 -0
  73. package/examples/catalog-data.tsx +2 -8
  74. package/examples/catalog-dataflow.tsx +5 -9
  75. package/examples/catalog-dense.tsx +80 -0
  76. package/examples/catalog-deployment.tsx +5 -11
  77. package/examples/catalog-diagrams.tsx +13 -16
  78. package/examples/catalog-drawing.tsx +7 -7
  79. package/examples/catalog-flows.tsx +4 -4
  80. package/examples/catalog-foundations.tsx +11 -11
  81. package/examples/catalog-gaussian-blur.tsx +146 -0
  82. package/examples/catalog-image-tensors.tsx +115 -0
  83. package/examples/catalog-ml.tsx +36 -31
  84. package/examples/catalog-numeric-matrices.tsx +93 -0
  85. package/examples/catalog-photo-blur.tsx +209 -0
  86. package/examples/catalog-science-ai.tsx +130 -0
  87. package/examples/catalog-science-chemistry.tsx +103 -0
  88. package/examples/catalog-science-math.tsx +93 -0
  89. package/examples/catalog-science-physics.tsx +84 -0
  90. package/examples/catalog-sequence.tsx +59 -38
  91. package/examples/data-pipeline-lineage-presentation.tsx +5 -0
  92. package/examples/data-pipeline-lineage.tsx +85 -0
  93. package/examples/daybreak-launch.tsx +1 -0
  94. package/examples/desired-quadrant.tsx +7 -8
  95. package/examples/engineering-dashboard-presentation.tsx +13 -0
  96. package/examples/engineering-dashboard.tsx +160 -0
  97. package/examples/engineering-flow.tsx +2 -4
  98. package/examples/eval-dashboard.tsx +6 -6
  99. package/examples/films/attention.ts +278 -0
  100. package/examples/films/cache-miss.ts +431 -0
  101. package/examples/films/catalog.json +132 -0
  102. package/examples/films/central-limit.ts +269 -0
  103. package/examples/films/complex-maps.ts +273 -0
  104. package/examples/films/deck-example.ts +224 -0
  105. package/examples/films/euler-circle.ts +179 -0
  106. package/examples/films/fourier-epicycles.ts +265 -0
  107. package/examples/films/gradient-descent.ts +345 -0
  108. package/examples/films/linear-maps.ts +175 -0
  109. package/examples/films/lorenz.ts +207 -0
  110. package/examples/films/pythagoras.ts +185 -0
  111. package/examples/films/taylor-series.ts +159 -0
  112. package/examples/films/vizmatic-title.ts +117 -0
  113. package/examples/llm-serving-stack-presentation.tsx +5 -0
  114. package/examples/llm-serving-stack.tsx +94 -0
  115. package/examples/model-garden.tsx +1 -0
  116. package/examples/model-router.tsx +6 -6
  117. package/examples/nccl-all-gather.tsx +3 -3
  118. package/examples/nccl-all-reduce.tsx +3 -3
  119. package/examples/nccl-all-to-all.tsx +1 -1
  120. package/examples/nccl-broadcast.tsx +1 -1
  121. package/examples/nccl-reduce-scatter.tsx +5 -5
  122. package/examples/orthogonal-routing.tsx +4 -4
  123. package/examples/pareto-frontier.tsx +9 -10
  124. package/examples/presentation-frame.tsx +6 -6
  125. package/examples/production-system-map-presentation.tsx +5 -0
  126. package/examples/production-system-map.tsx +130 -0
  127. package/examples/rag-graph.tsx +7 -7
  128. package/examples/release-card.tsx +5 -5
  129. package/examples/spec-anatomy.tsx +5 -5
  130. package/examples/system-architecture.tsx +19 -32
  131. package/examples/theme-system.tsx +1 -1
  132. package/examples/token-matrix.tsx +4 -2
  133. package/examples/transparent-badge.tsx +1 -2
  134. package/examples/videos/README.md +36 -2
  135. package/examples/videos/calculus-tangent.tsx +101 -0
  136. package/examples/videos/catalyst-pathway.tsx +56 -0
  137. package/examples/videos/causal-attention.tsx +91 -0
  138. package/examples/videos/convolution-kernel.tsx +34 -0
  139. package/examples/videos/gaussian-blur.tsx +32 -0
  140. package/examples/videos/image-to-matrix.tsx +22 -0
  141. package/examples/videos/matrix-multiplication.tsx +128 -0
  142. package/examples/videos/photo-gaussian-blur.tsx +39 -0
  143. package/examples/videos/wave-interference.tsx +80 -0
  144. package/examples/vizmatic-bare.d.ts +1 -0
  145. package/examples/vizmatic-hero.tsx +9 -18
  146. package/examples/website-workflow.tsx +7 -7
  147. package/examples/weekend-field-notes.tsx +3 -2
  148. package/package.json +65 -11
  149. package/dist/chunk-TH3F4SDB.js +0 -79
@@ -0,0 +1,532 @@
1
+ import React, { ReactNode } from 'react';
2
+
3
+ /**
4
+ * Density: how much information a diagram packs into its space.
5
+ *
6
+ * Every primitive reads its type, spacing, stroke, and radius from these tokens,
7
+ * so one source renders as a dense engineering figure or as a slide.
8
+ *
9
+ * dense 10 to 12 px small type, hairlines, tight gutters. The default.
10
+ * compact A little more air for docs and dashboards.
11
+ * comfortable The sizes primitives were first designed at.
12
+ * presentation Large type and strokes for a room.
13
+ *
14
+ * A number scales from comfortable directly: 0.9 is slightly dense, 1.25 is large.
15
+ */
16
+ type DensityName = 'dense' | 'compact' | 'comfortable' | 'presentation';
17
+ type Density = DensityName | number;
18
+ declare const DENSITY_NAMES: readonly DensityName[];
19
+ declare const DEFAULT_DENSITY: DensityName;
20
+ interface DensityTypeScale {
21
+ /** Footnotes, tick labels, and edge annotations. */
22
+ micro: number;
23
+ /** Details, table cells, and key and value rows. */
24
+ small: number;
25
+ /** Running text. */
26
+ body: number;
27
+ /** Node titles and row headers. */
28
+ label: number;
29
+ /** Panel and group headings. */
30
+ heading: number;
31
+ /** Secondary headline. */
32
+ subtitle: number;
33
+ /** Scene title. */
34
+ title: number;
35
+ /** Large readouts in metric cards. */
36
+ metric: number;
37
+ }
38
+ interface DensitySpaceScale {
39
+ hair: number;
40
+ xs: number;
41
+ sm: number;
42
+ md: number;
43
+ lg: number;
44
+ xl: number;
45
+ /** Default padding around a whole scene. */
46
+ canvas: number;
47
+ }
48
+ interface DensityStrokeScale {
49
+ /** Borders and grid lines. */
50
+ hair: number;
51
+ /** Axes and quiet connectors. */
52
+ line: number;
53
+ /** Default connectors and data lines. */
54
+ strong: number;
55
+ /** Emphasized paths. */
56
+ heavy: number;
57
+ }
58
+ interface DensityRadiusScale {
59
+ sm: number;
60
+ md: number;
61
+ lg: number;
62
+ }
63
+ interface DensityTokens {
64
+ name: DensityName | 'custom';
65
+ /** The scale factor applied to comfortable sizes, for sizing custom geometry. */
66
+ scale: number;
67
+ type: DensityTypeScale;
68
+ space: DensitySpaceScale;
69
+ stroke: DensityStrokeScale;
70
+ radius: DensityRadiusScale;
71
+ /** Default connector arrowhead size, in stroke widths. */
72
+ arrow: number;
73
+ /** Scale a font size expressed at comfortable density. */
74
+ f(size: number): number;
75
+ /** Scale a spacing value expressed at comfortable density. */
76
+ s(size: number): number;
77
+ /** Scale a stroke width expressed at comfortable density. */
78
+ w(width: number): number;
79
+ /** Scale a corner radius expressed at comfortable density. */
80
+ r(radius: number): number;
81
+ /** Scale small geometry, such as dots and markers, with no floor for legibility. */
82
+ g(size: number): number;
83
+ }
84
+ /** Throws for anything that is not a density name or a positive finite number. */
85
+ declare function assertDensity(density: unknown): asserts density is Density;
86
+ /** Accepts a density name or a numeric string, as read from a command line or a frame setting. */
87
+ declare function parseDensity(value: unknown): Density;
88
+ declare function densityTokens(density?: Density): DensityTokens;
89
+ /**
90
+ * Density for primitives whose theme does not set one. Use it when frames call
91
+ * primitives before rendering starts, such as in a command line run.
92
+ */
93
+ declare function setDefaultDensity(density: Density | undefined): void;
94
+ /** Used by the renderer, so a per-render density reaches primitives during layout. */
95
+ declare function setDensityResolver(resolver: () => Density | undefined): void;
96
+ /** Tokens for a theme. The theme wins, then the current render, then the default. */
97
+ declare function densityOf(c?: {
98
+ density?: Density;
99
+ }): DensityTokens;
100
+ /** A copy of a theme at another density. */
101
+ declare function withDensity<T extends object>(c: T, density: Density): T & {
102
+ density: Density;
103
+ };
104
+
105
+ /**
106
+ * Vizmatic — Theme
107
+ *
108
+ * Shared colors, typography, and styles for all illustrations.
109
+ * Supports both dark and light modes.
110
+ */
111
+
112
+ type ThemeMode = 'dark' | 'light';
113
+ type ThemePreset = 'default' | 'engineering';
114
+ declare const darkColors: {
115
+ readonly bg: "#0b0c10";
116
+ readonly bgCard: "#13151a";
117
+ readonly bgCardAlt: "#191c22";
118
+ readonly bgHover: "#21252c";
119
+ readonly bgSubtle: "#0f1014";
120
+ readonly primary: "#2f8fc4";
121
+ readonly primaryLight: "#5cc4f0";
122
+ readonly primaryDark: "#1f6f9e";
123
+ readonly secondary: "#2f8fc4";
124
+ readonly secondaryLight: "#5cc4f0";
125
+ readonly secondaryDark: "#1f6f9e";
126
+ readonly positive: "#4f9e4a";
127
+ readonly positiveLight: "#8fe08a";
128
+ readonly positiveDark: "#3a7a36";
129
+ readonly warning: "#b98a2e";
130
+ readonly warningLight: "#f2b84b";
131
+ readonly warningDark: "#8a6620";
132
+ readonly critical: "#c94a4a";
133
+ readonly criticalLight: "#ff6b6b";
134
+ readonly criticalDark: "#9c3535";
135
+ readonly info: "#2fa394";
136
+ readonly infoLight: "#4fd8c4";
137
+ readonly infoDark: "#237d72";
138
+ readonly accent: "#c7618f";
139
+ readonly accentLight: "#ff8fc0";
140
+ readonly violet: "#7f6bd0";
141
+ readonly violetLight: "#b49cff";
142
+ readonly violetDark: "#5f4cab";
143
+ readonly neutral: "#363a43";
144
+ readonly neutralLight: "#4a4f5a";
145
+ readonly neutralDark: "#22252c";
146
+ readonly textPrimary: "#f2efe6";
147
+ readonly textSecondary: "#a5a7ad";
148
+ readonly textMuted: "#95989f";
149
+ readonly textOnColor: "#ffffff";
150
+ readonly border: "#2c3038";
151
+ readonly borderSubtle: "#1f2228";
152
+ readonly borderLight: "#3d424c";
153
+ readonly shadow: "rgba(0, 0, 0, 0)";
154
+ };
155
+ interface ThemeStyleTokens {
156
+ preset: ThemePreset;
157
+ fontSans: string;
158
+ fontMono: string;
159
+ /** Display serif for titles that want a printed voice. */
160
+ fontSerif: string;
161
+ /** Type, spacing, and stroke scale. Unset follows the render, then the default. */
162
+ density?: Density;
163
+ }
164
+ type ThemeColors = {
165
+ [K in keyof typeof darkColors]: string;
166
+ } & ThemeStyleTokens;
167
+ interface ThemeOptions {
168
+ /** Render every primitive using this theme at a density, such as 'presentation'. */
169
+ density?: Density;
170
+ }
171
+ declare function getThemeColors(mode: ThemeMode, preset?: ThemePreset, options?: ThemeOptions): ThemeColors;
172
+ /** Default for backward-compat: dark */
173
+ declare const colors: ThemeColors;
174
+ declare const gradients: {
175
+ readonly purple: string;
176
+ readonly blue: string;
177
+ readonly green: string;
178
+ readonly warm: string;
179
+ readonly cyan: string;
180
+ readonly pink: string;
181
+ readonly sunset: string;
182
+ readonly ocean: string;
183
+ readonly dark: string;
184
+ };
185
+ type ToneName = 'blue' | 'purple' | 'green' | 'warm' | 'cyan' | 'pink' | 'red' | 'critical' | 'neutral' | 'sunset' | 'ocean' | 'dark';
186
+ declare const toneGradients: Record<ToneName, string>;
187
+ declare function getToneGradient(tone: ToneName): string;
188
+ declare function getToneColor(tone: ToneName, c: ThemeColors): string;
189
+ /** Get a tone variant that remains readable against the background over its backdrop. */
190
+ declare function getReadableToneColor(tone: ToneName, c: ThemeColors, background?: string, backdrop?: string): string;
191
+ /** Low-chroma fills for diagrams. The engineering preset uses opaque pastels. */
192
+ declare function getToneFill(tone: ToneName, c: ThemeColors): string;
193
+ declare const typography: {
194
+ readonly title: {
195
+ readonly fontSize: 28;
196
+ readonly fontWeight: 700;
197
+ readonly fontFamily: "Inter";
198
+ };
199
+ readonly subtitle: {
200
+ readonly fontSize: 20;
201
+ readonly fontWeight: 600;
202
+ readonly fontFamily: "Inter";
203
+ };
204
+ readonly label: {
205
+ readonly fontSize: 16;
206
+ readonly fontWeight: 600;
207
+ readonly fontFamily: "Inter";
208
+ };
209
+ readonly body: {
210
+ readonly fontSize: 14;
211
+ readonly fontWeight: 400;
212
+ readonly fontFamily: "Inter";
213
+ };
214
+ readonly small: {
215
+ readonly fontSize: 12;
216
+ readonly fontWeight: 500;
217
+ readonly fontFamily: "Inter";
218
+ };
219
+ readonly tiny: {
220
+ readonly fontSize: 11;
221
+ readonly fontWeight: 500;
222
+ readonly fontFamily: "Inter";
223
+ };
224
+ readonly code: {
225
+ readonly fontSize: 13;
226
+ readonly fontWeight: 400;
227
+ readonly fontFamily: "JetBrains Mono";
228
+ };
229
+ readonly annotation: {
230
+ readonly fontSize: 12;
231
+ readonly fontWeight: 500;
232
+ readonly fontFamily: "Inter";
233
+ readonly fontStyle: "italic";
234
+ };
235
+ };
236
+ /** False when the theme's shadow token is fully transparent, so no shadow filter is emitted. */
237
+ declare function hasShadow(c: ThemeColors): boolean;
238
+ type TypographyVariant = keyof typeof typography;
239
+ /** A typography style at the theme's density. Spread it into a style object. */
240
+ declare function typeOf<V extends TypographyVariant>(c: ThemeColors, variant: V): Omit<typeof typography[V], 'fontSize' | 'fontWeight'> & {
241
+ fontSize: number;
242
+ fontWeight: number;
243
+ };
244
+ declare const canvas: {
245
+ readonly standard: {
246
+ readonly width: 800;
247
+ readonly height: 500;
248
+ };
249
+ readonly wide: {
250
+ readonly width: 1000;
251
+ readonly height: 400;
252
+ };
253
+ readonly square: {
254
+ readonly width: 600;
255
+ readonly height: 600;
256
+ };
257
+ readonly tall: {
258
+ readonly width: 600;
259
+ readonly height: 800;
260
+ };
261
+ };
262
+ /** Theme-aware style factories. Use these instead of hardcoded color values. */
263
+ declare function getStyles(c: ThemeColors): {
264
+ canvas: {
265
+ width: "100%";
266
+ height: "100%";
267
+ display: "flex";
268
+ flexDirection: "column";
269
+ backgroundColor: string;
270
+ fontFamily: string;
271
+ padding: number;
272
+ };
273
+ card: {
274
+ display: "flex";
275
+ flexDirection: "column";
276
+ backgroundColor: string;
277
+ borderRadius: number;
278
+ border: string;
279
+ padding: number;
280
+ };
281
+ pill: {
282
+ display: "flex";
283
+ alignItems: "center";
284
+ justifyContent: "center";
285
+ borderRadius: number;
286
+ padding: string;
287
+ fontSize: number;
288
+ fontWeight: number;
289
+ fontFamily: string;
290
+ };
291
+ };
292
+ /** @deprecated Use getStyles(c) for theme-aware styles */
293
+ declare const styles: {
294
+ readonly canvas: {
295
+ readonly width: "100%";
296
+ readonly height: "100%";
297
+ readonly display: "flex";
298
+ readonly flexDirection: "column";
299
+ readonly backgroundColor: string;
300
+ readonly fontFamily: "Inter";
301
+ readonly padding: 40;
302
+ };
303
+ readonly card: {
304
+ readonly display: "flex";
305
+ readonly flexDirection: "column";
306
+ readonly backgroundColor: string;
307
+ readonly borderRadius: 8;
308
+ readonly border: `1px solid ${string}`;
309
+ readonly padding: 20;
310
+ };
311
+ readonly pill: {
312
+ readonly display: "flex";
313
+ readonly alignItems: "center";
314
+ readonly justifyContent: "center";
315
+ readonly borderRadius: 999;
316
+ readonly padding: "6px 16px";
317
+ readonly fontSize: 13;
318
+ readonly fontWeight: 600;
319
+ readonly fontFamily: "Inter";
320
+ };
321
+ };
322
+ type ColorName = 'primary' | 'secondary' | 'positive' | 'warning' | 'critical' | 'info' | 'accent' | 'neutral' | 'violet';
323
+ /**
324
+ * Get a solid color by semantic name from a ThemeColors object.
325
+ * Falls back to dark theme if no ThemeColors provided (backward compat).
326
+ */
327
+ declare function getColor(name: ColorName, c?: ThemeColors): string;
328
+ /** Get a semantic color variant that remains readable as text in either theme. */
329
+ declare function getReadableColor(name: ColorName, c: ThemeColors): string;
330
+ /** Apply an opacity multiplier to any CSS color accepted by parse-css-color. */
331
+ declare function withColorAlpha(color: string, opacity: number): string;
332
+ /** Resolve a translucent foreground over its background using CSS alpha compositing. */
333
+ declare function compositeColor(foreground: string, background: string): string;
334
+ /** Choose readable foreground text, compositing translucent backgrounds over their backdrop. */
335
+ declare function getReadableTextColor(background: string, c: ThemeColors, backdrop?: string): string;
336
+ /**
337
+ * Get a gradient by semantic name.
338
+ * Gradients are the same for both themes (they sit on top of content
339
+ * and always use vibrant, high-contrast colors).
340
+ */
341
+ declare function getGradient(name: ColorName): string;
342
+ /**
343
+ * Map a value 0..1 to a heat color: slate, then blue, then gold, then red at the top end.
344
+ */
345
+ declare function heatColor(value: number): string;
346
+
347
+ /**
348
+ * Vizmatic — Brand
349
+ *
350
+ * Adds a small theme-aware watermark to rendered artifacts.
351
+ */
352
+
353
+ type WatermarkPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
354
+ interface WatermarkImageOptions {
355
+ src: string;
356
+ width?: number;
357
+ height?: number;
358
+ alt?: string;
359
+ }
360
+ interface WatermarkOptions {
361
+ text?: string | false;
362
+ image?: string | WatermarkImageOptions;
363
+ icon?: ReactNode | string | false;
364
+ element?: ReactNode;
365
+ position?: WatermarkPosition;
366
+ opacity?: number;
367
+ color?: string;
368
+ }
369
+ interface WatermarkElementProps extends WatermarkOptions {
370
+ children?: ReactNode;
371
+ }
372
+ type WatermarkInput = boolean | string | WatermarkOptions | React.ReactElement<WatermarkElementProps>;
373
+ declare function normalizeWatermark(watermark: WatermarkInput | undefined): WatermarkOptions | undefined;
374
+ declare function Watermark(_props: WatermarkElementProps): null;
375
+ /**
376
+ * Wrap an illustration element with a watermark overlay.
377
+ */
378
+ declare function wrapWithWatermark(element: React.ReactNode, width: number, height: number, theme?: 'dark' | 'light', watermark?: WatermarkInput): React.ReactElement;
379
+ declare function wrapWithBrand(element: React.ReactNode, width: number, height: number, theme?: 'dark' | 'light', label?: string): React.ReactElement;
380
+
381
+ type RenderBackground = 'transparent' | 'theme' | (string & {});
382
+
383
+ type AnimationEasingName = 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
384
+ type AnimationEasing = AnimationEasingName | ((progress: number) => number);
385
+ type AnimationInterpolator<T> = {
386
+ bivarianceHack(from: T, to: T, progress: number): T;
387
+ }['bivarianceHack'];
388
+ interface AnimationHoldStep {
389
+ type: 'hold';
390
+ duration: number;
391
+ label?: string;
392
+ }
393
+ interface AnimationKeyframeStep<T> {
394
+ type: 'keyframe';
395
+ value: T;
396
+ label?: string;
397
+ }
398
+ interface AnimationTweenStep<T> {
399
+ type: 'tween';
400
+ to: T;
401
+ duration: number;
402
+ easing?: AnimationEasing;
403
+ interpolate?: AnimationInterpolator<T>;
404
+ label?: string;
405
+ }
406
+ type AnimationPropertyStep<T> = AnimationHoldStep | AnimationKeyframeStep<T> | AnimationTweenStep<T>;
407
+ type AnimationParallelTracks<S extends object> = {
408
+ [K in keyof S]?: readonly AnimationPropertyStep<S[K]>[];
409
+ };
410
+ interface AnimationParallelStep<S extends object> {
411
+ type: 'parallel';
412
+ tracks: AnimationParallelTracks<S>;
413
+ label?: string;
414
+ }
415
+ type AnimationTimelineStep<S extends object> = AnimationHoldStep | AnimationKeyframeStep<Partial<S>> | AnimationTweenStep<Partial<S>> | AnimationParallelStep<S>;
416
+ interface AnimationFrameContext {
417
+ index: number;
418
+ count: number;
419
+ time: number;
420
+ duration: number;
421
+ delay: number;
422
+ progress: number;
423
+ step: number;
424
+ stepProgress: number;
425
+ label?: string;
426
+ fps: number;
427
+ }
428
+ interface AnimationDefinition<S extends object> {
429
+ initial: S;
430
+ timeline: readonly AnimationTimelineStep<S>[];
431
+ render: (state: Readonly<S>, frame: Readonly<AnimationFrameContext>) => ReactNode;
432
+ fps?: number;
433
+ }
434
+ interface DefinedAnimation<S extends object> extends AnimationDefinition<S> {
435
+ readonly kind: 'vizmatic.animation';
436
+ readonly duration: number;
437
+ readonly fps: number;
438
+ }
439
+ interface SampleAnimationOptions {
440
+ fps?: number;
441
+ }
442
+ interface SampledAnimationFrame<S extends object> {
443
+ state: Readonly<S>;
444
+ frame: Readonly<AnimationFrameContext>;
445
+ }
446
+ interface AnimationCadenceAnalysis {
447
+ fps: number;
448
+ duration: number;
449
+ frameCount: number;
450
+ encodedDuration: number;
451
+ targetInterval: number;
452
+ minDelay: number;
453
+ maxDelay: number;
454
+ }
455
+ declare function hold(duration: number, label?: string): AnimationHoldStep;
456
+ declare function keyframe<T>(value: T, label?: string): AnimationKeyframeStep<T>;
457
+ declare function tween<T>(to: T, options: Omit<AnimationTweenStep<T>, 'type' | 'to'>): AnimationTweenStep<T>;
458
+ declare function parallel<S extends object>(tracks: AnimationParallelTracks<S>, label?: string): AnimationParallelStep<S>;
459
+ declare function defineAnimation<S extends object>(definition: AnimationDefinition<S>): DefinedAnimation<S>;
460
+ declare function sampleAnimation<S extends object>(animation: DefinedAnimation<S>, time: number): Readonly<S>;
461
+ /** Samples an exact timestamp with caller-provided frame timing, without GIF cadence rounding. */
462
+ declare function sampleAnimationFrame<S extends object>(animation: DefinedAnimation<S>, requestedTime: number, timing: Pick<AnimationFrameContext, 'index' | 'count' | 'delay' | 'fps'>): SampledAnimationFrame<S>;
463
+ declare function analyzeAnimationCadence<S extends object>(animation: DefinedAnimation<S>, options?: SampleAnimationOptions): AnimationCadenceAnalysis;
464
+ declare function sampleAnimationFrames<S extends object>(animation: DefinedAnimation<S>, options?: SampleAnimationOptions): readonly SampledAnimationFrame<S>[];
465
+
466
+ interface VideoFrameInfo {
467
+ /** Zero-based frame index. The final frame is always before the video endpoint. */
468
+ index: number;
469
+ count: number;
470
+ /** Frame presentation time in milliseconds. */
471
+ time: number;
472
+ /** Duration rounded to the nearest whole frame, in milliseconds. */
473
+ duration: number;
474
+ /** Fraction of the video represented by this frame, from 0 to 1. */
475
+ progress: number;
476
+ fps: number;
477
+ }
478
+ type VideoCodec = 'h264' | 'vp9';
479
+ interface RgbaVideoOptions {
480
+ width: number;
481
+ height: number;
482
+ /** Requested duration before rounding to a whole number of frames. */
483
+ duration: number;
484
+ outputPath: string;
485
+ fps?: number;
486
+ audioPath?: string;
487
+ /** Seconds to skip in the audio file, for a render that starts partway through a timeline. */
488
+ audioOffset?: number;
489
+ ffmpegPath?: string;
490
+ /** H.264 writes MP4. VP9 writes WebM. */
491
+ codec?: VideoCodec;
492
+ preset?: string;
493
+ /** Encoder tuning for H.264, such as "animation" for flat color and line art. */
494
+ tune?: string;
495
+ crf?: number;
496
+ threads?: number;
497
+ signal?: AbortSignal;
498
+ onProgress?: (frame: VideoFrameInfo) => void | Promise<void>;
499
+ }
500
+ interface RgbaVideoOutput {
501
+ width: number;
502
+ height: number;
503
+ frameCount: number;
504
+ duration: number;
505
+ fps: number;
506
+ bytes: number;
507
+ outputPath: string;
508
+ audioIncluded: boolean;
509
+ }
510
+ interface AnimationVideoOptions extends Omit<RgbaVideoOptions, 'duration'> {
511
+ /** Physical output pixels per logical scene pixel. Defaults to 1. Scaled dimensions must be even integers. */
512
+ scale?: number;
513
+ theme?: ThemeMode;
514
+ /** MP4 has no alpha channel. Defaults to the opaque theme background. */
515
+ background?: RenderBackground;
516
+ watermark?: WatermarkInput;
517
+ brand?: boolean | string;
518
+ }
519
+ type RgbaVideoFrameRenderer = (frame: VideoFrameInfo) => Uint8Array | Promise<Uint8Array>;
520
+ /** Lazily yields every frame timestamp; it never emits a duplicate endpoint frame. */
521
+ declare function videoFrameSchedule(duration: number, fps?: number): Generator<VideoFrameInfo>;
522
+ /** Streams a typed TSX animation to H.264 MP4 with BT.709 color at exact video frame times (30 fps by default). */
523
+ declare function renderAnimationVideo<S extends object>(animation: DefinedAnimation<S>, options: AnimationVideoOptions): Promise<RgbaVideoOutput>;
524
+ /**
525
+ * Encodes caller-rendered RGBA frames as H.264 MP4 or VP9 WebM, tagged BT.709.
526
+ * Frames are requested and written one at a time, so the caller controls
527
+ * rendering and memory use.
528
+ */
529
+ declare function renderRgbaVideo(renderFrame: RgbaVideoFrameRenderer, options: RgbaVideoOptions): Promise<RgbaVideoOutput>;
530
+
531
+ export { densityTokens as $, Watermark as K, analyzeAnimationCadence as P, assertDensity as Q, canvas as U, colors as X, compositeColor as Y, defineAnimation as Z, densityOf as _, getColor as a0, getGradient as a1, getReadableColor as a2, getReadableTextColor as a3, getReadableToneColor as a4, getStyles as a5, getThemeColors as a6, getToneColor as a7, getToneFill as a8, getToneGradient as a9, gradients as aa, hasShadow as ab, heatColor as ac, hold as ad, keyframe as ae, normalizeWatermark as af, parallel as ag, parseDensity as ah, renderAnimationVideo as ai, renderRgbaVideo as aj, sampleAnimation as ak, sampleAnimationFrame as al, sampleAnimationFrames as am, setDefaultDensity as an, setDensityResolver as ao, styles as ap, toneGradients as aq, tween as ar, typeOf as as, videoFrameSchedule as at, withColorAlpha as au, withDensity as av, wrapWithBrand as aw, wrapWithWatermark as ax, DEFAULT_DENSITY as q, DENSITY_NAMES as r, typography as t };
532
+ export type { AnimationCadenceAnalysis as A, RgbaVideoOptions as B, ColorName as C, Density as D, RgbaVideoOutput as E, SampledAnimationFrame as F, ThemeOptions as G, ThemePreset as H, TypographyVariant as I, VideoFrameInfo as J, WatermarkElementProps as L, WatermarkImageOptions as M, WatermarkOptions as N, WatermarkPosition as O, RenderBackground as R, SampleAnimationOptions as S, ThemeColors as T, VideoCodec as V, WatermarkInput as W, ToneName as a, ThemeMode as b, DefinedAnimation as c, AnimationDefinition as d, AnimationEasing as e, AnimationEasingName as f, AnimationFrameContext as g, AnimationHoldStep as h, AnimationInterpolator as i, AnimationKeyframeStep as j, AnimationParallelStep as k, AnimationParallelTracks as l, AnimationPropertyStep as m, AnimationTimelineStep as n, AnimationTweenStep as o, AnimationVideoOptions as p, DensityName as s, DensityRadiusScale as u, DensitySpaceScale as v, DensityStrokeScale as w, DensityTokens as x, DensityTypeScale as y, RgbaVideoFrameRenderer as z };
@@ -13,20 +13,36 @@ Rendered assets live on the [Vizmatic gallery](https://bvolpato.github.io/vizmat
13
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> |
14
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> |
15
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> |
16
+ | [Catalog Convolution Kernel](catalog-convolution-kernel.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-convolution-kernel_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-convolution-kernel_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-convolution-kernel_light.png" alt="Catalog Convolution Kernel preview" width="720" /></picture> |
16
17
  | [Catalog Data](catalog-data.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-data_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-data_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-data_light.png" alt="Catalog Data preview" width="720" /></picture> |
17
18
  | [Catalog Dataflow](catalog-dataflow.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-dataflow_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-dataflow_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-dataflow_light.png" alt="Catalog Dataflow preview" width="720" /></picture> |
19
+ | [Catalog Dense](catalog-dense.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-dense_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-dense_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-dense_light.png" alt="Catalog Dense preview" width="720" /></picture> |
18
20
  | [Catalog Deployment](catalog-deployment.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-deployment_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-deployment_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-deployment_light.png" alt="Catalog Deployment preview" width="720" /></picture> |
19
21
  | [Catalog Diagrams](catalog-diagrams.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-diagrams_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-diagrams_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-diagrams_light.png" alt="Catalog Diagrams preview" width="720" /></picture> |
20
22
  | [Catalog Drawing](catalog-drawing.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-drawing_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-drawing_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-drawing_light.png" alt="Catalog Drawing preview" width="720" /></picture> |
21
23
  | [Catalog Flows](catalog-flows.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-flows_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-flows_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-flows_light.png" alt="Catalog Flows preview" width="720" /></picture> |
22
24
  | [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> |
25
+ | [Catalog Gaussian Blur](catalog-gaussian-blur.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-gaussian-blur_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-gaussian-blur_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-gaussian-blur_light.png" alt="Catalog Gaussian Blur preview" width="720" /></picture> |
26
+ | [Catalog Image Tensors](catalog-image-tensors.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-image-tensors_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-image-tensors_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-image-tensors_light.png" alt="Catalog Image Tensors preview" width="720" /></picture> |
23
27
  | [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> |
28
+ | [Catalog Numeric Matrices](catalog-numeric-matrices.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-numeric-matrices_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-numeric-matrices_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-numeric-matrices_light.png" alt="Catalog Numeric Matrices preview" width="720" /></picture> |
29
+ | [Catalog Photo Blur](catalog-photo-blur.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-photo-blur_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-photo-blur_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-photo-blur_light.png" alt="Catalog Photo Blur preview" width="720" /></picture> |
30
+ | [Catalog Science Ai](catalog-science-ai.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-ai_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-ai_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-ai_light.png" alt="Catalog Science Ai preview" width="720" /></picture> |
31
+ | [Catalog Science Chemistry](catalog-science-chemistry.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-chemistry_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-chemistry_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-chemistry_light.png" alt="Catalog Science Chemistry preview" width="720" /></picture> |
32
+ | [Catalog Science Math](catalog-science-math.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-math_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-math_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-math_light.png" alt="Catalog Science Math preview" width="720" /></picture> |
33
+ | [Catalog Science Physics](catalog-science-physics.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-physics_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-physics_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/catalog-science-physics_light.png" alt="Catalog Science Physics preview" width="720" /></picture> |
24
34
  | [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> |
35
+ | [Data Pipeline Lineage Presentation](data-pipeline-lineage-presentation.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/data-pipeline-lineage-presentation_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/data-pipeline-lineage-presentation_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/data-pipeline-lineage-presentation_light.png" alt="Data Pipeline Lineage Presentation preview" width="720" /></picture> |
36
+ | [Data Pipeline Lineage](data-pipeline-lineage.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/data-pipeline-lineage_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/data-pipeline-lineage_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/data-pipeline-lineage_light.png" alt="Data Pipeline Lineage preview" width="720" /></picture> |
25
37
  | [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> |
26
38
  | [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> |
27
39
  | [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> |
40
+ | [Engineering Dashboard Presentation](engineering-dashboard-presentation.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard-presentation_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard-presentation_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard-presentation_light.png" alt="Engineering Dashboard Presentation preview" width="720" /></picture> |
41
+ | [Engineering Dashboard](engineering-dashboard.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/engineering-dashboard_light.png" alt="Engineering Dashboard preview" width="720" /></picture> |
28
42
  | [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> |
29
43
  | [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> |
44
+ | [Llm Serving Stack Presentation](llm-serving-stack-presentation.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack-presentation_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack-presentation_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack-presentation_light.png" alt="Llm Serving Stack Presentation preview" width="720" /></picture> |
45
+ | [Llm Serving Stack](llm-serving-stack.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/llm-serving-stack_light.png" alt="Llm Serving Stack preview" width="720" /></picture> |
30
46
  | [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> |
31
47
  | [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> |
32
48
  | [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> |
@@ -39,6 +55,8 @@ Rendered assets live on the [Vizmatic gallery](https://bvolpato.github.io/vizmat
39
55
  | [Pareto Frontier](pareto-frontier.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/pareto-frontier_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/pareto-frontier_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/pareto-frontier_light.png" alt="Pareto Frontier preview" width="720" /></picture> |
40
56
  | [Pie Chart](pie-chart.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/pie-chart_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/pie-chart_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/pie-chart_light.png" alt="Pie Chart preview" width="720" /></picture> |
41
57
  | [Presentation Frame](presentation-frame.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/presentation-frame_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/presentation-frame_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/presentation-frame_light.png" alt="Presentation Frame preview" width="720" /></picture> |
58
+ | [Production System Map Presentation](production-system-map-presentation.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/production-system-map-presentation_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/production-system-map-presentation_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/production-system-map-presentation_light.png" alt="Production System Map Presentation preview" width="720" /></picture> |
59
+ | [Production System Map](production-system-map.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/production-system-map_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/production-system-map_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/production-system-map_light.png" alt="Production System Map preview" width="720" /></picture> |
42
60
  | [RAG Graph](rag-graph.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/rag-graph_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/rag-graph_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/rag-graph_light.png" alt="RAG Graph preview" width="720" /></picture> |
43
61
  | [Release Card](release-card.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/release-card_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/release-card_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/release-card_light.png" alt="Release Card preview" width="720" /></picture> |
44
62
  | [Research Landscape](research-landscape.tsx) | <picture><source media="(prefers-color-scheme: dark)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/research-landscape_dark.png" /><source media="(prefers-color-scheme: light)" srcset="https://bvolpato.github.io/vizmatic/assets/examples/research-landscape_light.png" /><img src="https://bvolpato.github.io/vizmatic/assets/examples/research-landscape_light.png" alt="Research Landscape preview" width="720" /></picture> |
@@ -5,14 +5,14 @@ height = 560;
5
5
  <Flow
6
6
  connectorTone="purple"
7
7
  stages={[
8
- { eyebrow: 'input', title: 'Prompt', subtitle: 'intent and constraints', tone: 'blue', lines: ['goal', 'audience', 'format'], width: 190 },
9
- { eyebrow: 'source', title: 'TSX scene', subtitle: 'component tree', tone: 'purple', lines: ['layout', 'diagrams', 'charts'], width: 190 },
10
- { eyebrow: 'render', title: 'Node renderer', subtitle: 'headless output', tone: 'cyan', lines: ['theme', 'auto-size', 'checks'], width: 190 },
8
+ { eyebrow: 'input', title: 'Prompt', subtitle: 'intent and constraints', lines: ['goal', 'audience', 'format'], width: 190 },
9
+ { eyebrow: 'source', title: 'TSX scene', subtitle: 'component tree', lines: ['layout', 'diagrams', 'charts'], width: 190 },
10
+ { eyebrow: 'render', title: 'Node renderer', subtitle: 'headless output', lines: ['theme', 'auto-size', 'checks'], width: 190 },
11
11
  { eyebrow: 'output', title: 'PNG / SVG / GIF', subtitle: 'rendered files', tone: 'green', lines: ['dark + light', 'alpha', 'manifest'], width: 190 },
12
12
  ]}
13
13
  />
14
14
  <Row width="100%" gap={14}>
15
- <CalloutCard title="Source stays editable" detail="Review and change the TSX instead of regenerating an opaque image." tone="purple" width={470} />
15
+ <CalloutCard title="Source stays editable" detail="Review and change the TSX instead of regenerating an opaque image." width={470} />
16
16
  <CalloutCard title="Checks run before export" detail="Diagnostics report overflow, contrast, and asset failures." tone="green" width={470} />
17
17
  </Row>
18
18
  </Scene>