medesign 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mebolder.js +4 -0
- package/bin/medesign.js +331 -30
- package/bin/melint.js +4 -0
- package/bin/mepolish.js +4 -0
- package/bin/mequiet.js +4 -0
- package/bin/mesearch.js +4 -0
- package/bin/mesnapshot.js +4 -0
- package/examples/cadastral-qaqc-slide.html +577 -0
- package/examples/executive-summary-report.html +597 -0
- package/examples/executive-summary-report.pdf +0 -0
- package/examples/geospatial-banner-1200x630.html +370 -0
- package/examples/geospatial-banner-1200x630.svg +149 -0
- package/examples/linear-issue-board.html +1273 -0
- package/examples/snapshots/cadastral-qaqc-slide-desktop-1440x900.png +0 -0
- package/examples/snapshots/cadastral-qaqc-slide-mobile-390x844.png +0 -0
- package/examples/snapshots/cadastral-qaqc-slide-tablet-820x1180.png +0 -0
- package/examples/snapshots/executive-summary-report-desktop-1440x900.png +0 -0
- package/examples/snapshots/executive-summary-report-mobile-390x844.png +0 -0
- package/examples/snapshots/executive-summary-report-tablet-820x1180.png +0 -0
- package/examples/snapshots/geospatial-banner-1200x630-og-banner-1200x630.png +0 -0
- package/examples/snapshots/linear-issue-board-desktop-1440x900.png +0 -0
- package/examples/snapshots/linear-issue-board-mobile-390x844.png +0 -0
- package/examples/snapshots/linear-issue-board-tablet-820x1180.png +0 -0
- package/examples/snapshots/spotify-web-player-desktop-1440x900.png +0 -0
- package/examples/snapshots/spotify-web-player-mobile-390x844.png +0 -0
- package/examples/snapshots/spotify-web-player-tablet-820x1180.png +0 -0
- package/examples/spotify-web-player.html +1446 -0
- package/package.json +81 -69
- package/presets/metha/guidelines.md +26 -17
- package/presets/metha/preset.json +16 -16
- package/references/ai-tells.md +9 -2
- package/references/brand-design-tokens.md +27 -28
- package/references/brief-intake.md +90 -0
- package/references/catalog.json +1031 -1023
- package/references/cli-architecture.md +1 -1
- package/references/compositor-smoothness.md +161 -0
- package/references/design-core.md +11 -4
- package/references/executive-reports.md +234 -0
- package/references/image-mockup-direction.md +53 -53
- package/references/image-to-code.md +46 -46
- package/references/modern-craft-invariants.md +55 -9
- package/references/prompt-templates.md +49 -0
- package/references/quality-gate.md +42 -12
- package/references/typography-thai-latin.md +206 -0
- package/references/view-transitions-engine.md +89 -0
- package/references/web-retrofit-protocol.md +103 -0
- package/scripts/export-tokens.js +419 -403
- package/tests/browser-audit.js +463 -442
- package/tests/linter.js +49 -4
- package/tests/snapshot.js +263 -0
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Cadastral Survey & QA/QC Tolerance Verification</title>
|
|
7
|
+
<!-- Google Fonts: JetBrains Mono & Plus Jakarta Sans (Strictly avoiding Inter) -->
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
11
|
+
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
|
|
12
|
+
<style>
|
|
13
|
+
:root {
|
|
14
|
+
--color-bg: #0a0d14;
|
|
15
|
+
--color-surface: #111722;
|
|
16
|
+
--color-surface-hover: #162030;
|
|
17
|
+
--color-surface-inset: #0d121c;
|
|
18
|
+
--color-border: #1e293b;
|
|
19
|
+
--color-border-active: #334155;
|
|
20
|
+
--color-cyan: oklch(0.85 0.18 200);
|
|
21
|
+
--color-cyan-dim: oklch(0.85 0.18 200 / 0.15);
|
|
22
|
+
--color-emerald: oklch(0.72 0.18 145);
|
|
23
|
+
--color-emerald-dim: oklch(0.72 0.18 145 / 0.15);
|
|
24
|
+
--color-amber: oklch(0.78 0.16 75);
|
|
25
|
+
--color-text-primary: #f1f5f9;
|
|
26
|
+
--color-text-secondary: #cbd5e1;
|
|
27
|
+
--color-text-muted: #cbd5e1;
|
|
28
|
+
--font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
|
|
29
|
+
--font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
|
|
30
|
+
--font-mono: 'JetBrains Mono', monospace;
|
|
31
|
+
--corner-r: 12px;
|
|
32
|
+
--inner-r: max(0px, var(--corner-r) - 1px - 4px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
* {
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
body {
|
|
42
|
+
background-color: var(--color-bg);
|
|
43
|
+
color: var(--color-text-primary);
|
|
44
|
+
font-family: var(--font-body);
|
|
45
|
+
min-height: 100vh;
|
|
46
|
+
min-height: 100dvh;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
overflow-x: hidden;
|
|
51
|
+
padding: 16px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 16:9 Presentation Stage */
|
|
55
|
+
.slide-deck {
|
|
56
|
+
width: 100%;
|
|
57
|
+
max-width: 1280px;
|
|
58
|
+
aspect-ratio: 16 / 9;
|
|
59
|
+
background: var(--color-surface);
|
|
60
|
+
border: 1px solid var(--color-border);
|
|
61
|
+
border-radius: var(--corner-r);
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
position: relative;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Header Strip */
|
|
70
|
+
.slide-header {
|
|
71
|
+
padding: 24px 32px 18px;
|
|
72
|
+
border-bottom: 1px solid var(--color-border);
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
gap: 24px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.meta-tag {
|
|
80
|
+
font-family: var(--font-mono);
|
|
81
|
+
font-size: 11px;
|
|
82
|
+
font-weight: 500;
|
|
83
|
+
letter-spacing: 0.05em;
|
|
84
|
+
text-transform: uppercase;
|
|
85
|
+
color: var(--color-cyan);
|
|
86
|
+
background: var(--color-cyan-dim);
|
|
87
|
+
border: 1px solid oklch(0.85 0.18 200 / 0.3);
|
|
88
|
+
padding: 4px 10px;
|
|
89
|
+
border-radius: 4px;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
margin-bottom: 8px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.slide-title {
|
|
95
|
+
font-family: var(--font-heading);
|
|
96
|
+
font-size: 26px;
|
|
97
|
+
font-weight: 700;
|
|
98
|
+
letter-spacing: -0.02em;
|
|
99
|
+
color: var(--color-text-primary);
|
|
100
|
+
line-height: 1.25;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.slide-desc {
|
|
104
|
+
font-size: 13px;
|
|
105
|
+
color: var(--color-text-secondary);
|
|
106
|
+
margin-top: 4px;
|
|
107
|
+
font-family: var(--font-body);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.header-aside {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: 12px;
|
|
114
|
+
flex-shrink: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.status-badge {
|
|
118
|
+
font-family: var(--font-mono);
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
font-weight: 600;
|
|
121
|
+
color: var(--color-emerald);
|
|
122
|
+
background: var(--color-emerald-dim);
|
|
123
|
+
border: 1px solid oklch(0.72 0.18 145 / 0.35);
|
|
124
|
+
padding: 6px 14px;
|
|
125
|
+
border-radius: 4px;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 6px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.status-badge::before {
|
|
132
|
+
content: '';
|
|
133
|
+
display: inline-block;
|
|
134
|
+
width: 7px;
|
|
135
|
+
height: 7px;
|
|
136
|
+
border-radius: 50%;
|
|
137
|
+
background: var(--color-emerald);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Main Slide Body */
|
|
141
|
+
.slide-body {
|
|
142
|
+
flex: 1;
|
|
143
|
+
display: grid;
|
|
144
|
+
grid-template-columns: 1.35fr 1fr;
|
|
145
|
+
padding: 24px 32px;
|
|
146
|
+
gap: 28px;
|
|
147
|
+
min-height: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Left Analytics Card */
|
|
151
|
+
.chart-container {
|
|
152
|
+
background: var(--color-surface-inset);
|
|
153
|
+
border: 1px solid var(--color-border);
|
|
154
|
+
border-radius: var(--inner-r);
|
|
155
|
+
padding: 20px;
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
position: relative;
|
|
159
|
+
min-height: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.card-title-row {
|
|
163
|
+
display: flex;
|
|
164
|
+
justify-content: space-between;
|
|
165
|
+
align-items: center;
|
|
166
|
+
margin-bottom: 12px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.card-title {
|
|
170
|
+
font-size: 13px;
|
|
171
|
+
font-weight: 600;
|
|
172
|
+
text-transform: uppercase;
|
|
173
|
+
letter-spacing: 0.04em;
|
|
174
|
+
color: var(--color-text-secondary);
|
|
175
|
+
font-family: var(--font-mono);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.chart-wrapper {
|
|
179
|
+
flex: 1;
|
|
180
|
+
position: relative;
|
|
181
|
+
min-height: 220px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/* Right Telemetry & Data Grid */
|
|
185
|
+
.telemetry-col {
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
gap: 16px;
|
|
189
|
+
min-height: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.metrics-grid {
|
|
193
|
+
display: grid;
|
|
194
|
+
grid-template-columns: 1fr 1fr;
|
|
195
|
+
gap: 12px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.metric-card {
|
|
199
|
+
background: var(--color-surface-inset);
|
|
200
|
+
border: 1px solid var(--color-border);
|
|
201
|
+
border-radius: var(--inner-r);
|
|
202
|
+
padding: 14px 16px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.metric-label {
|
|
206
|
+
font-size: 11px;
|
|
207
|
+
font-family: var(--font-mono);
|
|
208
|
+
text-transform: uppercase;
|
|
209
|
+
letter-spacing: 0.04em;
|
|
210
|
+
color: var(--color-text-muted);
|
|
211
|
+
margin-bottom: 6px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.metric-value {
|
|
215
|
+
font-family: var(--font-mono);
|
|
216
|
+
font-size: 20px;
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
color: var(--color-text-primary);
|
|
219
|
+
letter-spacing: -0.02em;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.metric-sub {
|
|
223
|
+
font-size: 11px;
|
|
224
|
+
color: var(--color-emerald);
|
|
225
|
+
margin-top: 4px;
|
|
226
|
+
font-family: var(--font-mono);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* Data Table */
|
|
230
|
+
.provenance-table-box {
|
|
231
|
+
flex: 1;
|
|
232
|
+
background: var(--color-surface-inset);
|
|
233
|
+
border: 1px solid var(--color-border);
|
|
234
|
+
border-radius: var(--inner-r);
|
|
235
|
+
padding: 16px;
|
|
236
|
+
display: flex;
|
|
237
|
+
flex-direction: column;
|
|
238
|
+
min-height: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.table-caption {
|
|
242
|
+
font-family: var(--font-mono);
|
|
243
|
+
font-size: 11px;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
color: var(--color-text-secondary);
|
|
246
|
+
text-transform: uppercase;
|
|
247
|
+
letter-spacing: 0.04em;
|
|
248
|
+
margin-bottom: 10px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
table {
|
|
252
|
+
width: 100%;
|
|
253
|
+
border-collapse: collapse;
|
|
254
|
+
font-size: 12px;
|
|
255
|
+
font-family: var(--font-mono);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
th {
|
|
259
|
+
text-align: left;
|
|
260
|
+
color: var(--color-text-muted);
|
|
261
|
+
font-weight: 500;
|
|
262
|
+
padding: 6px 8px;
|
|
263
|
+
border-bottom: 1px solid var(--color-border);
|
|
264
|
+
font-size: 11px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
td {
|
|
268
|
+
padding: 7px 8px;
|
|
269
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
|
270
|
+
color: var(--color-text-primary);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
tr:last-child td {
|
|
274
|
+
border-bottom: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.td-pass {
|
|
278
|
+
color: var(--color-emerald);
|
|
279
|
+
font-weight: 600;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* Interactive Action Controls (MD001, MD003, MD004, MD005 compliant) */
|
|
283
|
+
.action-row {
|
|
284
|
+
display: flex;
|
|
285
|
+
gap: 10px;
|
|
286
|
+
margin-top: auto;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.btn-action {
|
|
290
|
+
min-height: 44px;
|
|
291
|
+
min-width: 44px;
|
|
292
|
+
padding: 0 18px;
|
|
293
|
+
border-radius: 6px;
|
|
294
|
+
font-family: var(--font-heading);
|
|
295
|
+
font-size: 13px;
|
|
296
|
+
font-weight: 600;
|
|
297
|
+
cursor: pointer;
|
|
298
|
+
display: inline-flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
justify-content: center;
|
|
301
|
+
gap: 8px;
|
|
302
|
+
transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.btn-primary {
|
|
306
|
+
background: var(--color-cyan);
|
|
307
|
+
color: #05070a;
|
|
308
|
+
border: 1px solid var(--color-cyan);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.btn-primary:hover {
|
|
312
|
+
background: oklch(0.88 0.16 200);
|
|
313
|
+
border-color: oklch(0.88 0.16 200);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.btn-primary:active {
|
|
317
|
+
background: oklch(0.80 0.19 200);
|
|
318
|
+
border-color: oklch(0.80 0.19 200);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.btn-secondary {
|
|
322
|
+
background: var(--color-surface);
|
|
323
|
+
color: var(--color-text-primary);
|
|
324
|
+
border: 1px solid var(--color-border);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.btn-secondary:hover {
|
|
328
|
+
background: var(--color-surface-hover);
|
|
329
|
+
border-color: var(--color-border-active);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.btn-secondary:active {
|
|
333
|
+
background: var(--color-surface-inset);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Focus Visibility & High Contrast (MD001 & MD005) */
|
|
337
|
+
button:focus-visible,
|
|
338
|
+
a:focus-visible {
|
|
339
|
+
outline: 2px solid Highlight;
|
|
340
|
+
outline-offset: 2px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@media (forced-colors: active) {
|
|
344
|
+
.btn-action {
|
|
345
|
+
forced-color-adjust: none;
|
|
346
|
+
outline: 2px solid ButtonBorder;
|
|
347
|
+
}
|
|
348
|
+
.btn-action:focus-visible {
|
|
349
|
+
outline: 3px solid Highlight;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Reduced Motion (MD002) */
|
|
354
|
+
@media (prefers-reduced-motion: reduce) {
|
|
355
|
+
*, *::before, *::after {
|
|
356
|
+
animation-duration: 0.01ms !important;
|
|
357
|
+
animation-iteration-count: 1 !important;
|
|
358
|
+
transition-duration: 0.01ms !important;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Responsive scaling */
|
|
363
|
+
@media (max-width: 960px) {
|
|
364
|
+
.slide-deck {
|
|
365
|
+
aspect-ratio: auto;
|
|
366
|
+
}
|
|
367
|
+
.slide-body {
|
|
368
|
+
grid-template-columns: 1fr;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
</style>
|
|
372
|
+
</head>
|
|
373
|
+
<body>
|
|
374
|
+
|
|
375
|
+
<div class="slide-deck">
|
|
376
|
+
<!-- Header -->
|
|
377
|
+
<header class="slide-header">
|
|
378
|
+
<div>
|
|
379
|
+
<span class="meta-tag">Archetype 38: Cadastral Survey QA/QC</span>
|
|
380
|
+
<h1 class="slide-title">Parcel Boundary Tolerance & Baseline Verification</h1>
|
|
381
|
+
<p class="slide-desc">GNSS RTK Cadastral Network Analysis - Parcel ID 4196-KU-BKK (UTM Zone 47N)</p>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="header-aside">
|
|
384
|
+
<div class="status-badge">TOLERANCE COMPLIANT</div>
|
|
385
|
+
</div>
|
|
386
|
+
</header>
|
|
387
|
+
|
|
388
|
+
<!-- Main Content -->
|
|
389
|
+
<main class="slide-body">
|
|
390
|
+
<!-- Left: Residual Distribution Chart -->
|
|
391
|
+
<section class="chart-container" aria-label="Tolerance Residual Analysis">
|
|
392
|
+
<div class="card-title-row">
|
|
393
|
+
<span class="card-title">Coordinate Residual Deviations vs 20mm Tolerance</span>
|
|
394
|
+
<span class="meta-tag" style="margin-bottom: 0;">14 Boundary Markers</span>
|
|
395
|
+
</div>
|
|
396
|
+
<div class="chart-wrapper">
|
|
397
|
+
<canvas id="residualChart"></canvas>
|
|
398
|
+
</div>
|
|
399
|
+
</section>
|
|
400
|
+
|
|
401
|
+
<!-- Right: Telemetry & Quality Assurance Data -->
|
|
402
|
+
<section class="telemetry-col" aria-label="Survey Metrics">
|
|
403
|
+
<div class="metrics-grid">
|
|
404
|
+
<div class="metric-card">
|
|
405
|
+
<div class="metric-label">Max Horiz Error</div>
|
|
406
|
+
<div class="metric-value">12.4 mm</div>
|
|
407
|
+
<div class="metric-sub">< 20.0 mm Limit</div>
|
|
408
|
+
</div>
|
|
409
|
+
<div class="metric-card">
|
|
410
|
+
<div class="metric-label">Loop Closure</div>
|
|
411
|
+
<div class="metric-value">1:64,800</div>
|
|
412
|
+
<div class="metric-sub">Spec >= 1:25,000</div>
|
|
413
|
+
</div>
|
|
414
|
+
<div class="metric-card">
|
|
415
|
+
<div class="metric-label">Baseline Length</div>
|
|
416
|
+
<div class="metric-value">1,428.6 m</div>
|
|
417
|
+
<div class="metric-sub">Fixed RTK Dual-Freq</div>
|
|
418
|
+
</div>
|
|
419
|
+
<div class="metric-card">
|
|
420
|
+
<div class="metric-label">Confidence (2-Sigma)</div>
|
|
421
|
+
<div class="metric-value">95.4%</div>
|
|
422
|
+
<div class="metric-sub">Gaussian Normal Fit</div>
|
|
423
|
+
</div>
|
|
424
|
+
</div>
|
|
425
|
+
|
|
426
|
+
<div class="provenance-table-box">
|
|
427
|
+
<div class="table-caption">Sample Boundary Marker Observations</div>
|
|
428
|
+
<table>
|
|
429
|
+
<thead>
|
|
430
|
+
<tr>
|
|
431
|
+
<th>Marker</th>
|
|
432
|
+
<th>Easting (m)</th>
|
|
433
|
+
<th>Northing (m)</th>
|
|
434
|
+
<th>Residual</th>
|
|
435
|
+
<th>Status</th>
|
|
436
|
+
</tr>
|
|
437
|
+
</thead>
|
|
438
|
+
<tbody>
|
|
439
|
+
<tr>
|
|
440
|
+
<td>BM-01</td>
|
|
441
|
+
<td>664,210.142</td>
|
|
442
|
+
<td>1,532,490.812</td>
|
|
443
|
+
<td>+6.2 mm</td>
|
|
444
|
+
<td class="td-pass">PASS</td>
|
|
445
|
+
</tr>
|
|
446
|
+
<tr>
|
|
447
|
+
<td>BM-02</td>
|
|
448
|
+
<td>664,284.950</td>
|
|
449
|
+
<td>1,532,548.330</td>
|
|
450
|
+
<td>+11.8 mm</td>
|
|
451
|
+
<td class="td-pass">PASS</td>
|
|
452
|
+
</tr>
|
|
453
|
+
<tr>
|
|
454
|
+
<td>BM-03</td>
|
|
455
|
+
<td>664,342.115</td>
|
|
456
|
+
<td>1,532,412.008</td>
|
|
457
|
+
<td>-8.4 mm</td>
|
|
458
|
+
<td class="td-pass">PASS</td>
|
|
459
|
+
</tr>
|
|
460
|
+
<tr>
|
|
461
|
+
<td>BM-04</td>
|
|
462
|
+
<td>664,228.604</td>
|
|
463
|
+
<td>1,532,380.445</td>
|
|
464
|
+
<td>+4.1 mm</td>
|
|
465
|
+
<td class="td-pass">PASS</td>
|
|
466
|
+
</tr>
|
|
467
|
+
</tbody>
|
|
468
|
+
</table>
|
|
469
|
+
</div>
|
|
470
|
+
|
|
471
|
+
<!-- Interactive Action Bar -->
|
|
472
|
+
<div class="action-row">
|
|
473
|
+
<button type="button" id="toggleViewBtn" class="btn-action btn-primary">
|
|
474
|
+
Toggle Tolerance Mask
|
|
475
|
+
</button>
|
|
476
|
+
<button type="button" id="exportReportBtn" class="btn-action btn-secondary">
|
|
477
|
+
Inspect GeoJSON
|
|
478
|
+
</button>
|
|
479
|
+
</div>
|
|
480
|
+
</section>
|
|
481
|
+
</main>
|
|
482
|
+
</div>
|
|
483
|
+
|
|
484
|
+
<script>
|
|
485
|
+
const ctx = document.getElementById('residualChart').getContext('2d');
|
|
486
|
+
const markers = ['BM-01', 'BM-02', 'BM-03', 'BM-04', 'BM-05', 'BM-06', 'BM-07', 'BM-08', 'BM-09', 'BM-10', 'BM-11', 'BM-12', 'BM-13', 'BM-14'];
|
|
487
|
+
const residuals = [6.2, 11.8, -8.4, 4.1, 9.6, -12.4, 5.3, -3.8, 8.7, -7.1, 10.2, 3.4, -6.9, 8.1];
|
|
488
|
+
|
|
489
|
+
const chart = new Chart(ctx, {
|
|
490
|
+
type: 'bar',
|
|
491
|
+
data: {
|
|
492
|
+
labels: markers,
|
|
493
|
+
datasets: [
|
|
494
|
+
{
|
|
495
|
+
label: 'Observed Residual (mm)',
|
|
496
|
+
data: residuals,
|
|
497
|
+
backgroundColor: residuals.map(v => Math.abs(v) > 15 ? 'rgba(245, 158, 11, 0.7)' : 'rgba(0, 229, 255, 0.65)'),
|
|
498
|
+
borderColor: residuals.map(v => Math.abs(v) > 15 ? '#f59e0b' : '#00e5ff'),
|
|
499
|
+
borderWidth: 1,
|
|
500
|
+
borderRadius: 4
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
options: {
|
|
505
|
+
responsive: true,
|
|
506
|
+
maintainAspectRatio: false,
|
|
507
|
+
plugins: {
|
|
508
|
+
legend: {
|
|
509
|
+
display: false
|
|
510
|
+
},
|
|
511
|
+
tooltip: {
|
|
512
|
+
backgroundColor: '#111722',
|
|
513
|
+
titleColor: '#f1f5f9',
|
|
514
|
+
bodyColor: '#94a3b8',
|
|
515
|
+
borderColor: '#334155',
|
|
516
|
+
borderWidth: 1,
|
|
517
|
+
padding: 10,
|
|
518
|
+
displayColors: false,
|
|
519
|
+
callbacks: {
|
|
520
|
+
label: function(context) {
|
|
521
|
+
return 'Residual: ' + context.parsed.y + ' mm';
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
scales: {
|
|
527
|
+
x: {
|
|
528
|
+
grid: {
|
|
529
|
+
color: 'rgba(255, 255, 255, 0.04)'
|
|
530
|
+
},
|
|
531
|
+
ticks: {
|
|
532
|
+
color: '#64748b',
|
|
533
|
+
font: {
|
|
534
|
+
family: 'JetBrains Mono',
|
|
535
|
+
size: 10
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
y: {
|
|
540
|
+
min: -25,
|
|
541
|
+
max: 25,
|
|
542
|
+
grid: {
|
|
543
|
+
color: 'rgba(255, 255, 255, 0.05)'
|
|
544
|
+
},
|
|
545
|
+
ticks: {
|
|
546
|
+
color: '#64748b',
|
|
547
|
+
font: {
|
|
548
|
+
family: 'JetBrains Mono',
|
|
549
|
+
size: 10
|
|
550
|
+
},
|
|
551
|
+
stepSize: 10,
|
|
552
|
+
callback: function(value) {
|
|
553
|
+
return value + ' mm';
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
let maskActive = false;
|
|
562
|
+
document.getElementById('toggleViewBtn').addEventListener('click', function() {
|
|
563
|
+
maskActive = !maskActive;
|
|
564
|
+
this.textContent = maskActive ? 'Reset Tolerance Mask' : 'Toggle Tolerance Mask';
|
|
565
|
+
chart.data.datasets[0].backgroundColor = chart.data.datasets[0].data.map(v => {
|
|
566
|
+
if (!maskActive) return Math.abs(v) > 15 ? 'rgba(245, 158, 11, 0.7)' : 'rgba(0, 229, 255, 0.65)';
|
|
567
|
+
return Math.abs(v) <= 10 ? 'rgba(16, 185, 129, 0.75)' : 'rgba(0, 229, 255, 0.4)';
|
|
568
|
+
});
|
|
569
|
+
chart.update();
|
|
570
|
+
});
|
|
571
|
+
|
|
572
|
+
document.getElementById('exportReportBtn').addEventListener('click', function() {
|
|
573
|
+
alert('Cadastral Survey Provenance Record: 14/14 markers verified within standard error tolerance.');
|
|
574
|
+
});
|
|
575
|
+
</script>
|
|
576
|
+
</body>
|
|
577
|
+
</html>
|