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 ee3ffd8 commit 6048c7cCopy full SHA for 6048c7c
Sources/Interaction/UI/FPSMonitor/index.js
@@ -107,8 +107,10 @@ function vtkFPSMonitor(publicAPI, model) {
107
// --------------------------------------------------------------------------
108
109
publicAPI.update = () => {
110
- model.canvas.setAttribute('width', model.bufferSize);
111
- model.canvas.setAttribute('height', model.graphHeight);
+ if (model.canvas) {
+ model.canvas.setAttribute('width', model.bufferSize);
112
+ model.canvas.setAttribute('height', model.graphHeight);
113
+ }
114
updateInformations();
115
publicAPI.render();
116
};
0 commit comments