@xeokit/xeokit-sdk 2.6.34 → 2.6.35

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.
@@ -12692,7 +12692,6 @@ class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
12692
12692
 
12693
12693
  _initMarkerDiv() {
12694
12694
  const markerDiv = document.createElement('div');
12695
- markerDiv.setAttribute('id', 'myMarkerDiv');
12696
12695
  const canvas = this.scene.canvas.canvas;
12697
12696
  canvas.parentNode.insertBefore(markerDiv, canvas);
12698
12697
 
@@ -12713,8 +12712,7 @@ class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
12713
12712
 
12714
12713
  _destroyMarkerDiv() {
12715
12714
  if (this.markerDiv) {
12716
- const element = document.getElementById('myMarkerDiv');
12717
- element.parentNode.removeChild(element);
12715
+ this.markerDiv.parentNode.removeChild(this.markerDiv);
12718
12716
  this.markerDiv = null;
12719
12717
  }
12720
12718
  }
@@ -89154,7 +89152,6 @@ class DistanceMeasurementsMouseControl extends DistanceMeasurementsControl {
89154
89152
 
89155
89153
  _initMarkerDiv() {
89156
89154
  const markerDiv = document.createElement('div');
89157
- markerDiv.setAttribute('id', 'myMarkerDiv');
89158
89155
  const canvas = this.scene.canvas.canvas;
89159
89156
  canvas.parentNode.insertBefore(markerDiv, canvas);
89160
89157
  markerDiv.style.background = "black";
@@ -89174,8 +89171,7 @@ class DistanceMeasurementsMouseControl extends DistanceMeasurementsControl {
89174
89171
 
89175
89172
  _destroyMarkerDiv() {
89176
89173
  if (this._markerDiv) {
89177
- const element = document.getElementById('myMarkerDiv');
89178
- element.parentNode.removeChild(element);
89174
+ this._markerDiv.parentNode.removeChild(this._markerDiv);
89179
89175
  this._markerDiv = null;
89180
89176
  }
89181
89177
  }
@@ -97512,7 +97508,7 @@ class MousePanRotateDollyHandler {
97512
97508
  let secsNowLast = null;
97513
97509
 
97514
97510
  canvas.addEventListener("wheel", this._mouseWheelHandler = (e) => {
97515
- if (!(configs.active && configs.pointerEnabled)) {
97511
+ if (!(configs.active && configs.pointerEnabled && configs.zoomOnMouseWheel)) {
97516
97512
  return;
97517
97513
  }
97518
97514
  const secsNow = performance.now() / 1000.0;
@@ -99747,7 +99743,8 @@ class CameraControl extends Component {
99747
99743
  constrainVertical: false,
99748
99744
  smartPivot: false,
99749
99745
  doubleClickTimeFrame: 250,
99750
-
99746
+ zoomOnMouseWheel: true,
99747
+
99751
99748
  snapToVertex: DEFAULT_SNAP_VERTEX,
99752
99749
  snapToEdge: DEFAULT_SNAP_EDGE,
99753
99750
  snapRadius: DEFAULT_SNAP_PICK_RADIUS,
@@ -100838,6 +100835,26 @@ class CameraControl extends Component {
100838
100835
  return this._configs.doubleClickTimeFrame;
100839
100836
  }
100840
100837
 
100838
+ /**
100839
+ * Sets whether to zoom the camera on mouse wheel
100840
+ *
100841
+ * Default is ````true````
100842
+ *
100843
+ * @param {Boolean} enabled
100844
+ */
100845
+ set zoomOnMouseWheel(enabled) {
100846
+ this._configs.zoomOnMouseWheel = !!enabled;
100847
+ }
100848
+
100849
+ /**
100850
+ * Gets whether to zoom the camera on mouse wheel
100851
+ *
100852
+ * @returns {Boolean}
100853
+ */
100854
+ get zoomOnMouseWheel() {
100855
+ return this._configs.zoomOnMouseWheel;
100856
+ }
100857
+
100841
100858
  /**
100842
100859
  * Destroys this ````CameraControl````.
100843
100860
  * @private
@@ -12688,7 +12688,6 @@ class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
12688
12688
 
12689
12689
  _initMarkerDiv() {
12690
12690
  const markerDiv = document.createElement('div');
12691
- markerDiv.setAttribute('id', 'myMarkerDiv');
12692
12691
  const canvas = this.scene.canvas.canvas;
12693
12692
  canvas.parentNode.insertBefore(markerDiv, canvas);
12694
12693
 
@@ -12709,8 +12708,7 @@ class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
12709
12708
 
12710
12709
  _destroyMarkerDiv() {
12711
12710
  if (this.markerDiv) {
12712
- const element = document.getElementById('myMarkerDiv');
12713
- element.parentNode.removeChild(element);
12711
+ this.markerDiv.parentNode.removeChild(this.markerDiv);
12714
12712
  this.markerDiv = null;
12715
12713
  }
12716
12714
  }
@@ -89150,7 +89148,6 @@ class DistanceMeasurementsMouseControl extends DistanceMeasurementsControl {
89150
89148
 
89151
89149
  _initMarkerDiv() {
89152
89150
  const markerDiv = document.createElement('div');
89153
- markerDiv.setAttribute('id', 'myMarkerDiv');
89154
89151
  const canvas = this.scene.canvas.canvas;
89155
89152
  canvas.parentNode.insertBefore(markerDiv, canvas);
89156
89153
  markerDiv.style.background = "black";
@@ -89170,8 +89167,7 @@ class DistanceMeasurementsMouseControl extends DistanceMeasurementsControl {
89170
89167
 
89171
89168
  _destroyMarkerDiv() {
89172
89169
  if (this._markerDiv) {
89173
- const element = document.getElementById('myMarkerDiv');
89174
- element.parentNode.removeChild(element);
89170
+ this._markerDiv.parentNode.removeChild(this._markerDiv);
89175
89171
  this._markerDiv = null;
89176
89172
  }
89177
89173
  }
@@ -97508,7 +97504,7 @@ class MousePanRotateDollyHandler {
97508
97504
  let secsNowLast = null;
97509
97505
 
97510
97506
  canvas.addEventListener("wheel", this._mouseWheelHandler = (e) => {
97511
- if (!(configs.active && configs.pointerEnabled)) {
97507
+ if (!(configs.active && configs.pointerEnabled && configs.zoomOnMouseWheel)) {
97512
97508
  return;
97513
97509
  }
97514
97510
  const secsNow = performance.now() / 1000.0;
@@ -99743,7 +99739,8 @@ class CameraControl extends Component {
99743
99739
  constrainVertical: false,
99744
99740
  smartPivot: false,
99745
99741
  doubleClickTimeFrame: 250,
99746
-
99742
+ zoomOnMouseWheel: true,
99743
+
99747
99744
  snapToVertex: DEFAULT_SNAP_VERTEX,
99748
99745
  snapToEdge: DEFAULT_SNAP_EDGE,
99749
99746
  snapRadius: DEFAULT_SNAP_PICK_RADIUS,
@@ -100834,6 +100831,26 @@ class CameraControl extends Component {
100834
100831
  return this._configs.doubleClickTimeFrame;
100835
100832
  }
100836
100833
 
100834
+ /**
100835
+ * Sets whether to zoom the camera on mouse wheel
100836
+ *
100837
+ * Default is ````true````
100838
+ *
100839
+ * @param {Boolean} enabled
100840
+ */
100841
+ set zoomOnMouseWheel(enabled) {
100842
+ this._configs.zoomOnMouseWheel = !!enabled;
100843
+ }
100844
+
100845
+ /**
100846
+ * Gets whether to zoom the camera on mouse wheel
100847
+ *
100848
+ * @returns {Boolean}
100849
+ */
100850
+ get zoomOnMouseWheel() {
100851
+ return this._configs.zoomOnMouseWheel;
100852
+ }
100853
+
100837
100854
  /**
100838
100855
  * Destroys this ````CameraControl````.
100839
100856
  * @private
@@ -3004,7 +3004,7 @@ this._originDot.setVisible(this._visible&&this._originVisible);this._cornerDot.s
3004
3004
  * @param {function} [cfg.canvasToPagePos] Optional function to map canvas-space coordinates to page coordinates.
3005
3005
  * @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
3006
3006
  * @param {boolean} [cfg.snapping=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
3007
- */function AngleMeasurementsMouseControl(angleMeasurementsPlugin){var _this20;var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,AngleMeasurementsMouseControl);_this20=_super8.call(this,angleMeasurementsPlugin.viewer.scene);_this20._canvasToPagePos=cfg.canvasToPagePos;_this20.pointerLens=cfg.pointerLens;_this20._active=false;_this20._currentAngleMeasurement=null;_this20._initMarkerDiv();_this20._snapping=cfg.snapping!==false;_this20._mouseState=MOUSE_FINDING_ORIGIN;_this20._attachPlugin(angleMeasurementsPlugin,cfg);return _this20;}_createClass(AngleMeasurementsMouseControl,[{key:"_initMarkerDiv",value:function _initMarkerDiv(){var markerDiv=document.createElement('div');markerDiv.setAttribute('id','myMarkerDiv');var canvas=this.scene.canvas.canvas;canvas.parentNode.insertBefore(markerDiv,canvas);markerDiv.style.background="black";markerDiv.style.border="2px solid blue";markerDiv.style.borderRadius="10px";markerDiv.style.width="5px";markerDiv.style.height="5px";markerDiv.style.top="-200px";markerDiv.style.left="-200px";markerDiv.style.margin="0 0";markerDiv.style.zIndex="100";markerDiv.style.position="absolute";markerDiv.style.pointerEvents="none";this.markerDiv=markerDiv;}},{key:"_destroyMarkerDiv",value:function _destroyMarkerDiv(){if(this.markerDiv){var element=document.getElementById('myMarkerDiv');element.parentNode.removeChild(element);this.markerDiv=null;}}},{key:"_attachPlugin",value:function _attachPlugin(angleMeasurementsPlugin){var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};/**
3007
+ */function AngleMeasurementsMouseControl(angleMeasurementsPlugin){var _this20;var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,AngleMeasurementsMouseControl);_this20=_super8.call(this,angleMeasurementsPlugin.viewer.scene);_this20._canvasToPagePos=cfg.canvasToPagePos;_this20.pointerLens=cfg.pointerLens;_this20._active=false;_this20._currentAngleMeasurement=null;_this20._initMarkerDiv();_this20._snapping=cfg.snapping!==false;_this20._mouseState=MOUSE_FINDING_ORIGIN;_this20._attachPlugin(angleMeasurementsPlugin,cfg);return _this20;}_createClass(AngleMeasurementsMouseControl,[{key:"_initMarkerDiv",value:function _initMarkerDiv(){var markerDiv=document.createElement('div');var canvas=this.scene.canvas.canvas;canvas.parentNode.insertBefore(markerDiv,canvas);markerDiv.style.background="black";markerDiv.style.border="2px solid blue";markerDiv.style.borderRadius="10px";markerDiv.style.width="5px";markerDiv.style.height="5px";markerDiv.style.top="-200px";markerDiv.style.left="-200px";markerDiv.style.margin="0 0";markerDiv.style.zIndex="100";markerDiv.style.position="absolute";markerDiv.style.pointerEvents="none";this.markerDiv=markerDiv;}},{key:"_destroyMarkerDiv",value:function _destroyMarkerDiv(){if(this.markerDiv){this.markerDiv.parentNode.removeChild(this.markerDiv);this.markerDiv=null;}}},{key:"_attachPlugin",value:function _attachPlugin(angleMeasurementsPlugin){var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};/**
3008
3008
  * The {@link AngleMeasurementsPlugin} that owns this AngleMeasurementsMouseControl.
3009
3009
  *
3010
3010
  * @type {AngleMeasurementsPlugin}
@@ -19941,7 +19941,7 @@ this._originDot.setVisible(this._visible&&this._originVisible);this._targetDot.s
19941
19941
  * @param {function} [cfg.canvasToPagePos] Optional function to map canvas-space coordinates to page coordinates.
19942
19942
  * @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
19943
19943
  * @param {boolean} [cfg.snapping=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsMouseControl.
19944
- */function DistanceMeasurementsMouseControl(distanceMeasurementsPlugin){var _this87;var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,DistanceMeasurementsMouseControl);_this87=_super123.call(this,distanceMeasurementsPlugin.viewer.scene);_this87._canvasToPagePos=cfg.canvasToPagePos;_this87.pointerLens=cfg.pointerLens;_this87._active=false;_this87._currentDistanceMeasurement=null;_this87._currentDistanceMeasurementInitState={wireVisible:null,axisVisible:null,xAxisVisible:null,yaxisVisible:null,zAxisVisible:null,targetVisible:null};_this87._initMarkerDiv();_this87._snapping=cfg.snapping!==false;_this87._mouseState=MOUSE_FIRST_CLICK_EXPECTED;_this87._attachPlugin(distanceMeasurementsPlugin,cfg);return _this87;}_createClass(DistanceMeasurementsMouseControl,[{key:"_initMarkerDiv",value:function _initMarkerDiv(){var markerDiv=document.createElement('div');markerDiv.setAttribute('id','myMarkerDiv');var canvas=this.scene.canvas.canvas;canvas.parentNode.insertBefore(markerDiv,canvas);markerDiv.style.background="black";markerDiv.style.border="2px solid blue";markerDiv.style.borderRadius="10px";markerDiv.style.width="5px";markerDiv.style.height="5px";markerDiv.style.top="-200px";markerDiv.style.left="-200px";markerDiv.style.margin="0 0";markerDiv.style.zIndex="100";markerDiv.style.position="absolute";markerDiv.style.pointerEvents="none";this._markerDiv=markerDiv;}},{key:"_destroyMarkerDiv",value:function _destroyMarkerDiv(){if(this._markerDiv){var element=document.getElementById('myMarkerDiv');element.parentNode.removeChild(element);this._markerDiv=null;}}},{key:"_attachPlugin",value:function _attachPlugin(distanceMeasurementsPlugin){var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};/**
19944
+ */function DistanceMeasurementsMouseControl(distanceMeasurementsPlugin){var _this87;var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,DistanceMeasurementsMouseControl);_this87=_super123.call(this,distanceMeasurementsPlugin.viewer.scene);_this87._canvasToPagePos=cfg.canvasToPagePos;_this87.pointerLens=cfg.pointerLens;_this87._active=false;_this87._currentDistanceMeasurement=null;_this87._currentDistanceMeasurementInitState={wireVisible:null,axisVisible:null,xAxisVisible:null,yaxisVisible:null,zAxisVisible:null,targetVisible:null};_this87._initMarkerDiv();_this87._snapping=cfg.snapping!==false;_this87._mouseState=MOUSE_FIRST_CLICK_EXPECTED;_this87._attachPlugin(distanceMeasurementsPlugin,cfg);return _this87;}_createClass(DistanceMeasurementsMouseControl,[{key:"_initMarkerDiv",value:function _initMarkerDiv(){var markerDiv=document.createElement('div');var canvas=this.scene.canvas.canvas;canvas.parentNode.insertBefore(markerDiv,canvas);markerDiv.style.background="black";markerDiv.style.border="2px solid blue";markerDiv.style.borderRadius="10px";markerDiv.style.width="5px";markerDiv.style.height="5px";markerDiv.style.top="-200px";markerDiv.style.left="-200px";markerDiv.style.margin="0 0";markerDiv.style.zIndex="100";markerDiv.style.position="absolute";markerDiv.style.pointerEvents="none";this._markerDiv=markerDiv;}},{key:"_destroyMarkerDiv",value:function _destroyMarkerDiv(){if(this._markerDiv){this._markerDiv.parentNode.removeChild(this._markerDiv);this._markerDiv=null;}}},{key:"_attachPlugin",value:function _attachPlugin(distanceMeasurementsPlugin){var cfg=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};/**
19945
19945
  * The {@link DistanceMeasurementsPlugin} that owns this DistanceMeasurementsMouseControl.
19946
19946
  * @type {DistanceMeasurementsPlugin}
19947
19947
  */this.distanceMeasurementsPlugin=distanceMeasurementsPlugin;/**
@@ -22966,7 +22966,7 @@ mouseDownLeft=false;mouseDownMiddle=false;mouseDownRight=false;break;case 2:// M
22966
22966
  mouseDownLeft=false;mouseDownMiddle=false;mouseDownRight=false;break;case 3:// Right button
22967
22967
  mouseDownLeft=false;mouseDownMiddle=false;mouseDownRight=false;break;}});canvas.addEventListener("mouseup",this._mouseUpHandler=function(e){if(!(configs.active&&configs.pointerEnabled)){return;}switch(e.which){case 3:// Right button
22968
22968
  getCanvasPosFromEvent$3(e,canvasPos);var x=canvasPos[0];var y=canvasPos[1];if(Math.abs(x-lastXDown)<3&&Math.abs(y-lastYDown)<3){controllers.cameraControl.fire("rightClick",{// For context menus
22969
- pagePos:[Math.round(e.pageX),Math.round(e.pageY)],canvasPos:canvasPos,event:e},true);}break;}canvas.style.removeProperty("cursor");});canvas.addEventListener("mouseenter",this._mouseEnterHandler=function(){if(!(configs.active&&configs.pointerEnabled)){return;}});var maxElapsed=1/20;var minElapsed=1/60;var secsNowLast=null;canvas.addEventListener("wheel",this._mouseWheelHandler=function(e){if(!(configs.active&&configs.pointerEnabled)){return;}var secsNow=performance.now()/1000.0;var secsElapsed=secsNowLast!==null?secsNow-secsNowLast:0;secsNowLast=secsNow;if(secsElapsed>maxElapsed){secsElapsed=maxElapsed;}if(secsElapsed<minElapsed){secsElapsed=minElapsed;}var delta=Math.max(-1,Math.min(1,-e.deltaY*40));if(delta===0){return;}var normalizedDelta=delta/Math.abs(delta);updates.dollyDelta+=-normalizedDelta*secsElapsed*configs.mouseWheelDollyRate;if(mouseMovedOnCanvasSinceLastWheel){states.followPointerDirty=true;mouseMovedOnCanvasSinceLastWheel=false;}},{passive:true});}_createClass(MousePanRotateDollyHandler,[{key:"reset",value:function reset(){}},{key:"destroy",value:function destroy(){var canvas=this._scene.canvas.canvas;document.removeEventListener("keydown",this._documentKeyDownHandler);document.removeEventListener("keyup",this._documentKeyUpHandler);canvas.removeEventListener("mousedown",this._mouseDownHandler);document.removeEventListener("mousemove",this._documentMouseMoveHandler);canvas.removeEventListener("mousemove",this._canvasMouseMoveHandler);document.removeEventListener("mouseup",this._documentMouseUpHandler);canvas.removeEventListener("mouseup",this._mouseUpHandler);canvas.removeEventListener("mouseenter",this._mouseEnterHandler);canvas.removeEventListener("wheel",this._mouseWheelHandler);}}]);return MousePanRotateDollyHandler;}();var center=math.vec3();var tempVec3a$5=math.vec3();var tempVec3b$2=math.vec3();var tempVec3c$1=math.vec3();var tempVec3d=math.vec3();var tempCameraTarget={eye:math.vec3(),look:math.vec3(),up:math.vec3()};/**
22969
+ pagePos:[Math.round(e.pageX),Math.round(e.pageY)],canvasPos:canvasPos,event:e},true);}break;}canvas.style.removeProperty("cursor");});canvas.addEventListener("mouseenter",this._mouseEnterHandler=function(){if(!(configs.active&&configs.pointerEnabled)){return;}});var maxElapsed=1/20;var minElapsed=1/60;var secsNowLast=null;canvas.addEventListener("wheel",this._mouseWheelHandler=function(e){if(!(configs.active&&configs.pointerEnabled&&configs.zoomOnMouseWheel)){return;}var secsNow=performance.now()/1000.0;var secsElapsed=secsNowLast!==null?secsNow-secsNowLast:0;secsNowLast=secsNow;if(secsElapsed>maxElapsed){secsElapsed=maxElapsed;}if(secsElapsed<minElapsed){secsElapsed=minElapsed;}var delta=Math.max(-1,Math.min(1,-e.deltaY*40));if(delta===0){return;}var normalizedDelta=delta/Math.abs(delta);updates.dollyDelta+=-normalizedDelta*secsElapsed*configs.mouseWheelDollyRate;if(mouseMovedOnCanvasSinceLastWheel){states.followPointerDirty=true;mouseMovedOnCanvasSinceLastWheel=false;}},{passive:true});}_createClass(MousePanRotateDollyHandler,[{key:"reset",value:function reset(){}},{key:"destroy",value:function destroy(){var canvas=this._scene.canvas.canvas;document.removeEventListener("keydown",this._documentKeyDownHandler);document.removeEventListener("keyup",this._documentKeyUpHandler);canvas.removeEventListener("mousedown",this._mouseDownHandler);document.removeEventListener("mousemove",this._documentMouseMoveHandler);canvas.removeEventListener("mousemove",this._canvasMouseMoveHandler);document.removeEventListener("mouseup",this._documentMouseUpHandler);canvas.removeEventListener("mouseup",this._mouseUpHandler);canvas.removeEventListener("mouseenter",this._mouseEnterHandler);canvas.removeEventListener("wheel",this._mouseWheelHandler);}}]);return MousePanRotateDollyHandler;}();var center=math.vec3();var tempVec3a$5=math.vec3();var tempVec3b$2=math.vec3();var tempVec3c$1=math.vec3();var tempVec3d=math.vec3();var tempCameraTarget={eye:math.vec3(),look:math.vec3(),up:math.vec3()};/**
22970
22970
  * @private
22971
22971
  */var KeyboardAxisViewHandler=/*#__PURE__*/function(){function KeyboardAxisViewHandler(scene,controllers,configs,states){_classCallCheck(this,KeyboardAxisViewHandler);this._scene=scene;var cameraControl=controllers.cameraControl;var camera=scene.camera;this._onSceneKeyDown=scene.input.on("keydown",function(){if(!(configs.active&&configs.pointerEnabled)||!scene.input.keyboardEnabled){return;}if(configs.keyboardEnabledOnlyIfMouseover&&!states.mouseover){return;}var axisViewRight=cameraControl._isKeyDownForAction(cameraControl.AXIS_VIEW_RIGHT);var axisViewBack=cameraControl._isKeyDownForAction(cameraControl.AXIS_VIEW_BACK);var axisViewLeft=cameraControl._isKeyDownForAction(cameraControl.AXIS_VIEW_LEFT);var axisViewFront=cameraControl._isKeyDownForAction(cameraControl.AXIS_VIEW_FRONT);var axisViewTop=cameraControl._isKeyDownForAction(cameraControl.AXIS_VIEW_TOP);var axisViewBottom=cameraControl._isKeyDownForAction(cameraControl.AXIS_VIEW_BOTTOM);if(!axisViewRight&&!axisViewBack&&!axisViewLeft&&!axisViewFront&&!axisViewTop&&!axisViewBottom){return;}var aabb=scene.aabb;var diag=math.getAABB3Diag(aabb);math.getAABB3Center(aabb,center);var perspectiveDist=Math.abs(diag/Math.tan(controllers.cameraFlight.fitFOV*math.DEGTORAD));var orthoScale=diag*1.1;tempCameraTarget.orthoScale=orthoScale;if(axisViewRight){tempCameraTarget.eye.set(math.addVec3(center,math.mulVec3Scalar(camera.worldRight,perspectiveDist,tempVec3a$5),tempVec3d));tempCameraTarget.look.set(center);tempCameraTarget.up.set(camera.worldUp);}else if(axisViewBack){tempCameraTarget.eye.set(math.addVec3(center,math.mulVec3Scalar(camera.worldForward,perspectiveDist,tempVec3a$5),tempVec3d));tempCameraTarget.look.set(center);tempCameraTarget.up.set(camera.worldUp);}else if(axisViewLeft){tempCameraTarget.eye.set(math.addVec3(center,math.mulVec3Scalar(camera.worldRight,-perspectiveDist,tempVec3a$5),tempVec3d));tempCameraTarget.look.set(center);tempCameraTarget.up.set(camera.worldUp);}else if(axisViewFront){tempCameraTarget.eye.set(math.addVec3(center,math.mulVec3Scalar(camera.worldForward,-perspectiveDist,tempVec3a$5),tempVec3d));tempCameraTarget.look.set(center);tempCameraTarget.up.set(camera.worldUp);}else if(axisViewTop){tempCameraTarget.eye.set(math.addVec3(center,math.mulVec3Scalar(camera.worldUp,perspectiveDist,tempVec3a$5),tempVec3d));tempCameraTarget.look.set(center);tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward,1,tempVec3b$2),tempVec3c$1));}else if(axisViewBottom){tempCameraTarget.eye.set(math.addVec3(center,math.mulVec3Scalar(camera.worldUp,-perspectiveDist,tempVec3a$5),tempVec3d));tempCameraTarget.look.set(center);tempCameraTarget.up.set(math.normalizeVec3(math.mulVec3Scalar(camera.worldForward,-1,tempVec3b$2)));}if(!configs.firstPerson&&configs.followPointer){controllers.pivotController.setPivotPos(center);}if(controllers.cameraFlight.duration>0){controllers.cameraFlight.flyTo(tempCameraTarget,function(){if(controllers.pivotController.getPivoting()&&configs.followPointer){controllers.pivotController.showPivot();}});}else{controllers.cameraFlight.jumpTo(tempCameraTarget);if(controllers.pivotController.getPivoting()&&configs.followPointer){controllers.pivotController.showPivot();}}});}_createClass(KeyboardAxisViewHandler,[{key:"reset",value:function reset(){}},{key:"destroy",value:function destroy(){this._scene.input.off(this._onSceneKeyDown);}}]);return KeyboardAxisViewHandler;}();/**
22972
22972
  * @private
@@ -23611,7 +23611,7 @@ _this114._configs={// Private
23611
23611
  longTapTimeout:600,// Millisecs
23612
23612
  longTapRadius:5,// Pixels
23613
23613
  // General
23614
- active:true,keyboardLayout:"qwerty",navMode:"orbit",planView:false,firstPerson:false,followPointer:true,doublePickFlyTo:true,panRightClick:true,showPivot:false,pointerEnabled:true,constrainVertical:false,smartPivot:false,doubleClickTimeFrame:250,snapToVertex:DEFAULT_SNAP_VERTEX,snapToEdge:DEFAULT_SNAP_EDGE,snapRadius:DEFAULT_SNAP_PICK_RADIUS,keyboardEnabledOnlyIfMouseover:true,// Rotation
23614
+ active:true,keyboardLayout:"qwerty",navMode:"orbit",planView:false,firstPerson:false,followPointer:true,doublePickFlyTo:true,panRightClick:true,showPivot:false,pointerEnabled:true,constrainVertical:false,smartPivot:false,doubleClickTimeFrame:250,zoomOnMouseWheel:true,snapToVertex:DEFAULT_SNAP_VERTEX,snapToEdge:DEFAULT_SNAP_EDGE,snapRadius:DEFAULT_SNAP_PICK_RADIUS,keyboardEnabledOnlyIfMouseover:true,// Rotation
23615
23615
  dragRotationRate:360.0,keyboardRotationRate:90.0,rotationInertia:0.0,// Panning
23616
23616
  keyboardPanRate:1.0,touchPanRate:1.0,panInertia:0.5,// Dollying
23617
23617
  keyboardDollyRate:10,mouseWheelDollyRate:100,touchDollyRate:0.2,dollyInertia:0,dollyProximityThreshold:30.0,dollyMinSpeed:0.04};// Current runtime state of the CameraControl
@@ -24130,9 +24130,19 @@ value=value||"qwerty";if(value!=="qwerty"&&value!=="azerty"){this.error("Unsuppo
24130
24130
  *
24131
24131
  * @param {Number} value Current double click time frame.
24132
24132
  */function get(){return this._configs.doubleClickTimeFrame;}/**
24133
+ * Sets whether to zoom the camera on mouse wheel
24134
+ *
24135
+ * Default is ````true````
24136
+ *
24137
+ * @param {Boolean} enabled
24138
+ */,set:function set(value){this._configs.doubleClickTimeFrame=value!==undefined&&value!==null?value:250;}},{key:"zoomOnMouseWheel",get:/**
24139
+ * Gets whether to zoom the camera on mouse wheel
24140
+ *
24141
+ * @returns {Boolean}
24142
+ */function get(){return this._configs.zoomOnMouseWheel;}/**
24133
24143
  * Destroys this ````CameraControl````.
24134
24144
  * @private
24135
- */,set:function set(value){this._configs.doubleClickTimeFrame=value!==undefined&&value!==null?value:250;}},{key:"destroy",value:function destroy(){this._destroyHandlers();this._destroyControllers();this._cameraUpdater.destroy();_get(_getPrototypeOf(CameraControl.prototype),"destroy",this).call(this);}},{key:"_destroyHandlers",value:function _destroyHandlers(){for(var _i491=0,len=this._handlers.length;_i491<len;_i491++){var handler=this._handlers[_i491];if(handler.destroy){handler.destroy();}}}},{key:"_destroyControllers",value:function _destroyControllers(){for(var _i492=0,len=this._controllers.length;_i492<len;_i492++){var controller=this._controllers[_i492];if(controller.destroy){controller.destroy();}}}}]);return CameraControl;}(Component);/**
24145
+ */,set:function set(enabled){this._configs.zoomOnMouseWheel=!!enabled;}},{key:"destroy",value:function destroy(){this._destroyHandlers();this._destroyControllers();this._cameraUpdater.destroy();_get(_getPrototypeOf(CameraControl.prototype),"destroy",this).call(this);}},{key:"_destroyHandlers",value:function _destroyHandlers(){for(var _i491=0,len=this._handlers.length;_i491<len;_i491++){var handler=this._handlers[_i491];if(handler.destroy){handler.destroy();}}}},{key:"_destroyControllers",value:function _destroyControllers(){for(var _i492=0,len=this._controllers.length;_i492<len;_i492++){var controller=this._controllers[_i492];if(controller.destroy){controller.destroy();}}}}]);return CameraControl;}(Component);/**
24136
24146
  * @desc A property within a {@link PropertySet}.
24137
24147
  *
24138
24148
  * @class Property