Move the sketch editor onto the stage and align the manual's data
The sketch drawing panel was mounted in the properties aside, about 300px
wide, so its dozen or so groups needed a long scroll. Render it under the
3D viewport in the stage instead and lay its commands out as a
width-driven grid: three columns at 1440px, one on narrow screens. The
panel keeps the same DOM, so every existing selector, the Escape
handling and the 4-geometries assertion still hold; tsc --noEmit passes
and ch03 was re-captured headed with no page or console errors.
Point final-status.json and the manual gaps document at the current
figures: 31 modules, 1575 command rows, 64 screenshots and 11 boundaries.
Fix the generator rather than the output, so the next run cannot regress:
drop b-openscad-recompile while the workbench is removed, add the five
boundaries measured in the last pass, and record the layout change and
the two-shell split in the notes.
Update continuationNotes.md to the pushed state: 7d9cf3a5 is on
web-desktop-parity-20261113 and matches local HEAD.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1784,6 +1784,15 @@ function App() {
|
||||
.desktop-workspace .layout{grid-template-columns:var(--tree-width) 5px var(--property-width) 5px minmax(0,1fr);min-height:calc(100vh - 160px)}
|
||||
.desktop-workspace .layout>aside[aria-label="Model tree"]{grid-column:1;grid-row:1}.desktop-workspace .layout>aside.properties{grid-column:3;grid-row:1;border-left:0;border-right:1px solid var(--fc-border)}.desktop-workspace .layout>main.stage{grid-column:5;grid-row:1}.desktop-workspace .layout>.panel-separator[aria-label="Resize tree panel"]{grid-column:2;grid-row:1}.desktop-workspace .layout>.panel-separator[aria-label="Resize properties panel"]{grid-column:4;grid-row:1}
|
||||
.desktop-workspace .layout>aside[aria-label="Model tree"],.desktop-workspace .layout>aside.properties{border:1px solid var(--fc-border);padding-top:0}.desktop-workspace .layout>aside[aria-label="Model tree"]>h2,.desktop-workspace .layout>aside.properties>h2{margin:0 -18px 12px;padding:3px 18px;text-align:center;font-size:14px;line-height:1.3;font-weight:700;background:linear-gradient(to bottom,var(--fc-panel),var(--fc-primary));border-bottom:1px solid var(--fc-border)}
|
||||
.stage-sketch-task{margin-top:12px;border:1px solid var(--fc-border);background:var(--fc-primary);padding:10px 12px;max-height:60vh;overflow:auto}
|
||||
.stage-sketch-task .task-panel>fieldset:first-of-type{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:6px 18px;align-items:start}
|
||||
.stage-sketch-task .task-panel>fieldset{min-width:0;border:1px solid var(--fc-border);padding:10px 12px;margin:10px 0}
|
||||
.stage-sketch-task .task-panel>fieldset>legend{font-weight:700;color:var(--fc-text);padding:0 6px}
|
||||
.stage-sketch-task fieldset[aria-label="Sketch drawing"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:6px 18px;align-items:start}
|
||||
.stage-sketch-task fieldset[aria-label="Sketch drawing"]>legend,.stage-sketch-task fieldset[aria-label="Sketch drawing"]>p,.stage-sketch-task fieldset[aria-label="Sketch drawing"]>style{grid-column:1/-1}
|
||||
.stage-sketch-task label{margin:4px 0}
|
||||
.stage-sketch-task input:not([type=checkbox]),.stage-sketch-task select{max-width:100%;box-sizing:border-box}
|
||||
@media(max-width:900px){.stage-sketch-task{max-height:none}}
|
||||
.embedded-design-tasks{min-width:0}.embedded-design-tasks fieldset{min-width:0;margin:12px 0}.embedded-design-tasks label{display:block;margin:6px 0}.embedded-design-tasks input,.embedded-design-tasks select{max-width:100%;box-sizing:border-box}.embedded-design-tasks .segmented,.embedded-design-tasks .actions,.embedded-design-tasks .coordinates{display:flex;flex-wrap:wrap;gap:5px}.embedded-design-tasks .icon-button{padding:5px}.embedded-design-tasks .coordinates input{width:70px}.embedded-design-tasks .property-link-list{list-style:none;margin:6px 0;padding:0}.embedded-design-tasks .property-link-row{display:flex;align-items:center;gap:1px;min-width:0;min-height:22px;border:1px solid var(--fc-border);background:var(--fc-primary);border-radius:3px}.embedded-design-tasks .property-link-summary{flex:1;min-width:0;margin:0;padding:2px 4px;border:0;background:transparent;color:#0095ff;font:inherit;text-align:left;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.embedded-design-tasks .property-link-summary:hover,.embedded-design-tasks .property-link-summary:focus-visible{background:var(--fc-accent-hover);outline:1px solid var(--fc-accent);outline-offset:-1px}.embedded-design-tasks .property-link-button{width:20px;height:20px;flex:none;margin:0;padding:0;border:0;border-left:1px solid var(--fc-border);border-radius:0;background:linear-gradient(to bottom,var(--fc-panel),var(--fc-primary));color:var(--fc-text);line-height:1;cursor:pointer}.embedded-design-tasks .property-link-button:hover,.embedded-design-tasks .property-link-button:focus-visible{background:var(--fc-accent-hover);border-color:var(--fc-accent);outline:1px solid var(--fc-accent);outline-offset:-1px}.embedded-design-tasks .property-link-remove{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;margin:0;padding:2px;border:0;background:transparent;color:var(--fc-text);cursor:pointer}.embedded-design-tasks .property-link-remove:hover,.embedded-design-tasks .property-link-remove:focus-visible{background:var(--fc-accent-hover);color:var(--fc-accent);outline:1px solid var(--fc-accent);outline-offset:-1px}.embedded-design-tasks .property-link-remove svg{width:14px;height:14px}
|
||||
:root{--fc-primary:#191919;--fc-panel:#2b2b2b;--fc-menu:#101010;--fc-border:#3f3f3f;--fc-border-hover:#575757;--fc-text:#fff;--fc-disabled:#858585;--fc-accent:#66c7d5;--fc-accent-bg:#304b52;--fc-accent-hover:color-mix(in srgb,#323232 70%,var(--fc-accent) 30%);--fc-tab-inactive:#171717;--fc-tab-active:#191919}
|
||||
.desktop-workspace{background:var(--fc-primary);color:var(--fc-text)}.desktop-workspace .top,.desktop-workspace .workbench-toolbar,.desktop-workspace .document-tabs,.desktop-workspace aside{background:var(--fc-primary);border-color:var(--fc-border)}
|
||||
@@ -2074,6 +2083,25 @@ function App() {
|
||||
}} />
|
||||
</>}
|
||||
<div ref={viewportRef} style={testDocuments.current.has(active) || isExternalWorkbench(workbench) ? { display: "none" } : undefined} className="viewport" aria-label="Imported native 3D view" />
|
||||
{workbench === "Part" && active && workspaceTask === "sketcher-new-sketch" && <div className="stage-sketch-task">
|
||||
<PartNewSketchTask
|
||||
key={active} documentId={nativeName(active)} snapshot={partSnapshots[active]} selected={compoundSelection}
|
||||
onClose={cancelWorkspaceTask} onBusy={setImporting} onError={setStatus}
|
||||
request={async (command, args) => {
|
||||
const id = active;
|
||||
if (!nativeDocuments.current.has(id)) await nativeRequest(id, "create");
|
||||
const result = await nativeRequest(id, "sketcherCommand", { sketcher: { command, args } });
|
||||
const changed = command === "Sketcher_NewSketch" || result.sketcher?.interaction?.committed === true
|
||||
|| !["Sketcher_EditSketch", "Sketcher_LeaveSketch", "Sketcher_Snap", "Sketcher_StopOperation", "Sketcher_Grid"].includes(command)
|
||||
&& args.action !== "read" && args.phase !== "begin" && args.phase !== "preview";
|
||||
applyNativeDocument(id, result, changed);
|
||||
if (result.createdObject) {
|
||||
setSelectedObjects(previous => ({ ...previous, [id]: `native:${result.createdObject}` }));
|
||||
setCompoundSelections(previous => ({ ...previous, [id]: [result.createdObject!] }));
|
||||
}
|
||||
return result;
|
||||
}} />
|
||||
</div>}
|
||||
{isExternalWorkbench(workbench) && <WorkbenchFrame workbench={workbench} />}
|
||||
<div className="viewport-transform-bar" role="toolbar" aria-label="Object transform">
|
||||
{([["translate", "移动"], ["rotate", "旋转"], ["off", "关闭"]] as const).map(([mode, label]) => (
|
||||
@@ -2382,23 +2410,6 @@ function App() {
|
||||
onSelection: name => setSelectedObjects(previous => ({ ...previous, [active]: name ? `native:${name}` : null })),
|
||||
onBusy: setImporting, onStatus: setStatus,
|
||||
}} />}
|
||||
{workbench === "Part" && active && workspaceTask === "sketcher-new-sketch" && <PartNewSketchTask
|
||||
key={active} documentId={nativeName(active)} snapshot={partSnapshots[active]} selected={compoundSelection}
|
||||
onClose={cancelWorkspaceTask} onBusy={setImporting} onError={setStatus}
|
||||
request={async (command, args) => {
|
||||
const id = active;
|
||||
if (!nativeDocuments.current.has(id)) await nativeRequest(id, "create");
|
||||
const result = await nativeRequest(id, "sketcherCommand", { sketcher: { command, args } });
|
||||
const changed = command === "Sketcher_NewSketch" || result.sketcher?.interaction?.committed === true
|
||||
|| !["Sketcher_EditSketch", "Sketcher_LeaveSketch", "Sketcher_Snap", "Sketcher_StopOperation", "Sketcher_Grid"].includes(command)
|
||||
&& args.action !== "read" && args.phase !== "begin" && args.phase !== "preview";
|
||||
applyNativeDocument(id, result, changed);
|
||||
if (result.createdObject) {
|
||||
setSelectedObjects(previous => ({ ...previous, [id]: `native:${result.createdObject}` }));
|
||||
setCompoundSelections(previous => ({ ...previous, [id]: [result.createdObject!] }));
|
||||
}
|
||||
return result;
|
||||
}} />}
|
||||
{workbench === "Part" && active && ["shape-from-mesh", "points-from-mesh"].includes(workspaceTask) && React.createElement(
|
||||
workspaceTask === "shape-from-mesh" ? PartMeshConversionTask : PartSamplePointsTask, {
|
||||
key: `${active}:${workspaceTask}`, router: retainedPartRouter, documentId: nativeName(active), response: retainedPartResponse, busy: importing,
|
||||
|
||||
Reference in New Issue
Block a user