We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b295cde + 9153f14 commit e18e95eCopy full SHA for e18e95e
src/two.js
@@ -250,7 +250,10 @@ export default class Two {
250
_.extend(this.renderer.domElement.style, {
251
display: 'block',
252
});
253
- } else if (!_.isElement(params.domElement)) {
+ } else if (
254
+ typeof params.width === 'number' &&
255
+ typeof params.height === 'number'
256
+ ) {
257
this.renderer.setSize(params.width, params.height, this.ratio);
258
this.width = params.width;
259
this.height = params.height;
0 commit comments