Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 11, 2023
1 parent 8a67a0a commit c5d7072
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/xeokit-sdk.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18879,7 +18879,7 @@ class Perspective extends Component {

const WIDTH_INDEX = 2;
const HEIGHT_INDEX = 3;
const boundary = this.scene.viewport.boundary;
const boundary = this.scene.canvas.boundary;
const aspect = boundary[WIDTH_INDEX] / boundary[HEIGHT_INDEX];
const fovAxis = this._fovAxis;

Expand Down Expand Up @@ -19181,7 +19181,7 @@ class Ortho extends Component {
const scale = this._scale;
const halfSize = 0.5 * scale;

const boundary = scene.viewport.boundary;
const boundary = scene.canvas.boundary;
const boundaryWidth = boundary[WIDTH_INDEX];
const boundaryHeight = boundary[HEIGHT_INDEX];
const aspect = boundaryWidth / boundaryHeight;
Expand Down
4 changes: 2 additions & 2 deletions dist/xeokit-sdk.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -18875,7 +18875,7 @@ class Perspective extends Component {

const WIDTH_INDEX = 2;
const HEIGHT_INDEX = 3;
const boundary = this.scene.viewport.boundary;
const boundary = this.scene.canvas.boundary;
const aspect = boundary[WIDTH_INDEX] / boundary[HEIGHT_INDEX];
const fovAxis = this._fovAxis;

Expand Down Expand Up @@ -19177,7 +19177,7 @@ class Ortho extends Component {
const scale = this._scale;
const halfSize = 0.5 * scale;

const boundary = scene.viewport.boundary;
const boundary = scene.canvas.boundary;
const boundaryWidth = boundary[WIDTH_INDEX];
const boundaryHeight = boundary[HEIGHT_INDEX];
const aspect = boundaryWidth / boundaryHeight;
Expand Down
4 changes: 2 additions & 2 deletions dist/xeokit-sdk.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -4923,7 +4923,7 @@ var tolerance=2;this.on("mousedown",function(params){downX=params[0];downY=param
*/_this29.camera=camera;_this29._state=new RenderState({matrix:math.mat4(),inverseMatrix:math.mat4(),transposedMatrix:math.mat4(),near:0.1,far:2000.0});_this29._inverseMatrixDirty=true;_this29._transposedMatrixDirty=true;_this29._fov=60.0;// Recompute aspect from change in canvas size
_this29._canvasResized=_this29.scene.canvas.on("boundary",_this29._needUpdate,_assertThisInitialized(_this29));_this29.fov=cfg.fov;_this29.fovAxis=cfg.fovAxis;_this29.near=cfg.near;_this29.far=cfg.far;return _this29;}_createClass(Perspective,[{key:"type",get:/**
@private
*/function get(){return"Perspective";}},{key:"_update",value:function _update(){var WIDTH_INDEX=2;var HEIGHT_INDEX=3;var boundary=this.scene.viewport.boundary;var aspect=boundary[WIDTH_INDEX]/boundary[HEIGHT_INDEX];var fovAxis=this._fovAxis;var fov=this._fov;if(fovAxis==="x"||fovAxis==="min"&&aspect<1||fovAxis==="max"&&aspect>1){fov=fov/aspect;}fov=Math.min(fov,120);math.perspectiveMat4(fov*(Math.PI/180.0),aspect,this._state.near,this._state.far,this._state.matrix);this._inverseMatrixDirty=true;this._transposedMatrixDirty=true;this.glRedraw();this.camera._updateScheduled=true;this.fire("matrix",this._state.matrix);}/**
*/function get(){return"Perspective";}},{key:"_update",value:function _update(){var WIDTH_INDEX=2;var HEIGHT_INDEX=3;var boundary=this.scene.canvas.boundary;var aspect=boundary[WIDTH_INDEX]/boundary[HEIGHT_INDEX];var fovAxis=this._fovAxis;var fov=this._fov;if(fovAxis==="x"||fovAxis==="min"&&aspect<1||fovAxis==="max"&&aspect>1){fov=fov/aspect;}fov=Math.min(fov,120);math.perspectiveMat4(fov*(Math.PI/180.0),aspect,this._state.near,this._state.far,this._state.matrix);this._inverseMatrixDirty=true;this._transposedMatrixDirty=true;this.glRedraw();this.camera._updateScheduled=true;this.fire("matrix",this._state.matrix);}/**
* Sets the Perspective's field-of-view angle (FOV).
*
* Fires an "fov" event on change.
Expand Down Expand Up @@ -5032,7 +5032,7 @@ this.fire("far",this._state.far);}},{key:"matrix",get:function get(){if(this._up
* @final
*/_this30.camera=camera;_this30._state=new RenderState({matrix:math.mat4(),inverseMatrix:math.mat4(),transposedMatrix:math.mat4(),near:0.1,far:2000.0});_this30._inverseMatrixDirty=true;_this30._transposedMatrixDirty=true;_this30.scale=cfg.scale;_this30.near=cfg.near;_this30.far=cfg.far;_this30._onCanvasBoundary=_this30.scene.canvas.on("boundary",_this30._needUpdate,_assertThisInitialized(_this30));return _this30;}_createClass(Ortho,[{key:"type",get:/**
@private
*/function get(){return"Ortho";}},{key:"_update",value:function _update(){var WIDTH_INDEX=2;var HEIGHT_INDEX=3;var scene=this.scene;var scale=this._scale;var halfSize=0.5*scale;var boundary=scene.viewport.boundary;var boundaryWidth=boundary[WIDTH_INDEX];var boundaryHeight=boundary[HEIGHT_INDEX];var aspect=boundaryWidth/boundaryHeight;var left;var right;var top;var bottom;if(boundaryWidth>boundaryHeight){left=-halfSize;right=halfSize;top=halfSize/aspect;bottom=-halfSize/aspect;}else{left=-halfSize*aspect;right=halfSize*aspect;top=halfSize;bottom=-halfSize;}math.orthoMat4c(left,right,bottom,top,this._state.near,this._state.far,this._state.matrix);this._inverseMatrixDirty=true;this._transposedMatrixDirty=true;this.glRedraw();this.fire("matrix",this._state.matrix);}/**
*/function get(){return"Ortho";}},{key:"_update",value:function _update(){var WIDTH_INDEX=2;var HEIGHT_INDEX=3;var scene=this.scene;var scale=this._scale;var halfSize=0.5*scale;var boundary=scene.canvas.boundary;var boundaryWidth=boundary[WIDTH_INDEX];var boundaryHeight=boundary[HEIGHT_INDEX];var aspect=boundaryWidth/boundaryHeight;var left;var right;var top;var bottom;if(boundaryWidth>boundaryHeight){left=-halfSize;right=halfSize;top=halfSize/aspect;bottom=-halfSize/aspect;}else{left=-halfSize*aspect;right=halfSize*aspect;top=halfSize;bottom=-halfSize;}math.orthoMat4c(left,right,bottom,top,this._state.near,this._state.far,this._state.matrix);this._inverseMatrixDirty=true;this._transposedMatrixDirty=true;this.glRedraw();this.fire("matrix",this._state.matrix);}/**
* Sets scale factor for this Ortho's extents on X and Y axis.
*
* Clamps to minimum value of ````0.01```.
Expand Down
2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.es5.js

Large diffs are not rendered by default.

0 comments on commit c5d7072

Please sign in to comment.