Skip to content

Commit 6935047

Browse files
committed
CSS3DRenderer: Clean up.
1 parent efc969a commit 6935047

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

examples/js/renderers/CSS3DRenderer.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ THREE.CSS3DRenderer = function () {
6969

7070
domElement.appendChild( cameraElement );
7171

72-
this.setClearColor = function () {
72+
this.setClearColor = function () {};
73+
74+
this.getSize = function() {
75+
76+
return {
77+
width: _width,
78+
height: _height
79+
};
7380

7481
};
7582

@@ -88,15 +95,6 @@ THREE.CSS3DRenderer = function () {
8895
cameraElement.style.height = height + 'px';
8996

9097
};
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-
};
10098

10199
var epsilon = function ( value ) {
102100

0 commit comments

Comments
 (0)