We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f73593b commit 3c2db27Copy full SHA for 3c2db27
1 file changed
examples/js/renderers/CSS3DRenderer.js
@@ -88,6 +88,15 @@ THREE.CSS3DRenderer = function () {
88
cameraElement.style.height = height + 'px';
89
90
};
91
+
92
+ /**
93
+ * Returns the renderers pixel size as descriptive object
94
+ *
95
+ * @returns {Object} The size object with keys 'width' and 'height'
96
+ */
97
+ this.getSize = function() {
98
+ return {width: _width, height: _height};
99
+ };
100
101
var epsilon = function ( value ) {
102
0 commit comments