Add Sketcher chapter with coordinate-driven rectangle capture

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-11-13 11:49:49 +08:00
parent 6a7efb5432
commit 3d3afc129f
24 changed files with 669 additions and 14 deletions

View File

@@ -0,0 +1,193 @@
{
"schema": "freecad-web-manual/capture/v1",
"generatedAt": "2026-11-13T03:49:00.803Z",
"chapter": "ch03",
"workflow": "sketch-rectangle",
"scenario": "manual/scenarios/ch03-sketcher.json",
"origin": "http://127.0.0.1:5181",
"ok": true,
"trace": [
{
"at": "2026-11-13T03:48:43.851Z",
"action": "goto",
"url": "/project.html?workbench=Part"
},
{
"at": "2026-11-13T03:48:45.223Z",
"action": "waitFor",
"selector": "select[aria-label=\"Workbench\"]",
"text": null
},
{
"at": "2026-11-13T03:48:46.872Z",
"action": "click",
"selector": "nav[aria-label=\"Application menus\"] details"
},
{
"at": "2026-11-13T03:48:47.167Z",
"action": "click",
"selector": "新建 Document"
},
{
"at": "2026-11-13T03:48:49.170Z",
"action": "eval"
},
{
"at": "2026-11-13T03:48:49.172Z",
"action": "eval"
},
{
"at": "2026-11-13T03:48:50.543Z",
"action": "click",
"selector": "button[data-command=\"Sketcher_NewSketch\"]"
},
{
"at": "2026-11-13T03:48:51.560Z",
"action": "fill",
"selector": "fieldset:has-text(\"New Sketch\") input",
"value": "ManualSketch"
},
{
"at": "2026-11-13T03:48:51.569Z",
"action": "select",
"selector": "fieldset:has-text(\"New Sketch\") select >> nth=1",
"label": "XY"
},
{
"at": "2026-11-13T03:48:51.792Z",
"action": "shot",
"name": "01-new-sketch",
"bytes": 180723
},
{
"at": "2026-11-13T03:48:51.881Z",
"action": "click",
"selector": "fieldset:has-text(\"New Sketch\") button:has-text(\"OK\")"
},
{
"at": "2026-11-13T03:48:54.818Z",
"action": "shot",
"name": "02-sketch-editor",
"bytes": 357609
},
{
"at": "2026-11-13T03:48:54.933Z",
"action": "click",
"selector": "Rectangle"
},
{
"at": "2026-11-13T03:48:55.342Z",
"action": "fill",
"selector": "input[aria-label=\"Point 1 X\"]",
"value": 0
},
{
"at": "2026-11-13T03:48:55.370Z",
"action": "fill",
"selector": "input[aria-label=\"Point 1 Y\"]",
"value": 0
},
{
"at": "2026-11-13T03:48:55.386Z",
"action": "fill",
"selector": "input[aria-label=\"Point 2 X\"]",
"value": 60
},
{
"at": "2026-11-13T03:48:55.399Z",
"action": "fill",
"selector": "input[aria-label=\"Point 2 Y\"]",
"value": 40
},
{
"at": "2026-11-13T03:48:55.456Z",
"action": "click",
"selector": "Apply sketch tool"
},
{
"at": "2026-11-13T03:48:57.063Z",
"action": "assertAnyText",
"selector": "p[role=\"status\"]",
"contains": "4 geometries"
},
{
"at": "2026-11-13T03:48:57.245Z",
"action": "shot",
"name": "03-rectangle",
"bytes": 131052
},
{
"at": "2026-11-13T03:48:57.328Z",
"action": "click",
"selector": "Constraint virtual spaces"
},
{
"at": "2026-11-13T03:48:58.399Z",
"action": "shot",
"name": "05-constraint-space",
"bytes": 130940
},
{
"at": "2026-11-13T03:48:58.524Z",
"action": "click",
"selector": "Close sketch"
},
{
"at": "2026-11-13T03:48:59.578Z",
"action": "shot",
"name": "06-closed",
"bytes": 189153
},
{
"at": "2026-11-13T03:49:00.803Z",
"action": "save",
"name": "web_project_document_3.FCStd",
"bytes": 3321,
"status": "Saved web_project_document_3.FCStd to OPFS (3321 bytes)"
}
],
"shots": [
{
"id": "ch03/sketch-rectangle/01-new-sketch",
"file": "manual/assets/ch03/sketch-rectangle/01-new-sketch.png",
"bytes": 180723,
"sha256": "2d02c81da960ad62363feac743616bf7e50b7a6b371d81fc6492203a6fbda783",
"fullPage": true,
"selector": null
},
{
"id": "ch03/sketch-rectangle/02-sketch-editor",
"file": "manual/assets/ch03/sketch-rectangle/02-sketch-editor.png",
"bytes": 357609,
"sha256": "2da325dcfa52f02ad2656864ba2802a2f122599575d385b0219641c4ca7e2f34",
"fullPage": true,
"selector": null
},
{
"id": "ch03/sketch-rectangle/03-rectangle",
"file": "manual/assets/ch03/sketch-rectangle/03-rectangle.png",
"bytes": 131052,
"sha256": "4e90188a9d943be970880a98f7d3bbab0b78dce7a195c4f15c234f6c1b29833d",
"fullPage": false,
"selector": "fieldset:has-text(\"ManualSketch drawing\")"
},
{
"id": "ch03/sketch-rectangle/05-constraint-space",
"file": "manual/assets/ch03/sketch-rectangle/05-constraint-space.png",
"bytes": 130940,
"sha256": "db1381873ab43d74c9c1dc2e823e4a0c79005ae1b7dce1ebdb1888e61e9a3505",
"fullPage": false,
"selector": "fieldset:has-text(\"ManualSketch drawing\")"
},
{
"id": "ch03/sketch-rectangle/06-closed",
"file": "manual/assets/ch03/sketch-rectangle/06-closed.png",
"bytes": 189153,
"sha256": "219a84d4fb9fc3bb01dcc93edee04d7a8614b28a4867ed126750c0e03ba2a21e",
"fullPage": true,
"selector": null
}
],
"pageErrors": [],
"consoleErrors": []
}

View File

@@ -1,6 +1,6 @@
{
"schema": "freecad-web-manual/page-check/v1",
"generatedAt": "2026-11-13T03:22:53.181Z",
"generatedAt": "2026-11-13T03:49:30.571Z",
"url": "http://127.0.0.1:5190/manual.html",
"viewports": [
{
@@ -12,13 +12,13 @@
"errors": [],
"failed": [],
"searchHits": 4,
"chapters": 2,
"sections": 19,
"images": 10,
"chapters": 3,
"sections": 29,
"images": 13,
"brokenImages": [],
"commandRows": 1602,
"overflow": 0,
"searchSize": 1623
"searchSize": 1634
},
{
"viewport": {
@@ -29,13 +29,13 @@
"errors": [],
"failed": [],
"searchHits": 4,
"chapters": 2,
"sections": 19,
"images": 10,
"chapters": 3,
"sections": 29,
"images": 13,
"brokenImages": [],
"commandRows": 1602,
"overflow": 0,
"searchSize": 1623
"searchSize": 1634
}
],
"ok": true