Skip to content

Commit 2ce6e6c

Browse files
committed
Fix ci errors
1 parent 025a9fb commit 2ce6e6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/typegpu-docs/src/examples/simple/rotating-triangle-tiles/params.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const INITIAL_STEP_ROTATION = 60;
77
const INITIAL_MIDDLE_SQUARE_SCALE = 2;
88
const DEFAULT_ROTATION_TO_MIDDLE_SQUARE_SCALE_ARRAY = 2;
99

10-
let cubicBezierControlPoints: [number, number, number, number] = [
10+
const cubicBezierControlPoints: [number, number, number, number] = [
1111
0.18,
1212
0.7,
1313
0.68,
@@ -31,7 +31,7 @@ function parseControlPoints(value: string) {
3131

3232
function parseOneControlPoint(value: string, index: number) {
3333
const parsedNumber = Number(value);
34-
if (isNaN(parsedNumber)) {
34+
if (Number.isNaN(parsedNumber)) {
3535
throw Error('Cubic Bezier control point must be a number');
3636
}
3737
if ((index % 2 === 0) && (parsedNumber < 0 || parsedNumber > 1)) {

apps/typegpu-docs/src/examples/simple/rotating-triangle-tiles/transformations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import tgpu, { type TgpuAccessor, type TgpuUniform } from 'typegpu';
1+
import tgpu from 'typegpu';
22
import * as d from 'typegpu/data';
33
import * as std from 'typegpu/std';
44
import type { InstanceInfo } from './instanceInfo.ts';

0 commit comments

Comments
 (0)