Files
FreeCADWasmDev/web/manual/scenarios/ch06-measure-panels.json
wangdequan 300c8efb01 docs(web): full UI surface inventory, illustrated manual, panel screenshots
Interface design document and manual now share one authoritative surface
inventory (333 surfaces across 9 categories, gap 0), and every chapter carries
real Playwright screenshots of the panels it documents.

- tools/fcweb: ui-surface-scan/ui-surface-inventory (deterministic --check),
  build-ui-doc renders panel catalog, workbench matrix and mapping tables;
  blank toolbar crops (<1 KB) are skipped and pruned instead of embedded
- web/tools/manual: generate-panel-index (ch16), audit-ui-gaps,
  generate-final-status, generate-gaps-doc; pager is per-chapter so the manual
  no longer overflows horizontally
- manual: 130 screenshot references / 128 PNGs, panel sections for ch02-ch13
- web/src: utility menus stop click propagation (menu reopened on item click);
  workbench shell gains an OPFS document picker so workbench.html can bind a
  real document instead of the fixed workbench-document id; Sketcher panel
  moves from the command column to the main stage

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 01:30:31 +08:00

362 lines
6.9 KiB
JSON

{
"schema": "freecad-web-manual/scenario/v1",
"chapter": "ch06",
"workflow": "measure-inspection-panels",
"title": "测量与检查面板:质量属性、距离拾取、面积标注、按面外观与 Inspection",
"actions": [
{
"type": "goto",
"url": "/project.html"
},
{
"type": "waitFor",
"selector": "select[aria-label=\"Workbench\"]"
},
{
"type": "wait",
"ms": 1500
},
{
"type": "select",
"selector": "select[aria-label=\"Workbench\"]",
"label": "Inspection"
},
{
"type": "wait",
"ms": 2000
},
{
"type": "goto",
"url": "/workbench.html?module=Inspection&command=Inspection_VisualInspection"
},
{
"type": "waitFor",
"selector": "fieldset:has-text(\"Search distance\")",
"timeout": 120000
},
{
"type": "wait",
"ms": 2000
},
{
"type": "shot",
"name": "01-inspection-visual",
"selector": "fieldset:has-text(\"Search distance\")"
},
{
"type": "goto",
"url": "/project.html"
},
{
"type": "waitFor",
"selector": "select[aria-label=\"Workbench\"]"
},
{
"type": "wait",
"ms": 1500
},
{
"type": "click",
"selector": "nav[aria-label=\"Application menus\"] details",
"hasText": "File",
"target": ":scope > summary"
},
{
"type": "click",
"role": "button",
"name": "新建 Document",
"exact": true
},
{
"type": "wait",
"ms": 2500
},
{
"type": "eval",
"script": "for (const d of document.querySelectorAll('nav[aria-label=\"Application menus\"] details[open]')) d.open = false"
},
{
"type": "click",
"role": "button",
"name": "Cube",
"exact": true
},
{
"type": "wait",
"ms": 2000
},
{
"type": "fill",
"selector": "input[aria-label=\"Length\"]",
"value": 60
},
{
"type": "fill",
"selector": "input[aria-label=\"Width\"]",
"value": 40
},
{
"type": "fill",
"selector": "input[aria-label=\"Height\"]",
"value": 25
},
{
"type": "click",
"role": "button",
"name": "应用尺寸并重算",
"exact": true
},
{
"type": "wait",
"ms": 3000
},
{
"type": "click",
"role": "button",
"name": "Close task / Cancel",
"exact": true
},
{
"type": "wait",
"ms": 1200
},
{
"type": "click",
"selector": "span.fc-tree-text",
"hasText": "Cube"
},
{
"type": "wait",
"ms": 1000
},
{
"type": "click",
"role": "button",
"name": "Std_MassProperties — Mass properties",
"exact": true
},
{
"type": "wait",
"ms": 3000
},
{
"type": "click",
"role": "button",
"name": "Refresh",
"exact": true
},
{
"type": "wait",
"ms": 4000
},
{
"type": "shot",
"name": "02-mass-refresh",
"fullPage": true
},
{
"type": "click",
"role": "button",
"name": "Close / Cancel",
"exact": true
},
{
"type": "wait",
"ms": 1500
},
{
"type": "click",
"selector": "span.fc-tree-text",
"hasText": "Cube"
},
{
"type": "wait",
"ms": 1000
},
{
"type": "eval",
"script": "[...document.querySelectorAll('button')].find(x => x.textContent.trim() === 'Appearance per Face')?.click()"
},
{
"type": "wait",
"ms": 2500
},
{
"type": "select",
"selector": "select[aria-label=\"Face colors shape\"]",
"label": "Cube"
},
{
"type": "wait",
"ms": 600
},
{
"type": "click",
"selector": "input[aria-label=\"Select Face1\"]"
},
{
"type": "wait",
"ms": 500
},
{
"type": "fill",
"selector": "input[aria-label=\"Face1 color\"]",
"value": "#73c6d4"
},
{
"type": "wait",
"ms": 500
},
{
"type": "shot",
"name": "03-appearance-per-face",
"selector": "fieldset:has-text(\"Face selection\")"
},
{
"type": "click",
"role": "button",
"name": "Close task / Cancel",
"exact": true
},
{
"type": "wait",
"ms": 1500
},
{
"type": "click",
"selector": "span.fc-tree-text",
"hasText": "Cube"
},
{
"type": "wait",
"ms": 1000
},
{
"type": "click",
"role": "button",
"name": "Std_Measure — Measure",
"exact": true
},
{
"type": "wait",
"ms": 2500
},
{
"type": "select",
"selector": "section[aria-label=\"Measure task\"] label select",
"label": "Distance"
},
{
"type": "wait",
"ms": 600
},
{
"type": "select",
"selector": "select[aria-label=\"Measurement source 1\"]",
"label": "Cube"
},
{
"type": "wait",
"ms": 600
},
{
"type": "select",
"selector": "select[aria-label=\"Measurement subelement 1\"]",
"label": "Face1"
},
{
"type": "wait",
"ms": 600
},
{
"type": "click",
"role": "button",
"name": "Add source",
"exact": true
},
{
"type": "wait",
"ms": 700
},
{
"type": "select",
"selector": "select[aria-label=\"Measurement source 2\"]",
"label": "Cube"
},
{
"type": "wait",
"ms": 600
},
{
"type": "select",
"selector": "select[aria-label=\"Measurement subelement 2\"]",
"label": "Face2"
},
{
"type": "wait",
"ms": 600
},
{
"type": "shot",
"name": "04-measure-distance",
"selector": "section[aria-label=\"Measure task\"]"
},
{
"type": "select",
"selector": "section[aria-label=\"Measure task\"] label select",
"label": "Area"
},
{
"type": "wait",
"ms": 800
},
{
"type": "select",
"selector": "select[aria-label=\"Measurement source 1\"]",
"label": "Cube"
},
{
"type": "wait",
"ms": 500
},
{
"type": "select",
"selector": "select[aria-label=\"Measurement subelement 1\"]",
"label": "Face1"
},
{
"type": "wait",
"ms": 3000
},
{
"type": "click",
"role": "button",
"name": "Preview",
"exact": true
},
{
"type": "wait",
"ms": 2000
},
{
"type": "shot",
"name": "05-measure-area",
"selector": "section[aria-label=\"Measure task\"]"
},
{
"type": "click",
"role": "button",
"name": "Annotate",
"exact": true
},
{
"type": "wait",
"ms": 3000
},
{
"type": "shot",
"name": "06-measure-appearance",
"selector": "fieldset:has-text(\"Selected measurement appearance\")"
}
]
}