three-cad-viewer 5.0.5 → 5.0.6
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.
|
@@ -97350,7 +97350,7 @@ class Tools {
|
|
|
97350
97350
|
}
|
|
97351
97351
|
}
|
|
97352
97352
|
|
|
97353
|
-
const version = "5.0.
|
|
97353
|
+
const version = "5.0.6";
|
|
97354
97354
|
|
|
97355
97355
|
/**
|
|
97356
97356
|
* `PickedComponent` over a GPU id-pick result. Drives the shader
|
|
@@ -112526,12 +112526,21 @@ class Viewer {
|
|
|
112526
112526
|
this.renderer.setSize(cadWidth, height);
|
|
112527
112527
|
// Resize the id pick target to match the canvas
|
|
112528
112528
|
this.idPicker?.setSize(cadWidth, height);
|
|
112529
|
-
// Adapt display dimensions
|
|
112529
|
+
// Adapt display dimensions. `glass` and `tools` are part of the sizes:
|
|
112530
|
+
// setSizes widens the toolbar and the body by the tree only when the tree
|
|
112531
|
+
// sits beside the canvas (`tools && !glass`), and updates the tree and
|
|
112532
|
+
// info heights only outside glass mode. Leaving them out meant neither
|
|
112533
|
+
// branch could ever be taken from a resize, so a non-glass viewer got a
|
|
112534
|
+
// toolbar and a body of `cadWidth + 2` with a `treeWidth + cadWidth` row
|
|
112535
|
+
// inside them - measured as a 550px toolbar over 802px of content - and a
|
|
112536
|
+
// tree that kept its old height. `glassMode` passes both and was right.
|
|
112530
112537
|
this.display.setSizes({
|
|
112531
112538
|
treeWidth: treeWidth,
|
|
112532
112539
|
treeHeight: this.state.get("treeHeight"),
|
|
112533
112540
|
cadWidth: cadWidth,
|
|
112534
112541
|
height: height,
|
|
112542
|
+
glass: glass,
|
|
112543
|
+
tools: this.state.get("tools"),
|
|
112535
112544
|
});
|
|
112536
112545
|
// Set glass state - subscription will update UI
|
|
112537
112546
|
this.state.set("glass", glass);
|