vizmatic 0.3.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PROMPT.md +75 -525
- package/README.md +87 -578
- package/ROADMAP.md +49 -67
- package/SCIENCE.md +250 -0
- package/assets/THIRD_PARTY_LICENSES.md +40 -1
- package/assets/fonts/InstrumentSerif-Italic.ttf +0 -0
- package/assets/fonts/InstrumentSerif-Regular.ttf +0 -0
- package/assets/licenses/raster-codecs-MIT.txt +74 -0
- package/dist/chunk-3F2VQ7NW.js +1 -0
- package/dist/chunk-4XE64I2U.js +755 -0
- package/dist/chunk-JHHPLALU.js +79 -0
- package/dist/chunk-LTX44BAE.js +112 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-PSBF4TEK.js +1 -0
- package/dist/chunk-RPAHMKAR.js +605 -0
- package/dist/chunk-RWF4VBUL.js +3617 -0
- package/dist/chunk-WHT6HRMX.js +4201 -0
- package/dist/cli.js +371 -10
- package/dist/index.cjs +11129 -2922
- package/dist/index.d.cts +1225 -369
- package/dist/index.d.ts +1225 -369
- package/dist/index.js +6220 -3015
- package/dist/math-LXB4FH4E.js +7 -0
- package/dist/math-QVCETQDQ.js +1 -0
- package/dist/scene-browser-assets.d.ts +38 -0
- package/dist/scene-browser-assets.js +53 -0
- package/dist/scene-browser-chunks/chunk-5MVLYGXM.js +70 -0
- package/dist/scene-browser-chunks/chunk-ASXKN3NU.js +1 -0
- package/dist/scene-browser-chunks/chunk-CM5Y5LZP.js +1 -0
- package/dist/scene-browser-chunks/chunk-DP7NB4EW.js +6 -0
- package/dist/scene-browser-chunks/emscripten-module.browser-M5AEKJGE.js +1 -0
- package/dist/scene-browser-chunks/ffi-FL6ORJU3.js +1 -0
- package/dist/scene-browser-chunks/module-ES6BEMUI-JD5S5VKR.js +1 -0
- package/dist/scene-browser-chunks/module-asyncify-2EFITU5U-HWPFJFJC.js +1 -0
- package/dist/scene-browser-chunks/scene-browser-layout-M3XSXMV4.js +27 -0
- package/dist/scene-browser.d.ts +117 -0
- package/dist/scene-browser.js +220 -0
- package/dist/scene-cli.d.ts +1 -0
- package/dist/scene-cli.js +4 -0
- package/dist/scene-runtime.cjs +995 -0
- package/dist/scene-runtime.d.cts +81 -0
- package/dist/scene-runtime.d.ts +81 -0
- package/dist/scene-runtime.js +22 -0
- package/dist/server-2FYHZ4UO.js +331 -0
- package/dist/stage-browser/browser.d.ts +2482 -0
- package/dist/stage-browser/chunk-SQE76S5B.js +1 -0
- package/dist/stage-browser/chunk-VZNL6JY2.js +59 -0
- package/dist/stage-browser/dagre.esm-N2NIVIAZ.js +6 -0
- package/dist/stage-browser/math-4WFNHVV2.js +18 -0
- package/dist/stage-browser/stage.js +19 -0
- package/dist/stage-export.cjs +4950 -0
- package/dist/stage-export.d.cts +112 -0
- package/dist/stage-export.d.ts +112 -0
- package/dist/stage-export.js +544 -0
- package/dist/stage.cjs +9745 -0
- package/dist/stage.d.cts +1678 -0
- package/dist/stage.d.ts +1678 -0
- package/dist/stage.js +5404 -0
- package/dist/svg-import-Djj2q7Pc.d.cts +742 -0
- package/dist/svg-import-Djj2q7Pc.d.ts +742 -0
- package/dist/video-CcHW1qhV.d.cts +532 -0
- package/dist/video-CcHW1qhV.d.ts +532 -0
- package/examples/README.md +18 -0
- package/examples/agent-pipeline.tsx +4 -4
- package/examples/animated-pipeline.tsx +1 -5
- package/examples/attention-head.tsx +12 -12
- package/examples/aurora-incident.tsx +4 -3
- package/examples/building-blocks.tsx +8 -9
- package/examples/catalog-charts.tsx +4 -4
- package/examples/catalog-content.tsx +7 -9
- package/examples/catalog-convolution-kernel.tsx +116 -0
- package/examples/catalog-data.tsx +2 -8
- package/examples/catalog-dataflow.tsx +5 -9
- package/examples/catalog-dense.tsx +80 -0
- package/examples/catalog-deployment.tsx +5 -11
- package/examples/catalog-diagrams.tsx +13 -16
- package/examples/catalog-drawing.tsx +7 -7
- package/examples/catalog-flows.tsx +4 -4
- package/examples/catalog-foundations.tsx +11 -11
- package/examples/catalog-gaussian-blur.tsx +146 -0
- package/examples/catalog-image-tensors.tsx +115 -0
- package/examples/catalog-ml.tsx +36 -31
- package/examples/catalog-numeric-matrices.tsx +93 -0
- package/examples/catalog-photo-blur.tsx +209 -0
- package/examples/catalog-science-ai.tsx +130 -0
- package/examples/catalog-science-chemistry.tsx +103 -0
- package/examples/catalog-science-math.tsx +93 -0
- package/examples/catalog-science-physics.tsx +84 -0
- package/examples/catalog-sequence.tsx +59 -38
- package/examples/data-pipeline-lineage-presentation.tsx +5 -0
- package/examples/data-pipeline-lineage.tsx +85 -0
- package/examples/daybreak-launch.tsx +1 -0
- package/examples/desired-quadrant.tsx +7 -8
- package/examples/engineering-dashboard-presentation.tsx +13 -0
- package/examples/engineering-dashboard.tsx +160 -0
- package/examples/engineering-flow.tsx +2 -4
- package/examples/eval-dashboard.tsx +6 -6
- package/examples/films/attention.ts +278 -0
- package/examples/films/cache-miss.ts +431 -0
- package/examples/films/catalog.json +132 -0
- package/examples/films/central-limit.ts +269 -0
- package/examples/films/complex-maps.ts +273 -0
- package/examples/films/deck-example.ts +224 -0
- package/examples/films/euler-circle.ts +179 -0
- package/examples/films/fourier-epicycles.ts +265 -0
- package/examples/films/gradient-descent.ts +345 -0
- package/examples/films/linear-maps.ts +175 -0
- package/examples/films/lorenz.ts +207 -0
- package/examples/films/pythagoras.ts +185 -0
- package/examples/films/taylor-series.ts +159 -0
- package/examples/films/vizmatic-title.ts +117 -0
- package/examples/llm-serving-stack-presentation.tsx +5 -0
- package/examples/llm-serving-stack.tsx +94 -0
- package/examples/model-garden.tsx +1 -0
- package/examples/model-router.tsx +6 -6
- package/examples/nccl-all-gather.tsx +3 -3
- package/examples/nccl-all-reduce.tsx +3 -3
- package/examples/nccl-all-to-all.tsx +1 -1
- package/examples/nccl-broadcast.tsx +1 -1
- package/examples/nccl-reduce-scatter.tsx +5 -5
- package/examples/orthogonal-routing.tsx +4 -4
- package/examples/pareto-frontier.tsx +9 -10
- package/examples/presentation-frame.tsx +6 -6
- package/examples/pressure-mechanism.scene.json +14 -0
- package/examples/production-system-map-presentation.tsx +5 -0
- package/examples/production-system-map.tsx +130 -0
- package/examples/rag-graph.tsx +7 -7
- package/examples/release-card.tsx +5 -5
- package/examples/spec-anatomy.tsx +5 -5
- package/examples/system-architecture.tsx +19 -32
- package/examples/theme-system.tsx +1 -1
- package/examples/token-matrix.tsx +4 -2
- package/examples/transparent-badge.tsx +1 -2
- package/examples/videos/README.md +62 -0
- package/examples/videos/calculus-tangent.tsx +101 -0
- package/examples/videos/catalyst-pathway.tsx +56 -0
- package/examples/videos/causal-attention.tsx +91 -0
- package/examples/videos/convolution-kernel.tsx +34 -0
- package/examples/videos/gaussian-blur.tsx +32 -0
- package/examples/videos/image-to-matrix.tsx +22 -0
- package/examples/videos/matrix-multiplication.tsx +128 -0
- package/examples/videos/photo-gaussian-blur.tsx +39 -0
- package/examples/videos/request-lifecycle.tsx +99 -0
- package/examples/videos/signal-to-story.tsx +126 -0
- package/examples/videos/wave-interference.tsx +80 -0
- package/examples/vizmatic-bare.d.ts +1 -0
- package/examples/vizmatic-hero.tsx +9 -18
- package/examples/website-workflow.tsx +7 -7
- package/examples/weekend-field-notes.tsx +3 -2
- package/package.json +77 -12
package/dist/index.d.ts
CHANGED
|
@@ -1,226 +1,10 @@
|
|
|
1
|
+
import { T as ThemeColors, a as ToneName, D as Density, t as typography, b as ThemeMode, C as ColorName, W as WatermarkInput, R as RenderBackground, c as DefinedAnimation } from './video-CcHW1qhV.js';
|
|
2
|
+
export { A as AnimationCadenceAnalysis, d as AnimationDefinition, e as AnimationEasing, f as AnimationEasingName, g as AnimationFrameContext, h as AnimationHoldStep, i as AnimationInterpolator, j as AnimationKeyframeStep, k as AnimationParallelStep, l as AnimationParallelTracks, m as AnimationPropertyStep, n as AnimationTimelineStep, o as AnimationTweenStep, p as AnimationVideoOptions, q as DEFAULT_DENSITY, r as DENSITY_NAMES, s as DensityName, u as DensityRadiusScale, v as DensitySpaceScale, w as DensityStrokeScale, x as DensityTokens, y as DensityTypeScale, z as RgbaVideoFrameRenderer, B as RgbaVideoOptions, E as RgbaVideoOutput, S as SampleAnimationOptions, F as SampledAnimationFrame, G as ThemeOptions, H as ThemePreset, I as TypographyVariant, V as VideoCodec, J as VideoFrameInfo, K as Watermark, L as WatermarkElementProps, M as WatermarkImageOptions, N as WatermarkOptions, O as WatermarkPosition, P as analyzeAnimationCadence, Q as assertDensity, U as canvas, X as colors, Y as compositeColor, Z as defineAnimation, _ as densityOf, $ as densityTokens, a0 as getColor, a1 as getGradient, a2 as getReadableColor, a3 as getReadableTextColor, a4 as getReadableToneColor, a5 as getStyles, a6 as getThemeColors, a7 as getToneColor, a8 as getToneFill, a9 as getToneGradient, aa as gradients, ab as hasShadow, ac as heatColor, ad as hold, ae as keyframe, af as normalizeWatermark, ag as parallel, ah as parseDensity, ai as renderAnimationVideo, aj as renderRgbaVideo, ak as sampleAnimation, al as sampleAnimationFrame, am as sampleAnimationFrames, an as setDefaultDensity, ao as setDensityResolver, ap as styles, aq as toneGradients, ar as tween, as as typeOf, at as videoFrameSchedule, au as withColorAlpha, av as withDensity, aw as wrapWithBrand, ax as wrapWithWatermark } from './video-CcHW1qhV.js';
|
|
1
3
|
import React, { ReactNode } from 'react';
|
|
2
4
|
import { SatoriNode, Font } from 'satori';
|
|
3
5
|
export { SatoriNode } from 'satori';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* Vizmatic — Theme
|
|
7
|
-
*
|
|
8
|
-
* Shared colors, typography, and styles for all illustrations.
|
|
9
|
-
* Supports both dark and light modes.
|
|
10
|
-
*/
|
|
11
|
-
type ThemeMode = 'dark' | 'light';
|
|
12
|
-
type ThemePreset = 'default' | 'engineering';
|
|
13
|
-
declare const darkColors: {
|
|
14
|
-
readonly bg: "#151620";
|
|
15
|
-
readonly bgCard: "#1a1b26";
|
|
16
|
-
readonly bgCardAlt: "#1e2030";
|
|
17
|
-
readonly bgHover: "#24253a";
|
|
18
|
-
readonly bgSubtle: "#151620";
|
|
19
|
-
readonly primary: "#7c3aed";
|
|
20
|
-
readonly primaryLight: "#a78bfa";
|
|
21
|
-
readonly primaryDark: "#6d28d9";
|
|
22
|
-
readonly secondary: "#2563eb";
|
|
23
|
-
readonly secondaryLight: "#60a5fa";
|
|
24
|
-
readonly secondaryDark: "#1d4ed8";
|
|
25
|
-
readonly positive: "#059669";
|
|
26
|
-
readonly positiveLight: "#34d399";
|
|
27
|
-
readonly positiveDark: "#047857";
|
|
28
|
-
readonly warning: "#d97706";
|
|
29
|
-
readonly warningLight: "#fbbf24";
|
|
30
|
-
readonly warningDark: "#b45309";
|
|
31
|
-
readonly critical: "#dc2626";
|
|
32
|
-
readonly criticalLight: "#f87171";
|
|
33
|
-
readonly criticalDark: "#b91c1c";
|
|
34
|
-
readonly info: "#06b6d4";
|
|
35
|
-
readonly infoLight: "#22d3ee";
|
|
36
|
-
readonly infoDark: "#0891b2";
|
|
37
|
-
readonly accent: "#f472b6";
|
|
38
|
-
readonly accentLight: "#f9a8d4";
|
|
39
|
-
readonly neutral: "#334155";
|
|
40
|
-
readonly neutralLight: "#475569";
|
|
41
|
-
readonly neutralDark: "#1e293b";
|
|
42
|
-
readonly textPrimary: "#f1f5f9";
|
|
43
|
-
readonly textSecondary: "#94a3b8";
|
|
44
|
-
readonly textMuted: "#8493a8";
|
|
45
|
-
readonly textOnColor: "#ffffff";
|
|
46
|
-
readonly border: "#334155";
|
|
47
|
-
readonly borderSubtle: "#1e293b";
|
|
48
|
-
readonly borderLight: "#475569";
|
|
49
|
-
readonly shadow: "rgba(0, 0, 0, 0.24)";
|
|
50
|
-
};
|
|
51
|
-
interface ThemeStyleTokens {
|
|
52
|
-
preset: ThemePreset;
|
|
53
|
-
fontSans: string;
|
|
54
|
-
fontMono: string;
|
|
55
|
-
}
|
|
56
|
-
type ThemeColors = {
|
|
57
|
-
[K in keyof typeof darkColors]: string;
|
|
58
|
-
} & ThemeStyleTokens;
|
|
59
|
-
declare function getThemeColors(mode: ThemeMode, preset?: ThemePreset): ThemeColors;
|
|
60
|
-
/** Default for backward-compat: dark */
|
|
61
|
-
declare const colors: ThemeColors;
|
|
62
|
-
declare const gradients: {
|
|
63
|
-
readonly purple: "linear-gradient(135deg, #7c3aed, #a855f7)";
|
|
64
|
-
readonly blue: "linear-gradient(135deg, #2563eb, #60a5fa)";
|
|
65
|
-
readonly green: "linear-gradient(135deg, #059669, #34d399)";
|
|
66
|
-
readonly warm: "linear-gradient(135deg, #f59e0b, #ef4444)";
|
|
67
|
-
readonly cyan: "linear-gradient(135deg, #06b6d4, #22d3ee)";
|
|
68
|
-
readonly pink: "linear-gradient(135deg, #ec4899, #f472b6)";
|
|
69
|
-
readonly sunset: "linear-gradient(135deg, #f97316, #db2777)";
|
|
70
|
-
readonly ocean: "linear-gradient(135deg, #0284c7, #7c3aed)";
|
|
71
|
-
readonly dark: "linear-gradient(180deg, #0f1117, #1a1b26)";
|
|
72
|
-
};
|
|
73
|
-
type ToneName = 'blue' | 'purple' | 'green' | 'warm' | 'cyan' | 'pink' | 'red' | 'critical' | 'neutral' | 'sunset' | 'ocean' | 'dark';
|
|
74
|
-
declare const toneGradients: Record<ToneName, string>;
|
|
75
|
-
declare function getToneGradient(tone: ToneName): string;
|
|
76
|
-
declare function getToneColor(tone: ToneName, c: ThemeColors): string;
|
|
77
|
-
/** Get a tone variant that remains readable against the background over its backdrop. */
|
|
78
|
-
declare function getReadableToneColor(tone: ToneName, c: ThemeColors, background?: string, backdrop?: string): string;
|
|
79
|
-
/** Low-chroma fills for diagrams. The engineering preset uses opaque pastels. */
|
|
80
|
-
declare function getToneFill(tone: ToneName, c: ThemeColors): string;
|
|
81
|
-
declare const typography: {
|
|
82
|
-
readonly title: {
|
|
83
|
-
readonly fontSize: 28;
|
|
84
|
-
readonly fontWeight: 700;
|
|
85
|
-
readonly fontFamily: "Inter";
|
|
86
|
-
};
|
|
87
|
-
readonly subtitle: {
|
|
88
|
-
readonly fontSize: 20;
|
|
89
|
-
readonly fontWeight: 600;
|
|
90
|
-
readonly fontFamily: "Inter";
|
|
91
|
-
};
|
|
92
|
-
readonly label: {
|
|
93
|
-
readonly fontSize: 16;
|
|
94
|
-
readonly fontWeight: 600;
|
|
95
|
-
readonly fontFamily: "Inter";
|
|
96
|
-
};
|
|
97
|
-
readonly body: {
|
|
98
|
-
readonly fontSize: 14;
|
|
99
|
-
readonly fontWeight: 400;
|
|
100
|
-
readonly fontFamily: "Inter";
|
|
101
|
-
};
|
|
102
|
-
readonly small: {
|
|
103
|
-
readonly fontSize: 12;
|
|
104
|
-
readonly fontWeight: 500;
|
|
105
|
-
readonly fontFamily: "Inter";
|
|
106
|
-
};
|
|
107
|
-
readonly tiny: {
|
|
108
|
-
readonly fontSize: 11;
|
|
109
|
-
readonly fontWeight: 500;
|
|
110
|
-
readonly fontFamily: "Inter";
|
|
111
|
-
};
|
|
112
|
-
readonly code: {
|
|
113
|
-
readonly fontSize: 13;
|
|
114
|
-
readonly fontWeight: 400;
|
|
115
|
-
readonly fontFamily: "JetBrains Mono";
|
|
116
|
-
};
|
|
117
|
-
readonly annotation: {
|
|
118
|
-
readonly fontSize: 12;
|
|
119
|
-
readonly fontWeight: 500;
|
|
120
|
-
readonly fontFamily: "Inter";
|
|
121
|
-
readonly fontStyle: "italic";
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
declare const canvas: {
|
|
125
|
-
readonly standard: {
|
|
126
|
-
readonly width: 800;
|
|
127
|
-
readonly height: 500;
|
|
128
|
-
};
|
|
129
|
-
readonly wide: {
|
|
130
|
-
readonly width: 1000;
|
|
131
|
-
readonly height: 400;
|
|
132
|
-
};
|
|
133
|
-
readonly square: {
|
|
134
|
-
readonly width: 600;
|
|
135
|
-
readonly height: 600;
|
|
136
|
-
};
|
|
137
|
-
readonly tall: {
|
|
138
|
-
readonly width: 600;
|
|
139
|
-
readonly height: 800;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
/** Theme-aware style factories. Use these instead of hardcoded color values. */
|
|
143
|
-
declare function getStyles(c: ThemeColors): {
|
|
144
|
-
canvas: {
|
|
145
|
-
width: "100%";
|
|
146
|
-
height: "100%";
|
|
147
|
-
display: "flex";
|
|
148
|
-
flexDirection: "column";
|
|
149
|
-
backgroundColor: string;
|
|
150
|
-
fontFamily: string;
|
|
151
|
-
padding: number;
|
|
152
|
-
};
|
|
153
|
-
card: {
|
|
154
|
-
display: "flex";
|
|
155
|
-
flexDirection: "column";
|
|
156
|
-
backgroundColor: string;
|
|
157
|
-
borderRadius: number;
|
|
158
|
-
border: string;
|
|
159
|
-
padding: number;
|
|
160
|
-
};
|
|
161
|
-
pill: {
|
|
162
|
-
display: "flex";
|
|
163
|
-
alignItems: "center";
|
|
164
|
-
justifyContent: "center";
|
|
165
|
-
borderRadius: number;
|
|
166
|
-
padding: string;
|
|
167
|
-
fontSize: number;
|
|
168
|
-
fontWeight: number;
|
|
169
|
-
fontFamily: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
/** @deprecated Use getStyles(c) for theme-aware styles */
|
|
173
|
-
declare const styles: {
|
|
174
|
-
readonly canvas: {
|
|
175
|
-
readonly width: "100%";
|
|
176
|
-
readonly height: "100%";
|
|
177
|
-
readonly display: "flex";
|
|
178
|
-
readonly flexDirection: "column";
|
|
179
|
-
readonly backgroundColor: string;
|
|
180
|
-
readonly fontFamily: "Inter";
|
|
181
|
-
readonly padding: 40;
|
|
182
|
-
};
|
|
183
|
-
readonly card: {
|
|
184
|
-
readonly display: "flex";
|
|
185
|
-
readonly flexDirection: "column";
|
|
186
|
-
readonly backgroundColor: string;
|
|
187
|
-
readonly borderRadius: 8;
|
|
188
|
-
readonly border: `1px solid ${string}`;
|
|
189
|
-
readonly padding: 20;
|
|
190
|
-
};
|
|
191
|
-
readonly pill: {
|
|
192
|
-
readonly display: "flex";
|
|
193
|
-
readonly alignItems: "center";
|
|
194
|
-
readonly justifyContent: "center";
|
|
195
|
-
readonly borderRadius: 999;
|
|
196
|
-
readonly padding: "6px 16px";
|
|
197
|
-
readonly fontSize: 13;
|
|
198
|
-
readonly fontWeight: 600;
|
|
199
|
-
readonly fontFamily: "Inter";
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
type ColorName = 'primary' | 'secondary' | 'positive' | 'warning' | 'critical' | 'info' | 'accent' | 'neutral';
|
|
203
|
-
/**
|
|
204
|
-
* Get a solid color by semantic name from a ThemeColors object.
|
|
205
|
-
* Falls back to dark theme if no ThemeColors provided (backward compat).
|
|
206
|
-
*/
|
|
207
|
-
declare function getColor(name: ColorName, c?: ThemeColors): string;
|
|
208
|
-
/** Get a semantic color variant that remains readable as text in either theme. */
|
|
209
|
-
declare function getReadableColor(name: ColorName, c: ThemeColors): string;
|
|
210
|
-
/** Apply an opacity multiplier to any CSS color accepted by parse-css-color. */
|
|
211
|
-
declare function withColorAlpha(color: string, opacity: number): string;
|
|
212
|
-
/** Choose readable foreground text, compositing translucent backgrounds over their backdrop. */
|
|
213
|
-
declare function getReadableTextColor(background: string, c: ThemeColors, backdrop?: string): string;
|
|
214
|
-
/**
|
|
215
|
-
* Get a gradient by semantic name.
|
|
216
|
-
* Gradients are the same for both themes (they sit on top of content
|
|
217
|
-
* and always use vibrant, high-contrast colors).
|
|
218
|
-
*/
|
|
219
|
-
declare function getGradient(name: ColorName): string;
|
|
220
|
-
/**
|
|
221
|
-
* Map a value 0..1 to a heat color (dark blue → cyan → green → yellow → red)
|
|
222
|
-
*/
|
|
223
|
-
declare function heatColor(value: number): string;
|
|
6
|
+
import { SceneFrameRequest, SceneRequest } from './scene-runtime.js';
|
|
7
|
+
export { EvaluatedSceneFrame, PreparedScene, SCENE_LIMITS, SCENE_RUNTIME_VERSION, evaluateSceneSource, prepareScene } from './scene-runtime.js';
|
|
224
8
|
|
|
225
9
|
type IllustrationBuilder = (c: ThemeColors) => React.ReactElement;
|
|
226
10
|
/**
|
|
@@ -247,11 +31,19 @@ interface TitleBarProps {
|
|
|
247
31
|
title: string;
|
|
248
32
|
subtitle?: string;
|
|
249
33
|
c: ThemeColors;
|
|
34
|
+
/** Title voice. Serif suits articles and covers. Sans suits technical figures. */
|
|
35
|
+
titleFont?: 'sans' | 'serif';
|
|
36
|
+
align?: 'left' | 'center';
|
|
250
37
|
}
|
|
251
|
-
declare function TitleBar({ title, subtitle, c }: TitleBarProps): React.ReactElement;
|
|
38
|
+
declare function TitleBar({ title, subtitle, c, titleFont, align }: TitleBarProps): React.ReactElement;
|
|
252
39
|
|
|
253
40
|
type FlexAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
254
41
|
type FlexJustify = 'start' | 'center' | 'end' | 'space-between' | 'space-around';
|
|
42
|
+
/**
|
|
43
|
+
* Gives every element in a tree that takes a theme the same density. Elements
|
|
44
|
+
* built with JSX are still props at this point, so nested diagrams follow along.
|
|
45
|
+
*/
|
|
46
|
+
declare function scopeDensity(node: React.ReactNode, density: Density, theme?: ThemeColors): React.ReactNode;
|
|
255
47
|
interface SceneProps {
|
|
256
48
|
c: ThemeColors;
|
|
257
49
|
children: React.ReactNode;
|
|
@@ -264,8 +56,12 @@ interface SceneProps {
|
|
|
264
56
|
contentWidth?: number | string;
|
|
265
57
|
background?: string;
|
|
266
58
|
contentStyle?: React.CSSProperties;
|
|
59
|
+
/** Type, spacing, and stroke scale for this scene and everything inside it. */
|
|
60
|
+
density?: Density;
|
|
61
|
+
titleFont?: 'sans' | 'serif';
|
|
62
|
+
titleAlign?: 'left' | 'center';
|
|
267
63
|
}
|
|
268
|
-
declare function Scene({ c, children, title, subtitle, padding, gap, justify, align, contentWidth, background, contentStyle, }: SceneProps): React.ReactElement;
|
|
64
|
+
declare function Scene({ c: baseTheme, children, title, subtitle, padding, gap, justify, align, contentWidth, background, contentStyle, density, titleFont, titleAlign, }: SceneProps): React.ReactElement;
|
|
269
65
|
interface FlexBoxProps {
|
|
270
66
|
children: React.ReactNode;
|
|
271
67
|
gap?: number;
|
|
@@ -283,6 +79,7 @@ interface ToneStripProps {
|
|
|
283
79
|
width?: number;
|
|
284
80
|
height?: number;
|
|
285
81
|
}
|
|
82
|
+
/** A small flat key beside a heading. It names the color instead of decorating the heading. */
|
|
286
83
|
declare function ToneStrip({ tone, width, height }: ToneStripProps): React.ReactElement;
|
|
287
84
|
type IconName = 'agent' | 'bucket' | 'browser' | 'cache' | 'chart' | 'check' | 'cluster' | 'code' | 'cloud' | 'container' | 'database' | 'file' | 'firewall' | 'gateway' | 'git' | 'globe' | 'image' | 'layers' | 'lock' | 'load-balancer' | 'mobile' | 'monitor' | 'network' | 'play' | 'queue' | 'server' | 'spark' | 'storage' | 'stream' | 'terminal' | 'tool' | 'user' | 'warning';
|
|
288
85
|
interface IconProps {
|
|
@@ -320,7 +117,7 @@ interface PanelProps {
|
|
|
320
117
|
accentHeight?: number;
|
|
321
118
|
bodyStyle?: React.CSSProperties;
|
|
322
119
|
}
|
|
323
|
-
declare function Panel({ title, c, children, subtitle, tone, footer, width, minWidth, height, minHeight, padding, radius, gap, align, justify, shadow, background, borderColor, titleFontSize, accentWidth, accentHeight, bodyStyle, }: PanelProps): React.ReactElement;
|
|
120
|
+
declare function Panel({ title, c, children, subtitle, tone, footer, width, minWidth, height, minHeight, padding: paddingProp, radius: radiusProp, gap: gapProp, align, justify, shadow, background, borderColor, titleFontSize, accentWidth, accentHeight, bodyStyle, }: PanelProps): React.ReactElement;
|
|
324
121
|
declare function formatMathText(text: string): string;
|
|
325
122
|
interface MathTextProps {
|
|
326
123
|
text: string;
|
|
@@ -351,7 +148,7 @@ interface SvgMathTextProps {
|
|
|
351
148
|
dominantBaseline?: string;
|
|
352
149
|
opacity?: number;
|
|
353
150
|
}
|
|
354
|
-
declare function SvgMathText({ text, x, y, fill, fontSize, fontFamily, fontWeight, textAnchor, dominantBaseline, opacity, }: SvgMathTextProps): React.ReactElement;
|
|
151
|
+
declare function SvgMathText({ text, x, y, fill, fontSize: fontSizeProp, fontFamily, fontWeight, textAnchor, dominantBaseline, opacity, }: SvgMathTextProps): React.ReactElement;
|
|
355
152
|
|
|
356
153
|
interface BoxProps {
|
|
357
154
|
label: string;
|
|
@@ -371,7 +168,7 @@ interface BoxProps {
|
|
|
371
168
|
/** Outlined style instead of filled */
|
|
372
169
|
outlined?: boolean;
|
|
373
170
|
}
|
|
374
|
-
declare function Box({ label, c, color, width, height, fontSize, gradient, sublabel, icon, radius, outlined, }: BoxProps): React.ReactElement;
|
|
171
|
+
declare function Box({ label, c, color, width, height, fontSize: fontSizeProp, gradient, sublabel, icon, radius: radiusProp, outlined, }: BoxProps): React.ReactElement;
|
|
375
172
|
interface ArrowProps {
|
|
376
173
|
direction?: 'down' | 'right' | 'up' | 'left';
|
|
377
174
|
label?: string;
|
|
@@ -398,6 +195,7 @@ interface VectorArrowProps {
|
|
|
398
195
|
y2: number;
|
|
399
196
|
color: string;
|
|
400
197
|
strokeWidth?: number;
|
|
198
|
+
/** Arrowhead length as a multiplier of strokeWidth (default 2.2). Short segments cap the head at the segment length and omit the shaft; clipped heads stay wider than the shaft. */
|
|
401
199
|
arrowSize?: number;
|
|
402
200
|
opacity?: number;
|
|
403
201
|
}
|
|
@@ -445,8 +243,9 @@ interface ArrowMarkerDefProps {
|
|
|
445
243
|
id: string;
|
|
446
244
|
color: string;
|
|
447
245
|
size?: number;
|
|
246
|
+
direction?: 'start' | 'end';
|
|
448
247
|
}
|
|
449
|
-
declare function ArrowMarkerDef({ id, color, size }: ArrowMarkerDefProps): React.ReactElement;
|
|
248
|
+
declare function ArrowMarkerDef({ id, color, size, direction }: ArrowMarkerDefProps): React.ReactElement;
|
|
450
249
|
|
|
451
250
|
interface StackProps {
|
|
452
251
|
direction?: 'vertical' | 'horizontal';
|
|
@@ -455,7 +254,7 @@ interface StackProps {
|
|
|
455
254
|
wrap?: boolean;
|
|
456
255
|
children: React.ReactNode;
|
|
457
256
|
}
|
|
458
|
-
declare function Stack({ direction, gap, align, wrap, children, }: StackProps): React.ReactElement;
|
|
257
|
+
declare function Stack({ direction, gap: gapProp, align, wrap, children, }: StackProps): React.ReactElement;
|
|
459
258
|
interface CardProps {
|
|
460
259
|
children?: React.ReactNode;
|
|
461
260
|
c: ThemeColors;
|
|
@@ -477,7 +276,7 @@ interface CardProps {
|
|
|
477
276
|
borderColor?: string;
|
|
478
277
|
bodyStyle?: React.CSSProperties;
|
|
479
278
|
}
|
|
480
|
-
declare function Card({ children, c, title, subtitle, tone, footer, width, minWidth, height, minHeight, padding, radius, gap, align, justify, shadow, background, borderColor, bodyStyle, }: CardProps): React.ReactElement;
|
|
279
|
+
declare function Card({ children, c, title, subtitle, tone, footer, width, minWidth, height, minHeight, padding: paddingProp, radius: radiusProp, gap, align, justify, shadow, background, borderColor, bodyStyle, }: CardProps): React.ReactElement;
|
|
481
280
|
interface ValuePillProps {
|
|
482
281
|
label: React.ReactNode;
|
|
483
282
|
value: React.ReactNode;
|
|
@@ -515,7 +314,7 @@ interface BadgePillProps {
|
|
|
515
314
|
filled?: boolean;
|
|
516
315
|
math?: boolean;
|
|
517
316
|
}
|
|
518
|
-
declare function BadgePill({ text, c, tone, width, minWidth, height, padding, radius, fontSize, mono, filled, math, }: BadgePillProps): React.ReactElement;
|
|
317
|
+
declare function BadgePill({ text, c, tone, width, minWidth, height, padding: paddingProp, radius: radiusProp, fontSize: fontSizeProp, mono, filled, math, }: BadgePillProps): React.ReactElement;
|
|
519
318
|
interface GradientChipProps {
|
|
520
319
|
title: React.ReactNode;
|
|
521
320
|
c: ThemeColors;
|
|
@@ -533,7 +332,7 @@ interface GradientChipProps {
|
|
|
533
332
|
subtitleMono?: boolean;
|
|
534
333
|
math?: boolean;
|
|
535
334
|
}
|
|
536
|
-
declare function GradientChip({ title, c, subtitle, tone, gradient, width, minWidth, height, minHeight, padding, radius, shadow, align, subtitleMono, math, }: GradientChipProps): React.ReactElement;
|
|
335
|
+
declare function GradientChip({ title, c, subtitle, tone, gradient, width, minWidth, height, minHeight: minHeightProp, padding: paddingProp, radius: radiusProp, shadow, align, subtitleMono, math, }: GradientChipProps): React.ReactElement;
|
|
537
336
|
interface StepCardProps {
|
|
538
337
|
title: React.ReactNode;
|
|
539
338
|
c: ThemeColors;
|
|
@@ -549,7 +348,7 @@ interface StepCardProps {
|
|
|
549
348
|
align?: 'left' | 'center';
|
|
550
349
|
math?: boolean;
|
|
551
350
|
}
|
|
552
|
-
declare function StepCard({ title, c, subtitle, eyebrow, tone, width, minWidth, minHeight, padding, radius, shadow, align, math, }: StepCardProps): React.ReactElement;
|
|
351
|
+
declare function StepCard({ title, c, subtitle, eyebrow, tone, width, minWidth, minHeight: minHeightProp, padding: paddingProp, radius: radiusProp, shadow, align, math, }: StepCardProps): React.ReactElement;
|
|
553
352
|
interface MetricCardProps {
|
|
554
353
|
label: React.ReactNode;
|
|
555
354
|
value: React.ReactNode;
|
|
@@ -568,7 +367,131 @@ interface MetricCardProps {
|
|
|
568
367
|
valueFontSize?: number;
|
|
569
368
|
valueColor?: string;
|
|
570
369
|
}
|
|
571
|
-
declare function MetricCard({ label, value, c, tone, detail, width, minWidth, minHeight, padding, radius, shadow, align, math, valueMono, valueFontSize, valueColor, }: MetricCardProps): React.ReactElement;
|
|
370
|
+
declare function MetricCard({ label, value, c, tone, detail, width, minWidth, minHeight, padding: paddingProp, radius: radiusProp, shadow, align, math, valueMono, valueFontSize, valueColor, }: MetricCardProps): React.ReactElement;
|
|
371
|
+
|
|
372
|
+
/** Width of a line of text in pixels, to size boxes before layout runs. */
|
|
373
|
+
declare function estimateTextWidth(text: string, fontSize: number, options?: {
|
|
374
|
+
mono?: boolean;
|
|
375
|
+
weight?: number;
|
|
376
|
+
}): number;
|
|
377
|
+
type DiagramStatus = 'ok' | 'warn' | 'error' | 'idle' | ToneName;
|
|
378
|
+
declare function statusColor(status: DiagramStatus, c: ThemeColors): string;
|
|
379
|
+
declare function StatusDot({ status, c, size }: {
|
|
380
|
+
status?: DiagramStatus;
|
|
381
|
+
c: ThemeColors;
|
|
382
|
+
size?: number;
|
|
383
|
+
}): React.ReactElement;
|
|
384
|
+
interface SparklineProps {
|
|
385
|
+
values: readonly number[];
|
|
386
|
+
c: ThemeColors;
|
|
387
|
+
width?: number;
|
|
388
|
+
height?: number;
|
|
389
|
+
tone?: ToneName;
|
|
390
|
+
color?: string;
|
|
391
|
+
/** Fill under the line. */
|
|
392
|
+
area?: boolean;
|
|
393
|
+
/** Mark the final value. */
|
|
394
|
+
endDot?: boolean;
|
|
395
|
+
min?: number;
|
|
396
|
+
max?: number;
|
|
397
|
+
strokeWidth?: number;
|
|
398
|
+
}
|
|
399
|
+
/** A word-sized line chart for putting a trend next to a number. */
|
|
400
|
+
declare function Sparkline({ values, c, width, height, tone, color, area, endDot, min, max, strokeWidth, }: SparklineProps): React.ReactElement;
|
|
401
|
+
interface InlineBarProps {
|
|
402
|
+
value: number;
|
|
403
|
+
c: ThemeColors;
|
|
404
|
+
width?: number | string;
|
|
405
|
+
height?: number;
|
|
406
|
+
tone?: ToneName;
|
|
407
|
+
color?: string;
|
|
408
|
+
/** Past this fraction the bar turns to the warning color, for capacity. */
|
|
409
|
+
warnAt?: number;
|
|
410
|
+
}
|
|
411
|
+
/** A hairline capacity bar that sits under a value. */
|
|
412
|
+
declare function InlineBar({ value, c, width, height, tone, color, warnAt }: InlineBarProps): React.ReactElement;
|
|
413
|
+
interface FactRow {
|
|
414
|
+
key: React.ReactNode;
|
|
415
|
+
value: React.ReactNode;
|
|
416
|
+
tone?: ToneName;
|
|
417
|
+
/** Draw a small capacity bar under the row. */
|
|
418
|
+
bar?: number;
|
|
419
|
+
}
|
|
420
|
+
interface FactRowsProps {
|
|
421
|
+
rows: readonly FactRow[];
|
|
422
|
+
c: ThemeColors;
|
|
423
|
+
width?: number | string;
|
|
424
|
+
fontSize?: number;
|
|
425
|
+
/** Set values in monospace, so columns of numbers line up. */
|
|
426
|
+
mono?: boolean;
|
|
427
|
+
gap?: number;
|
|
428
|
+
}
|
|
429
|
+
/** Tight rows of key and value, the workhorse of an information-dense node. */
|
|
430
|
+
declare function FactRows({ rows, c, width, fontSize, mono, gap }: FactRowsProps): React.ReactElement;
|
|
431
|
+
interface StripMetric {
|
|
432
|
+
label: React.ReactNode;
|
|
433
|
+
value: React.ReactNode;
|
|
434
|
+
unit?: React.ReactNode;
|
|
435
|
+
tone?: ToneName;
|
|
436
|
+
spark?: readonly number[];
|
|
437
|
+
bar?: number;
|
|
438
|
+
}
|
|
439
|
+
interface MetricStripProps {
|
|
440
|
+
metrics: readonly StripMetric[];
|
|
441
|
+
c: ThemeColors;
|
|
442
|
+
width?: number | string;
|
|
443
|
+
/** Lay out in a row with even columns, or stack. */
|
|
444
|
+
direction?: 'row' | 'column';
|
|
445
|
+
sparkWidth?: number;
|
|
446
|
+
}
|
|
447
|
+
/** Numbers with their units, side by side without a card around each one. */
|
|
448
|
+
declare function MetricStrip({ metrics, c, width, direction, sparkWidth }: MetricStripProps): React.ReactElement;
|
|
449
|
+
/** Small hairline tags: region, version, owner, runtime. */
|
|
450
|
+
declare function TagList({ tags, c, tone }: {
|
|
451
|
+
tags: readonly React.ReactNode[];
|
|
452
|
+
c: ThemeColors;
|
|
453
|
+
tone?: ToneName;
|
|
454
|
+
}): React.ReactElement;
|
|
455
|
+
interface DiagramLegendItem {
|
|
456
|
+
label: React.ReactNode;
|
|
457
|
+
tone?: ToneName;
|
|
458
|
+
color?: string;
|
|
459
|
+
/** Show a line sample in a stroke style, or a filled swatch. */
|
|
460
|
+
style?: 'solid' | 'dashed' | 'dotted' | 'swatch' | 'dot';
|
|
461
|
+
}
|
|
462
|
+
/** A one-line key. It sits in a corner and takes no more room than it needs. */
|
|
463
|
+
declare function DiagramLegend({ items, c, title, width }: {
|
|
464
|
+
items: readonly DiagramLegendItem[];
|
|
465
|
+
c: ThemeColors;
|
|
466
|
+
title?: React.ReactNode;
|
|
467
|
+
width?: number | string;
|
|
468
|
+
}): React.ReactElement;
|
|
469
|
+
interface SmallMultipleItem {
|
|
470
|
+
label: React.ReactNode;
|
|
471
|
+
values: readonly number[];
|
|
472
|
+
/** Current reading, shown at the top right of its cell. */
|
|
473
|
+
value?: React.ReactNode;
|
|
474
|
+
unit?: React.ReactNode;
|
|
475
|
+
tone?: ToneName;
|
|
476
|
+
status?: DiagramStatus;
|
|
477
|
+
/** A baseline such as a target or SLO, drawn across the cell. */
|
|
478
|
+
reference?: number;
|
|
479
|
+
}
|
|
480
|
+
interface SmallMultiplesProps {
|
|
481
|
+
items: readonly SmallMultipleItem[];
|
|
482
|
+
c: ThemeColors;
|
|
483
|
+
columns?: number;
|
|
484
|
+
cellWidth?: number;
|
|
485
|
+
cellHeight?: number;
|
|
486
|
+
/** Give all cells one y scale, so they compare directly. */
|
|
487
|
+
sharedScale?: boolean;
|
|
488
|
+
area?: boolean;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* The same chart repeated with one dimension changing. A dozen of these on a
|
|
492
|
+
* page show more than one chart with a dozen lines on it.
|
|
493
|
+
*/
|
|
494
|
+
declare function SmallMultiples({ items, c, columns, cellWidth, cellHeight, sharedScale, area }: SmallMultiplesProps): React.ReactElement;
|
|
572
495
|
|
|
573
496
|
interface ProgressRowSpec {
|
|
574
497
|
label: React.ReactNode;
|
|
@@ -584,7 +507,7 @@ interface ProgressRowProps extends ProgressRowSpec {
|
|
|
584
507
|
barHeight?: number;
|
|
585
508
|
fontSize?: number;
|
|
586
509
|
}
|
|
587
|
-
declare function ProgressRow({ label, value, valueLabel, tone, muted, c, labelWidth, valueWidth, barHeight, fontSize, }: ProgressRowProps): React.ReactElement;
|
|
510
|
+
declare function ProgressRow({ label, value, valueLabel, tone, muted, c, labelWidth, valueWidth, barHeight: barHeightProp, fontSize: fontSizeProp, }: ProgressRowProps): React.ReactElement;
|
|
588
511
|
interface ProgressListProps {
|
|
589
512
|
rows: ProgressRowSpec[];
|
|
590
513
|
c: ThemeColors;
|
|
@@ -594,7 +517,7 @@ interface ProgressListProps {
|
|
|
594
517
|
barHeight?: number;
|
|
595
518
|
fontSize?: number;
|
|
596
519
|
}
|
|
597
|
-
declare function ProgressList({ rows, c, gap, labelWidth, valueWidth, barHeight, fontSize, }: ProgressListProps): React.ReactElement;
|
|
520
|
+
declare function ProgressList({ rows, c, gap: gapProp, labelWidth, valueWidth, barHeight, fontSize, }: ProgressListProps): React.ReactElement;
|
|
598
521
|
interface MiniBarDatum {
|
|
599
522
|
label: React.ReactNode;
|
|
600
523
|
value: number;
|
|
@@ -615,7 +538,7 @@ interface MiniBarChartProps {
|
|
|
615
538
|
fontSize?: number;
|
|
616
539
|
showValues?: boolean;
|
|
617
540
|
}
|
|
618
|
-
declare function MiniBarChart({ data, c, max, minBarHeight, height, barWidth, gap, radius, fontSize, showValues, }: MiniBarChartProps): React.ReactElement;
|
|
541
|
+
declare function MiniBarChart({ data, c, max, minBarHeight, height, barWidth: barWidthProp, gap: gapProp, radius: radiusProp, fontSize: fontSizeProp, showValues, }: MiniBarChartProps): React.ReactElement;
|
|
619
542
|
interface DetailListProps {
|
|
620
543
|
items: React.ReactNode[];
|
|
621
544
|
c: ThemeColors;
|
|
@@ -626,7 +549,7 @@ interface DetailListProps {
|
|
|
626
549
|
mono?: boolean;
|
|
627
550
|
math?: boolean;
|
|
628
551
|
}
|
|
629
|
-
declare function DetailList({ items, c, tone, gap, padding, fontSize, mono, math, }: DetailListProps): React.ReactElement;
|
|
552
|
+
declare function DetailList({ items, c, tone, gap: gapProp, padding: paddingProp, fontSize: fontSizeProp, mono, math, }: DetailListProps): React.ReactElement;
|
|
630
553
|
interface TileSpec {
|
|
631
554
|
title: React.ReactNode;
|
|
632
555
|
subtitle?: React.ReactNode;
|
|
@@ -646,7 +569,7 @@ interface TileProps extends TileSpec {
|
|
|
646
569
|
shadow?: boolean;
|
|
647
570
|
math?: boolean;
|
|
648
571
|
}
|
|
649
|
-
declare function Tile({ title, subtitle, eyebrow, icon, tone, lines, children, width, minHeight, c, align, padding, radius, shadow, math, }: TileProps): React.ReactElement;
|
|
572
|
+
declare function Tile({ title, subtitle, eyebrow, icon, tone, lines, children, width, minHeight, c, align, padding: paddingProp, radius: radiusProp, shadow, math, }: TileProps): React.ReactElement;
|
|
650
573
|
interface TileGridProps {
|
|
651
574
|
tiles: TileSpec[];
|
|
652
575
|
c: ThemeColors;
|
|
@@ -657,7 +580,7 @@ interface TileGridProps {
|
|
|
657
580
|
align?: 'left' | 'center';
|
|
658
581
|
math?: boolean;
|
|
659
582
|
}
|
|
660
|
-
declare function TileGrid({ tiles, c, columns, gap, tileWidth, minHeight, align, math, }: TileGridProps): React.ReactElement;
|
|
583
|
+
declare function TileGrid({ tiles, c, columns, gap: gapProp, tileWidth, minHeight, align, math, }: TileGridProps): React.ReactElement;
|
|
661
584
|
interface CodeLineSpec {
|
|
662
585
|
text: React.ReactNode;
|
|
663
586
|
tone?: ToneName;
|
|
@@ -679,7 +602,7 @@ interface CodeBlockProps {
|
|
|
679
602
|
shadow?: boolean;
|
|
680
603
|
math?: boolean;
|
|
681
604
|
}
|
|
682
|
-
declare function CodeBlock({ lines, c, title, tone, width, minWidth, fontSize, showLineNumbers, padding, radius, background, shadow, math, }: CodeBlockProps): React.ReactElement;
|
|
605
|
+
declare function CodeBlock({ lines, c, title, tone, width, minWidth, fontSize: fontSizeProp, showLineNumbers, padding: paddingProp, radius: radiusProp, background, shadow, math, }: CodeBlockProps): React.ReactElement;
|
|
683
606
|
interface ComparisonSideSpec {
|
|
684
607
|
title: React.ReactNode;
|
|
685
608
|
subtitle?: React.ReactNode;
|
|
@@ -700,7 +623,7 @@ interface ComparisonProps {
|
|
|
700
623
|
align?: FlexAlign;
|
|
701
624
|
math?: boolean;
|
|
702
625
|
}
|
|
703
|
-
declare function Comparison({ sides, c, divider, gap, sideWidth, minHeight, align, math, }: ComparisonProps): React.ReactElement;
|
|
626
|
+
declare function Comparison({ sides, c, divider, gap: gapProp, sideWidth, minHeight, align, math, }: ComparisonProps): React.ReactElement;
|
|
704
627
|
interface KeyValueRow {
|
|
705
628
|
key: React.ReactNode;
|
|
706
629
|
value: React.ReactNode;
|
|
@@ -720,7 +643,7 @@ interface KeyValueListProps {
|
|
|
720
643
|
keyMono?: boolean;
|
|
721
644
|
math?: boolean;
|
|
722
645
|
}
|
|
723
|
-
declare function KeyValueList({ rows, c, title, width, minWidth, keyWidth, gap, fontSize, divider, keyMono, math, }: KeyValueListProps): React.ReactElement;
|
|
646
|
+
declare function KeyValueList({ rows, c, title, width, minWidth, keyWidth, gap: gapProp, fontSize: fontSizeProp, divider, keyMono, math, }: KeyValueListProps): React.ReactElement;
|
|
724
647
|
interface WindowFrameProps {
|
|
725
648
|
c: ThemeColors;
|
|
726
649
|
children?: React.ReactNode;
|
|
@@ -738,7 +661,7 @@ interface WindowFrameProps {
|
|
|
738
661
|
background?: string;
|
|
739
662
|
bodyStyle?: React.CSSProperties;
|
|
740
663
|
}
|
|
741
|
-
declare function WindowFrame({ c, children, title, variant, tone, dots, width, minWidth, height, minHeight, padding, radius, shadow, background, bodyStyle, }: WindowFrameProps): React.ReactElement;
|
|
664
|
+
declare function WindowFrame({ c, children, title, variant, tone, dots, width, minWidth, height, minHeight, padding: paddingProp, radius: radiusProp, shadow, background, bodyStyle, }: WindowFrameProps): React.ReactElement;
|
|
742
665
|
|
|
743
666
|
type StatusKind = 'check' | 'cross' | 'warn' | 'info' | 'pending' | 'dot';
|
|
744
667
|
interface StatusRowSpec {
|
|
@@ -754,7 +677,7 @@ interface StatusRowProps extends StatusRowSpec {
|
|
|
754
677
|
width?: number | string;
|
|
755
678
|
math?: boolean;
|
|
756
679
|
}
|
|
757
|
-
declare function StatusRow({ label, detail, status, tone, c, boxed, fontSize, width, math, }: StatusRowProps): React.ReactElement;
|
|
680
|
+
declare function StatusRow({ label, detail, status, tone, c, boxed, fontSize: fontSizeProp, width, math, }: StatusRowProps): React.ReactElement;
|
|
758
681
|
interface StatusListProps {
|
|
759
682
|
rows: StatusRowSpec[];
|
|
760
683
|
c: ThemeColors;
|
|
@@ -764,7 +687,7 @@ interface StatusListProps {
|
|
|
764
687
|
width?: number | string;
|
|
765
688
|
math?: boolean;
|
|
766
689
|
}
|
|
767
|
-
declare function StatusList({ rows, c, gap, boxed, fontSize, width, math, }: StatusListProps): React.ReactElement;
|
|
690
|
+
declare function StatusList({ rows, c, gap: gapProp, boxed, fontSize, width, math, }: StatusListProps): React.ReactElement;
|
|
768
691
|
interface TimelineEventSpec {
|
|
769
692
|
title: React.ReactNode;
|
|
770
693
|
detail?: React.ReactNode;
|
|
@@ -785,7 +708,7 @@ interface TimelineProps {
|
|
|
785
708
|
markerSize?: number;
|
|
786
709
|
math?: boolean;
|
|
787
710
|
}
|
|
788
|
-
declare function Timeline({ events, c, title, subtitle, direction, width, eventWidth, gap, markerSize, math, }: TimelineProps): React.ReactElement;
|
|
711
|
+
declare function Timeline({ events, c, title, subtitle, direction, width, eventWidth, gap: gapProp, markerSize: markerSizeProp, math, }: TimelineProps): React.ReactElement;
|
|
789
712
|
interface FlowStageSpec {
|
|
790
713
|
title: React.ReactNode;
|
|
791
714
|
subtitle?: React.ReactNode;
|
|
@@ -808,7 +731,7 @@ interface FlowProps {
|
|
|
808
731
|
align?: FlexAlign;
|
|
809
732
|
math?: boolean;
|
|
810
733
|
}
|
|
811
|
-
declare function Flow({ stages, c, direction, gap, connectorLength, connectorTone, align, math, }: FlowProps): React.ReactElement;
|
|
734
|
+
declare function Flow({ stages, c, direction, gap: gapProp, connectorLength: connectorLengthProp, connectorTone, align, math, }: FlowProps): React.ReactElement;
|
|
812
735
|
|
|
813
736
|
type GraphRouting = 'dagre' | 'straight' | 'orthogonal';
|
|
814
737
|
type GraphPortSide = 'top' | 'right' | 'bottom' | 'left';
|
|
@@ -840,6 +763,7 @@ interface GraphDiagramNode {
|
|
|
840
763
|
title?: string;
|
|
841
764
|
x?: number;
|
|
842
765
|
y?: number;
|
|
766
|
+
/** Names a category. It colors the icon and the border, and leaves text in ink. */
|
|
843
767
|
tone?: ToneName;
|
|
844
768
|
muted?: boolean;
|
|
845
769
|
width?: number;
|
|
@@ -848,6 +772,19 @@ interface GraphDiagramNode {
|
|
|
848
772
|
icon?: IconName | DiagramIconDefinition | React.ReactElement;
|
|
849
773
|
iconSize?: number;
|
|
850
774
|
ports?: GraphDiagramPort[];
|
|
775
|
+
/** Health shown as a dot beside the title. */
|
|
776
|
+
status?: DiagramStatus;
|
|
777
|
+
/** Key and value rows, such as region, replicas, or capacity. */
|
|
778
|
+
rows?: FactRow[];
|
|
779
|
+
/** Numbers with units, optionally with a sparkline or capacity bar. */
|
|
780
|
+
metrics?: StripMetric[];
|
|
781
|
+
/** Small labels such as runtime or tier. */
|
|
782
|
+
tags?: React.ReactNode[];
|
|
783
|
+
version?: string;
|
|
784
|
+
owner?: string;
|
|
785
|
+
footer?: React.ReactNode;
|
|
786
|
+
/** A trend across the width of the node. */
|
|
787
|
+
spark?: readonly number[];
|
|
851
788
|
}
|
|
852
789
|
/** A fixed geometric connector anchor on a node boundary. Offset runs left to right or top to bottom. */
|
|
853
790
|
interface GraphDiagramPort {
|
|
@@ -874,6 +811,8 @@ interface GraphDiagramGroup {
|
|
|
874
811
|
parent?: string;
|
|
875
812
|
tone?: ToneName;
|
|
876
813
|
muted?: boolean;
|
|
814
|
+
/** Totals for the whole group, shown at the right of its header. */
|
|
815
|
+
summary?: React.ReactNode;
|
|
877
816
|
}
|
|
878
817
|
type GraphDiagramEdgeKind = 'sync' | 'async' | 'event' | 'data' | 'dependency' | 'association';
|
|
879
818
|
type GraphDiagramEdgeStyle = 'solid' | 'dashed' | 'dotted';
|
|
@@ -895,6 +834,16 @@ interface GraphDiagramEdge {
|
|
|
895
834
|
toPort?: string;
|
|
896
835
|
fromSide?: GraphPortSide;
|
|
897
836
|
toSide?: GraphPortSide;
|
|
837
|
+
/** Make this connector heavier, to show traffic or importance. */
|
|
838
|
+
emphasis?: boolean;
|
|
839
|
+
}
|
|
840
|
+
interface GraphDiagramAnnotation {
|
|
841
|
+
/** The node this note refers to. */
|
|
842
|
+
target: string;
|
|
843
|
+
text: React.ReactNode;
|
|
844
|
+
side?: GraphPortSide;
|
|
845
|
+
tone?: ToneName;
|
|
846
|
+
width?: number;
|
|
898
847
|
}
|
|
899
848
|
interface GraphDiagramProps {
|
|
900
849
|
nodes: GraphDiagramNode[];
|
|
@@ -903,7 +852,9 @@ interface GraphDiagramProps {
|
|
|
903
852
|
c: ThemeColors;
|
|
904
853
|
width?: number;
|
|
905
854
|
height?: number;
|
|
855
|
+
/** Fixed node width. Omit it to size each node to its content. */
|
|
906
856
|
nodeWidth?: number;
|
|
857
|
+
/** Minimum node height. Nodes grow when their content needs more. */
|
|
907
858
|
nodeHeight?: number;
|
|
908
859
|
labelFontSize?: number;
|
|
909
860
|
detailFontSize?: number;
|
|
@@ -911,10 +862,12 @@ interface GraphDiagramProps {
|
|
|
911
862
|
padding?: number;
|
|
912
863
|
layout?: 'auto' | 'manual';
|
|
913
864
|
direction?: 'LR' | 'RL' | 'TB' | 'BT';
|
|
865
|
+
/** Flow inside each group. Stack tiers top to bottom and read each tier left to right with direction="TB" and groupDirection="LR". */
|
|
866
|
+
groupDirection?: 'LR' | 'RL' | 'TB' | 'BT';
|
|
914
867
|
nodeGap?: number;
|
|
915
868
|
rankGap?: number;
|
|
916
869
|
edgeGap?: number;
|
|
917
|
-
/** Dagre
|
|
870
|
+
/** Dagre draws smooth curves. Orthogonal routes avoid node boxes and group headers. */
|
|
918
871
|
routing?: GraphRouting;
|
|
919
872
|
/** Minimum node clearance in logical pixels for orthogonal routing. */
|
|
920
873
|
routingClearance?: number;
|
|
@@ -924,8 +877,16 @@ interface GraphDiagramProps {
|
|
|
924
877
|
ariaLabel?: string;
|
|
925
878
|
title?: string;
|
|
926
879
|
description?: string;
|
|
927
|
-
|
|
928
|
-
|
|
880
|
+
/** A key below the diagram. Pass true to build one from the relationship kinds in use. */
|
|
881
|
+
legend?: boolean | DiagramLegendItem[];
|
|
882
|
+
/** Notes with leader lines, pointing at nodes. */
|
|
883
|
+
annotations?: GraphDiagramAnnotation[];
|
|
884
|
+
/** Type, spacing, and stroke scale for this diagram. */
|
|
885
|
+
density?: Density;
|
|
886
|
+
/** Crossings a large map accepts before `vizmatic check` warns. Defaults to one for every six edges. */
|
|
887
|
+
crossingBudget?: number;
|
|
888
|
+
}
|
|
889
|
+
declare function GraphDiagram({ nodes, edges, groups, c: baseTheme, width, height, nodeWidth, nodeHeight, labelFontSize, detailFontSize, arrowSize, padding: paddingProp, layout: requestedLayout, direction, groupDirection, nodeGap: nodeGapProp, rankGap: rankGapProp, edgeGap: edgeGapProp, routing, routingClearance: routingClearanceProp, sizing, iconSize: iconSizeProp, id, ariaLabel, title, description, legend, annotations, density, crossingBudget, }: GraphDiagramProps): React.ReactElement;
|
|
929
890
|
interface TreeNodeSpec {
|
|
930
891
|
label: React.ReactNode;
|
|
931
892
|
id?: string;
|
|
@@ -949,7 +910,7 @@ interface TreeDiagramProps {
|
|
|
949
910
|
padding?: number;
|
|
950
911
|
math?: boolean;
|
|
951
912
|
}
|
|
952
|
-
declare function TreeDiagram({ root, c, ariaLabel, title, subtitle, width, height, nodeWidth, nodeHeight, levelGap, siblingGap, padding, math, }: TreeDiagramProps): React.ReactElement;
|
|
913
|
+
declare function TreeDiagram({ root, c, ariaLabel, title, subtitle, width, height, nodeWidth: nodeWidthProp, nodeHeight: nodeHeightProp, levelGap: levelGapProp, siblingGap: siblingGapProp, padding: paddingProp, math, }: TreeDiagramProps): React.ReactElement;
|
|
953
914
|
interface CalloutCardProps {
|
|
954
915
|
c: ThemeColors;
|
|
955
916
|
children?: React.ReactNode;
|
|
@@ -964,7 +925,7 @@ interface CalloutCardProps {
|
|
|
964
925
|
filled?: boolean;
|
|
965
926
|
align?: 'left' | 'center';
|
|
966
927
|
}
|
|
967
|
-
declare function CalloutCard({ c, children, title, detail, tone, width, minHeight, padding, titleFontSize, detailFontSize, filled, align, }: CalloutCardProps): React.ReactElement;
|
|
928
|
+
declare function CalloutCard({ c, children, title, detail, tone, width, minHeight, padding: paddingProp, titleFontSize, detailFontSize, filled, align, }: CalloutCardProps): React.ReactElement;
|
|
968
929
|
interface PipelineStage {
|
|
969
930
|
label: string;
|
|
970
931
|
sublabel?: string;
|
|
@@ -1063,7 +1024,7 @@ interface SequenceDiagramProps {
|
|
|
1063
1024
|
* Render a deterministic sequence diagram with typed lifelines, messages,
|
|
1064
1025
|
* notes, activations, and nested alt/loop/parallel fragments.
|
|
1065
1026
|
*/
|
|
1066
|
-
declare function SequenceDiagram({ c, participants, messages, notes, activations, fragments, items, title, subtitle, ariaLabel, width, height, padding, participantWidth, participantGap, rowHeight, fragmentIndent, noteWidth, lifelineDash, }: SequenceDiagramProps): React.ReactElement;
|
|
1027
|
+
declare function SequenceDiagram({ c, participants, messages, notes, activations, fragments, items, title, subtitle, ariaLabel, width, height, padding: paddingProp, participantWidth, participantGap, rowHeight, fragmentIndent, noteWidth, lifelineDash, }: SequenceDiagramProps): React.ReactElement;
|
|
1067
1028
|
|
|
1068
1029
|
type DataflowNodeKind = 'source' | 'transform' | 'store' | 'sink';
|
|
1069
1030
|
type DataflowEdgeMode = 'batch' | 'stream';
|
|
@@ -1286,8 +1247,17 @@ interface MatrixProps {
|
|
|
1286
1247
|
format?: 'decimal' | 'percent' | 'integer';
|
|
1287
1248
|
colorize?: boolean;
|
|
1288
1249
|
colorScale?: 'heat' | 'strength';
|
|
1250
|
+
fontSize?: number;
|
|
1251
|
+
highlightRow?: number;
|
|
1252
|
+
highlightCol?: number;
|
|
1253
|
+
highlightCell?: {
|
|
1254
|
+
row: number;
|
|
1255
|
+
col: number;
|
|
1256
|
+
};
|
|
1257
|
+
highlightColor?: string;
|
|
1258
|
+
colorDomain?: readonly [number, number];
|
|
1289
1259
|
}
|
|
1290
|
-
declare function Matrix({ data, c, rowLabels, colLabels, labels, title, cellSize, cellWidth, cellHeight, rowLabelWidth, format, colorize, colorScale, }: MatrixProps): React.ReactElement;
|
|
1260
|
+
declare function Matrix({ data, c, rowLabels, colLabels, labels, title, cellSize: cellSizeProp, cellWidth, cellHeight, rowLabelWidth, format, colorize, colorScale, fontSize: fontSizeProp, highlightRow, highlightCol, highlightCell, highlightColor, colorDomain, }: MatrixProps): React.ReactElement;
|
|
1291
1261
|
interface HeatmapProps {
|
|
1292
1262
|
data: number[][];
|
|
1293
1263
|
xLabels: string[];
|
|
@@ -1300,8 +1270,17 @@ interface HeatmapProps {
|
|
|
1300
1270
|
cellHeight?: number;
|
|
1301
1271
|
rowLabelWidth?: number;
|
|
1302
1272
|
colorScale?: 'heat' | 'strength';
|
|
1273
|
+
fontSize?: number;
|
|
1274
|
+
highlightRow?: number;
|
|
1275
|
+
highlightCol?: number;
|
|
1276
|
+
highlightCell?: {
|
|
1277
|
+
row: number;
|
|
1278
|
+
col: number;
|
|
1279
|
+
};
|
|
1280
|
+
highlightColor?: string;
|
|
1281
|
+
colorDomain?: readonly [number, number];
|
|
1303
1282
|
}
|
|
1304
|
-
declare function Heatmap({ data, xLabels, yLabels, c, labels, title, cellSize, cellWidth, cellHeight, rowLabelWidth, colorScale, }: HeatmapProps): React.ReactElement;
|
|
1283
|
+
declare function Heatmap({ data, xLabels, yLabels, c, labels, title, cellSize, cellWidth, cellHeight, rowLabelWidth, colorScale, fontSize, highlightRow, highlightCol, highlightCell, highlightColor, colorDomain, }: HeatmapProps): React.ReactElement;
|
|
1305
1284
|
interface TiledMatrixRegion {
|
|
1306
1285
|
rowStart: number;
|
|
1307
1286
|
rowEnd: number;
|
|
@@ -1323,10 +1302,11 @@ interface TiledMatrixProps {
|
|
|
1323
1302
|
muted?: boolean;
|
|
1324
1303
|
crossedOut?: boolean;
|
|
1325
1304
|
}
|
|
1326
|
-
declare function TiledMatrix({ rows, cols, c, ariaLabel, regions, title, subtitle, cellSize, gap, tone, muted, crossedOut, }: TiledMatrixProps): React.ReactElement;
|
|
1305
|
+
declare function TiledMatrix({ rows, cols, c, ariaLabel, regions, title, subtitle, cellSize, gap: gapProp, tone, muted, crossedOut, }: TiledMatrixProps): React.ReactElement;
|
|
1327
1306
|
interface DataTableProps {
|
|
1328
1307
|
rows: React.ReactNode[][];
|
|
1329
1308
|
c: ThemeColors;
|
|
1309
|
+
/** Fixed column width. Omit it to size columns to their content. */
|
|
1330
1310
|
cellWidth?: number;
|
|
1331
1311
|
firstColWidth?: number;
|
|
1332
1312
|
cellHeight?: number;
|
|
@@ -1335,8 +1315,11 @@ interface DataTableProps {
|
|
|
1335
1315
|
headerCols?: number;
|
|
1336
1316
|
fontSize?: number;
|
|
1337
1317
|
math?: boolean;
|
|
1318
|
+
/** Text alignment per column. Defaults to left for the first column and right for the rest. */
|
|
1319
|
+
align?: ReadonlyArray<'left' | 'center' | 'right'>;
|
|
1320
|
+
width?: number | string;
|
|
1338
1321
|
}
|
|
1339
|
-
declare function DataTable({ rows, c, cellWidth, firstColWidth, cellHeight, gap, headerRows, headerCols, fontSize, math, }: DataTableProps): React.ReactElement;
|
|
1322
|
+
declare function DataTable({ rows, c, cellWidth, firstColWidth, cellHeight, gap: gapProp, headerRows, headerCols, fontSize: fontSizeProp, math, align, width, }: DataTableProps): React.ReactElement;
|
|
1340
1323
|
interface GridCell {
|
|
1341
1324
|
label?: React.ReactNode;
|
|
1342
1325
|
tone?: ToneName;
|
|
@@ -1357,7 +1340,7 @@ interface GridProps {
|
|
|
1357
1340
|
headerRows?: number;
|
|
1358
1341
|
headerCols?: number;
|
|
1359
1342
|
}
|
|
1360
|
-
declare function Grid({ rows, c, cellWidth, cellHeight, gap, radius, fontSize, math, headerRows, headerCols, }: GridProps): React.ReactElement;
|
|
1343
|
+
declare function Grid({ rows, c, cellWidth: cellWidthProp, cellHeight: cellHeightProp, gap: gapProp, radius: radiusProp, fontSize: fontSizeProp, math, headerRows, headerCols, }: GridProps): React.ReactElement;
|
|
1361
1344
|
interface AxisPlotPoint {
|
|
1362
1345
|
x: number;
|
|
1363
1346
|
y: number;
|
|
@@ -1419,7 +1402,7 @@ interface AxisPlotProps {
|
|
|
1419
1402
|
yAxisLabel?: string;
|
|
1420
1403
|
children?: React.ReactNode;
|
|
1421
1404
|
}
|
|
1422
|
-
declare function AxisPlot({ c, width, height, xMin, xMax, yMin, yMax, padding, showFrame, showAxes, showGrid, gridCount, frameRx, frameFill, frameStroke, axisColor, points, vectors, paths, xAxisLabel, yAxisLabel, children, }: AxisPlotProps): React.ReactElement;
|
|
1405
|
+
declare function AxisPlot({ c, width, height, xMin, xMax, yMin, yMax, padding: paddingProp, showFrame, showAxes, showGrid, gridCount, frameRx, frameFill, frameStroke, axisColor, points, vectors, paths, xAxisLabel, yAxisLabel, children, }: AxisPlotProps): React.ReactElement;
|
|
1423
1406
|
|
|
1424
1407
|
type ChartValueFormat = 'decimal' | 'percent' | 'integer' | 'compact' | ((value: number) => string);
|
|
1425
1408
|
interface ChartLegendItem {
|
|
@@ -1453,6 +1436,8 @@ interface ChartFrameProps {
|
|
|
1453
1436
|
width?: number | string;
|
|
1454
1437
|
height?: number | string;
|
|
1455
1438
|
padding?: number;
|
|
1439
|
+
/** Draw a card around the chart. Off by default, since most charts already sit in a panel. */
|
|
1440
|
+
framed?: boolean;
|
|
1456
1441
|
}
|
|
1457
1442
|
declare function createPlotArea(width: number, height: number, margin: ChartMargins): PlotArea;
|
|
1458
1443
|
declare function ChartFrame(props: ChartFrameProps): React.ReactElement;
|
|
@@ -1564,10 +1549,12 @@ interface LineChartProps {
|
|
|
1564
1549
|
format?: ChartValueFormat;
|
|
1565
1550
|
showGrid?: boolean;
|
|
1566
1551
|
showPoints?: boolean;
|
|
1552
|
+
/** Name each line at its end instead of in a legend. On when there are several series. */
|
|
1553
|
+
directLabels?: boolean;
|
|
1567
1554
|
yAxisLabel?: string;
|
|
1568
1555
|
footer?: string;
|
|
1569
1556
|
}
|
|
1570
|
-
declare function LineChart({ series, c, title, subtitle, width, height, labels, min, max, format, showGrid, showPoints, yAxisLabel, footer, }: LineChartProps): React.ReactElement;
|
|
1557
|
+
declare function LineChart({ series, c, title, subtitle, width, height, labels, min, max, format, showGrid, showPoints, directLabels, yAxisLabel, footer, }: LineChartProps): React.ReactElement;
|
|
1571
1558
|
|
|
1572
1559
|
interface ScatterPoint {
|
|
1573
1560
|
x: number;
|
|
@@ -1745,39 +1732,458 @@ declare function Board({ children, c, width, height, background }: BoardProps):
|
|
|
1745
1732
|
/** Positions an item in Board coordinates, sizing its child or fitting a complete chart. */
|
|
1746
1733
|
declare function CanvasItem({ children, x, y, width, height }: CanvasItemProps): React.ReactElement;
|
|
1747
1734
|
|
|
1735
|
+
interface NumberLineTick {
|
|
1736
|
+
value: number;
|
|
1737
|
+
label?: string;
|
|
1738
|
+
}
|
|
1739
|
+
interface NumberLineMarker {
|
|
1740
|
+
id: string;
|
|
1741
|
+
value: number;
|
|
1742
|
+
label: string;
|
|
1743
|
+
color?: string;
|
|
1744
|
+
}
|
|
1745
|
+
interface NumberLineInterval {
|
|
1746
|
+
from: number;
|
|
1747
|
+
to: number;
|
|
1748
|
+
includeFrom?: boolean;
|
|
1749
|
+
includeTo?: boolean;
|
|
1750
|
+
label?: string;
|
|
1751
|
+
color?: string;
|
|
1752
|
+
}
|
|
1753
|
+
interface NumberLineProps {
|
|
1754
|
+
c: ThemeColors;
|
|
1755
|
+
min: number;
|
|
1756
|
+
max: number;
|
|
1757
|
+
ticks?: NumberLineTick[];
|
|
1758
|
+
markers?: NumberLineMarker[];
|
|
1759
|
+
interval?: NumberLineInterval;
|
|
1760
|
+
title?: string;
|
|
1761
|
+
ariaLabel?: string;
|
|
1762
|
+
width?: number;
|
|
1763
|
+
height?: number;
|
|
1764
|
+
}
|
|
1765
|
+
declare function mapNumberLine(value: number, min: number, max: number, width: number, padding?: number): number;
|
|
1766
|
+
declare function NumberLine({ c, min, max, ticks, markers, interval, title, ariaLabel, width, height, }: NumberLineProps): React.ReactElement;
|
|
1767
|
+
interface GeometryPoint {
|
|
1768
|
+
id: string;
|
|
1769
|
+
x: number;
|
|
1770
|
+
y: number;
|
|
1771
|
+
label?: string;
|
|
1772
|
+
}
|
|
1773
|
+
interface GeometrySegment {
|
|
1774
|
+
from: string;
|
|
1775
|
+
to: string;
|
|
1776
|
+
label?: string;
|
|
1777
|
+
color?: string;
|
|
1778
|
+
dashed?: boolean;
|
|
1779
|
+
}
|
|
1780
|
+
interface GeometryAngle {
|
|
1781
|
+
vertex: string;
|
|
1782
|
+
from: string;
|
|
1783
|
+
to: string;
|
|
1784
|
+
label?: string;
|
|
1785
|
+
radius?: number;
|
|
1786
|
+
color?: string;
|
|
1787
|
+
}
|
|
1788
|
+
interface GeometryBounds {
|
|
1789
|
+
minX: number;
|
|
1790
|
+
maxX: number;
|
|
1791
|
+
minY: number;
|
|
1792
|
+
maxY: number;
|
|
1793
|
+
width: number;
|
|
1794
|
+
height: number;
|
|
1795
|
+
}
|
|
1796
|
+
interface GeometryDiagramProps {
|
|
1797
|
+
c: ThemeColors;
|
|
1798
|
+
points: GeometryPoint[];
|
|
1799
|
+
segments?: GeometrySegment[];
|
|
1800
|
+
angles?: GeometryAngle[];
|
|
1801
|
+
title?: string;
|
|
1802
|
+
ariaLabel?: string;
|
|
1803
|
+
width?: number;
|
|
1804
|
+
height?: number;
|
|
1805
|
+
}
|
|
1806
|
+
declare function geometryBounds(points: readonly GeometryPoint[]): GeometryBounds;
|
|
1807
|
+
declare function GeometryDiagram({ c, points, segments, angles, title, ariaLabel, width, height, }: GeometryDiagramProps): React.ReactElement;
|
|
1808
|
+
interface ForceVector {
|
|
1809
|
+
id: string;
|
|
1810
|
+
label: string;
|
|
1811
|
+
x: number;
|
|
1812
|
+
y: number;
|
|
1813
|
+
color?: string;
|
|
1814
|
+
}
|
|
1815
|
+
interface ForceResultant {
|
|
1816
|
+
x: number;
|
|
1817
|
+
y: number;
|
|
1818
|
+
magnitude: number;
|
|
1819
|
+
}
|
|
1820
|
+
interface FreeBodyDiagramProps {
|
|
1821
|
+
c: ThemeColors;
|
|
1822
|
+
forces: ForceVector[];
|
|
1823
|
+
showResultant?: boolean;
|
|
1824
|
+
showComponents?: boolean;
|
|
1825
|
+
title?: string;
|
|
1826
|
+
ariaLabel?: string;
|
|
1827
|
+
width?: number;
|
|
1828
|
+
height?: number;
|
|
1829
|
+
}
|
|
1830
|
+
declare function sumForces(forces: readonly ForceVector[]): ForceResultant;
|
|
1831
|
+
declare function FreeBodyDiagram({ c, forces, showResultant, showComponents, title, ariaLabel, width, height, }: FreeBodyDiagramProps): React.ReactElement;
|
|
1832
|
+
interface Wave {
|
|
1833
|
+
amplitude: number;
|
|
1834
|
+
wavelength: number;
|
|
1835
|
+
phase?: number;
|
|
1836
|
+
speed?: number;
|
|
1837
|
+
color?: string;
|
|
1838
|
+
label?: string;
|
|
1839
|
+
}
|
|
1840
|
+
interface WaveSample {
|
|
1841
|
+
x: number;
|
|
1842
|
+
y: number;
|
|
1843
|
+
}
|
|
1844
|
+
interface WaveDiagramProps {
|
|
1845
|
+
c: ThemeColors;
|
|
1846
|
+
waves: Wave[];
|
|
1847
|
+
time: number;
|
|
1848
|
+
xMin: number;
|
|
1849
|
+
xMax: number;
|
|
1850
|
+
yMin?: number;
|
|
1851
|
+
yMax?: number;
|
|
1852
|
+
showComponents?: boolean;
|
|
1853
|
+
showSum?: boolean;
|
|
1854
|
+
probeX?: number;
|
|
1855
|
+
sampleCount?: number;
|
|
1856
|
+
title?: string;
|
|
1857
|
+
ariaLabel?: string;
|
|
1858
|
+
width?: number;
|
|
1859
|
+
height?: number;
|
|
1860
|
+
}
|
|
1861
|
+
declare function waveValue(wave: Wave, x: number, time: number): number;
|
|
1862
|
+
declare function sampleWave(wave: Wave, xMin: number, xMax: number, time: number, sampleCount?: number): WaveSample[];
|
|
1863
|
+
declare function WaveDiagram({ c, waves, time, xMin, xMax, yMin, yMax, showComponents, showSum, probeX, sampleCount, title, ariaLabel, width, height, }: WaveDiagramProps): React.ReactElement;
|
|
1864
|
+
|
|
1865
|
+
/** IUPAC element symbols. Runtime validation uses this complete periodic table. */
|
|
1866
|
+
type ElementSymbol = 'H' | 'He' | 'Li' | 'Be' | 'B' | 'C' | 'N' | 'O' | 'F' | 'Ne' | 'Na' | 'Mg' | 'Al' | 'Si' | 'P' | 'S' | 'Cl' | 'Ar' | 'K' | 'Ca' | 'Sc' | 'Ti' | 'V' | 'Cr' | 'Mn' | 'Fe' | 'Co' | 'Ni' | 'Cu' | 'Zn' | 'Ga' | 'Ge' | 'As' | 'Se' | 'Br' | 'Kr' | 'Rb' | 'Sr' | 'Y' | 'Zr' | 'Nb' | 'Mo' | 'Tc' | 'Ru' | 'Rh' | 'Pd' | 'Ag' | 'Cd' | 'In' | 'Sn' | 'Sb' | 'Te' | 'I' | 'Xe' | 'Cs' | 'Ba' | 'La' | 'Ce' | 'Pr' | 'Nd' | 'Pm' | 'Sm' | 'Eu' | 'Gd' | 'Tb' | 'Dy' | 'Ho' | 'Er' | 'Tm' | 'Yb' | 'Lu' | 'Hf' | 'Ta' | 'W' | 'Re' | 'Os' | 'Ir' | 'Pt' | 'Au' | 'Hg' | 'Tl' | 'Pb' | 'Bi' | 'Po' | 'At' | 'Rn' | 'Fr' | 'Ra' | 'Ac' | 'Th' | 'Pa' | 'U' | 'Np' | 'Pu' | 'Am' | 'Cm' | 'Bk' | 'Cf' | 'Es' | 'Fm' | 'Md' | 'No' | 'Lr' | 'Rf' | 'Db' | 'Sg' | 'Bh' | 'Hs' | 'Mt' | 'Ds' | 'Rg' | 'Cn' | 'Nh' | 'Fl' | 'Mc' | 'Lv' | 'Ts' | 'Og';
|
|
1867
|
+
declare const ELEMENT_SYMBOLS: readonly ElementSymbol[];
|
|
1868
|
+
type MoleculeAtomId = string;
|
|
1869
|
+
type MoleculeBondOrder = 1 | 1.5 | 2 | 3;
|
|
1870
|
+
/** An explicitly positioned atom; x/y are arbitrary diagram units, not pixels. */
|
|
1871
|
+
interface MoleculeAtom {
|
|
1872
|
+
id: MoleculeAtomId;
|
|
1873
|
+
element: ElementSymbol;
|
|
1874
|
+
x: number;
|
|
1875
|
+
y: number;
|
|
1876
|
+
charge?: number;
|
|
1877
|
+
isotope?: number;
|
|
1878
|
+
/** Optional secondary label. The element symbol is always shown. */
|
|
1879
|
+
label?: string;
|
|
1880
|
+
}
|
|
1881
|
+
/** A bond joins two atom IDs. No valence or stereochemistry is inferred. */
|
|
1882
|
+
interface MoleculeBond {
|
|
1883
|
+
from: MoleculeAtomId;
|
|
1884
|
+
to: MoleculeAtomId;
|
|
1885
|
+
order: MoleculeBondOrder;
|
|
1886
|
+
}
|
|
1887
|
+
interface MoleculeDiagramProps {
|
|
1888
|
+
c: ThemeColors;
|
|
1889
|
+
atoms: MoleculeAtom[];
|
|
1890
|
+
bonds: MoleculeBond[];
|
|
1891
|
+
width?: number;
|
|
1892
|
+
height?: number;
|
|
1893
|
+
title?: string;
|
|
1894
|
+
}
|
|
1748
1895
|
/**
|
|
1749
|
-
*
|
|
1750
|
-
*
|
|
1751
|
-
*
|
|
1896
|
+
* Draws only the atoms and bonds explicitly supplied by the caller. Coordinates
|
|
1897
|
+
* are uniformly scaled diagram units; this component makes no valence, 3D, or
|
|
1898
|
+
* stereochemistry claims.
|
|
1899
|
+
*/
|
|
1900
|
+
declare function MoleculeDiagram({ c, atoms, bonds, width, height, title, }: MoleculeDiagramProps): React.ReactElement;
|
|
1901
|
+
type ReactionState = 's' | 'l' | 'g' | 'aq';
|
|
1902
|
+
/** Sparse element counts supplied explicitly by the author; omitted elements are zero. */
|
|
1903
|
+
type ElementComposition = Partial<Record<ElementSymbol, number>>;
|
|
1904
|
+
interface ReactionTerm {
|
|
1905
|
+
/** Displayed verbatim. It is never parsed to infer atom counts. */
|
|
1906
|
+
formula: string;
|
|
1907
|
+
coefficient?: number;
|
|
1908
|
+
state?: ReactionState;
|
|
1909
|
+
/** A complete explicit element-count map for this term, when available. */
|
|
1910
|
+
composition?: ElementComposition;
|
|
1911
|
+
/** Charge for this complete explicit term; omission means neutral. */
|
|
1912
|
+
charge?: number;
|
|
1913
|
+
}
|
|
1914
|
+
interface ReactionEquationProps {
|
|
1915
|
+
c: ThemeColors;
|
|
1916
|
+
reactants: ReactionTerm[];
|
|
1917
|
+
products: ReactionTerm[];
|
|
1918
|
+
conditions?: string;
|
|
1919
|
+
reversible?: boolean;
|
|
1920
|
+
width?: number;
|
|
1921
|
+
}
|
|
1922
|
+
type ReactionBalanceResult = {
|
|
1923
|
+
status: 'unavailable';
|
|
1924
|
+
reason: 'composition_missing';
|
|
1925
|
+
missingTerms: string[];
|
|
1926
|
+
} | {
|
|
1927
|
+
status: 'balanced' | 'unbalanced';
|
|
1928
|
+
balanced: boolean;
|
|
1929
|
+
/** Product totals minus reactant totals, weighted by each coefficient. */
|
|
1930
|
+
elementDeltas: Partial<Record<ElementSymbol, number>>;
|
|
1931
|
+
/** Product charge minus reactant charge, weighted by each coefficient. */
|
|
1932
|
+
chargeDelta: number;
|
|
1933
|
+
};
|
|
1934
|
+
/**
|
|
1935
|
+
* Checks only the explicit element maps and charges provided by the caller.
|
|
1936
|
+
* Formula strings are never parsed. Every term needs a complete composition map
|
|
1937
|
+
* before the function can report a balance result; an omitted map is unavailable.
|
|
1752
1938
|
*/
|
|
1939
|
+
declare function reactionBalance(reactants: ReactionTerm[], products: ReactionTerm[]): ReactionBalanceResult;
|
|
1940
|
+
/**
|
|
1941
|
+
* Displays literal formula strings. Balance is computed only from complete,
|
|
1942
|
+
* caller-supplied composition maps, never by parsing the displayed formulas.
|
|
1943
|
+
*/
|
|
1944
|
+
declare function ReactionEquation({ c, reactants, products, conditions, reversible, width, }: ReactionEquationProps): React.ReactElement;
|
|
1945
|
+
interface ReactionEnergyDiagramProps {
|
|
1946
|
+
c: ThemeColors;
|
|
1947
|
+
ariaLabel?: string;
|
|
1948
|
+
/** Explicit relative energy for the reactant endpoint, in the supplied unit. */
|
|
1949
|
+
reactants: number;
|
|
1950
|
+
/** Explicit relative energy for the product endpoint, in the supplied unit. */
|
|
1951
|
+
products: number;
|
|
1952
|
+
/** Absolute peak energy for the uncatalyzed path, in the supplied unit. */
|
|
1953
|
+
barrier: number;
|
|
1954
|
+
/** Absolute peak energy for the catalyzed path; endpoints remain unchanged. */
|
|
1955
|
+
catalyzedBarrier?: number;
|
|
1956
|
+
/** Caller-supplied energy unit. Values are not converted or simulated. */
|
|
1957
|
+
unit?: string;
|
|
1958
|
+
reactantLabel?: string;
|
|
1959
|
+
productLabel?: string;
|
|
1960
|
+
width?: number;
|
|
1961
|
+
height?: number;
|
|
1962
|
+
/** Static path reveal from 0 to 1; does not change the path or its endpoints. */
|
|
1963
|
+
progress?: number;
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* Shows an illustrative energy profile from caller-supplied values. It derives
|
|
1967
|
+
* Ea and ΔE in that unit only; it does not convert units or simulate kinetics.
|
|
1968
|
+
* A catalyst changes the path peak while both paths retain the same endpoints.
|
|
1969
|
+
*/
|
|
1970
|
+
declare function ReactionEnergyDiagram({ c, ariaLabel, reactants, products, barrier, catalyzedBarrier, unit, reactantLabel, productLabel, width, height, progress, }: ReactionEnergyDiagramProps): React.ReactElement;
|
|
1753
1971
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1972
|
+
interface AttentionOptions {
|
|
1973
|
+
/** Top-left causal alignment: key j is visible to query i when j <= i. */
|
|
1974
|
+
causal?: boolean;
|
|
1975
|
+
/** True permits attention; false masks the corresponding query/key pair. */
|
|
1976
|
+
mask?: readonly (readonly boolean[])[];
|
|
1977
|
+
}
|
|
1978
|
+
interface AttentionResult {
|
|
1979
|
+
scores: (number | null)[][];
|
|
1980
|
+
weights: number[][];
|
|
1981
|
+
output: number[][];
|
|
1982
|
+
}
|
|
1983
|
+
/** Single-head scaled dot-product attention, without dropout or learned projections. */
|
|
1984
|
+
declare function scaledDotProductAttention(queries: readonly (readonly number[])[], keys: readonly (readonly number[])[], values: readonly (readonly number[])[], options?: AttentionOptions): AttentionResult;
|
|
1985
|
+
interface AttentionMatrixProps {
|
|
1986
|
+
c: ThemeColors;
|
|
1987
|
+
weights: readonly (readonly number[])[];
|
|
1988
|
+
queryLabels?: readonly string[];
|
|
1989
|
+
keyLabels?: readonly string[];
|
|
1990
|
+
/** True permits attention. Masked entries must be zero. */
|
|
1991
|
+
mask?: readonly (readonly boolean[])[];
|
|
1992
|
+
activeQuery?: number;
|
|
1993
|
+
activeKey?: number;
|
|
1994
|
+
title?: string;
|
|
1757
1995
|
width?: number;
|
|
1758
1996
|
height?: number;
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1997
|
+
}
|
|
1998
|
+
/** Inspect normalized attention probabilities; this component does not invent scores. */
|
|
1999
|
+
declare function AttentionMatrix({ c, weights, queryLabels, keyLabels, mask, activeQuery, activeKey, title, width, height, }: AttentionMatrixProps): React.ReactElement;
|
|
2000
|
+
|
|
2001
|
+
interface CanvasPoint {
|
|
2002
|
+
x: number;
|
|
2003
|
+
y: number;
|
|
2004
|
+
}
|
|
2005
|
+
interface CanvasBounds extends CanvasPoint {
|
|
2006
|
+
width: number;
|
|
2007
|
+
height: number;
|
|
2008
|
+
radius?: number;
|
|
2009
|
+
}
|
|
2010
|
+
interface CanvasScopeOptions {
|
|
2011
|
+
padding?: number;
|
|
2012
|
+
id?: string;
|
|
2013
|
+
}
|
|
2014
|
+
/** Inject checked drawing methods to retain the host renderer's audit metadata. */
|
|
2015
|
+
interface CanvasPainter<Shape = unknown> {
|
|
2016
|
+
target?<Result>(id: string, draw: () => Result): Result;
|
|
2017
|
+
rect(x: number, y: number, width: number, height: number, fill?: string, stroke?: string, radius?: number): Shape;
|
|
2018
|
+
text(value: string, x: number, y: number, size: number, color?: string, align?: 'left' | 'center' | 'right', font?: string): unknown;
|
|
2019
|
+
container(bounds: CanvasBounds, draw: () => void, options?: CanvasScopeOptions): unknown;
|
|
2020
|
+
labelScope(bounds: CanvasBounds, draw: () => void, options?: CanvasScopeOptions): unknown;
|
|
2021
|
+
opacity(alpha: number, draw: () => void): unknown;
|
|
2022
|
+
circle(x: number, y: number, radius: number, fill?: string, stroke?: string, width?: number): unknown;
|
|
2023
|
+
}
|
|
2024
|
+
interface CanvasPanelStyle {
|
|
2025
|
+
focusTarget?: string;
|
|
2026
|
+
fill?: string;
|
|
2027
|
+
stroke?: string;
|
|
2028
|
+
radius?: number;
|
|
2029
|
+
padding?: number;
|
|
2030
|
+
id?: string;
|
|
2031
|
+
scope?: 'container' | 'label';
|
|
1767
2032
|
opacity?: number;
|
|
1768
|
-
color?: string;
|
|
1769
2033
|
}
|
|
1770
|
-
interface
|
|
1771
|
-
|
|
2034
|
+
interface CanvasPanelOptions extends CanvasBounds, CanvasPanelStyle {
|
|
2035
|
+
}
|
|
2036
|
+
interface CanvasCardStyle extends CanvasPanelStyle {
|
|
2037
|
+
fontSize?: number;
|
|
2038
|
+
font?: string;
|
|
2039
|
+
textColor?: string;
|
|
2040
|
+
baselineOffset?: number;
|
|
2041
|
+
labelOpacity?: number;
|
|
2042
|
+
}
|
|
2043
|
+
interface CanvasCardOptions extends CanvasBounds, CanvasCardStyle {
|
|
2044
|
+
label: string | number;
|
|
2045
|
+
}
|
|
2046
|
+
interface CanvasMatrixOptions<Value = string | number> {
|
|
2047
|
+
values: readonly (readonly Value[])[];
|
|
2048
|
+
x: number;
|
|
2049
|
+
y: number;
|
|
2050
|
+
cellSize?: number;
|
|
2051
|
+
gap?: number;
|
|
2052
|
+
inset?: number;
|
|
2053
|
+
format?: (value: Value, row: number, column: number) => string | number;
|
|
2054
|
+
style?: CanvasCardStyle;
|
|
2055
|
+
cellStyle?: (value: Value, row: number, column: number) => CanvasCardStyle | undefined;
|
|
2056
|
+
}
|
|
2057
|
+
interface TokenRowLayoutOptions {
|
|
2058
|
+
centerX?: number;
|
|
2059
|
+
x?: number;
|
|
2060
|
+
advance?: number;
|
|
2061
|
+
gap?: number;
|
|
2062
|
+
minWidth?: number;
|
|
2063
|
+
paddingX?: number;
|
|
2064
|
+
width?: number;
|
|
2065
|
+
}
|
|
2066
|
+
interface TokenRowItem {
|
|
2067
|
+
text: string;
|
|
2068
|
+
x: number;
|
|
2069
|
+
width: number;
|
|
2070
|
+
}
|
|
2071
|
+
interface CanvasTokenRowOptions extends TokenRowLayoutOptions, CanvasCardStyle {
|
|
2072
|
+
values: readonly (string | number)[];
|
|
2073
|
+
y: number;
|
|
2074
|
+
height?: number;
|
|
2075
|
+
reveal?: number;
|
|
2076
|
+
}
|
|
2077
|
+
interface CanvasParticleOptions {
|
|
2078
|
+
points: readonly CanvasPoint[];
|
|
2079
|
+
progress: number;
|
|
2080
|
+
radius?: number;
|
|
2081
|
+
fill: string;
|
|
2082
|
+
stroke?: string;
|
|
2083
|
+
strokeWidth?: number;
|
|
2084
|
+
}
|
|
2085
|
+
/** Lay out token cards using literal text length, or an explicit fixed width. */
|
|
2086
|
+
declare function layoutTokenRow(values: readonly (string | number)[], options?: TokenRowLayoutOptions): TokenRowItem[];
|
|
2087
|
+
/** Compose reusable Canvas geometry exclusively through an injected painter. */
|
|
2088
|
+
declare function createCanvasComponents<Shape>(painter: CanvasPainter<Shape>): {
|
|
2089
|
+
panel: (options: CanvasPanelOptions, draw?: () => void) => Shape;
|
|
2090
|
+
card: (options: CanvasCardOptions) => Shape;
|
|
2091
|
+
matrix: <Value>(options: CanvasMatrixOptions<Value>) => Shape[];
|
|
2092
|
+
tokenRow: (options: CanvasTokenRowOptions) => Shape[];
|
|
2093
|
+
particle: (options: CanvasParticleOptions) => CanvasPoint | null;
|
|
2094
|
+
fade: (alpha: number, draw: () => void) => void;
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
/** A reproducible Mulberry32 stream returning values in [0, 1). */
|
|
2098
|
+
declare function seededRandom(seed: number): () => number;
|
|
2099
|
+
/** Interpolate vectors without mutating either input. Progress may extrapolate. */
|
|
2100
|
+
declare function lerpArray(from: readonly number[], to: readonly number[], progress: number): number[];
|
|
2101
|
+
declare function dotProduct(left: readonly number[], right: readonly number[]): number;
|
|
2102
|
+
declare function multiplyMatrices(left: readonly (readonly number[])[], right: readonly (readonly number[])[]): number[][];
|
|
2103
|
+
/** Subtract the largest logit before exponentiation, including at small temperatures. */
|
|
2104
|
+
declare function stableSoftmax(values: readonly number[], temperature?: number): number[];
|
|
2105
|
+
/** Shannon entropy of a normalized probability distribution. Zero terms contribute zero. */
|
|
2106
|
+
declare function entropy(probabilities: readonly number[], base?: number): number;
|
|
2107
|
+
/** Unit-length vector; the zero vector stays zero. Scaling avoids intermediate overflow. */
|
|
2108
|
+
declare function normalizeVector(values: readonly number[]): number[];
|
|
2109
|
+
/** Sample both endpoints of a finite domain into a polyline. */
|
|
2110
|
+
declare function sampleFunction(fn: (x: number) => number, low: number, high: number, count?: number): CanvasPoint[];
|
|
2111
|
+
/** Normal probability density at x. */
|
|
2112
|
+
declare function gaussian(mean: number, sigma: number, x: number): number;
|
|
2113
|
+
/** One standard normal sample using two draws from a supplied [0, 1) random stream. */
|
|
2114
|
+
declare function sampleGaussian(random: () => number): number;
|
|
2115
|
+
|
|
2116
|
+
type NumericMatrix = readonly (readonly number[])[];
|
|
2117
|
+
|
|
2118
|
+
/** Return a new matrix with rows and columns exchanged. */
|
|
2119
|
+
declare function transposeMatrix(matrix: NumericMatrix): number[][];
|
|
2120
|
+
|
|
2121
|
+
type RgbPixel = readonly [number, number, number];
|
|
2122
|
+
interface PixelRegion {
|
|
2123
|
+
row: number;
|
|
2124
|
+
column: number;
|
|
2125
|
+
rows: number;
|
|
2126
|
+
columns: number;
|
|
2127
|
+
}
|
|
2128
|
+
type RgbChannel = 'rgb' | 'red' | 'green' | 'blue';
|
|
2129
|
+
type TensorLayout = 'HWC' | 'CHW';
|
|
2130
|
+
interface PixelGridProps {
|
|
2131
|
+
pixels: readonly (readonly RgbPixel[])[];
|
|
2132
|
+
c?: ThemeColors;
|
|
2133
|
+
width?: number;
|
|
2134
|
+
height?: number;
|
|
2135
|
+
channel?: RgbChannel;
|
|
2136
|
+
region?: PixelRegion;
|
|
2137
|
+
activeCell?: {
|
|
2138
|
+
row: number;
|
|
2139
|
+
column: number;
|
|
2140
|
+
};
|
|
2141
|
+
highlightColor?: string;
|
|
2142
|
+
}
|
|
2143
|
+
/** Return one exact byte-valued color plane from an RGB image. */
|
|
2144
|
+
declare function rgbChannel(pixels: readonly (readonly RgbPixel[])[], channel: 'red' | 'green' | 'blue'): number[][];
|
|
2145
|
+
/** Return a copied, row-major rectangular crop of an RGB image. */
|
|
2146
|
+
declare function cropRgbImage(pixels: readonly (readonly RgbPixel[])[], region: PixelRegion): RgbPixel[][];
|
|
2147
|
+
/** Flatten RGB bytes in HWC (interleaved) or CHW (planar) order. */
|
|
2148
|
+
declare function flattenRgbImage(pixels: readonly (readonly RgbPixel[])[], layout?: TensorLayout, normalize?: boolean): number[];
|
|
2149
|
+
/** Render each source pixel as an exact square SVG cell, with optional overlays. */
|
|
2150
|
+
declare function PixelGrid({ pixels, c, width, height, channel, region, activeCell, highlightColor, }: PixelGridProps): React.ReactElement;
|
|
2151
|
+
|
|
2152
|
+
type NumericImage = readonly (readonly number[])[];
|
|
2153
|
+
type KernelPadding = 'valid' | 'same';
|
|
2154
|
+
interface CrossCorrelateOptions {
|
|
2155
|
+
stride?: number;
|
|
2156
|
+
padding?: KernelPadding;
|
|
1772
2157
|
}
|
|
1773
|
-
type WatermarkInput = boolean | string | WatermarkOptions | React.ReactElement<WatermarkElementProps>;
|
|
1774
|
-
declare function normalizeWatermark(watermark: WatermarkInput | undefined): WatermarkOptions | undefined;
|
|
1775
|
-
declare function Watermark(_props: WatermarkElementProps): null;
|
|
1776
2158
|
/**
|
|
1777
|
-
*
|
|
2159
|
+
* Slide a kernel over an image and sum elementwise products without flipping
|
|
2160
|
+
* the kernel. This is cross-correlation, the operation commonly called
|
|
2161
|
+
* convolution by deep-learning libraries. `same` returns ceil(input / stride)
|
|
2162
|
+
* cells and uses SAME_UPPER padding, placing any odd extra zero padding at the
|
|
2163
|
+
* bottom or right.
|
|
1778
2164
|
*/
|
|
1779
|
-
declare function
|
|
1780
|
-
|
|
2165
|
+
declare function crossCorrelate2d(input: NumericImage, kernel: NumericImage, options?: CrossCorrelateOptions): number[][];
|
|
2166
|
+
/** Return a normalized, sampled square Gaussian kernel with odd dimensions. */
|
|
2167
|
+
declare function gaussianKernel(size: number, sigma: number): number[][];
|
|
2168
|
+
|
|
2169
|
+
interface RgbRaster {
|
|
2170
|
+
width: number;
|
|
2171
|
+
height: number;
|
|
2172
|
+
/** Flat, row-major RGB channels. Floating-point values are retained until PNG encoding. */
|
|
2173
|
+
data: Uint8Array | Float64Array;
|
|
2174
|
+
}
|
|
2175
|
+
interface GaussianBlurRgbOptions {
|
|
2176
|
+
sigma: number;
|
|
2177
|
+
radius?: number;
|
|
2178
|
+
}
|
|
2179
|
+
/** Decode an opaque, noninterlaced 8-bit PNG into a copied flat RGB buffer. */
|
|
2180
|
+
declare function decodeRgbPng(source: string): RgbRaster;
|
|
2181
|
+
/** Encode RGB channels as a lossless PNG; round floating values only at this boundary. */
|
|
2182
|
+
declare function encodeRgbPng(image: RgbRaster): string;
|
|
2183
|
+
/** Copy a rectangular pixel region without changing channel precision. */
|
|
2184
|
+
declare function cropRgbRaster(image: RgbRaster, region: PixelRegion): RgbRaster;
|
|
2185
|
+
/** Apply a separable Gaussian over valid windows, returning unrounded RGB values. */
|
|
2186
|
+
declare function gaussianBlurRgb(image: RgbRaster, options: GaussianBlurRgbOptions): RgbRaster;
|
|
1781
2187
|
|
|
1782
2188
|
/**
|
|
1783
2189
|
* Vizmatic — Auto-Crop
|
|
@@ -1857,8 +2263,19 @@ interface OverflowResult {
|
|
|
1857
2263
|
* @param minDensity - Minimum fraction of edge with content to flag (default 0.05)
|
|
1858
2264
|
*/
|
|
1859
2265
|
declare function detectOverflow(pixels: Uint8Array, width: number, height: number, bgColor: string, edgeTolerance?: number, minDensity?: number, alphaThreshold?: number): OverflowResult;
|
|
1860
|
-
|
|
1861
|
-
|
|
2266
|
+
/**
|
|
2267
|
+
* Text placed past the canvas edge, found from layout rather than pixels. Flat
|
|
2268
|
+
* designs have no shadow or fill at the edge, so a clipped row of plain text
|
|
2269
|
+
* leaves no pixels behind for the raster check to see.
|
|
2270
|
+
*/
|
|
2271
|
+
declare function detectLayoutOverflow(nodes: ReadonlyArray<{
|
|
2272
|
+
left: number;
|
|
2273
|
+
top: number;
|
|
2274
|
+
width: number;
|
|
2275
|
+
height: number;
|
|
2276
|
+
textContent?: string;
|
|
2277
|
+
props: Record<string, unknown>;
|
|
2278
|
+
}>, width: number, height: number): OverflowResult;
|
|
1862
2279
|
|
|
1863
2280
|
/**
|
|
1864
2281
|
* Vizmatic — Core Renderer
|
|
@@ -1904,6 +2321,8 @@ interface RenderOptions {
|
|
|
1904
2321
|
background?: RenderBackground;
|
|
1905
2322
|
/** Theme used for watermark defaults when calling renderer APIs directly. */
|
|
1906
2323
|
theme?: 'dark' | 'light';
|
|
2324
|
+
/** Density for primitives whose theme does not set one, such as 'presentation'. */
|
|
2325
|
+
density?: Density;
|
|
1907
2326
|
/** Optional rendered-layout observer used by validation tooling. */
|
|
1908
2327
|
onNodeDetected?: (node: SatoriNode) => void;
|
|
1909
2328
|
}
|
|
@@ -1953,92 +2372,11 @@ declare function renderToPngWithOutput(element: ReactNode, options: RenderOption
|
|
|
1953
2372
|
/**
|
|
1954
2373
|
* Render a JSX element to a PNG buffer (useful for testing).
|
|
1955
2374
|
*/
|
|
1956
|
-
declare function renderToBuffer(element: ReactNode, width: number, height: number, options?: Pick<RenderOptions, 'brand' | 'watermark' | 'scale' | 'background' | 'theme' | 'onNodeDetected'>): Promise<Buffer>;
|
|
2375
|
+
declare function renderToBuffer(element: ReactNode, width: number, height: number, options?: Pick<RenderOptions, 'brand' | 'watermark' | 'scale' | 'background' | 'theme' | 'density' | 'onNodeDetected'>): Promise<Buffer>;
|
|
1957
2376
|
/**
|
|
1958
2377
|
* Render a JSX element to SVG markup without rasterization.
|
|
1959
2378
|
*/
|
|
1960
|
-
declare function renderToSvg(element: ReactNode, width: number, height: number, options?: Pick<RenderOptions, 'brand' | 'watermark' | 'background' | 'theme' | 'onNodeDetected'>): Promise<string>;
|
|
1961
|
-
|
|
1962
|
-
type AnimationEasingName = 'linear' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
1963
|
-
type AnimationEasing = AnimationEasingName | ((progress: number) => number);
|
|
1964
|
-
type AnimationInterpolator<T> = {
|
|
1965
|
-
bivarianceHack(from: T, to: T, progress: number): T;
|
|
1966
|
-
}['bivarianceHack'];
|
|
1967
|
-
interface AnimationHoldStep {
|
|
1968
|
-
type: 'hold';
|
|
1969
|
-
duration: number;
|
|
1970
|
-
label?: string;
|
|
1971
|
-
}
|
|
1972
|
-
interface AnimationKeyframeStep<T> {
|
|
1973
|
-
type: 'keyframe';
|
|
1974
|
-
value: T;
|
|
1975
|
-
label?: string;
|
|
1976
|
-
}
|
|
1977
|
-
interface AnimationTweenStep<T> {
|
|
1978
|
-
type: 'tween';
|
|
1979
|
-
to: T;
|
|
1980
|
-
duration: number;
|
|
1981
|
-
easing?: AnimationEasing;
|
|
1982
|
-
interpolate?: AnimationInterpolator<T>;
|
|
1983
|
-
label?: string;
|
|
1984
|
-
}
|
|
1985
|
-
type AnimationPropertyStep<T> = AnimationHoldStep | AnimationKeyframeStep<T> | AnimationTweenStep<T>;
|
|
1986
|
-
type AnimationParallelTracks<S extends object> = {
|
|
1987
|
-
[K in keyof S]?: readonly AnimationPropertyStep<S[K]>[];
|
|
1988
|
-
};
|
|
1989
|
-
interface AnimationParallelStep<S extends object> {
|
|
1990
|
-
type: 'parallel';
|
|
1991
|
-
tracks: AnimationParallelTracks<S>;
|
|
1992
|
-
label?: string;
|
|
1993
|
-
}
|
|
1994
|
-
type AnimationTimelineStep<S extends object> = AnimationHoldStep | AnimationKeyframeStep<Partial<S>> | AnimationTweenStep<Partial<S>> | AnimationParallelStep<S>;
|
|
1995
|
-
interface AnimationFrameContext {
|
|
1996
|
-
index: number;
|
|
1997
|
-
count: number;
|
|
1998
|
-
time: number;
|
|
1999
|
-
duration: number;
|
|
2000
|
-
delay: number;
|
|
2001
|
-
progress: number;
|
|
2002
|
-
step: number;
|
|
2003
|
-
stepProgress: number;
|
|
2004
|
-
label?: string;
|
|
2005
|
-
fps: number;
|
|
2006
|
-
}
|
|
2007
|
-
interface AnimationDefinition<S extends object> {
|
|
2008
|
-
initial: S;
|
|
2009
|
-
timeline: readonly AnimationTimelineStep<S>[];
|
|
2010
|
-
render: (state: Readonly<S>, frame: Readonly<AnimationFrameContext>) => ReactNode;
|
|
2011
|
-
fps?: number;
|
|
2012
|
-
}
|
|
2013
|
-
interface DefinedAnimation<S extends object> extends AnimationDefinition<S> {
|
|
2014
|
-
readonly kind: 'vizmatic.animation';
|
|
2015
|
-
readonly duration: number;
|
|
2016
|
-
readonly fps: number;
|
|
2017
|
-
}
|
|
2018
|
-
interface SampleAnimationOptions {
|
|
2019
|
-
fps?: number;
|
|
2020
|
-
}
|
|
2021
|
-
interface SampledAnimationFrame<S extends object> {
|
|
2022
|
-
state: Readonly<S>;
|
|
2023
|
-
frame: Readonly<AnimationFrameContext>;
|
|
2024
|
-
}
|
|
2025
|
-
interface AnimationCadenceAnalysis {
|
|
2026
|
-
fps: number;
|
|
2027
|
-
duration: number;
|
|
2028
|
-
frameCount: number;
|
|
2029
|
-
encodedDuration: number;
|
|
2030
|
-
targetInterval: number;
|
|
2031
|
-
minDelay: number;
|
|
2032
|
-
maxDelay: number;
|
|
2033
|
-
}
|
|
2034
|
-
declare function hold(duration: number, label?: string): AnimationHoldStep;
|
|
2035
|
-
declare function keyframe<T>(value: T, label?: string): AnimationKeyframeStep<T>;
|
|
2036
|
-
declare function tween<T>(to: T, options: Omit<AnimationTweenStep<T>, 'type' | 'to'>): AnimationTweenStep<T>;
|
|
2037
|
-
declare function parallel<S extends object>(tracks: AnimationParallelTracks<S>, label?: string): AnimationParallelStep<S>;
|
|
2038
|
-
declare function defineAnimation<S extends object>(definition: AnimationDefinition<S>): DefinedAnimation<S>;
|
|
2039
|
-
declare function sampleAnimation<S extends object>(animation: DefinedAnimation<S>, time: number): Readonly<S>;
|
|
2040
|
-
declare function analyzeAnimationCadence<S extends object>(animation: DefinedAnimation<S>, options?: SampleAnimationOptions): AnimationCadenceAnalysis;
|
|
2041
|
-
declare function sampleAnimationFrames<S extends object>(animation: DefinedAnimation<S>, options?: SampleAnimationOptions): readonly SampledAnimationFrame<S>[];
|
|
2379
|
+
declare function renderToSvg(element: ReactNode, width: number, height: number, options?: Pick<RenderOptions, 'brand' | 'watermark' | 'background' | 'theme' | 'density' | 'onNodeDetected'>): Promise<string>;
|
|
2042
2380
|
|
|
2043
2381
|
type TransitionType = 'none' | 'fade' | 'appear';
|
|
2044
2382
|
interface AnimatedScene {
|
|
@@ -2076,6 +2414,523 @@ declare function renderAnimatedGifWithOutput(scenes: AnimatedScene[], options: A
|
|
|
2076
2414
|
declare function renderAnimationGif<S extends object>(animation: DefinedAnimation<S>, options: AnimationOptions): Promise<void>;
|
|
2077
2415
|
declare function renderAnimationGifWithOutput<S extends object>(animation: DefinedAnimation<S>, options: AnimationOptions): Promise<AnimationOutput>;
|
|
2078
2416
|
|
|
2417
|
+
interface RenderMathSvgOptions {
|
|
2418
|
+
fontSize?: number;
|
|
2419
|
+
color?: string;
|
|
2420
|
+
display?: boolean;
|
|
2421
|
+
}
|
|
2422
|
+
interface RenderMathSvgResult {
|
|
2423
|
+
svg: string;
|
|
2424
|
+
width: number;
|
|
2425
|
+
height: number;
|
|
2426
|
+
/** Baseline from the SVG top, possibly outside the ink bounds for isolated symbols. */
|
|
2427
|
+
baseline: number;
|
|
2428
|
+
}
|
|
2429
|
+
/** Typeset TeX as a standalone SVG with pixel dimensions and baseline metrics. */
|
|
2430
|
+
declare function renderMathSvg(tex: string, options?: RenderMathSvgOptions): RenderMathSvgResult;
|
|
2431
|
+
|
|
2432
|
+
interface MotionPoint {
|
|
2433
|
+
x: number;
|
|
2434
|
+
y: number;
|
|
2435
|
+
}
|
|
2436
|
+
type MotionEasing = (progress: number) => number;
|
|
2437
|
+
interface ArcSwapOptions {
|
|
2438
|
+
/** Maximum perpendicular distance each point travels from the direct path. */
|
|
2439
|
+
lift?: number;
|
|
2440
|
+
easing?: MotionEasing;
|
|
2441
|
+
}
|
|
2442
|
+
/** Cubic ease-in-out with progress clamped to the unit interval. */
|
|
2443
|
+
declare function smoothstep(progress: number): number;
|
|
2444
|
+
/** Move two points to each other's positions along mirrored quadratic arcs. */
|
|
2445
|
+
declare function arcSwap(from: MotionPoint, to: MotionPoint, progress: number, options?: ArcSwapOptions): readonly [MotionPoint, MotionPoint];
|
|
2446
|
+
/** Return the visible prefix of a polyline at a fraction of its arc length. */
|
|
2447
|
+
declare function tracePolyline(points: readonly MotionPoint[], progress: number): MotionPoint[];
|
|
2448
|
+
/** Return the point at a fraction of a polyline's actual arc length. */
|
|
2449
|
+
declare function pointAlongPath(points: readonly MotionPoint[], progress: number): MotionPoint;
|
|
2450
|
+
|
|
2451
|
+
interface AllocationPart {
|
|
2452
|
+
id: string;
|
|
2453
|
+
label: string;
|
|
2454
|
+
value: number;
|
|
2455
|
+
color?: string;
|
|
2456
|
+
focusTarget?: string;
|
|
2457
|
+
}
|
|
2458
|
+
interface AllocationLayoutOptions extends CanvasBounds {
|
|
2459
|
+
capacity: number;
|
|
2460
|
+
parts: readonly AllocationPart[];
|
|
2461
|
+
}
|
|
2462
|
+
interface AllocationLayout {
|
|
2463
|
+
bounds: CanvasBounds;
|
|
2464
|
+
used: number;
|
|
2465
|
+
remaining: number;
|
|
2466
|
+
parts: {
|
|
2467
|
+
id: string;
|
|
2468
|
+
value: number;
|
|
2469
|
+
bounds: CanvasBounds;
|
|
2470
|
+
}[];
|
|
2471
|
+
freeBounds: CanvasBounds;
|
|
2472
|
+
}
|
|
2473
|
+
interface TeachingAllocationOptions extends AllocationLayoutOptions {
|
|
2474
|
+
freeFocusTarget?: string;
|
|
2475
|
+
fontSize?: number;
|
|
2476
|
+
unit?: string;
|
|
2477
|
+
format?: (value: number) => string;
|
|
2478
|
+
color?: string;
|
|
2479
|
+
trackColor?: string;
|
|
2480
|
+
}
|
|
2481
|
+
/** Capacity-scaled partitions; unused capacity is preserved rather than normalized away. */
|
|
2482
|
+
declare function layoutAllocation(options: AllocationLayoutOptions): AllocationLayout;
|
|
2483
|
+
|
|
2484
|
+
interface TeachingTimeLane {
|
|
2485
|
+
id: string;
|
|
2486
|
+
label: string;
|
|
2487
|
+
focusTarget?: string;
|
|
2488
|
+
}
|
|
2489
|
+
interface TeachingTimeInterval {
|
|
2490
|
+
id: string;
|
|
2491
|
+
focusTarget?: string;
|
|
2492
|
+
lane: string;
|
|
2493
|
+
start: number;
|
|
2494
|
+
end: number;
|
|
2495
|
+
label?: string;
|
|
2496
|
+
color?: string;
|
|
2497
|
+
opacity?: number;
|
|
2498
|
+
}
|
|
2499
|
+
interface TeachingTimelineOptions extends CanvasBounds {
|
|
2500
|
+
domain: readonly [number, number];
|
|
2501
|
+
lanes: readonly TeachingTimeLane[];
|
|
2502
|
+
intervals: readonly TeachingTimeInterval[];
|
|
2503
|
+
time?: number;
|
|
2504
|
+
ticks?: readonly number[];
|
|
2505
|
+
formatTime?: (value: number) => string;
|
|
2506
|
+
labelWidth?: number;
|
|
2507
|
+
laneGap?: number;
|
|
2508
|
+
fontSize?: number;
|
|
2509
|
+
color?: string;
|
|
2510
|
+
trackColor?: string;
|
|
2511
|
+
cursorColor?: string;
|
|
2512
|
+
}
|
|
2513
|
+
interface TeachingTimelineInterval<Shape> {
|
|
2514
|
+
id: string;
|
|
2515
|
+
shape: Shape | null;
|
|
2516
|
+
bounds: CanvasBounds;
|
|
2517
|
+
elapsed: number;
|
|
2518
|
+
opacity: number;
|
|
2519
|
+
complete: boolean;
|
|
2520
|
+
}
|
|
2521
|
+
interface TeachingTimelineResult<Shape> {
|
|
2522
|
+
bounds: CanvasBounds;
|
|
2523
|
+
time: number;
|
|
2524
|
+
point(time: number): number;
|
|
2525
|
+
lanes: Record<string, {
|
|
2526
|
+
shape: Shape;
|
|
2527
|
+
bounds: CanvasBounds;
|
|
2528
|
+
}>;
|
|
2529
|
+
intervals: Record<string, TeachingTimelineInterval<Shape>>;
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
interface CellGridOptions extends CanvasBounds {
|
|
2533
|
+
rows: number;
|
|
2534
|
+
columns: number;
|
|
2535
|
+
}
|
|
2536
|
+
interface CellGridLayout {
|
|
2537
|
+
bounds: CanvasBounds;
|
|
2538
|
+
cells: CanvasBounds[][];
|
|
2539
|
+
cell(row: number, column: number): CanvasBounds;
|
|
2540
|
+
}
|
|
2541
|
+
interface TeachingGridHighlight {
|
|
2542
|
+
row: number;
|
|
2543
|
+
column: number;
|
|
2544
|
+
fill: string;
|
|
2545
|
+
stroke?: string;
|
|
2546
|
+
opacity?: number;
|
|
2547
|
+
}
|
|
2548
|
+
interface TeachingGridOptions extends CellGridOptions {
|
|
2549
|
+
cellFocusTarget?: (row: number, column: number) => string | readonly string[] | undefined;
|
|
2550
|
+
fill?: string;
|
|
2551
|
+
stroke?: string;
|
|
2552
|
+
lineWidth?: number;
|
|
2553
|
+
labels?: readonly (readonly (string | number)[])[];
|
|
2554
|
+
highlights?: readonly TeachingGridHighlight[];
|
|
2555
|
+
fontSize?: number;
|
|
2556
|
+
textColor?: string;
|
|
2557
|
+
padding?: number;
|
|
2558
|
+
}
|
|
2559
|
+
/** Shared cell geometry for dense diagrams, without creating one panel per cell. */
|
|
2560
|
+
declare function layoutCellGrid(options: CellGridOptions): CellGridLayout;
|
|
2561
|
+
|
|
2562
|
+
interface TeachingTransferEndpoint {
|
|
2563
|
+
shape: CanvasBounds;
|
|
2564
|
+
/** Use the same local opacity supplied when painting this endpoint. */
|
|
2565
|
+
opacity: number;
|
|
2566
|
+
}
|
|
2567
|
+
interface TeachingTransferOptions extends TeachingConnectionOptions {
|
|
2568
|
+
source: TeachingTransferEndpoint;
|
|
2569
|
+
target: TeachingTransferEndpoint;
|
|
2570
|
+
opacity?: number;
|
|
2571
|
+
progress?: number;
|
|
2572
|
+
margin?: number;
|
|
2573
|
+
particle?: {
|
|
2574
|
+
radius?: number;
|
|
2575
|
+
fill?: string;
|
|
2576
|
+
stroke?: string;
|
|
2577
|
+
strokeWidth?: number;
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
interface ValueChangeOptions {
|
|
2582
|
+
from: number;
|
|
2583
|
+
to: number;
|
|
2584
|
+
progress: number;
|
|
2585
|
+
/** Override the envelope while an accelerated sequence remains in motion. */
|
|
2586
|
+
emphasis?: number;
|
|
2587
|
+
}
|
|
2588
|
+
interface ValueChangeState {
|
|
2589
|
+
value: number;
|
|
2590
|
+
previous: number;
|
|
2591
|
+
target: number;
|
|
2592
|
+
delta: number;
|
|
2593
|
+
changed: boolean;
|
|
2594
|
+
emphasis: number;
|
|
2595
|
+
}
|
|
2596
|
+
/** Sample an update without retaining state from a previously rendered frame. */
|
|
2597
|
+
declare function valueChangeState(options: ValueChangeOptions): ValueChangeState;
|
|
2598
|
+
interface TeachingChangeCueOptions extends CanvasBounds, ValueChangeOptions {
|
|
2599
|
+
color?: string;
|
|
2600
|
+
restColor?: string;
|
|
2601
|
+
fill?: string;
|
|
2602
|
+
}
|
|
2603
|
+
interface TeachingValueChangeOptions extends TeachingChangeCueOptions {
|
|
2604
|
+
label?: string;
|
|
2605
|
+
format?: (value: number) => string;
|
|
2606
|
+
fontSize?: number;
|
|
2607
|
+
showDelta?: boolean;
|
|
2608
|
+
}
|
|
2609
|
+
declare function createTeachingValueChange<Shape>(painter: CanvasPainter<Shape>): {
|
|
2610
|
+
changeCue: (options: TeachingChangeCueOptions, draw?: (state: ValueChangeState & {
|
|
2611
|
+
color: string;
|
|
2612
|
+
}) => void) => {
|
|
2613
|
+
color: string;
|
|
2614
|
+
value: number;
|
|
2615
|
+
previous: number;
|
|
2616
|
+
target: number;
|
|
2617
|
+
delta: number;
|
|
2618
|
+
changed: boolean;
|
|
2619
|
+
emphasis: number;
|
|
2620
|
+
};
|
|
2621
|
+
valueChange: (options: TeachingValueChangeOptions) => {
|
|
2622
|
+
color: string;
|
|
2623
|
+
value: number;
|
|
2624
|
+
previous: number;
|
|
2625
|
+
target: number;
|
|
2626
|
+
delta: number;
|
|
2627
|
+
changed: boolean;
|
|
2628
|
+
emphasis: number;
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
interface TeachingPathOptions {
|
|
2633
|
+
id?: string;
|
|
2634
|
+
color?: string;
|
|
2635
|
+
width?: number;
|
|
2636
|
+
clip?: CanvasBounds;
|
|
2637
|
+
closed?: boolean;
|
|
2638
|
+
fill?: string;
|
|
2639
|
+
}
|
|
2640
|
+
interface TeachingConnectionOptions {
|
|
2641
|
+
color?: string;
|
|
2642
|
+
width?: number;
|
|
2643
|
+
gap?: number;
|
|
2644
|
+
fromGap?: number;
|
|
2645
|
+
toGap?: number;
|
|
2646
|
+
}
|
|
2647
|
+
interface TeachingRoute {
|
|
2648
|
+
from: CanvasPoint;
|
|
2649
|
+
to: CanvasPoint;
|
|
2650
|
+
}
|
|
2651
|
+
/** Inject host methods so every mark retains checked geometry and label metadata. */
|
|
2652
|
+
interface TeachingPainter<Shape extends CanvasBounds = CanvasBounds> extends CanvasPainter<Shape> {
|
|
2653
|
+
math(value: string, x: number, y: number, size: number, color?: string, align?: 'left' | 'center' | 'right'): unknown;
|
|
2654
|
+
line(x1: number, y1: number, x2: number, y2: number, color?: string, width?: number): unknown;
|
|
2655
|
+
arrow(x1: number, y1: number, x2: number, y2: number, color?: string, width?: number): unknown;
|
|
2656
|
+
path(points: readonly CanvasPoint[], options?: TeachingPathOptions): unknown;
|
|
2657
|
+
connect(source: CanvasBounds, target: CanvasBounds, options?: TeachingConnectionOptions): TeachingRoute;
|
|
2658
|
+
}
|
|
2659
|
+
interface TeachingPlot {
|
|
2660
|
+
point(x: number, y: number): CanvasPoint;
|
|
2661
|
+
bounds: CanvasBounds;
|
|
2662
|
+
xDomain: readonly [number, number];
|
|
2663
|
+
yDomain: readonly [number, number];
|
|
2664
|
+
}
|
|
2665
|
+
interface TeachingAxesOptions extends CanvasBounds {
|
|
2666
|
+
xDomain: readonly [number, number];
|
|
2667
|
+
yDomain: readonly [number, number];
|
|
2668
|
+
equalUnits?: boolean;
|
|
2669
|
+
xLabel?: string;
|
|
2670
|
+
yLabel?: string;
|
|
2671
|
+
color?: string;
|
|
2672
|
+
gridColor?: string;
|
|
2673
|
+
fontSize?: number;
|
|
2674
|
+
xTicks?: readonly number[];
|
|
2675
|
+
yTicks?: readonly number[];
|
|
2676
|
+
formatX?: (value: number) => string;
|
|
2677
|
+
formatY?: (value: number) => string;
|
|
2678
|
+
}
|
|
2679
|
+
interface TeachingCurveOptions {
|
|
2680
|
+
plot: TeachingPlot;
|
|
2681
|
+
points: readonly CanvasPoint[];
|
|
2682
|
+
color: string;
|
|
2683
|
+
width?: number;
|
|
2684
|
+
progress?: number;
|
|
2685
|
+
}
|
|
2686
|
+
interface TeachingScatterPoint extends CanvasPoint {
|
|
2687
|
+
color?: string;
|
|
2688
|
+
radius?: number;
|
|
2689
|
+
}
|
|
2690
|
+
interface TeachingScatterOptions {
|
|
2691
|
+
plot: TeachingPlot;
|
|
2692
|
+
points: readonly TeachingScatterPoint[];
|
|
2693
|
+
color?: string;
|
|
2694
|
+
radius?: number;
|
|
2695
|
+
opacity?: number;
|
|
2696
|
+
}
|
|
2697
|
+
interface TeachingBarsOptions extends CanvasBounds {
|
|
2698
|
+
values: readonly number[];
|
|
2699
|
+
labels?: readonly string[];
|
|
2700
|
+
colors?: readonly string[];
|
|
2701
|
+
color?: string;
|
|
2702
|
+
max?: number;
|
|
2703
|
+
progress?: number;
|
|
2704
|
+
showValues?: boolean;
|
|
2705
|
+
format?: (value: number) => string;
|
|
2706
|
+
fontSize?: number;
|
|
2707
|
+
gap?: number;
|
|
2708
|
+
}
|
|
2709
|
+
interface TeachingBarsResult<Shape> {
|
|
2710
|
+
bars: (Shape | null)[];
|
|
2711
|
+
slots: CanvasBounds[];
|
|
2712
|
+
bounds: CanvasBounds;
|
|
2713
|
+
}
|
|
2714
|
+
interface TeachingFlowNode extends CanvasBounds {
|
|
2715
|
+
id: string;
|
|
2716
|
+
focusTarget?: string;
|
|
2717
|
+
label: string;
|
|
2718
|
+
color?: string;
|
|
2719
|
+
fill?: string;
|
|
2720
|
+
fontSize?: number;
|
|
2721
|
+
}
|
|
2722
|
+
interface TeachingFlowEdge extends TeachingConnectionOptions {
|
|
2723
|
+
focusTarget?: string;
|
|
2724
|
+
from: string;
|
|
2725
|
+
to: string;
|
|
2726
|
+
progress?: number;
|
|
2727
|
+
}
|
|
2728
|
+
interface TeachingFlowGraphOptions {
|
|
2729
|
+
nodes: readonly TeachingFlowNode[];
|
|
2730
|
+
edges: readonly TeachingFlowEdge[];
|
|
2731
|
+
stroke?: string;
|
|
2732
|
+
fill?: string;
|
|
2733
|
+
textColor?: string;
|
|
2734
|
+
padding?: number;
|
|
2735
|
+
}
|
|
2736
|
+
/** Chart and graph compositions built entirely from the host's checked primitives. */
|
|
2737
|
+
declare function createTeachingCanvas<Shape extends CanvasBounds>(painter: TeachingPainter<Shape>): {
|
|
2738
|
+
focusFrame: (options: {
|
|
2739
|
+
bounds: CanvasBounds;
|
|
2740
|
+
strength: number;
|
|
2741
|
+
color?: string;
|
|
2742
|
+
padding?: number;
|
|
2743
|
+
clip?: CanvasBounds;
|
|
2744
|
+
avoid?: readonly CanvasBounds[];
|
|
2745
|
+
id?: string;
|
|
2746
|
+
}) => void;
|
|
2747
|
+
changeCue: (options: TeachingChangeCueOptions, draw?: ((state: ValueChangeState & {
|
|
2748
|
+
color: string;
|
|
2749
|
+
}) => void) | undefined) => {
|
|
2750
|
+
color: string;
|
|
2751
|
+
value: number;
|
|
2752
|
+
previous: number;
|
|
2753
|
+
target: number;
|
|
2754
|
+
delta: number;
|
|
2755
|
+
changed: boolean;
|
|
2756
|
+
emphasis: number;
|
|
2757
|
+
};
|
|
2758
|
+
valueChange: (options: TeachingValueChangeOptions) => {
|
|
2759
|
+
color: string;
|
|
2760
|
+
value: number;
|
|
2761
|
+
previous: number;
|
|
2762
|
+
target: number;
|
|
2763
|
+
delta: number;
|
|
2764
|
+
changed: boolean;
|
|
2765
|
+
emphasis: number;
|
|
2766
|
+
};
|
|
2767
|
+
axes: (options: TeachingAxesOptions) => TeachingPlot;
|
|
2768
|
+
curve: (options: TeachingCurveOptions) => CanvasPoint[];
|
|
2769
|
+
scatter: (options: TeachingScatterOptions) => unknown[];
|
|
2770
|
+
bars: (options: TeachingBarsOptions) => TeachingBarsResult<Shape>;
|
|
2771
|
+
flowGraph: (options: TeachingFlowGraphOptions) => {
|
|
2772
|
+
nodes: Record<string, Shape>;
|
|
2773
|
+
routes: TeachingRoute[];
|
|
2774
|
+
};
|
|
2775
|
+
transfer: (options: TeachingTransferOptions) => TeachingRoute | null;
|
|
2776
|
+
grid: (options: TeachingGridOptions) => CellGridLayout & {
|
|
2777
|
+
shape: Shape;
|
|
2778
|
+
};
|
|
2779
|
+
timeline: (options: TeachingTimelineOptions) => TeachingTimelineResult<Shape>;
|
|
2780
|
+
allocation: (options: TeachingAllocationOptions) => AllocationLayout & {
|
|
2781
|
+
shapes: (Shape | null)[];
|
|
2782
|
+
shape: Shape;
|
|
2783
|
+
};
|
|
2784
|
+
};
|
|
2785
|
+
|
|
2786
|
+
interface CuePosition {
|
|
2787
|
+
beat: number;
|
|
2788
|
+
beatP: number;
|
|
2789
|
+
}
|
|
2790
|
+
interface CueSnapshot<Snapshot> {
|
|
2791
|
+
id: string;
|
|
2792
|
+
snapshot: Snapshot;
|
|
2793
|
+
}
|
|
2794
|
+
interface DiscreteCue<Snapshot> extends CueSnapshot<Snapshot> {
|
|
2795
|
+
beat: number;
|
|
2796
|
+
at: number;
|
|
2797
|
+
}
|
|
2798
|
+
interface CueTrackOptions<Snapshot> {
|
|
2799
|
+
initial: CueSnapshot<Snapshot>;
|
|
2800
|
+
cues: readonly DiscreteCue<Snapshot>[];
|
|
2801
|
+
}
|
|
2802
|
+
/** Hold one authored simulation snapshot until the next explicit semantic cue. */
|
|
2803
|
+
declare function createCueTrack<Snapshot>(options: CueTrackOptions<Snapshot>): Readonly<{
|
|
2804
|
+
sample(current: CuePosition): Readonly<CueSnapshot<Snapshot>>;
|
|
2805
|
+
}>;
|
|
2806
|
+
|
|
2807
|
+
interface TeachingFocusCue {
|
|
2808
|
+
id: string;
|
|
2809
|
+
start: number;
|
|
2810
|
+
targets: readonly string[];
|
|
2811
|
+
color: string;
|
|
2812
|
+
active: boolean;
|
|
2813
|
+
strength: number;
|
|
2814
|
+
progress: number;
|
|
2815
|
+
reveal: number;
|
|
2816
|
+
phase: 'before' | 'during' | 'after';
|
|
2817
|
+
}
|
|
2818
|
+
interface TeachingFocusPainter<Shape> extends CanvasPainter<Shape> {
|
|
2819
|
+
path(points: readonly CanvasPoint[], options?: {
|
|
2820
|
+
id?: string;
|
|
2821
|
+
color?: string;
|
|
2822
|
+
width?: number;
|
|
2823
|
+
clip?: CanvasBounds;
|
|
2824
|
+
}): unknown;
|
|
2825
|
+
}
|
|
2826
|
+
/** Join adjacent parts of one semantic subject, retaining spatially separate parts. */
|
|
2827
|
+
declare function mergeFocusRegions(parts: readonly CanvasBounds[], gap?: number): CanvasBounds[];
|
|
2828
|
+
/** A per-frame director. Host painters apply its opacity to each checked mark. */
|
|
2829
|
+
declare function createFocusDirector<Shape>(painter: CanvasPainter<Shape>, options?: {
|
|
2830
|
+
cues?: Readonly<Record<string, TeachingFocusCue>>;
|
|
2831
|
+
strict?: boolean;
|
|
2832
|
+
contextOpacity?: number;
|
|
2833
|
+
minimumContextAlpha?: number;
|
|
2834
|
+
}): {
|
|
2835
|
+
active: TeachingFocusCue;
|
|
2836
|
+
cue: (id: string) => TeachingFocusCue | undefined;
|
|
2837
|
+
progress(id: string, fallback?: number): number;
|
|
2838
|
+
visible(id: string): boolean;
|
|
2839
|
+
reveal<Result>(id: string, draw: () => Result): Result;
|
|
2840
|
+
target<Result>(id: string, draw: () => Result): Result;
|
|
2841
|
+
paint<Result>(draw: () => Result, originalAlpha?: number): Result;
|
|
2842
|
+
};
|
|
2843
|
+
declare function createTeachingFocus<Shape>(painter: TeachingFocusPainter<Shape>): {
|
|
2844
|
+
focusFrame: (options: {
|
|
2845
|
+
bounds: CanvasBounds;
|
|
2846
|
+
strength: number;
|
|
2847
|
+
color?: string;
|
|
2848
|
+
padding?: number;
|
|
2849
|
+
clip?: CanvasBounds;
|
|
2850
|
+
avoid?: readonly CanvasBounds[];
|
|
2851
|
+
id?: string;
|
|
2852
|
+
}) => void;
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2855
|
+
/** Camera center in world coordinates and the scale applied to that world. */
|
|
2856
|
+
interface Camera2D {
|
|
2857
|
+
x: number;
|
|
2858
|
+
y: number;
|
|
2859
|
+
zoom: number;
|
|
2860
|
+
}
|
|
2861
|
+
/** Size of the SVG viewport in pixels. */
|
|
2862
|
+
interface CameraViewport {
|
|
2863
|
+
width: number;
|
|
2864
|
+
height: number;
|
|
2865
|
+
}
|
|
2866
|
+
interface CameraMotionOptions {
|
|
2867
|
+
easing?: MotionEasing;
|
|
2868
|
+
minZoom?: number;
|
|
2869
|
+
maxZoom?: number;
|
|
2870
|
+
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Interpolate a camera at any normalized time. Position is linear, zoom is
|
|
2873
|
+
* logarithmic, and progress outside [0, 1] holds the nearest endpoint.
|
|
2874
|
+
*/
|
|
2875
|
+
declare function interpolateCamera(from: Camera2D, to: Camera2D, progress: number, options?: CameraMotionOptions): Camera2D;
|
|
2876
|
+
/** Return the SVG transform that centers the camera on its world position. */
|
|
2877
|
+
declare function cameraSvgTransform(camera: Camera2D, viewport: CameraViewport): string;
|
|
2878
|
+
/** Project one world point to pixels using the same center-pivot camera rule. */
|
|
2879
|
+
declare function projectWorldPoint(point: MotionPoint, camera: Camera2D, viewport: CameraViewport): MotionPoint;
|
|
2880
|
+
|
|
2881
|
+
interface PathMorphOptions {
|
|
2882
|
+
/** Number of evenly spaced arc-length samples in the returned polyline. */
|
|
2883
|
+
samples?: number;
|
|
2884
|
+
easing?: MotionEasing;
|
|
2885
|
+
}
|
|
2886
|
+
/** Prepare arc-length correspondence once, then sample fresh points at any progress. */
|
|
2887
|
+
declare function createPolylineMorph(from: readonly MotionPoint[], to: readonly MotionPoint[], options?: PathMorphOptions): (progress: number) => MotionPoint[];
|
|
2888
|
+
/** Morph two polylines by matching points at equal fractions of their arc length. */
|
|
2889
|
+
declare function morphPolyline(from: readonly MotionPoint[], to: readonly MotionPoint[], progress: number, options?: PathMorphOptions): MotionPoint[];
|
|
2890
|
+
|
|
2891
|
+
interface SceneRasterOptions {
|
|
2892
|
+
/** Physical pixels per logical scene pixel, from 0.25 to 1. Scaled dimensions must be even integers. */
|
|
2893
|
+
outputScale?: number;
|
|
2894
|
+
}
|
|
2895
|
+
interface RenderSceneFrameOptions extends SceneFrameRequest, SceneRasterOptions {
|
|
2896
|
+
outputPath: string;
|
|
2897
|
+
}
|
|
2898
|
+
interface RenderSceneVideoOptions extends SceneRequest, SceneRasterOptions {
|
|
2899
|
+
outputPath: string;
|
|
2900
|
+
signal?: AbortSignal;
|
|
2901
|
+
/** Sample fewer output frames without changing the scene's logical fps or frame globals. */
|
|
2902
|
+
previewFps?: number;
|
|
2903
|
+
}
|
|
2904
|
+
interface SceneRenderOutput {
|
|
2905
|
+
runtimeVersion: string;
|
|
2906
|
+
sourceSha256: string;
|
|
2907
|
+
/** Includes the complete render request and bundled font/emoji fingerprint. */
|
|
2908
|
+
inputSha256: string;
|
|
2909
|
+
/** SHA-256 of the actual PNG or MP4 bytes. */
|
|
2910
|
+
assetSha256: string;
|
|
2911
|
+
fontAssetsSha256: string;
|
|
2912
|
+
width: number;
|
|
2913
|
+
height: number;
|
|
2914
|
+
/** Requested narration duration, in seconds. */
|
|
2915
|
+
duration: number;
|
|
2916
|
+
fps: number;
|
|
2917
|
+
frameCount: number;
|
|
2918
|
+
bytes: number;
|
|
2919
|
+
outputPath: string;
|
|
2920
|
+
time?: number;
|
|
2921
|
+
/** MP4 duration after rounding to a whole number of frames, in seconds. */
|
|
2922
|
+
encodedDuration?: number;
|
|
2923
|
+
/** Present for a reduced-resolution or reduced-frame-rate preview. */
|
|
2924
|
+
outputScale?: number;
|
|
2925
|
+
previewFps?: number;
|
|
2926
|
+
logicalWidth?: number;
|
|
2927
|
+
logicalHeight?: number;
|
|
2928
|
+
logicalFps?: number;
|
|
2929
|
+
logicalFrameCount?: number;
|
|
2930
|
+
}
|
|
2931
|
+
declare function renderSceneFrame(options: RenderSceneFrameOptions): Promise<SceneRenderOutput>;
|
|
2932
|
+
declare function renderSceneVideo(options: RenderSceneVideoOptions): Promise<SceneRenderOutput>;
|
|
2933
|
+
|
|
2079
2934
|
type GraphImportSource = 'mermaid' | 'd2';
|
|
2080
2935
|
type GraphImportDirection = 'LR' | 'RL' | 'TB' | 'BT';
|
|
2081
2936
|
type GraphImportDiagnosticCode = 'import.empty' | 'import.lossy_semantics' | 'import.parse_error' | 'import.unsupported_semantics' | 'import.unsupported_syntax';
|
|
@@ -2121,7 +2976,7 @@ declare function importD2Graph(source: string): GraphImportResult;
|
|
|
2121
2976
|
|
|
2122
2977
|
type DiagnosticSeverity = 'error' | 'warning' | 'info';
|
|
2123
2978
|
/** Stable identifiers emitted by the visual checker. Add codes without changing existing meanings. */
|
|
2124
|
-
declare const CHECK_DIAGNOSTIC_CODES: readonly ["accessibility.low_contrast", "api.unsupported_prop", "asset.warning", "frame.load_error", "frame.unknown_preset", "layout.auto_size", "layout.connector_congestion", "layout.connector_unroutable", "layout.overflow", "layout.text_overlap", "layout.whitespace_imbalance", "readability.small_text", "render.error", "render.warning", "style.unsupported"];
|
|
2979
|
+
declare const CHECK_DIAGNOSTIC_CODES: readonly ["accessibility.low_contrast", "api.unsupported_prop", "asset.warning", "frame.load_error", "frame.unknown_preset", "layout.auto_size", "layout.connector_congestion", "layout.connector_unroutable", "layout.overflow", "layout.text_overlap", "layout.text_overflow", "layout.whitespace_imbalance", "readability.small_text", "render.error", "render.svg_context", "render.warning", "style.unsupported"];
|
|
2125
2980
|
type CheckDiagnosticCode = typeof CHECK_DIAGNOSTIC_CODES[number];
|
|
2126
2981
|
interface CheckDiagnosticLocation {
|
|
2127
2982
|
/** React element path for diagnostics collected before layout. */
|
|
@@ -2216,4 +3071,5 @@ interface CheckFrameReport {
|
|
|
2216
3071
|
*/
|
|
2217
3072
|
declare function checkFrame(input: CheckFrameInput, options?: CheckOptions): Promise<CheckFrameReport>;
|
|
2218
3073
|
|
|
2219
|
-
export {
|
|
3074
|
+
export { Arrow, ArrowMarkerDef, AttentionMatrix, AxisPlot, Badge, BadgePill, BarChart, Board, Box, CANVAS_ITEM_COMPONENT, CHECK_DIAGNOSTIC_CODES, CalloutCard, Canvas, CanvasItem, CanvasOverflowError, Card, ChartFrame, CodeBlock, ColorName, Column, Comparison, Connector, DashedLine, DataTable, DataflowDiagram, DefinedAnimation, Density, DeploymentDiagram, DetailList, DiagramLegend, DonutChart, DotPoint, ELEMENT_SYMBOLS, EquationCard, FactRows, Flow, FlowArrow, FreeBodyDiagram, GeometryDiagram, GradientChip, GraphDiagram, Grid, Heatmap, Icon, InlineBar, IntervalPlot, KeyValueList, LayeredNetwork, Legend, LineChart, MathText, Matrix, MetricCard, MetricStrip, MiniBarChart, MoleculeDiagram, NumberLine, Panel, ParetoBarChart, ParetoChart, PieChart, Pipeline, PixelGrid, ProgressList, ProgressRow, QuadrantChart, ReactionEnergyDiagram, ReactionEquation, RenderBackground, Row, ScatterPlot, Scene, SceneFrameRequest, SceneRequest, SequenceDiagram, SmallMultiples, Sparkline, Stack, StackedBar, StatusDot, StatusList, StatusRow, StepCard, SvgFrame, SvgMathText, SvgPoint, TagList, TextLabel, ThemeColors, ThemeMode, Tile, TileGrid, TiledMatrix, Timeline, TitleBar, ToneName, ToneStrip, TransformerTopology, TreeDiagram, ValuePill, VectorArrow, VectorSegment, WatermarkInput, WaveDiagram, WindowFrame, arcSwap, cameraSvgTransform, checkFrame, createCanvasComponents, createCueTrack, createFocusDirector, createPlotArea, createPolylineMorph, createTeachingCanvas, createTeachingFocus, createTeachingValueChange, cropPixels, cropRgbImage, cropRgbRaster, crossCorrelate2d, decodeRgbPng, defineDiagramIcon, defineIconRegistry, defineIllustration, detectBackgroundColor, detectContentBounds, detectLayoutOverflow, detectOverflow, dotProduct, encodeRgbPng, entropy, estimateTextWidth, flattenRgbImage, formatMathText, formatTensorShape, gaussian, gaussianBlurRgb, gaussianKernel, geometryBounds, getFonts, importD2Graph, importMermaidGraph, interpolateCamera, layoutAllocation, layoutCellGrid, layoutTokenRow, lerpArray, loadAdditionalAsset, mapNumberLine, mergeFocusRegions, morphPolyline, multiplyMatrices, normalizeVector, pointAlongPath, projectWorldPoint, reactionBalance, renderAnimatedGif, renderAnimatedGifWithOutput, renderAnimationGif, renderAnimationGifWithOutput, renderMathSvg, renderSceneFrame, renderSceneVideo, renderToBuffer, renderToPng, renderToPngWithOutput, renderToSvg, rgbChannel, sampleFunction, sampleGaussian, sampleWave, scaledDotProductAttention, scopeDensity, seededRandom, smoothstep, stableSoftmax, statusColor, sumForces, tracePolyline, transposeMatrix, typography, valueChangeState, waveValue };
|
|
3075
|
+
export type { AllocationLayout, AllocationLayoutOptions, AllocationPart, AnimatedScene, AnimationOptions, AnimationOutput, AnimationOverflowContext, ArcSwapOptions, AttentionMatrixProps, AttentionOptions, AttentionResult, AxisPlotPath, AxisPlotPoint, AxisPlotVector, BarChartDatum, BoardProps, Camera2D, CameraMotionOptions, CameraViewport, CanvasBounds, CanvasCardOptions, CanvasCardStyle, CanvasItemProps, CanvasMatrixOptions, CanvasPainter, CanvasPanelOptions, CanvasPanelStyle, CanvasParticleOptions, CanvasPoint, CanvasScopeOptions, CanvasTokenRowOptions, CellGridLayout, CellGridOptions, ChartLegendItem, ChartMargins, ChartValueFormat, CheckAutoSize, CheckAutoSizeAxes, CheckDiagnostic, CheckDiagnosticCode, CheckDiagnosticCounts, CheckDiagnosticLocation, CheckFailurePolicy, CheckFrameInput, CheckFrameReport, CheckOptions, CheckThemeReport, CodeLineSpec, ComparisonSideSpec, CropMode, CropRegion, CrossCorrelateOptions, CuePosition, CueSnapshot, CueTrackOptions, DataflowBoundary, DataflowDiagramProps, DataflowEdge, DataflowEdgeMode, DataflowNode, DataflowNodeKind, DataflowSchema, DataflowSchemaDefinition, DataflowSchemaField, DeploymentBoundary, DeploymentBoundaryKind, DeploymentConnection, DeploymentConnectionKind, DeploymentDiagramProps, DeploymentNode, DeploymentNodeKind, DeploymentPort, DeploymentPortDirection, DeploymentPortInput, DiagnosticSeverity, DiagramIconDefinition, DiagramIconRenderProps, DiagramLegendItem, DiagramStatus, DiscreteCue, DonutChartSegment, ElementComposition, ElementSymbol, FactRow, FlowStageSpec, ForceResultant, ForceVector, FreeBodyDiagramProps, GaussianBlurRgbOptions, GeometryAngle, GeometryBounds, GeometryDiagramProps, GeometryPoint, GeometrySegment, GraphDiagramAnnotation, GraphDiagramEdge, GraphDiagramEdgeArrow, GraphDiagramEdgeKind, GraphDiagramEdgeStyle, GraphDiagramGroup, GraphDiagramNode, GraphDiagramPort, GraphDiagramProps, GraphImportDiagnostic, GraphImportDiagnosticCode, GraphImportDirection, GraphImportGraph, GraphImportResult, GraphImportSource, GraphPortSide, GraphRouting, GridCell, IconName, IconProps, IllustrationBuilder, IntervalDatum, KernelPadding, KeyValueRow, LayeredNetworkLayer, LegendItem, LineChartSeries, MiniBarDatum, MoleculeAtom, MoleculeAtomId, MoleculeBond, MoleculeBondOrder, MoleculeDiagramProps, MotionEasing, MotionPoint, NumberLineInterval, NumberLineMarker, NumberLineProps, NumberLineTick, NumericImage, NumericMatrix, OverflowResult, ParetoBarChartProps, ParetoChartProps, ParetoObjective, ParetoXScale, PathMorphOptions, PieChartProps, PipelineStage, PixelGridProps, PixelRegion, PlotArea, ProgressRowSpec, QuadrantChartProps, QuadrantRegion, ReactionBalanceResult, ReactionEnergyDiagramProps, ReactionEquationProps, ReactionState, ReactionTerm, RenderMathSvgOptions, RenderMathSvgResult, RenderOptions, RenderOutput, RenderSceneFrameOptions, RenderSceneVideoOptions, RgbChannel, RgbPixel, RgbRaster, ScatterPoint, SceneRenderOutput, SequenceActivation, SequenceDiagramProps, SequenceFragment, SequenceFragmentBranch, SequenceFragmentKind, SequenceItem, SequenceMessage, SequenceMessageKind, SequenceNote, SequenceParticipant, SequenceParticipantKind, SmallMultipleItem, StackedBarSegment, StatusKind, StatusRowSpec, StripMetric, TeachingAllocationOptions, TeachingAxesOptions, TeachingBarsOptions, TeachingBarsResult, TeachingChangeCueOptions, TeachingConnectionOptions, TeachingCurveOptions, TeachingFlowEdge, TeachingFlowGraphOptions, TeachingFlowNode, TeachingFocusCue, TeachingFocusPainter, TeachingGridHighlight, TeachingGridOptions, TeachingPainter, TeachingPathOptions, TeachingPlot, TeachingRoute, TeachingScatterOptions, TeachingScatterPoint, TeachingTimeInterval, TeachingTimeLane, TeachingTimelineInterval, TeachingTimelineOptions, TeachingTimelineResult, TeachingTransferEndpoint, TeachingTransferOptions, TeachingValueChangeOptions, TensorDimension, TensorLayout, TensorShape, TensorShapeObject, TileSpec, TiledMatrixRegion, TimelineEventSpec, TokenRowItem, TokenRowLayoutOptions, TransformerBlock, TransformerBlockKind, TransformerRoute, TransformerRouteKind, TransformerTopologyProps, TransitionType, TreeNodeSpec, ValueChangeOptions, ValueChangeState, Wave, WaveDiagramProps, WaveSample };
|