Files
OneCAD/crates/ui-egui/tests/scenarios/s19_canvas_calibrate.json
T
62847173f4 Honor design units in sketch dimensions and measurements (#241)
* Honor design units in sketch dimensions and measurements

* fix: apply document units to specialized length controls

* Accept explicit units in length fields; document design-unit dimension values

Length fields in a design-unit control now evaluate what is typed as a
length expression: a bare number stays in the design's units, while an
explicit unit ("10 mm", "0.5 in", "1 in + 5 mm") is converted.
Document that a bare numeric sketch.dimension value from scripts, the
control channel or MCP is read in the design's units.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT

---------

Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:08:11 -04:00

72 lines
699 B
JSON

[
{
"make_image": "pic.png"
},
{
"choose_file": "pic.png"
},
{
"start": "canvas.insert"
},
{
"click": {
"plane": "XY"
}
},
{
"key": "Escape"
},
{
"expect": {
"canvas_width": [
100,
0.5
]
}
},
{
"call": "ui.menu",
"params": {
"x": 100,
"y": 260,
"target": {
"type": "canvas",
"id": 1
}
}
},
{
"call": "ui.menuPick",
"params": {
"item": "Calibrate"
}
},
{
"widget": "100.00 mm",
"near": "Distance"
},
{
"key": "A",
"cmd": true
},
{
"text": "50"
},
{
"key": "Enter"
},
{
"widget": "Calibrate"
},
{
"expect": {
"canvas_width": [
50,
0.01
]
}
},
{
"shot": "s19_canvas"
}
]