@inweb/viewer-visualize 25.11.1 → 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.
- package/dist/viewer-visualize.js +17 -7
- package/dist/viewer-visualize.js.map +1 -1
- package/dist/viewer-visualize.min.js +1 -1
- package/dist/viewer-visualize.module.js +6 -2
- package/dist/viewer-visualize.module.js.map +1 -1
- package/lib/Viewer/Viewer.d.ts +9 -0
- package/package.json +5 -5
- package/src/Viewer/Draggers/OdaWalkDragger.ts +2 -1
- package/src/Viewer/Viewer.ts +16 -6
package/dist/viewer-visualize.js
CHANGED
|
@@ -15456,7 +15456,8 @@
|
|
|
15456
15456
|
//avp.lensLength = this.viewParams.lensLength;
|
|
15457
15457
|
avp.delete();
|
|
15458
15458
|
}
|
|
15459
|
-
|
|
15459
|
+
// CLOUD-5359 Demo Viewer crashes after the Walk Mode
|
|
15460
|
+
this.subject.update(true);
|
|
15460
15461
|
this.subject.options.enableZoomWheel = this.enableZoomWheelPreviousValue;
|
|
15461
15462
|
}
|
|
15462
15463
|
keydown(ev) {
|
|
@@ -17900,24 +17901,23 @@
|
|
|
17900
17901
|
if (device.isNull())
|
|
17901
17902
|
return this;
|
|
17902
17903
|
const view = device.getActiveView();
|
|
17903
|
-
// setup light
|
|
17904
17904
|
view.enableDefaultLighting(true, visLib.DefaultLightingType.kTwoLights);
|
|
17905
17905
|
view.setDefaultLightingIntensity(1.25);
|
|
17906
|
+
// Visualize.js 25.11 and earlier threw an exception if the style did not exist.
|
|
17906
17907
|
let visualStyleId;
|
|
17907
17908
|
try {
|
|
17908
17909
|
visualStyleId = visViewer.findVisualStyle("OpenCloud");
|
|
17909
17910
|
}
|
|
17910
|
-
catch
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17911
|
+
catch {
|
|
17912
|
+
visualStyleId = undefined;
|
|
17913
|
+
}
|
|
17914
|
+
if (!visualStyleId || visualStyleId.isNull()) {
|
|
17914
17915
|
visualStyleId = visViewer.createVisualStyle("OpenCloud");
|
|
17915
17916
|
const colorDef = new visLib.OdTvColorDef(66, 66, 66);
|
|
17916
17917
|
const shadedVsId = visViewer.findVisualStyle("Realistic");
|
|
17917
17918
|
const visualStylePtr = visualStyleId.openObject();
|
|
17918
17919
|
visualStylePtr.copyFrom(shadedVsId);
|
|
17919
17920
|
visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kFaceModifiers, 0, visLib.VisualStyleOperations.kSet);
|
|
17920
|
-
//visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kEdgeModel, 1, visLib.VisualStyleOperations.kSet);
|
|
17921
17921
|
visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kEdgeModel, 2, visLib.VisualStyleOperations.kSet);
|
|
17922
17922
|
visualStylePtr.setOptionDouble(visLib.VisualStyleOptions.kEdgeCreaseAngle, 60, visLib.VisualStyleOperations.kSet);
|
|
17923
17923
|
visualStylePtr.setOptionInt32(visLib.VisualStyleOptions.kEdgeStyles, 0, visLib.VisualStyleOperations.kSet);
|
|
@@ -18257,6 +18257,9 @@
|
|
|
18257
18257
|
* model reference files from the Open Cloud Server. For a standalone viewer instance use
|
|
18258
18258
|
* {@link openVsfFile | openVsfFile()} or {@link openVsfxFile | openVsfxFile()}.
|
|
18259
18259
|
*
|
|
18260
|
+
* If there was an active dragger before opening the file, it will be deactivated. After
|
|
18261
|
+
* opening the file, you must manually activate the required dragger.
|
|
18262
|
+
*
|
|
18260
18263
|
* Fires:
|
|
18261
18264
|
*
|
|
18262
18265
|
* - {@link OpenEvent | open}
|
|
@@ -18312,6 +18315,9 @@
|
|
|
18312
18315
|
* This method does not support {@link IOptions.enableStreamingMode | streaming} or
|
|
18313
18316
|
* {@link IOptions.enablePartialMode | partial streaming} mode.
|
|
18314
18317
|
*
|
|
18318
|
+
* If there was an active dragger before opening the file, it will be deactivated. After
|
|
18319
|
+
* opening the file, you must manually activate the required dragger.
|
|
18320
|
+
*
|
|
18315
18321
|
* Fires:
|
|
18316
18322
|
*
|
|
18317
18323
|
* - {@link OpenEvent | open}
|
|
@@ -18355,6 +18361,9 @@
|
|
|
18355
18361
|
* This method does not support {@link IOptions.enableStreamingMode | streaming} or
|
|
18356
18362
|
* {@link IOptions.enablePartialMode | partial streaming} mode.
|
|
18357
18363
|
*
|
|
18364
|
+
* If there was an active dragger before opening the file, it will be deactivated. After
|
|
18365
|
+
* opening the file, you must manually activate the required dragger.
|
|
18366
|
+
*
|
|
18358
18367
|
* Fires:
|
|
18359
18368
|
*
|
|
18360
18369
|
* - {@link OpenEvent | open}
|
|
@@ -18411,6 +18420,7 @@
|
|
|
18411
18420
|
this.setActiveDragger();
|
|
18412
18421
|
this.clearSlices();
|
|
18413
18422
|
this.clearOverlay();
|
|
18423
|
+
this.clearSelected();
|
|
18414
18424
|
visViewer.clear();
|
|
18415
18425
|
visViewer.createLocalDatabase();
|
|
18416
18426
|
this.syncOpenCloudVisualStyle(true);
|