Formatting changes
This commit is contained in:
parent
a15cb9e19c
commit
258529b039
2 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ import { PolygonBase, PolygonFactory } from './polygon-factory';
|
|||
interface NoisyPolygonBase extends PolygonBase {
|
||||
randomOffset: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Drawable
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue