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.
1 parent 2ae90f2 commit 8baa2a0Copy full SHA for 8baa2a0
1 file changed
src/webgl-preview.ts
@@ -156,7 +156,7 @@ export class WebGLPreview {
156
private devMode?: boolean | DevModeOptions = false;
157
private _lastRenderTime = 0;
158
private _wireframe = false;
159
- private stats?: Stats = this.devMode ? new Stats() : undefined;
+ private stats?: Stats;
160
private statsContainer?: HTMLElement;
161
private devGui?: DevGUI;
162
@@ -182,6 +182,7 @@ export class WebGLPreview {
182
this.renderTubes = opts.renderTubes ?? this.renderTubes;
183
this.extrusionWidth = opts.extrusionWidth ?? this.extrusionWidth;
184
this.devMode = opts.devMode ?? this.devMode;
185
+ this.stats = this.devMode ? new Stats() : undefined;
186
187
if (opts.extrusionColor !== undefined) {
188
this.extrusionColor = opts.extrusionColor;
0 commit comments