Replace approximate recipes with 27 source-matched component layouts
wiki CI and deployment / verify-and-deploy (push) Successful in 16m40s
|
After Width: | Height: | Size: 243 B |
|
After Width: | Height: | Size: 231 B |
|
After Width: | Height: | Size: 193 B |
|
After Width: | Height: | Size: 298 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 175 B |
|
After Width: | Height: | Size: 965 B |
|
After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 758 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 189 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 715 B |
|
After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 13 KiB |
@@ -0,0 +1,17 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>ref-03 · 左上标题与右下错位图</title><style>body{margin:0;padding:20px;background:#e8e8e3;color:#222;font:15px/1.7 system-ui}main{display:grid;grid-template-columns:minmax(280px,560px) minmax(280px,1fr);gap:24px;max-width:1250px;margin:auto}.canvas{position:relative;isolation:isolate;aspect-ratio:114/173;background:#f4f3ee}.canvas img{position:absolute;display:block}.canvas .base{inset:0;width:100%;height:100%}.overlay{position:absolute;z-index:10;pointer-events:none;inset:0;width:100%;height:100%;display:none}label{display:inline-flex;gap:5px;margin-right:16px}button,a{color:#244f9d}table{width:100%;border-collapse:collapse}td,th{padding:7px;border-bottom:1px solid #bbb;text-align:left;font-size:13px}.muted{color:#666}#detail{padding:12px;background:#fff}tr{cursor:pointer}tr:focus,tr:hover{background:#fff}fieldset{border:1px solid #aaa;margin:0 0 16px}.canvas img[data-kind="text"]{z-index:3}.canvas img[data-kind="decoration"]{z-index:2}.canvas img[data-kind="image"]{z-index:1}@media(max-width:800px){main{display:block}.canvas{max-width:560px;margin:auto}aside{margin-top:24px}}</style></head><body><main><section><h1>ref-03 / 左上标题与右下错位图</h1><div class="canvas" aria-label="按独立图层重建的原版面"><img class="base" src="/layout-reference/ref-03/background.png" alt="原图纸底与画框">
|
||||
<img data-component="ref-03/T01" data-kind="text" src="/layout-reference/ref-03/T01.png" alt="蓝羽毛" style="left:0%;top:0%;width:39.473684210526315%;height:11.560693641618498%">
|
||||
<img data-component="ref-03/T02" data-kind="text" src="/layout-reference/ref-03/T02.png" alt="右上说明(未辨识原字形)" style="left:70.17543859649122%;top:12.716763005780345%;width:25.438596491228072%;height:13.294797687861271%">
|
||||
<img data-component="ref-03/T03" data-kind="text" src="/layout-reference/ref-03/T03.png" alt="01" style="left:87.71929824561403%;top:27.74566473988439%;width:7.017543859649122%;height:4.046242774566474%">
|
||||
<img data-component="ref-03/T04" data-kind="text" src="/layout-reference/ref-03/T04.png" alt="左下信息两列(未辨识原字形)" style="left:3.508771929824561%;top:68.20809248554913%;width:32.45614035087719%;height:19.07514450867052%">
|
||||
<img data-component="ref-03/I01" data-kind="image" src="/layout-reference/ref-03/I01.png" alt="" style="left:3.508771929824561%;top:12.716763005780345%;width:65.78947368421053%;height:47.398843930635834%">
|
||||
<img data-component="ref-03/I02" data-kind="image" src="/layout-reference/ref-03/I02.png" alt="" style="left:39.473684210526315%;top:61.849710982658955%;width:55.26315789473685%;height:27.74566473988439%">
|
||||
<img data-component="ref-03/D01" data-kind="decoration" src="/layout-reference/ref-03/D01.png" alt="" style="left:70.17543859649122%;top:28.32369942196532%;width:15.789473684210526%;height:3.4682080924855487%">
|
||||
<img data-component="ref-03/D02" data-kind="decoration" src="/layout-reference/ref-03/D02.png" alt="" style="left:21.052631578947366%;top:94.79768786127167%;width:11.403508771929824%;height:2.312138728323699%">
|
||||
<img data-component="ref-03/D03" data-kind="decoration" src="/layout-reference/ref-03/D03.png" alt="" style="left:69.2982456140351%;top:94.21965317919076%;width:14.035087719298245%;height:2.8901734104046244%">
|
||||
<img class="overlay" src="/layout-reference/ref-03/annotated.png" alt="构件标注"></div><p class="muted">原图第 1 行、第 4 列;114×173 像素。显示为原始构件重组,无新生成图形。放大不增加细节。</p></section><aside><fieldset><legend>按类型检查</legend><label><input type="checkbox" data-toggle="text" checked>文字 T</label><label><input type="checkbox" data-toggle="image" checked>图片/色块 I</label><label><input type="checkbox" data-toggle="decoration" checked>装饰 D</label><label><input id="labels" type="checkbox">显示边界</label></fieldset><p id="detail">点击表格查看对应构件。蓝色 T 为文字、橙色 I 为图片占位/色块、绿色 D 为装饰;原图没有真实照片。</p><table><thead><tr><th>ID</th><th>分类与用途</th><th>文字内容</th></tr></thead><tbody><tr tabindex="0" data-key="T01"><td>T01</td><td>文字 / 主标题</td><td>蓝羽毛</td></tr><tr tabindex="0" data-key="T02"><td>T02</td><td>文字 / 右上说明</td><td>待核对,保留原字形</td></tr><tr tabindex="0" data-key="T03"><td>T03</td><td>文字 / 编号</td><td>01</td></tr><tr tabindex="0" data-key="T04"><td>T04</td><td>文字 / 左下信息两列</td><td>待核对,保留原字形</td></tr><tr tabindex="0" data-key="I01"><td>I01</td><td>图片占位/色块 / 左上主图</td><td>—</td></tr><tr tabindex="0" data-key="I02"><td>I02</td><td>图片占位/色块 / 右下副图</td><td>—</td></tr><tr tabindex="0" data-key="D01"><td>D01</td><td>装饰 / 斜引线</td><td>—</td></tr><tr tabindex="0" data-key="D02"><td>D02</td><td>装饰 / 底部左短线</td><td>—</td></tr><tr tabindex="0" data-key="D03"><td>D03</td><td>装饰 / 底部右短线</td><td>—</td></tr></tbody></table><p><a href="/layout-reference/ref-03/manifest.json">构件 JSON</a> · <a href="/layout-reference/ref-03/source.png">原裁片</a> · <a href="/layout-reference/ref-03/annotated.png">标注图</a> · <a href="/layout-reference/index.html">27 张索引</a></p><p class="muted">修改文字会产生字体差异;替换图片会改变视觉内容。严格原图对应模式保持原字形与原颜色。构件坐标、方向与所属版面固定。</p></aside></main><script>
|
||||
const manifest={"id":"ref-03","name":"左上标题与右下错位图","source":{"url":"/layout-reference/source.png","sha256":"121ab8a362c45eee86281ca5dfbbe33577cfcd255579a16c3542530484b9f1dc","box":[376,46,114,173],"row":1,"column":4},"width":114,"height":173,"reference":"/layout-reference/ref-03/source.png","annotated":"/layout-reference/ref-03/annotated.png","background":"/layout-reference/ref-03/background.png","elements":[{"id":"T01","kind":"text","role":"主标题","box":[0,0,45,20],"text":"蓝羽毛","direction":"horizontal","reading":"verified","asset":"/layout-reference/ref-03/T01.png","pixels":372,"underlay":"/layout-reference/ref-03/T01-underlay.png"},{"id":"T02","kind":"text","role":"右上说明","box":[80,22,29,23],"text":null,"direction":"horizontal","reading":"unreadable","asset":"/layout-reference/ref-03/T02.png","pixels":359,"underlay":"/layout-reference/ref-03/T02-underlay.png"},{"id":"T03","kind":"text","role":"编号","box":[100,48,8,7],"text":"01","direction":"horizontal","reading":"verified","asset":"/layout-reference/ref-03/T03.png","pixels":39,"underlay":"/layout-reference/ref-03/T03-underlay.png"},{"id":"T04","kind":"text","role":"左下信息两列","box":[4,118,37,33],"text":null,"direction":"horizontal","reading":"unreadable","asset":"/layout-reference/ref-03/T04.png","pixels":353,"underlay":"/layout-reference/ref-03/T04-underlay.png"},{"id":"I01","kind":"image","role":"左上主图","box":[4,22,75,82],"text":null,"direction":"horizontal","reading":"not-text","asset":"/layout-reference/ref-03/I01.png","pixels":6006,"mask":"/layout-reference/ref-03/I01-mask.png"},{"id":"I02","kind":"image","role":"右下副图","box":[45,107,63,48],"text":null,"direction":"horizontal","reading":"not-text","asset":"/layout-reference/ref-03/I02.png","pixels":3004,"mask":"/layout-reference/ref-03/I02-mask.png"},{"id":"D01","kind":"decoration","role":"斜引线","box":[80,49,18,6],"text":null,"direction":"horizontal","reading":"not-text","asset":"/layout-reference/ref-03/D01.png","pixels":38},{"id":"D02","kind":"decoration","role":"底部左短线","box":[24,164,13,4],"text":null,"direction":"horizontal","reading":"not-text","asset":"/layout-reference/ref-03/D02.png","pixels":52},{"id":"D03","kind":"decoration","role":"底部右短线","box":[79,163,16,5],"text":null,"direction":"horizontal","reading":"not-text","asset":"/layout-reference/ref-03/D03.png","pixels":65}],"ocr":[{"box":[0.0221329192553819,0.02865017716183693,0.3329271461531433,0.08913510199456776],"confidence":0.5,"text":"蓝羽毛"}],"verification":{"pixelIdentical":true,"pixels":19722,"unreadableText":2}};
|
||||
for(const input of document.querySelectorAll('[data-toggle]'))input.addEventListener('change',()=>{for(const el of document.querySelectorAll('[data-kind="'+input.dataset.toggle+'"]'))el.style.visibility=input.checked?'visible':'hidden'});
|
||||
document.getElementById('labels').addEventListener('change',event=>{document.querySelector('.overlay').style.display=event.target.checked?'block':'none'});
|
||||
for(const row of document.querySelectorAll('[data-key]')){const select=()=>{const e=manifest.elements.find(e=>e.id===row.dataset.key);for(const el of document.querySelectorAll('[data-component]'))el.style.outline=el.dataset.component.endsWith('/'+e.id)?'2px solid #ed4433':'';document.getElementById('detail').textContent=manifest.id+'/'+e.id+' · '+e.kind+' · '+e.role+' · bbox ['+e.box.join(', ')+']'+(e.kind==='text'?' · '+(e.text||'内容未辨识,保留原字形'):'')};row.addEventListener('click',select);row.addEventListener('keydown',event=>{if(event.key==='Enter'||event.key===' '){event.preventDefault();select()}})}
|
||||
</script></body></html>
|
||||
@@ -0,0 +1,190 @@
|
||||
{
|
||||
"id": "ref-03",
|
||||
"name": "左上标题与右下错位图",
|
||||
"source": {
|
||||
"url": "/layout-reference/source.png",
|
||||
"sha256": "121ab8a362c45eee86281ca5dfbbe33577cfcd255579a16c3542530484b9f1dc",
|
||||
"box": [
|
||||
376,
|
||||
46,
|
||||
114,
|
||||
173
|
||||
],
|
||||
"row": 1,
|
||||
"column": 4
|
||||
},
|
||||
"width": 114,
|
||||
"height": 173,
|
||||
"reference": "/layout-reference/ref-03/source.png",
|
||||
"annotated": "/layout-reference/ref-03/annotated.png",
|
||||
"background": "/layout-reference/ref-03/background.png",
|
||||
"elements": [
|
||||
{
|
||||
"id": "T01",
|
||||
"kind": "text",
|
||||
"role": "主标题",
|
||||
"box": [
|
||||
0,
|
||||
0,
|
||||
45,
|
||||
20
|
||||
],
|
||||
"text": "蓝羽毛",
|
||||
"direction": "horizontal",
|
||||
"reading": "verified",
|
||||
"asset": "/layout-reference/ref-03/T01.png",
|
||||
"pixels": 372,
|
||||
"underlay": "/layout-reference/ref-03/T01-underlay.png"
|
||||
},
|
||||
{
|
||||
"id": "T02",
|
||||
"kind": "text",
|
||||
"role": "右上说明",
|
||||
"box": [
|
||||
80,
|
||||
22,
|
||||
29,
|
||||
23
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "unreadable",
|
||||
"asset": "/layout-reference/ref-03/T02.png",
|
||||
"pixels": 359,
|
||||
"underlay": "/layout-reference/ref-03/T02-underlay.png"
|
||||
},
|
||||
{
|
||||
"id": "T03",
|
||||
"kind": "text",
|
||||
"role": "编号",
|
||||
"box": [
|
||||
100,
|
||||
48,
|
||||
8,
|
||||
7
|
||||
],
|
||||
"text": "01",
|
||||
"direction": "horizontal",
|
||||
"reading": "verified",
|
||||
"asset": "/layout-reference/ref-03/T03.png",
|
||||
"pixels": 39,
|
||||
"underlay": "/layout-reference/ref-03/T03-underlay.png"
|
||||
},
|
||||
{
|
||||
"id": "T04",
|
||||
"kind": "text",
|
||||
"role": "左下信息两列",
|
||||
"box": [
|
||||
4,
|
||||
118,
|
||||
37,
|
||||
33
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "unreadable",
|
||||
"asset": "/layout-reference/ref-03/T04.png",
|
||||
"pixels": 353,
|
||||
"underlay": "/layout-reference/ref-03/T04-underlay.png"
|
||||
},
|
||||
{
|
||||
"id": "I01",
|
||||
"kind": "image",
|
||||
"role": "左上主图",
|
||||
"box": [
|
||||
4,
|
||||
22,
|
||||
75,
|
||||
82
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "not-text",
|
||||
"asset": "/layout-reference/ref-03/I01.png",
|
||||
"pixels": 6006,
|
||||
"mask": "/layout-reference/ref-03/I01-mask.png"
|
||||
},
|
||||
{
|
||||
"id": "I02",
|
||||
"kind": "image",
|
||||
"role": "右下副图",
|
||||
"box": [
|
||||
45,
|
||||
107,
|
||||
63,
|
||||
48
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "not-text",
|
||||
"asset": "/layout-reference/ref-03/I02.png",
|
||||
"pixels": 3004,
|
||||
"mask": "/layout-reference/ref-03/I02-mask.png"
|
||||
},
|
||||
{
|
||||
"id": "D01",
|
||||
"kind": "decoration",
|
||||
"role": "斜引线",
|
||||
"box": [
|
||||
80,
|
||||
49,
|
||||
18,
|
||||
6
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "not-text",
|
||||
"asset": "/layout-reference/ref-03/D01.png",
|
||||
"pixels": 38
|
||||
},
|
||||
{
|
||||
"id": "D02",
|
||||
"kind": "decoration",
|
||||
"role": "底部左短线",
|
||||
"box": [
|
||||
24,
|
||||
164,
|
||||
13,
|
||||
4
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "not-text",
|
||||
"asset": "/layout-reference/ref-03/D02.png",
|
||||
"pixels": 52
|
||||
},
|
||||
{
|
||||
"id": "D03",
|
||||
"kind": "decoration",
|
||||
"role": "底部右短线",
|
||||
"box": [
|
||||
79,
|
||||
163,
|
||||
16,
|
||||
5
|
||||
],
|
||||
"text": null,
|
||||
"direction": "horizontal",
|
||||
"reading": "not-text",
|
||||
"asset": "/layout-reference/ref-03/D03.png",
|
||||
"pixels": 65
|
||||
}
|
||||
],
|
||||
"ocr": [
|
||||
{
|
||||
"box": [
|
||||
0.0221329192553819,
|
||||
0.02865017716183693,
|
||||
0.3329271461531433,
|
||||
0.08913510199456776
|
||||
],
|
||||
"confidence": 0.5,
|
||||
"text": "蓝羽毛"
|
||||
}
|
||||
],
|
||||
"verification": {
|
||||
"pixelIdentical": true,
|
||||
"pixels": 19722,
|
||||
"unreadableText": 2
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 7.7 KiB |