-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvectorize-debug.html
More file actions
62 lines (62 loc) · 2.88 KB
/
Copy pathvectorize-debug.html
File metadata and controls
62 lines (62 loc) · 2.88 KB
1
2
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LogoLab · Vectorize pipeline debug</title>
<style>
:root { color-scheme: light; }
body {
margin: 0;
font: 13px/1.4 ui-sans-serif, system-ui, sans-serif;
background: #f4f4f6;
color: #1a1a22;
}
header { padding: 16px 20px; border-bottom: 1px solid #e2e2e8; background: #fff; }
header h1 { margin: 0 0 4px; font-size: 15px; }
header p { margin: 0; color: #6a6a76; }
.row { padding: 16px 20px; border-bottom: 1px solid #e8e8ee; }
.row h2 { margin: 0 0 10px; font: 600 13px/1.4 ui-monospace, monospace; }
.cells { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.cell { width: 200px; }
.cell .label {
display: flex; justify-content: space-between; align-items: baseline;
margin-bottom: 6px; font-size: 11px; color: #6a6a76;
}
.cell .label b { color: #1a1a22; font-weight: 600; }
.box {
width: 200px; height: 200px; border: 1px solid #d8d8e0; border-radius: 8px;
overflow: hidden; background-color: #fff;
background-image:
linear-gradient(45deg, #eee 25%, transparent 25%),
linear-gradient(-45deg, #eee 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #eee 75%),
linear-gradient(-45deg, transparent 75%, #eee 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.box svg, .box img, .box canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.box svg, .box img { image-rendering: auto; }
.paints { width: 200px; height: 200px; overflow-y: auto; background: #fff; border: 1px solid #d8d8e0; border-radius: 8px; padding: 6px; box-sizing: border-box; }
.paint { display: flex; align-items: center; gap: 6px; font: 10px/1.6 ui-monospace, monospace; }
.paint .chip { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #00000022; flex: none; }
.paint .m { font-weight: 600; width: 44px; }
.paint .m-solid { color: #6a6a76; }
.paint .m-linear { color: #1f6feb; }
.paint .m-radial { color: #bf8700; }
.paint .m-glow { color: #7a3fd0; }
.paint .px { color: #6a6a76; }
.paint .res { color: #9a9aa6; margin-left: auto; }
#status { padding: 10px 20px; color: #6a6a76; }
</style>
</head>
<body>
<header>
<h1>Vectorize pipeline debug</h1>
<p>Intermediate stages of the structure-first pipeline: source → MS smoothed → discontinuity 𝒟 → segmentation (regions) → paint models → final traces.</p>
</header>
<div id="status">Running…</div>
<main id="out"></main>
<script type="module" src="/src/devtest/vectorizeDebug.ts"></script>
</body>
</html>