Format
All checks were successful
Check / check (push) Successful in 32s
Publish / build (push) Successful in 34s
Publish / publish-npm (push) Has been skipped

This commit is contained in:
Andras Schmelczer 2026-06-10 22:04:44 +01:00
parent 3755177843
commit 4d96749087
2 changed files with 5 additions and 4 deletions

View file

@ -146,9 +146,9 @@ export const PolygonFactory = (
private get actualVertices(): Array<vec2> { private get actualVertices(): Array<vec2> {
return this.vertices.length < vertexCount return this.vertices.length < vertexCount
? ([ ? ([
...this.vertices, ...this.vertices,
...new Array(vertexCount - this.vertices.length).fill(this.vertices[0]), ...new Array(vertexCount - this.vertices.length).fill(this.vertices[0]),
] as Array<vec2>) ] as Array<vec2>)
: this.vertices; : this.vertices;
} }

View file

@ -147,7 +147,8 @@ export class ParallelCompiler {
console.error( console.error(
formatLog( formatLog(
'parallel-compiler', 'parallel-compiler',
`Error: ${error}\nSource (line ${line}):\n${shader.source.split('\n')[line - 1] `Error: ${error}\nSource (line ${line}):\n${
shader.source.split('\n')[line - 1]
}` }`
) )
); );