vizmatic 0.1.7 → 0.1.8
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 +10 -10
- package/README.md +10 -10
- package/docs/PROMPT.md +10 -10
- package/docs/assets/examples/presentation-frame_dark.png +0 -0
- package/docs/assets/examples/presentation-frame_light.png +0 -0
- package/docs/assets/examples/sources.json +39 -39
- package/examples/agent-pipeline.tsx +17 -26
- package/examples/animated-pipeline.tsx +3 -7
- package/examples/attention-head.tsx +17 -26
- package/examples/embedding-map.tsx +24 -33
- package/examples/eval-dashboard.tsx +33 -43
- package/examples/model-router.tsx +25 -34
- package/examples/presentation-frame.tsx +23 -31
- package/examples/rag-graph.tsx +26 -35
- package/examples/release-card.tsx +29 -38
- package/examples/research-landscape.tsx +24 -33
- package/examples/spec-anatomy.tsx +33 -43
- package/examples/theme-system.tsx +20 -28
- package/examples/token-matrix.tsx +34 -44
- package/examples/vizmatic-bare.d.ts +30 -0
- package/package.json +1 -1
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<Row width="100%" gap={14}>
|
|
20
|
-
<CalloutCard c={c} title="Model writes structure" detail="No hand-written SVG paths or brittle x/y layout for common cases." tone="purple" width={470} />
|
|
21
|
-
<CalloutCard c={c} title="Design system stays in control" detail="Theme tokens decide color, typography, radius, spacing, and contrast." tone="green" width={470} />
|
|
22
|
-
</Row>
|
|
23
|
-
</Scene>
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
export const create = frame.create
|
|
27
|
-
export default frame.default
|
|
4
|
+
<Scene title="Agent visual pipeline" subtitle="spec -> themed scene -> verified artifact" gap={26}>
|
|
5
|
+
<Flow
|
|
6
|
+
connectorTone="purple"
|
|
7
|
+
stages={[
|
|
8
|
+
{ eyebrow: 'input', title: 'Prompt', subtitle: 'intent and constraints', tone: 'blue', lines: ['domain language', 'audience', 'theme tokens'], width: 190 },
|
|
9
|
+
{ eyebrow: 'contract', title: 'Scene spec', subtitle: 'typed structure', tone: 'purple', lines: ['cards', 'flows', 'charts', 'tables'], width: 190 },
|
|
10
|
+
{ eyebrow: 'render', title: 'Satori frame', subtitle: 'React primitives', tone: 'cyan', lines: ['layout defaults', 'safe text', 'semantic tones'], width: 190 },
|
|
11
|
+
{ eyebrow: 'output', title: 'PNG / SVG', subtitle: 'CI-ready asset', tone: 'green', lines: ['autocrop', 'overflow checks', 'retina scale'], width: 190 },
|
|
12
|
+
]}
|
|
13
|
+
/>
|
|
14
|
+
<Row width="100%" gap={14}>
|
|
15
|
+
<CalloutCard title="Model writes structure" detail="No hand-written SVG paths or brittle x/y layout for common cases." tone="purple" width={470} />
|
|
16
|
+
<CalloutCard title="Design system stays in control" detail="Theme tokens decide color, typography, radius, spacing, and contrast." tone="green" width={470} />
|
|
17
|
+
</Row>
|
|
18
|
+
</Scene>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import {
|
|
3
2
|
CalloutCard,
|
|
4
3
|
Column,
|
|
5
|
-
defineIllustration,
|
|
6
4
|
Flow,
|
|
7
5
|
MetricCard,
|
|
8
6
|
Row,
|
|
@@ -53,10 +51,9 @@ function buildFrame(theme: ThemeMode, active: number) {
|
|
|
53
51
|
)
|
|
54
52
|
}
|
|
55
53
|
|
|
56
|
-
|
|
57
|
-
const theme: ThemeMode = c.bg === getThemeColors('light').bg ? 'light' : 'dark'
|
|
54
|
+
export function create(theme: ThemeMode = 'dark') {
|
|
58
55
|
return buildFrame(theme, stages.length - 1)
|
|
59
|
-
}
|
|
56
|
+
}
|
|
60
57
|
|
|
61
58
|
export function createScenes(theme: ThemeMode): AnimatedScene[] {
|
|
62
59
|
return stages.map((_, index) => ({
|
|
@@ -68,5 +65,4 @@ export function createScenes(theme: ThemeMode): AnimatedScene[] {
|
|
|
68
65
|
}))
|
|
69
66
|
}
|
|
70
67
|
|
|
71
|
-
export
|
|
72
|
-
export default frame.default
|
|
68
|
+
export default create('dark')
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{ title: 'scores', nodes: ['0.08', '0.74', '0.18'], tone: 'cyan' },
|
|
20
|
-
{ title: 'output', nodes: ['context'], tone: 'green' },
|
|
21
|
-
]}
|
|
22
|
-
/>
|
|
23
|
-
</Scene>
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
export const create = frame.create
|
|
27
|
-
export default frame.default
|
|
4
|
+
<Scene title="Attention head as a routed circuit" subtitle="QK scores choose which value vectors matter" align="center">
|
|
5
|
+
<LayeredNetwork
|
|
6
|
+
width={900}
|
|
7
|
+
height={390}
|
|
8
|
+
activePath={[1, 2, 1, 1]}
|
|
9
|
+
annotations={['query token', 'key match', 'weighted values']}
|
|
10
|
+
formula="softmax(QK^T / sqrt(d_k))V"
|
|
11
|
+
layers={[
|
|
12
|
+
{ title: 'tokens', nodes: ['the', 'model', 'routes'], tone: 'blue' },
|
|
13
|
+
{ title: 'Q/K', nodes: ['q_0', 'q_1', 'q_2', 'k_2'], tone: 'purple' },
|
|
14
|
+
{ title: 'scores', nodes: ['0.08', '0.74', '0.18'], tone: 'cyan' },
|
|
15
|
+
{ title: 'output', nodes: ['context'], tone: 'green' },
|
|
16
|
+
]}
|
|
17
|
+
/>
|
|
18
|
+
</Scene>
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{ x: 0.28, y: 0.26, label: 'E', color: 'neutral', size: 7 },
|
|
27
|
-
{ x: 0.48, y: 0.54, label: 'F', color: 'info', size: 7 },
|
|
28
|
-
]}
|
|
29
|
-
/>
|
|
30
|
-
</Scene>
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
export const create = frame.create
|
|
34
|
-
export default frame.default
|
|
4
|
+
<Scene title="Embedding space triage" subtitle="structured scatterplots with labeled regions" align="center">
|
|
5
|
+
<QuadrantChart
|
|
6
|
+
width={860}
|
|
7
|
+
height={360}
|
|
8
|
+
xAxisLabel="retrieval confidence"
|
|
9
|
+
yAxisLabel="answer usefulness"
|
|
10
|
+
regions={{
|
|
11
|
+
topLeft: { label: 'needs query rewrite', detail: 'useful but hard to retrieve', color: 'warning' },
|
|
12
|
+
topRight: { label: 'ship path', detail: 'relevant and useful', color: 'positive' },
|
|
13
|
+
bottomLeft: { label: 'dead zone', detail: 'low signal', color: 'neutral' },
|
|
14
|
+
bottomRight: { label: 'retrieval trap', detail: 'looks relevant, weak answer', color: 'critical' },
|
|
15
|
+
}}
|
|
16
|
+
points={[
|
|
17
|
+
{ x: 0.84, y: 0.82, label: 'A', color: 'positive', size: 8 },
|
|
18
|
+
{ x: 0.74, y: 0.62, label: 'B', color: 'positive', size: 7 },
|
|
19
|
+
{ x: 0.38, y: 0.76, label: 'C', color: 'warning', size: 8 },
|
|
20
|
+
{ x: 0.66, y: 0.32, label: 'D', color: 'critical', size: 8 },
|
|
21
|
+
{ x: 0.28, y: 0.26, label: 'E', color: 'neutral', size: 7 },
|
|
22
|
+
{ x: 0.48, y: 0.54, label: 'F', color: 'info', size: 7 },
|
|
23
|
+
]}
|
|
24
|
+
/>
|
|
25
|
+
</Scene>
|
|
@@ -1,44 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 620;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{ name: 'latency', points: [0.72, 0.69, 0.66, 0.62, 0.59], color: 'warning' },
|
|
36
|
-
]}
|
|
37
|
-
/>
|
|
38
|
-
</Row>
|
|
39
|
-
<CalloutCard c={c} tone="cyan" title="One theme, many visual forms" detail="Charts, cards, flows, and tables share typography and semantic color tokens." width={900} />
|
|
40
|
-
</Scene>
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
export const create = frame.create
|
|
44
|
-
export default frame.default
|
|
4
|
+
<Scene title="Evaluation snapshot" subtitle="charts inherit theme, grid, labels, and contrast" gap={18}>
|
|
5
|
+
<Row gap={18} align="stretch">
|
|
6
|
+
<BarChart
|
|
7
|
+
width={440}
|
|
8
|
+
height={260}
|
|
9
|
+
title="Pass rate by task"
|
|
10
|
+
subtitle="held-out suite"
|
|
11
|
+
format="percent"
|
|
12
|
+
data={[
|
|
13
|
+
{ label: 'tools', value: 0.82, color: 'positive' },
|
|
14
|
+
{ label: 'math', value: 0.71, color: 'secondary' },
|
|
15
|
+
{ label: 'code', value: 0.77, color: 'primary' },
|
|
16
|
+
{ label: 'long', value: 0.58, color: 'warning' },
|
|
17
|
+
{ label: 'cite', value: 0.64, color: 'info' },
|
|
18
|
+
]}
|
|
19
|
+
/>
|
|
20
|
+
<LineChart
|
|
21
|
+
width={440}
|
|
22
|
+
height={260}
|
|
23
|
+
title="Quality over releases"
|
|
24
|
+
subtitle="weighted score"
|
|
25
|
+
format="percent"
|
|
26
|
+
labels={['v1', 'v2', 'v3', 'v4', 'v5']}
|
|
27
|
+
series={[
|
|
28
|
+
{ name: 'quality', points: [0.55, 0.61, 0.69, 0.74, 0.81], color: 'positive', area: true },
|
|
29
|
+
{ name: 'latency', points: [0.72, 0.69, 0.66, 0.62, 0.59], color: 'warning' },
|
|
30
|
+
]}
|
|
31
|
+
/>
|
|
32
|
+
</Row>
|
|
33
|
+
<CalloutCard tone="cyan" title="One theme, many visual forms" detail="Charts, cards, flows, and tables share typography and semantic color tokens." width={900} />
|
|
34
|
+
</Scene>
|
|
@@ -1,35 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<CalloutCard c={c} tone="ocean" title="Agent-friendly output" detail="The model describes routing stages and metrics; Vizmatic handles layout, spacing, and theme." width={530} minHeight={120} />
|
|
28
|
-
<CalloutCard c={c} tone="critical" title="CI catches clipped frames" detail="Overflow detection fails builds before broken images ship." width={530} minHeight={100} filled={false} />
|
|
29
|
-
</Column>
|
|
30
|
-
</Row>
|
|
31
|
-
</Scene>
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
export const create = frame.create
|
|
35
|
-
export default frame.default
|
|
4
|
+
<Scene title="Model routing board" subtitle="operational diagrams without custom drawing code" gap={18}>
|
|
5
|
+
<Row gap={18} align="stretch">
|
|
6
|
+
<Flow
|
|
7
|
+
direction="vertical"
|
|
8
|
+
connectorTone="cyan"
|
|
9
|
+
stages={[
|
|
10
|
+
{ title: 'Classify request', subtitle: 'cost + risk + latency', tone: 'blue', width: 300 },
|
|
11
|
+
{ title: 'Pick model', subtitle: 'small / reasoning / vision', tone: 'purple', width: 300 },
|
|
12
|
+
{ title: 'Apply policy', subtitle: 'tools, budget, eval gates', tone: 'warm', width: 300 },
|
|
13
|
+
{ title: 'Observe result', subtitle: 'quality and drift', tone: 'green', width: 300 },
|
|
14
|
+
]}
|
|
15
|
+
/>
|
|
16
|
+
<Column gap={14} width={560}>
|
|
17
|
+
<Row gap={12}>
|
|
18
|
+
<MetricCard tone="green" label="simple" value="72%" detail="small model" width={170} />
|
|
19
|
+
<MetricCard tone="purple" label="hard" value="19%" detail="reasoning" width={170} />
|
|
20
|
+
<MetricCard tone="cyan" label="vision" value="9%" detail="multimodal" width={170} />
|
|
21
|
+
</Row>
|
|
22
|
+
<CalloutCard tone="ocean" title="Agent-friendly output" detail="The model describes routing stages and metrics; Vizmatic handles layout, spacing, and theme." width={530} minHeight={120} />
|
|
23
|
+
<CalloutCard tone="critical" title="CI catches clipped frames" detail="Overflow detection fails builds before broken images ship." width={530} minHeight={100} filled={false} />
|
|
24
|
+
</Column>
|
|
25
|
+
</Row>
|
|
26
|
+
</Scene>
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1280;
|
|
2
|
+
height = 720;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</Row>
|
|
26
|
-
</Panel>
|
|
27
|
-
</Row>
|
|
28
|
-
</Scene>
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
export const create = frame.create
|
|
32
|
-
export default frame.default
|
|
4
|
+
<Scene title="One frame can become a slide" subtitle="same primitive tree, wider canvas" gap={22}>
|
|
5
|
+
<Row gap={20} align="stretch">
|
|
6
|
+
<Panel title="Narrative" tone="purple" width={430} minHeight={330}>
|
|
7
|
+
<Column gap={13} align="stretch">
|
|
8
|
+
<TextLabel variant="label" text="Models are good at structure." />
|
|
9
|
+
<TextLabel text="Vizmatic turns that structure into a design-system-aware artifact instead of asking the model to draw pixels." />
|
|
10
|
+
<CalloutCard tone="purple" title="Typed scene contract" detail="Better than raw SVG for agents." align="left" />
|
|
11
|
+
</Column>
|
|
12
|
+
</Panel>
|
|
13
|
+
<Panel title="Render guarantees" tone="green" width={610} minHeight={330}>
|
|
14
|
+
<Row gap={14} wrap align="stretch">
|
|
15
|
+
<MetricCard tone="green" label="Output" value="PNG/SVG" detail="retina-ready" width={180} minHeight={106} />
|
|
16
|
+
<MetricCard tone="cyan" label="Layout" value="flex" detail="no x/y for common paths" width={180} minHeight={106} />
|
|
17
|
+
<MetricCard tone="warm" label="Checks" value="overflow" detail="fail fast in CI" width={180} minHeight={106} />
|
|
18
|
+
<MetricCard tone="purple" label="Theme" value="tokens" detail="brand adapters" width={180} minHeight={106} />
|
|
19
|
+
<MetricCard tone="blue" label="Runtime" value="Node" detail="no browser required" width={180} minHeight={106} />
|
|
20
|
+
<MetricCard tone="pink" label="Authoring" value="JSX" detail="agent-friendly" width={180} minHeight={106} />
|
|
21
|
+
</Row>
|
|
22
|
+
</Panel>
|
|
23
|
+
</Row>
|
|
24
|
+
</Scene>
|
package/examples/rag-graph.tsx
CHANGED
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{ from: 'verify', to: 'retrieve', label: 'retry', dashed: true, tone: 'warm' },
|
|
29
|
-
{ from: 'query', to: 'answer', label: 'direct?', muted: true },
|
|
30
|
-
]}
|
|
31
|
-
/>
|
|
32
|
-
</Scene>
|
|
33
|
-
)
|
|
34
|
-
|
|
35
|
-
export const create = frame.create
|
|
36
|
-
export default frame.default
|
|
4
|
+
<Scene title="RAG control graph" subtitle="retrieval is a graph, not a linear prompt append" align="center">
|
|
5
|
+
<GraphDiagram
|
|
6
|
+
width={820}
|
|
7
|
+
height={390}
|
|
8
|
+
nodeWidth={150}
|
|
9
|
+
nodes={[
|
|
10
|
+
{ id: 'query', label: 'Query', detail: 'user intent', x: 0.08, y: 0.52, tone: 'blue' },
|
|
11
|
+
{ id: 'rewrite', label: 'Rewrite', detail: 'search form', x: 0.30, y: 0.25, tone: 'purple' },
|
|
12
|
+
{ id: 'retrieve', label: 'Retrieve', detail: 'top-k docs', x: 0.52, y: 0.25, tone: 'cyan' },
|
|
13
|
+
{ id: 'rerank', label: 'Rerank', detail: 'cross-encoder', x: 0.74, y: 0.25, tone: 'warm' },
|
|
14
|
+
{ id: 'answer', label: 'Answer', detail: 'grounded draft', x: 0.92, y: 0.52, tone: 'green' },
|
|
15
|
+
{ id: 'verify', label: 'Verify', detail: 'citations', x: 0.52, y: 0.78, tone: 'critical' },
|
|
16
|
+
]}
|
|
17
|
+
edges={[
|
|
18
|
+
{ from: 'query', to: 'rewrite', label: 'normalize', tone: 'blue' },
|
|
19
|
+
{ from: 'rewrite', to: 'retrieve', label: 'search', tone: 'purple' },
|
|
20
|
+
{ from: 'retrieve', to: 'rerank', label: 'rank', tone: 'cyan' },
|
|
21
|
+
{ from: 'rerank', to: 'answer', label: 'context', tone: 'green' },
|
|
22
|
+
{ from: 'answer', to: 'verify', label: 'claims', tone: 'critical' },
|
|
23
|
+
{ from: 'verify', to: 'retrieve', label: 'retry', dashed: true, tone: 'warm' },
|
|
24
|
+
{ from: 'query', to: 'answer', label: 'direct?', muted: true },
|
|
25
|
+
]}
|
|
26
|
+
/>
|
|
27
|
+
</Scene>
|
|
@@ -1,39 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<Panel c={c} title="Decision" tone="ocean" width={220}>
|
|
32
|
-
<CalloutCard c={c} tone="ocean" title="Ship" detail="all release gates are green" minHeight={190} />
|
|
33
|
-
</Panel>
|
|
34
|
-
</Row>
|
|
35
|
-
</Scene>
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
export const create = frame.create
|
|
39
|
-
export default frame.default
|
|
4
|
+
<Scene title="Release readiness card" subtitle="compact operational visuals for reports and decks" gap={18}>
|
|
5
|
+
<Row gap={18} align="stretch">
|
|
6
|
+
<Panel title="Checks" tone="green" width={360}>
|
|
7
|
+
<Column gap={12} align="stretch">
|
|
8
|
+
<MetricCard tone="green" label="unit" value="418" detail="passing" width="100%" />
|
|
9
|
+
<MetricCard tone="cyan" label="visual" value="12" detail="frames rendered" width="100%" />
|
|
10
|
+
<MetricCard tone="warm" label="bundle" value="42kB" detail="minified core" width="100%" />
|
|
11
|
+
</Column>
|
|
12
|
+
</Panel>
|
|
13
|
+
<Panel title="Risk burn-down" tone="purple" width={360}>
|
|
14
|
+
<MiniBarChart
|
|
15
|
+
showValues
|
|
16
|
+
data={[
|
|
17
|
+
{ label: 'Mon', value: 8, tone: 'critical', valueLabel: '8' },
|
|
18
|
+
{ label: 'Tue', value: 6, tone: 'warm', valueLabel: '6' },
|
|
19
|
+
{ label: 'Wed', value: 4, tone: 'cyan', valueLabel: '4' },
|
|
20
|
+
{ label: 'Thu', value: 2, tone: 'green', valueLabel: '2' },
|
|
21
|
+
{ label: 'Fri', value: 1, tone: 'green', valueLabel: '1' },
|
|
22
|
+
]}
|
|
23
|
+
/>
|
|
24
|
+
<TextLabel text="Mini charts work inside cards, callouts, and dashboards." align="center" />
|
|
25
|
+
</Panel>
|
|
26
|
+
<Panel title="Decision" tone="ocean" width={220}>
|
|
27
|
+
<CalloutCard tone="ocean" title="Ship" detail="all release gates are green" minHeight={190} />
|
|
28
|
+
</Panel>
|
|
29
|
+
</Row>
|
|
30
|
+
</Scene>
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
width = 1040;
|
|
2
|
+
height = 560;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{ x: 8.6, y: 9.0, label: 'Custom SVG', color: 'critical', size: 8 },
|
|
27
|
-
{ x: 4.9, y: 6.6, label: 'Vega', color: 'purple', size: 8 },
|
|
28
|
-
]}
|
|
29
|
-
/>
|
|
30
|
-
</Scene>
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
export const create = frame.create
|
|
34
|
-
export default frame.default
|
|
4
|
+
<Scene title="Research landscape" subtitle="scatterplots stay legible without hand-placed labels" align="center">
|
|
5
|
+
<ScatterPlot
|
|
6
|
+
width={840}
|
|
7
|
+
height={390}
|
|
8
|
+
title="Approach tradeoff"
|
|
9
|
+
subtitle="illustrative positions"
|
|
10
|
+
xAxisLabel="implementation complexity"
|
|
11
|
+
yAxisLabel="visual fidelity"
|
|
12
|
+
xMin={0}
|
|
13
|
+
xMax={10}
|
|
14
|
+
yMin={0}
|
|
15
|
+
yMax={10}
|
|
16
|
+
points={[
|
|
17
|
+
{ x: 2.0, y: 3.0, label: 'Mermaid', color: 'secondary', size: 8 },
|
|
18
|
+
{ x: 3.8, y: 5.8, label: 'D2', color: 'info', size: 8 },
|
|
19
|
+
{ x: 6.8, y: 7.2, label: 'Canvas SDK', color: 'warning', size: 9 },
|
|
20
|
+
{ x: 5.8, y: 8.4, label: 'Vizmatic', color: 'positive', size: 10 },
|
|
21
|
+
{ x: 8.6, y: 9.0, label: 'Custom SVG', color: 'critical', size: 8 },
|
|
22
|
+
{ x: 4.9, y: 6.6, label: 'Vega', color: 'purple', size: 8 },
|
|
23
|
+
]}
|
|
24
|
+
/>
|
|
25
|
+
</Scene>
|