@inweb/viewer-visualize 25.9.1 → 25.9.3
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
CHANGED
|
@@ -17553,7 +17553,7 @@
|
|
|
17553
17553
|
return this;
|
|
17554
17554
|
}
|
|
17555
17555
|
/**
|
|
17556
|
-
* Loads the `VisualizeJS` module and
|
|
17556
|
+
* Loads the `VisualizeJS` module and initializes it with the specified canvas. Call
|
|
17557
17557
|
* {@link dispose | dispose()} to release allocated resources.
|
|
17558
17558
|
*
|
|
17559
17559
|
* Fires:
|
|
@@ -17608,8 +17608,8 @@
|
|
|
17608
17608
|
return this;
|
|
17609
17609
|
}
|
|
17610
17610
|
/**
|
|
17611
|
-
*
|
|
17612
|
-
* the `Viewer` instance.
|
|
17611
|
+
* Unloads an open file, clears the canvas and markups, and releases resources allocated by
|
|
17612
|
+
* this viewer instance. Call this method before release the `Viewer` instance.
|
|
17613
17613
|
*/
|
|
17614
17614
|
dispose() {
|
|
17615
17615
|
this.cancel();
|
|
@@ -17907,7 +17907,9 @@
|
|
|
17907
17907
|
return this;
|
|
17908
17908
|
}
|
|
17909
17909
|
/**
|
|
17910
|
-
* List of names of registered draggers.
|
|
17910
|
+
* List of names of registered draggers.
|
|
17911
|
+
*
|
|
17912
|
+
* The following draggers are registered by default:
|
|
17911
17913
|
*
|
|
17912
17914
|
* - `Line`
|
|
17913
17915
|
* - `Text`
|
|
@@ -17922,14 +17924,16 @@
|
|
|
17922
17924
|
* - `CuttingPlaneZAxis`
|
|
17923
17925
|
* - `Walk`
|
|
17924
17926
|
*
|
|
17925
|
-
* @
|
|
17927
|
+
* To register your own command use the {@link registerDragger | registerDragger()}.
|
|
17926
17928
|
*/
|
|
17927
17929
|
get draggers() {
|
|
17928
17930
|
return [...this.draggerFactory.keys()];
|
|
17929
17931
|
}
|
|
17930
17932
|
/**
|
|
17931
|
-
* Registers a dragger for the viewer.
|
|
17932
|
-
*
|
|
17933
|
+
* Registers a dragger for the viewer.
|
|
17934
|
+
*
|
|
17935
|
+
* Dragger is an object that received mouse/keyboard events and does something to the viewer.
|
|
17936
|
+
* For a quick tutorial on how to create your own dragger, see {@link Dragger}.
|
|
17933
17937
|
*
|
|
17934
17938
|
* @param name - Dragger name.
|
|
17935
17939
|
* @param dragger - Dragger class.
|
|
@@ -17938,7 +17942,7 @@
|
|
|
17938
17942
|
this.draggerFactory.set(name, dragger);
|
|
17939
17943
|
}
|
|
17940
17944
|
/**
|
|
17941
|
-
* Returns active dragger instance or `null` if there is no active dragger.
|
|
17945
|
+
* Returns the active dragger instance, or `null` if there is no active dragger.
|
|
17942
17946
|
*/
|
|
17943
17947
|
activeDragger() {
|
|
17944
17948
|
return this._activeDragger;
|
|
@@ -17951,7 +17955,8 @@
|
|
|
17951
17955
|
* - {@link ChangeActiveDraggerEvent | changeactivedragger}
|
|
17952
17956
|
*
|
|
17953
17957
|
* @param name - Dragger name. Can be one of the {@link draggers} list.
|
|
17954
|
-
* @returns Returns active dragger instance or `null` if there is no dragger with the
|
|
17958
|
+
* @returns Returns the new active dragger instance or `null` if there is no dragger with the
|
|
17959
|
+
* given name.
|
|
17955
17960
|
*/
|
|
17956
17961
|
setActiveDragger(name) {
|
|
17957
17962
|
var _a;
|
|
@@ -18041,7 +18046,7 @@
|
|
|
18041
18046
|
this.update();
|
|
18042
18047
|
}
|
|
18043
18048
|
/**
|
|
18044
|
-
* Returns `true` if current model is 3D model.
|
|
18049
|
+
* Returns `true` if current opened model is 3D model.
|
|
18045
18050
|
*/
|
|
18046
18051
|
is3D() {
|
|
18047
18052
|
if (!this.visualizeJs)
|
|
@@ -18277,7 +18282,7 @@
|
|
|
18277
18282
|
return this;
|
|
18278
18283
|
}
|
|
18279
18284
|
/**
|
|
18280
|
-
* Cancels asynchronous
|
|
18285
|
+
* Cancels asynchronous file loading started by {@link open | open()}.
|
|
18281
18286
|
*/
|
|
18282
18287
|
cancel() {
|
|
18283
18288
|
var _a, _b, _c;
|
|
@@ -18291,7 +18296,7 @@
|
|
|
18291
18296
|
return this;
|
|
18292
18297
|
}
|
|
18293
18298
|
/**
|
|
18294
|
-
* Unloads
|
|
18299
|
+
* Unloads an open file and clears the canvas and markups.
|
|
18295
18300
|
*/
|
|
18296
18301
|
clear() {
|
|
18297
18302
|
if (!this.visualizeJs)
|
|
@@ -18446,11 +18451,42 @@
|
|
|
18446
18451
|
}
|
|
18447
18452
|
}
|
|
18448
18453
|
/**
|
|
18449
|
-
* Executes the command denoted by the given command
|
|
18454
|
+
* Executes the command denoted by the given command. If the command is not found, tries to
|
|
18455
|
+
* set active dragger with the specified name.
|
|
18456
|
+
*
|
|
18457
|
+
* The following commands are registered by default:
|
|
18458
|
+
*
|
|
18459
|
+
* - `applyModelTransform`
|
|
18460
|
+
* - `autoTransformAllModelsToCentralPoint`
|
|
18461
|
+
* - `clearMarkup`
|
|
18462
|
+
* - `clearSlices`
|
|
18463
|
+
* - `createPreview`
|
|
18464
|
+
* - `explode`
|
|
18465
|
+
* - `getDefaultViewPositions`
|
|
18466
|
+
* - `getModels`
|
|
18467
|
+
* - `getSelected`
|
|
18468
|
+
* - `hideSelected`
|
|
18469
|
+
* - `isolateSelected`
|
|
18470
|
+
* - `regenerateAll`
|
|
18471
|
+
* - `resetView`
|
|
18472
|
+
* - `selectModel`
|
|
18473
|
+
* - `setActiveDragger`
|
|
18474
|
+
* - `setDefaultViewPosition`
|
|
18475
|
+
* - `setMarkupColor`
|
|
18476
|
+
* - `setSelected`
|
|
18477
|
+
* - `showAll`
|
|
18478
|
+
* - `unselect`
|
|
18479
|
+
* - `zoomToExtents`
|
|
18480
|
+
* - `zoomToObjects`
|
|
18481
|
+
* - `zoomToSelected`
|
|
18482
|
+
*
|
|
18483
|
+
* To register your own command use the {@link ICommands.registerCommand | registerCommand()}
|
|
18484
|
+
* method of the {@link commands} manager.
|
|
18450
18485
|
*
|
|
18451
|
-
* @param id -
|
|
18452
|
-
* @param args - Parameters passed to the command function.
|
|
18453
|
-
* @returns
|
|
18486
|
+
* @param id - Command ID or dragger name.
|
|
18487
|
+
* @param args - Parameters passed to the command handler function.
|
|
18488
|
+
* @returns Returns the result of the command handler function or new active dragger
|
|
18489
|
+
* instance. Returns `undefined` if neither the command nor the dragger exists.
|
|
18454
18490
|
*/
|
|
18455
18491
|
executeCommand(id, ...args) {
|
|
18456
18492
|
return commands("VisualizeJS").executeCommand(id, this, ...args);
|