Skip to content

Commit

Permalink
add accessor for bounding client rect
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Mar 12, 2015
1 parent 75a61f6 commit 0557092
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ Viewer.prototype = {
requestAnimFrame(this._boundDraw);
},

boundingClientRect : function() {
return this._domElement.getBoundingClientRect();
},

_drawWithPass : function(pass) {
for (var i = 0, e = this._objects.length; i !== e; ++i) {
this._objects[i]
Expand Down

0 comments on commit 0557092

Please sign in to comment.