'px';
                }
                if (this.showSubdividedView && this.canvasFilled) {
                    this.canvasFilled.width = targetLogicalWidth * dpr;
                    this.canvasFilled.height = targetLogicalWidth * dpr; 
                    this.canvasFilled.style.width = targetLogicalWidth + 'px';
                    this.canvasFilled.style.height = targetLogicalWidth + 'px';
                }
                
                this.numSurfaceSegments = Math.max(5, Math.floor(15 * (targetLog