@inweb/viewer-visualize 25.11.2 → 25.12.0

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.
@@ -5587,7 +5587,10 @@ class Viewer extends EventEmitter2 {
5587
5587
  let visualStyleId;
5588
5588
  try {
5589
5589
  visualStyleId = visViewer.findVisualStyle("OpenCloud");
5590
- } catch (e) {
5590
+ } catch {
5591
+ visualStyleId = undefined;
5592
+ }
5593
+ if (!visualStyleId || visualStyleId.isNull()) {
5591
5594
  visualStyleId = visViewer.createVisualStyle("OpenCloud");
5592
5595
  const colorDef = new visLib.OdTvColorDef(66, 66, 66);
5593
5596
  const shadedVsId = visViewer.findVisualStyle("Realistic");
@@ -6027,6 +6030,7 @@ class Viewer extends EventEmitter2 {
6027
6030
  this.setActiveDragger();
6028
6031
  this.clearSlices();
6029
6032
  this.clearOverlay();
6033
+ this.clearSelected();
6030
6034
  visViewer.clear();
6031
6035
  visViewer.createLocalDatabase();
6032
6036
  this.syncOpenCloudVisualStyle(true);