Bump dependencies
This commit is contained in:
parent
346fc96df8
commit
c6438a9e21
20 changed files with 115 additions and 72 deletions
|
|
@ -5,7 +5,11 @@ import { Drawable } from '../../main';
|
|||
export abstract class LightDrawable extends Drawable {
|
||||
protected lightnessRatio = 1;
|
||||
|
||||
constructor(public center: vec2, public color: vec3, public intensity: number) {
|
||||
constructor(
|
||||
public center: vec2,
|
||||
public color: vec3,
|
||||
public intensity: number
|
||||
) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@ import { EmptyDrawable } from '../empty-drawable';
|
|||
* @category Drawable
|
||||
*/
|
||||
class CircleBase extends EmptyDrawable {
|
||||
constructor(public center: vec2, public radius: number) {
|
||||
constructor(
|
||||
public center: vec2,
|
||||
public radius: number
|
||||
) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,11 @@ export class ColorfulCircle extends Drawable {
|
|||
empty: new ColorfulCircle(vec2.create(), 0, 0),
|
||||
};
|
||||
|
||||
constructor(public center: vec2, public radius: number, public colorIndex: number) {
|
||||
constructor(
|
||||
public center: vec2,
|
||||
public radius: number,
|
||||
public colorIndex: number
|
||||
) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@ import { EmptyDrawable } from '../empty-drawable';
|
|||
* @category Drawable
|
||||
*/
|
||||
class HexagonBase extends EmptyDrawable {
|
||||
constructor(public center: vec2, public radius: number) {
|
||||
constructor(
|
||||
public center: vec2,
|
||||
public radius: number
|
||||
) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@ import { numberToGlslFloat } from '../../helper/number-to-glsl-float';
|
|||
* @category Drawable
|
||||
*/
|
||||
class MetaCircleBase extends EmptyDrawable {
|
||||
constructor(public center: vec2, public radius: number) {
|
||||
constructor(
|
||||
public center: vec2,
|
||||
public radius: number
|
||||
) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,9 +112,9 @@ export const NoisyPolygonFactory = (
|
|||
},
|
||||
uniformCountMacroName: `NOISY_POLYGON${vertexCount}_COUNT`,
|
||||
shaderCombinationSteps: [0, 1, 2, 3, 8, 16],
|
||||
empty: (new NoisyPolygon(
|
||||
empty: new NoisyPolygon(
|
||||
new Array(vertexCount).fill(vec2.create())
|
||||
) as unknown) as Drawable,
|
||||
) as unknown as Drawable,
|
||||
};
|
||||
|
||||
public randomOffset = 0;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,11 @@ import { EmptyDrawable } from '../empty-drawable';
|
|||
* @category Drawable
|
||||
*/
|
||||
class RotatedRectangleBase extends EmptyDrawable {
|
||||
constructor(public center: vec2, public size: vec2, public rotation: number) {
|
||||
constructor(
|
||||
public center: vec2,
|
||||
public size: vec2,
|
||||
public rotation: number
|
||||
) {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ export class ParallelCompiler {
|
|||
private prettyPrintErrorsIfThereAreAny(shader: ShaderWithSource) {
|
||||
try {
|
||||
this.checkShader(shader);
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
for (const match of e.toString().matchAll(/ERROR: 0:(\d+): (.*)$/gm)) {
|
||||
const line = Number.parseInt(match[1]);
|
||||
const error = match[2];
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ import { Texture } from './texture';
|
|||
export class PaletteTexture extends Texture {
|
||||
public static readonly textureUnitId = 2;
|
||||
|
||||
constructor(gl: UniversalRenderingContext, private readonly paletteSize: number) {
|
||||
constructor(
|
||||
gl: UniversalRenderingContext,
|
||||
private readonly paletteSize: number
|
||||
) {
|
||||
super(gl, PaletteTexture.textureUnitId);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -230,7 +230,8 @@ export class RendererImplementation implements Renderer {
|
|||
this.stopwatch.start();
|
||||
} else {
|
||||
this.stopwatch.tryGetResults();
|
||||
this.gl.insights.gpuRenderTimeInMilliseconds = this.stopwatch.resultsInMilliseconds;
|
||||
this.gl.insights.gpuRenderTimeInMilliseconds =
|
||||
this.stopwatch.resultsInMilliseconds;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,11 @@ declare global {
|
|||
x: number;
|
||||
y: number;
|
||||
}
|
||||
|
||||
interface Iterable<T> {
|
||||
x: T;
|
||||
y: T;
|
||||
}
|
||||
}
|
||||
|
||||
applyArrayPlugins();
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export async function runAnimation(
|
|||
|
||||
const deltaTimeCalculator = new DeltaTimeCalculator();
|
||||
let triggerIsOver: () => void;
|
||||
const isOver = new Promise((resolve) => (triggerIsOver = resolve));
|
||||
const isOver = new Promise<void>((resolve) => (triggerIsOver = resolve));
|
||||
renderer.setRuntimeSettings(settings);
|
||||
const autoscaler = new FpsQualityAutoscaler(renderer);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue