@floless/app 0.89.0 → 0.89.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/floless-server.cjs
CHANGED
|
@@ -53106,7 +53106,7 @@ function appVersion() {
|
|
|
53106
53106
|
return resolveVersion({
|
|
53107
53107
|
isSea: isSea2(),
|
|
53108
53108
|
sqVersionXml: readSqVersionXml(),
|
|
53109
|
-
define: true ? "0.89.
|
|
53109
|
+
define: true ? "0.89.1" : void 0,
|
|
53110
53110
|
pkgVersion: readPkgVersion()
|
|
53111
53111
|
});
|
|
53112
53112
|
}
|
|
@@ -53116,7 +53116,7 @@ function resolveChannel(s) {
|
|
|
53116
53116
|
return "dev";
|
|
53117
53117
|
}
|
|
53118
53118
|
function appChannel() {
|
|
53119
|
-
return resolveChannel({ isSea: isSea2(), define: true ? "0.89.
|
|
53119
|
+
return resolveChannel({ isSea: isSea2(), define: true ? "0.89.1" : void 0 });
|
|
53120
53120
|
}
|
|
53121
53121
|
|
|
53122
53122
|
// workflow-update.ts
|
|
@@ -5194,9 +5194,19 @@ function applyViewState(on){ // flip the toggle + swap the canvases (
|
|
|
5194
5194
|
}
|
|
5195
5195
|
async function setView(on){
|
|
5196
5196
|
drawDraft=null;drawPrevClear(); // any view switch drops an in-progress 2D Add-member start — it's a plan-pixel point, meaningless after the switch (else a stale point finishes a member on return)
|
|
5197
|
+
// B6: cancel the 2D-only panel-takeover / armed-pick tools on any view switch. They have no 3D counterpart, so if
|
|
5198
|
+
// left armed they take over the panel while you're in 3D or silently resume on return to 2D (the "active command
|
|
5199
|
+
// survives a 2D↔3D switch" bug). Cross-view tools stay armed by design and setView only drops their in-progress
|
|
5200
|
+
// pick/draft (above/below): Move/Copy (cmTool, cmClear3d), Add-member (mode==='add', drEscape) AND Extend/Trim/
|
|
5201
|
+
// Split (geoMode — the 3D view arms it via E/S and drives it through view3dApi.onTrimExtend/onSplit).
|
|
5202
|
+
let disarmed2d=gridMode||csaxisMode||picking; // captured BEFORE disarming; we repaint ONCE after EVERY 2D-only cancel below (incl. the dim/dim-style ones)
|
|
5203
|
+
if(gridMode)setGridMode(false); // tears down the grid panel + clears gridPick/gridLinePick + snapClear
|
|
5204
|
+
if(csaxisMode){csaxisMode=false;setCsMode();} // drops the in-progress origin (csDraft) + the set-axes panel
|
|
5205
|
+
if(picking){picking=false;pickKind='profile';pickEnd=null;} // an armed inspector ⌖ pick
|
|
5197
5206
|
if(on){
|
|
5198
|
-
if(dimMode||dimChain||dimSplitMode){dimMode=dimChain=dimSplitMode=false;selDimIds.clear();setDimMode();document.body.classList.remove('dimsplit');} // entering 3D disarms the 2D dim/chain/split tools so their X/Y/F/S/Esc keys don't double-fire with the 3D tool
|
|
5199
|
-
dimStyleMode=false; // …and closes the 2D Dimension style pane (it styles the 2D overlay only)
|
|
5207
|
+
if(dimMode||dimChain||dimSplitMode){disarmed2d=true;dimMode=dimChain=dimSplitMode=false;selDimIds.clear();setDimMode();document.body.classList.remove('dimsplit');} // entering 3D disarms the 2D dim/chain/split tools so their X/Y/F/S/Esc keys don't double-fire with the 3D tool
|
|
5208
|
+
if(dimStyleMode){disarmed2d=true;dimStyleMode=false;} // …and closes the 2D Dimension style pane (it styles the 2D overlay only)
|
|
5209
|
+
if(disarmed2d)render(); // repaint the 2D SVG + inspector ONCE, now that EVERY 2D-only tool is disarmed and view3d is still false (2D render path): they suppress callouts / draw pick hotspots (:2061,:2069) and take over #panel, and the return-to-2D path never render()s — so a render here (like the Esc paths) un-stales the canvas + panel. Deferred past the dim/dim-style disarm so it can't paint a still-armed Dimension panel (dimMode can coexist with grid/pick) that then goes stale.
|
|
5200
5210
|
if(cmTool){cmDraft=null;cmPrevClear();cmHudClose();} // Move/Copy stays armed across the view switch — only the in-progress 2D pick is dropped (it's in plan px)
|
|
5201
5211
|
if(selIds.size)sel3dDimIds.clear(); // a member selected in 2D wins over a stale 3D-dim selection
|
|
5202
5212
|
if(!window.Steel3DView){toast('3D view unavailable (renderer failed to load)');return;} // stay in 2D
|
|
@@ -5213,8 +5223,10 @@ async function setView(on){
|
|
|
5213
5223
|
toast('Could not open 3D view: '+((e&&e.message)||e));
|
|
5214
5224
|
}
|
|
5215
5225
|
}else{if(cmTool&&window.Steel3DView&&window.Steel3DView.cmClear3d)window.Steel3DView.cmClear3d(); // 3D→2D: drop the mm-space pick the same way (tool stays armed)
|
|
5216
|
-
applyViewState(false);if(window.Steel3DView)window.Steel3DView.hide();
|
|
5226
|
+
applyViewState(false);if(window.Steel3DView)window.Steel3DView.hide();
|
|
5227
|
+
if(disarmed2d)render();} // grid/set-axes/pick can be armed while IN 3D too (csSetB/gridEditB/pickProf carry no view3d guard, and set-axes/pick render() on arm → they suppress callouts / draw hotspots into the hidden 2D SVG). We disarmed them at the top; repaint here — now that applyViewState set view3d false — else the 2D UI comes back stale.
|
|
5217
5228
|
if(propPopOpen()){if(propPopPinned){dockPropPop();renderPropPop();}else closePropPop(true);} // the popup is anchored to one canvas — re-dock if pinned (renderPropPop re-syncs its "Show in this view" checkbox to the now-live view), else dismiss on the view switch
|
|
5229
|
+
panel(); // repaint the inspector for the NOW-current view (view3d is final here): a cross-view tool stays armed but its in-progress draft was dropped above — Add-member's drawHint (:2288) and Move/Copy's cmHint are view-specific, so without this the panel keeps the stale 2D "Click 2: end" (drawDraft already null) instead of the 3D working-plane hint (and vice-versa on return)
|
|
5218
5230
|
refreshPropLabels3d();updatePropHint(); // push the label set to whichever view is now live (3D shows them; 2D hides the 3D host) + refresh the corner note
|
|
5219
5231
|
}
|
|
5220
5232
|
document.getElementById('vt2d').onclick=()=>{if(view3d)setView(false);};
|