effect-atom-svelte-devtools 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +86 -2
- package/dist/atom-devtools.svelte +585 -0
- package/dist/atom-devtools.svelte.d.ts +28 -0
- package/dist/graph/atom-graph.svelte +244 -0
- package/dist/graph/atom-graph.svelte.d.ts +38 -0
- package/dist/graph/frame-graph.svelte +408 -0
- package/dist/graph/frame-graph.svelte.d.ts +52 -0
- package/dist/graph/index.d.ts +5 -0
- package/dist/graph/index.js +7 -0
- package/dist/graph/layout.d.ts +65 -0
- package/dist/graph/layout.js +531 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +13 -0
- package/dist/internal/format.d.ts +20 -0
- package/dist/internal/format.js +138 -0
- package/dist/internal/graph-view.svelte +127 -0
- package/dist/internal/graph-view.svelte.d.ts +10 -0
- package/dist/internal/label.d.ts +35 -0
- package/dist/internal/label.js +139 -0
- package/dist/internal/model.svelte.d.ts +75 -0
- package/dist/internal/model.svelte.js +286 -0
- package/dist/internal/names.d.ts +29 -0
- package/dist/internal/names.js +55 -0
- package/dist/internal/sheets-view.svelte +446 -0
- package/dist/internal/sheets-view.svelte.d.ts +11 -0
- package/dist/internal/timeline-view.svelte +291 -0
- package/dist/internal/timeline-view.svelte.d.ts +9 -0
- package/dist/internal/transform.d.ts +17 -0
- package/dist/internal/transform.js +401 -0
- package/dist/vite.d.ts +52 -0
- package/dist/vite.js +97 -0
- package/package.json +78 -4
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
The drawing set: a cover sheet with the registry's totals and a list of sheets, then one sheet
|
|
3
|
+
per atom with its title block, its value, its readers, what it reads and what reads it, and what
|
|
4
|
+
happened to it lately.
|
|
5
|
+
-->
|
|
6
|
+
<script lang="ts">
|
|
7
|
+
import { detail, stateText } from "./format.js";
|
|
8
|
+
import type { AtomView, Model, TimelineEntry } from "./model.svelte.js";
|
|
9
|
+
import { openInEditor, shortPlace } from "./names.js";
|
|
10
|
+
|
|
11
|
+
interface Props {
|
|
12
|
+
readonly model: Model;
|
|
13
|
+
readonly showPlumbing: boolean;
|
|
14
|
+
/** The atom whose sheet is open, or `undefined` for the cover sheet. */
|
|
15
|
+
readonly selected: number | undefined;
|
|
16
|
+
readonly onselect: (id: number | undefined) => void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const { model, showPlumbing, selected, onselect }: Props = $props();
|
|
20
|
+
|
|
21
|
+
const byId = $derived(new Map(model.atoms.map((view) => [view.id, view])));
|
|
22
|
+
// The set: live atoms by name, plumbing last. A removed atom keeps its sheet while it is open.
|
|
23
|
+
const sheets = $derived(
|
|
24
|
+
model.atoms
|
|
25
|
+
.filter(
|
|
26
|
+
(view) =>
|
|
27
|
+
(view.live || view.id === selected) &&
|
|
28
|
+
(showPlumbing || !view.plumbing || view.id === selected)
|
|
29
|
+
)
|
|
30
|
+
.toSorted(
|
|
31
|
+
(a, b) =>
|
|
32
|
+
Number(a.plumbing) - Number(b.plumbing) || a.name.localeCompare(b.name)
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
const current = $derived(selected === undefined ? undefined : byId.get(selected));
|
|
36
|
+
const number = $derived(
|
|
37
|
+
current === undefined ? 0 : sheets.findIndex((view) => view.id === current.id) + 1
|
|
38
|
+
);
|
|
39
|
+
const recent = $derived(
|
|
40
|
+
current === undefined
|
|
41
|
+
? []
|
|
42
|
+
: model.timeline
|
|
43
|
+
.filter((entry) => entry.atom === current.id)
|
|
44
|
+
.slice(-12)
|
|
45
|
+
.toReversed()
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
const pad = (count: number) => String(count).padStart(2, "0");
|
|
49
|
+
const ttl = (view: AtomView) => {
|
|
50
|
+
if (view.keepAlive) {
|
|
51
|
+
return "—";
|
|
52
|
+
}
|
|
53
|
+
if (view.idleTTL === undefined || view.idleTTL === 0) {
|
|
54
|
+
return "none";
|
|
55
|
+
}
|
|
56
|
+
return view.idleTTL >= 1000 ? `${view.idleTTL / 1000} s` : `${view.idleTTL} ms`;
|
|
57
|
+
};
|
|
58
|
+
const time = (entry: TimelineEntry) => `${(entry.time / 1000).toFixed(3)} s`;
|
|
59
|
+
const verbs: Record<TimelineEntry["tag"], string> = {
|
|
60
|
+
Built: "computed",
|
|
61
|
+
Finalized: "finalized",
|
|
62
|
+
Interrupted: "interrupted",
|
|
63
|
+
NodeAdded: "added",
|
|
64
|
+
NodeRemoved: "removed",
|
|
65
|
+
ReadersChanged: "readers",
|
|
66
|
+
Updated: "updated",
|
|
67
|
+
};
|
|
68
|
+
const states = $derived(
|
|
69
|
+
Object.entries(model.totals.states).toSorted(([a], [b]) => a.localeCompare(b))
|
|
70
|
+
);
|
|
71
|
+
</script>
|
|
72
|
+
|
|
73
|
+
{#snippet link(id: number)}
|
|
74
|
+
{@const view = byId.get(id)}
|
|
75
|
+
<button class="link" class:plumbing={view?.plumbing} onclick={() => onselect(id)} type="button">
|
|
76
|
+
{view?.name ?? `atom #${id}`}
|
|
77
|
+
</button>
|
|
78
|
+
{/snippet}
|
|
79
|
+
|
|
80
|
+
<div class="set">
|
|
81
|
+
<nav aria-label="Sheets" class="index">
|
|
82
|
+
<button class="entry" class:current={current === undefined} onclick={() => onselect(undefined)} type="button">
|
|
83
|
+
<span class="no">00</span> Cover sheet
|
|
84
|
+
</button>
|
|
85
|
+
{#each sheets as view, index (view.id)}
|
|
86
|
+
<button class="entry" class:current={current?.id === view.id} class:plumbing={view.plumbing} class:gone={!view.live} onclick={() => onselect(view.id)} type="button">
|
|
87
|
+
<span class="no">{pad(index + 1)}</span>
|
|
88
|
+
{view.name}
|
|
89
|
+
</button>
|
|
90
|
+
{/each}
|
|
91
|
+
</nav>
|
|
92
|
+
|
|
93
|
+
<article class="sheet">
|
|
94
|
+
{#if current === undefined}
|
|
95
|
+
<header class="strip">
|
|
96
|
+
<span><b>SHEET 00</b> OF {pad(sheets.length)}</span>
|
|
97
|
+
<span>COVER · THE REGISTRY</span>
|
|
98
|
+
</header>
|
|
99
|
+
<div class="totals">
|
|
100
|
+
<div class="total"><b>{pad(model.totals.atoms)}</b><span>atoms</span></div>
|
|
101
|
+
<div class="total"><b>{pad(model.totals.readers)}</b><span>readers</span></div>
|
|
102
|
+
<div class="total"><b>{pad(model.totals.builds)}</b><span>computations</span></div>
|
|
103
|
+
<div class="total"><b>{pad(model.totals.updates)}</b><span>updates</span></div>
|
|
104
|
+
<div class="total"><b>{pad(model.totals.interruptions)}</b><span>interruptions</span></div>
|
|
105
|
+
<div class="total"><b>{pad(model.totals.finalizers)}</b><span>finalizers run</span></div>
|
|
106
|
+
</div>
|
|
107
|
+
<section class="block">
|
|
108
|
+
<h3 class="key">VALUES</h3>
|
|
109
|
+
<p class="states">
|
|
110
|
+
{#each states as [state, count] (state)}
|
|
111
|
+
<span><b>{count}</b> {state === "Value" ? "plain values" : state}</span>
|
|
112
|
+
{/each}
|
|
113
|
+
</p>
|
|
114
|
+
<p class="caption">
|
|
115
|
+
{model.totals.plumbing} of the {model.totals.atoms} atoms are plumbing: made by a runtime, a
|
|
116
|
+
mutation or a store rather than declared by the app. They have no label, and the sheets
|
|
117
|
+
and graph {showPlumbing ? "show them, last" : "leave them out"}.
|
|
118
|
+
Counts of computations and updates start when the panel does.
|
|
119
|
+
</p>
|
|
120
|
+
</section>
|
|
121
|
+
{:else}
|
|
122
|
+
<header class="strip">
|
|
123
|
+
<span><b>SHEET {pad(number)}</b> OF {pad(sheets.length)}</span>
|
|
124
|
+
<span>{current.live ? (current.plumbing ? "PLUMBING" : "ATOM") : "REMOVED"}</span>
|
|
125
|
+
</header>
|
|
126
|
+
|
|
127
|
+
<section class="block value">
|
|
128
|
+
<h3 class="key">
|
|
129
|
+
VALUE{#if current.state._tag !== "Value"}<span
|
|
130
|
+
class="badge"
|
|
131
|
+
class:failure={current.state._tag === "Failure" && !current.state.waiting}
|
|
132
|
+
class:success={current.state._tag === "Success" && !current.state.waiting}
|
|
133
|
+
class:waiting={current.state.waiting}>{stateText(current.state)}</span>{/if}
|
|
134
|
+
</h3>
|
|
135
|
+
{#if current.hasValue}
|
|
136
|
+
<pre>{detail(current.value)}</pre>
|
|
137
|
+
{:else}
|
|
138
|
+
<p class="caption">Not computed yet.</p>
|
|
139
|
+
{/if}
|
|
140
|
+
</section>
|
|
141
|
+
|
|
142
|
+
<div class="columns">
|
|
143
|
+
<section class="block">
|
|
144
|
+
<h3 class="key">UPSTREAM · WHAT IT READS</h3>
|
|
145
|
+
{#if current.parents.length === 0}
|
|
146
|
+
<p class="caption">Nothing: it is a source.</p>
|
|
147
|
+
{:else}
|
|
148
|
+
<ul>
|
|
149
|
+
{#each current.parents as id (id)}<li>{@render link(id)}</li>{/each}
|
|
150
|
+
</ul>
|
|
151
|
+
{/if}
|
|
152
|
+
</section>
|
|
153
|
+
<section class="block">
|
|
154
|
+
<h3 class="key">DOWNSTREAM · WHAT READS IT</h3>
|
|
155
|
+
{#if current.children.length === 0}
|
|
156
|
+
<p class="caption">No atom reads it.</p>
|
|
157
|
+
{:else}
|
|
158
|
+
<ul>
|
|
159
|
+
{#each current.children as id (id)}<li>{@render link(id)}</li>{/each}
|
|
160
|
+
</ul>
|
|
161
|
+
{/if}
|
|
162
|
+
</section>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<section class="block">
|
|
166
|
+
<h3 class="key">LATELY · {current.builds} COMPUTATIONS, {current.updates} UPDATES, {current.interruptions} INTERRUPTIONS</h3>
|
|
167
|
+
{#if recent.length === 0}
|
|
168
|
+
<p class="caption">Nothing since the panel started.</p>
|
|
169
|
+
{:else}
|
|
170
|
+
<ol class="recent">
|
|
171
|
+
{#each recent as entry (entry.seq)}
|
|
172
|
+
<li class:alert={entry.tag === "Interrupted"}>
|
|
173
|
+
<span class="when">{time(entry)}</span>
|
|
174
|
+
<span class="what">{verbs[entry.tag]}</span>
|
|
175
|
+
<span class="detail">{entry.detail}{#if entry.source} ({entry.source}){/if}</span>
|
|
176
|
+
</li>
|
|
177
|
+
{/each}
|
|
178
|
+
</ol>
|
|
179
|
+
{/if}
|
|
180
|
+
</section>
|
|
181
|
+
|
|
182
|
+
<footer class="title-block">
|
|
183
|
+
<div class="cell name"><span class="key">NAME</span>{current.name}</div>
|
|
184
|
+
<div class="cell">
|
|
185
|
+
<span class="key">DECLARED</span>
|
|
186
|
+
{#if current.identity.place}
|
|
187
|
+
{@const place = current.identity.place}
|
|
188
|
+
<button class="link" onclick={() => void openInEditor(place)} title="Open {place.file}:{place.line} in the editor" type="button">{shortPlace(place)}</button>
|
|
189
|
+
{:else}
|
|
190
|
+
—
|
|
191
|
+
{/if}
|
|
192
|
+
</div>
|
|
193
|
+
<div class="cell"><span class="key">KEEP-ALIVE</span>{current.keepAlive ? "yes" : "no"}</div>
|
|
194
|
+
<div class="cell"><span class="key">IDLE TTL</span>{ttl(current)}</div>
|
|
195
|
+
<div class="cell"><span class="key">READERS</span>{current.readers}</div>
|
|
196
|
+
{#if current.identity.key && current.identity.key !== current.name}
|
|
197
|
+
<div class="cell wide"><span class="key">KEY</span>{current.identity.key}</div>
|
|
198
|
+
{/if}
|
|
199
|
+
</footer>
|
|
200
|
+
{/if}
|
|
201
|
+
</article>
|
|
202
|
+
</div>
|
|
203
|
+
|
|
204
|
+
<style>
|
|
205
|
+
.set {
|
|
206
|
+
display: grid;
|
|
207
|
+
grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
|
|
208
|
+
height: 100%;
|
|
209
|
+
min-height: 0;
|
|
210
|
+
}
|
|
211
|
+
.index {
|
|
212
|
+
border-right: 1px solid var(--line);
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
min-height: 0;
|
|
216
|
+
overflow: auto;
|
|
217
|
+
padding: 0.75rem 0.75rem 0.75rem 1rem;
|
|
218
|
+
}
|
|
219
|
+
.entry {
|
|
220
|
+
background: none;
|
|
221
|
+
border: 0;
|
|
222
|
+
border-left: 1px solid var(--line);
|
|
223
|
+
color: var(--muted);
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
font: inherit;
|
|
226
|
+
font-family: var(--mono);
|
|
227
|
+
font-size: 0.75rem;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
padding: 0.2rem 0.6rem;
|
|
230
|
+
position: relative;
|
|
231
|
+
text-align: left;
|
|
232
|
+
text-overflow: ellipsis;
|
|
233
|
+
white-space: nowrap;
|
|
234
|
+
}
|
|
235
|
+
.entry:hover {
|
|
236
|
+
color: var(--ink);
|
|
237
|
+
}
|
|
238
|
+
.entry.current {
|
|
239
|
+
border-left-color: var(--accent);
|
|
240
|
+
color: var(--ink);
|
|
241
|
+
}
|
|
242
|
+
.entry.plumbing,
|
|
243
|
+
.entry.gone {
|
|
244
|
+
color: var(--subtle);
|
|
245
|
+
}
|
|
246
|
+
.no {
|
|
247
|
+
color: var(--accent-text);
|
|
248
|
+
font-variant-numeric: tabular-nums;
|
|
249
|
+
margin-right: 0.5rem;
|
|
250
|
+
}
|
|
251
|
+
.sheet {
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
min-height: 0;
|
|
255
|
+
overflow: auto;
|
|
256
|
+
}
|
|
257
|
+
.strip {
|
|
258
|
+
border-bottom: 1px solid var(--line);
|
|
259
|
+
color: var(--muted);
|
|
260
|
+
display: flex;
|
|
261
|
+
font-family: var(--mono);
|
|
262
|
+
font-size: 0.65rem;
|
|
263
|
+
justify-content: space-between;
|
|
264
|
+
letter-spacing: 0.1em;
|
|
265
|
+
padding: 0.55rem 1rem;
|
|
266
|
+
}
|
|
267
|
+
.strip b {
|
|
268
|
+
color: var(--accent-text);
|
|
269
|
+
font-weight: 400;
|
|
270
|
+
}
|
|
271
|
+
.block {
|
|
272
|
+
border-bottom: 1px solid var(--line);
|
|
273
|
+
padding: 0.75rem 1rem;
|
|
274
|
+
}
|
|
275
|
+
.key {
|
|
276
|
+
color: var(--muted);
|
|
277
|
+
font-family: var(--mono);
|
|
278
|
+
font-size: 0.62rem;
|
|
279
|
+
font-weight: normal;
|
|
280
|
+
letter-spacing: 0.1em;
|
|
281
|
+
margin: 0 0 0.4rem;
|
|
282
|
+
}
|
|
283
|
+
.badge {
|
|
284
|
+
border: 1px solid var(--line);
|
|
285
|
+
border-radius: 999px;
|
|
286
|
+
color: var(--ink);
|
|
287
|
+
margin-left: 0.6rem;
|
|
288
|
+
padding: 0 0.45rem;
|
|
289
|
+
}
|
|
290
|
+
.badge.success {
|
|
291
|
+
border-color: var(--success);
|
|
292
|
+
color: var(--success);
|
|
293
|
+
}
|
|
294
|
+
.badge.failure {
|
|
295
|
+
border-color: var(--alert);
|
|
296
|
+
color: var(--alert);
|
|
297
|
+
}
|
|
298
|
+
.badge.waiting {
|
|
299
|
+
border-color: var(--accent);
|
|
300
|
+
color: var(--accent-text);
|
|
301
|
+
}
|
|
302
|
+
pre {
|
|
303
|
+
background: color-mix(in oklab, var(--ink) 4%, transparent);
|
|
304
|
+
border: 1px solid var(--line);
|
|
305
|
+
border-radius: var(--radius);
|
|
306
|
+
padding: 0.5rem 0.65rem;
|
|
307
|
+
font-family: var(--mono);
|
|
308
|
+
font-size: 0.75rem;
|
|
309
|
+
margin: 0;
|
|
310
|
+
max-height: 14rem;
|
|
311
|
+
overflow: auto;
|
|
312
|
+
white-space: pre-wrap;
|
|
313
|
+
word-break: break-word;
|
|
314
|
+
}
|
|
315
|
+
.columns {
|
|
316
|
+
display: grid;
|
|
317
|
+
grid-template-columns: 1fr 1fr;
|
|
318
|
+
}
|
|
319
|
+
.columns .block:first-child {
|
|
320
|
+
border-right: 1px solid var(--line);
|
|
321
|
+
}
|
|
322
|
+
ul,
|
|
323
|
+
ol {
|
|
324
|
+
list-style: none;
|
|
325
|
+
margin: 0;
|
|
326
|
+
padding: 0;
|
|
327
|
+
}
|
|
328
|
+
.link {
|
|
329
|
+
background: none;
|
|
330
|
+
border: 0;
|
|
331
|
+
color: var(--ink);
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
font: inherit;
|
|
334
|
+
font-family: var(--mono);
|
|
335
|
+
font-size: 0.75rem;
|
|
336
|
+
padding: 0;
|
|
337
|
+
text-decoration: underline dotted var(--muted);
|
|
338
|
+
text-underline-offset: 3px;
|
|
339
|
+
}
|
|
340
|
+
.link:hover {
|
|
341
|
+
color: var(--accent-text);
|
|
342
|
+
text-decoration-color: var(--accent);
|
|
343
|
+
}
|
|
344
|
+
.link.plumbing {
|
|
345
|
+
color: var(--muted);
|
|
346
|
+
}
|
|
347
|
+
.caption {
|
|
348
|
+
color: var(--muted);
|
|
349
|
+
font-family: var(--serif);
|
|
350
|
+
font-size: 0.8rem;
|
|
351
|
+
font-style: italic;
|
|
352
|
+
margin: 0;
|
|
353
|
+
}
|
|
354
|
+
.recent li {
|
|
355
|
+
display: grid;
|
|
356
|
+
font-size: 0.72rem;
|
|
357
|
+
gap: 0.75rem;
|
|
358
|
+
grid-template-columns: 5.5rem 6rem minmax(0, 1fr);
|
|
359
|
+
padding: 0.1rem 0;
|
|
360
|
+
}
|
|
361
|
+
.recent li.alert .what,
|
|
362
|
+
.recent li.alert .detail {
|
|
363
|
+
color: var(--alert);
|
|
364
|
+
}
|
|
365
|
+
.when {
|
|
366
|
+
color: var(--muted);
|
|
367
|
+
font-family: var(--mono);
|
|
368
|
+
font-variant-numeric: tabular-nums;
|
|
369
|
+
}
|
|
370
|
+
.what {
|
|
371
|
+
font-family: var(--mono);
|
|
372
|
+
}
|
|
373
|
+
.detail {
|
|
374
|
+
font-family: var(--serif);
|
|
375
|
+
font-style: italic;
|
|
376
|
+
overflow: hidden;
|
|
377
|
+
text-overflow: ellipsis;
|
|
378
|
+
white-space: nowrap;
|
|
379
|
+
}
|
|
380
|
+
.title-block {
|
|
381
|
+
border-top: 1px solid var(--line);
|
|
382
|
+
display: grid;
|
|
383
|
+
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
|
|
384
|
+
margin-top: auto;
|
|
385
|
+
}
|
|
386
|
+
.cell {
|
|
387
|
+
white-space: nowrap;
|
|
388
|
+
border-left: 1px solid var(--line);
|
|
389
|
+
display: flex;
|
|
390
|
+
flex-direction: column;
|
|
391
|
+
font-family: var(--mono);
|
|
392
|
+
font-size: 0.78rem;
|
|
393
|
+
gap: 0.15rem;
|
|
394
|
+
overflow: hidden;
|
|
395
|
+
padding: 0.45rem 0.75rem 0.55rem;
|
|
396
|
+
text-overflow: ellipsis;
|
|
397
|
+
}
|
|
398
|
+
.cell:first-child {
|
|
399
|
+
border-left: 0;
|
|
400
|
+
}
|
|
401
|
+
.cell .key {
|
|
402
|
+
margin: 0;
|
|
403
|
+
}
|
|
404
|
+
.cell.wide {
|
|
405
|
+
border-left: 0;
|
|
406
|
+
border-top: 1px solid var(--line);
|
|
407
|
+
grid-column: 1 / -1;
|
|
408
|
+
}
|
|
409
|
+
.totals {
|
|
410
|
+
border-bottom: 1px solid var(--line);
|
|
411
|
+
display: grid;
|
|
412
|
+
grid-template-columns: repeat(3, 1fr);
|
|
413
|
+
}
|
|
414
|
+
.total {
|
|
415
|
+
border-right: 1px solid var(--line);
|
|
416
|
+
border-top: 1px solid var(--line);
|
|
417
|
+
display: flex;
|
|
418
|
+
flex-direction: column;
|
|
419
|
+
padding: 0.75rem 1rem;
|
|
420
|
+
}
|
|
421
|
+
.total:nth-child(-n + 3) {
|
|
422
|
+
border-top: 0;
|
|
423
|
+
}
|
|
424
|
+
.total:nth-child(3n) {
|
|
425
|
+
border-right: 0;
|
|
426
|
+
}
|
|
427
|
+
.total b {
|
|
428
|
+
font-family: var(--mono);
|
|
429
|
+
font-size: 1.5rem;
|
|
430
|
+
font-variant-numeric: tabular-nums;
|
|
431
|
+
font-weight: 600;
|
|
432
|
+
}
|
|
433
|
+
.total span {
|
|
434
|
+
color: var(--muted);
|
|
435
|
+
font-family: var(--serif);
|
|
436
|
+
font-style: italic;
|
|
437
|
+
}
|
|
438
|
+
.states {
|
|
439
|
+
display: flex;
|
|
440
|
+
flex-wrap: wrap;
|
|
441
|
+
font-family: var(--mono);
|
|
442
|
+
font-size: 0.78rem;
|
|
443
|
+
gap: 1rem;
|
|
444
|
+
margin: 0 0 0.6rem;
|
|
445
|
+
}
|
|
446
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Model } from "./model.svelte.ts";
|
|
2
|
+
interface Props {
|
|
3
|
+
readonly model: Model;
|
|
4
|
+
readonly showPlumbing: boolean;
|
|
5
|
+
/** The atom whose sheet is open, or `undefined` for the cover sheet. */
|
|
6
|
+
readonly selected: number | undefined;
|
|
7
|
+
readonly onselect: (id: number | undefined) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const SheetsView: import("svelte").Component<Props, {}, "">;
|
|
10
|
+
type SheetsView = ReturnType<typeof SheetsView>;
|
|
11
|
+
export default SheetsView;
|