diff --git a/src/drawables/shapes/noisy-polygon-factory.ts b/src/drawables/shapes/noisy-polygon-factory.ts index ee76099..643c583 100644 --- a/src/drawables/shapes/noisy-polygon-factory.ts +++ b/src/drawables/shapes/noisy-polygon-factory.ts @@ -7,6 +7,7 @@ import { PolygonBase, PolygonFactory } from './polygon-factory'; interface NoisyPolygonBase extends PolygonBase { randomOffset: number; } + /** * @category Drawable */ diff --git a/src/graphics/graphics-library/frame-buffer/frame-buffer.ts b/src/graphics/graphics-library/frame-buffer/frame-buffer.ts index e00053c..44a9071 100644 --- a/src/graphics/graphics-library/frame-buffer/frame-buffer.ts +++ b/src/graphics/graphics-library/frame-buffer/frame-buffer.ts @@ -28,7 +28,7 @@ export abstract class FrameBuffer { public setSize(): boolean { const realToCssPixels = - (this.enableHighDpiRendering ? window.devicePixelRatio : 1) * this.renderScale; + (this.enableHighDpiRendering ? devicePixelRatio : 1) * this.renderScale; const canvasWidth = (this.gl.canvas as HTMLCanvasElement).clientWidth; const canvasHeight = (this.gl.canvas as HTMLCanvasElement).clientHeight;