@inweb/viewer-three 25.3.20 → 25.3.22
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/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Viewer.three
|
|
2
2
|
|
|
3
|
-
`Viewer.three` is a JavaScript library powered by [Three.js](https://threejs.org/) for in-browser visualization of 3D CAD and BIM data
|
|
3
|
+
`Viewer.three` is a JavaScript library powered by [Three.js](https://threejs.org/) for in-browser visualization of 3D CAD and BIM data files stored on the [Open Cloud Server](https://cloud.opendesign.com/docs/index.html#/opencloud_server), on the web, or on your local computer.
|
|
4
4
|
|
|
5
|
-
This library enables you to easily integrate advanced visualization capabilities into your web applications, including user interaction with scenes and
|
|
5
|
+
This library enables you to easily integrate advanced visualization capabilities into your web applications, including user interaction with scenes and markup creation.
|
|
6
6
|
|
|
7
|
-
> `glTF` is a [royalty-free](https://www.khronos.org/gltf) file format commonly used in 3D applications.
|
|
7
|
+
> `Viewer.three` uses `glTF` file format as internal geometry data format. `glTF` is a [royalty-free](https://www.khronos.org/gltf) file format commonly used in 3D applications.
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/dist/viewer-three.js
CHANGED
|
@@ -365,7 +365,9 @@
|
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
const
|
|
368
|
+
const CanvasEvents = [ "click", "contextmenu", "dblclick", "mousedown", "mouseleave", "mousemove", "mouseup", "pointercancel", "pointerdown", "pointerleave", "pointermove", "pointerup", "touchcancel", "touchend", "touchmove", "touchstart", "wheel" ];
|
|
369
|
+
|
|
370
|
+
const CANVAS_EVENTS = CanvasEvents;
|
|
369
371
|
|
|
370
372
|
class EventEmitter2 {
|
|
371
373
|
constructor() {
|
|
@@ -42622,7 +42624,7 @@
|
|
|
42622
42624
|
this.renderNeeded = false;
|
|
42623
42625
|
this._options = new Options(this);
|
|
42624
42626
|
this.client = client;
|
|
42625
|
-
this.canvasEvents = CANVAS_EVENTS;
|
|
42627
|
+
this.canvasEvents = CANVAS_EVENTS.slice();
|
|
42626
42628
|
this.canvaseventlistener = (event) => this.emit(event);
|
|
42627
42629
|
this.draggerFactory = {
|
|
42628
42630
|
Pan: PanDragger,
|
|
@@ -42847,6 +42849,7 @@
|
|
|
42847
42849
|
}
|
|
42848
42850
|
|
|
42849
42851
|
exports.CANVAS_EVENTS = CANVAS_EVENTS;
|
|
42852
|
+
exports.CanvasEvents = CanvasEvents;
|
|
42850
42853
|
exports.Options = Options;
|
|
42851
42854
|
exports.Viewer = Viewer;
|
|
42852
42855
|
exports.commands = commands;
|