Fix build error

This commit is contained in:
schmelczerandras 2020-10-25 17:40:34 +01:00
parent 26d014d061
commit f7d7bf002e
2 changed files with 4 additions and 4 deletions

View file

@ -23,10 +23,9 @@
"*.scss"
],
"devDependencies": {
"@types/gl-matrix": "^2.4.5",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"@types/gl-matrix": "^2.4.5",
"gl-matrix": "^3.3.0",
"autoprefixer": "^9.8.6",
"css-loader": "^3.5.2",
"eslint": "^7.9.0",
@ -34,6 +33,7 @@
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-unused-imports": "^0.1.3",
"gl-matrix": "^3.3.0",
"html-webpack-inline-source-plugin": "0.0.10",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.9.0",

View file

@ -1,4 +1,4 @@
import { vec2 } from 'gl-matrix';
import { ReadonlyVec2, vec2 } from 'gl-matrix';
import { DropletFactory, rgb } from 'sdf-2d';
import { Random } from '../../helper/random';
@ -24,7 +24,7 @@ export class DropletWrapper {
);
}
public animate(currentTime: number, viewAreaSize: vec2) {
public animate(currentTime: number, viewAreaSize: ReadonlyVec2) {
const heightOffset = 100;
vec2.set(
this.drawable.from,