Skip to content

Commit

Permalink
update formatting with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Oct 14, 2023
1 parent 5f07fb8 commit 840b5e1
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>AI in AssemblyScript</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/glas-esm/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>🕶️ GLAS - WebGL in AssemblyScript</title>
Expand Down
2 changes: 1 addition & 1 deletion examples/glas-global-var/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>🕶️ GLAS - WebGL in AssemblyScript</title>
Expand Down
5 changes: 4 additions & 1 deletion src/as/core/Clock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export class Clock {
/**
* @param autoStart Automatically start the clock.
*/
constructor(autoStart: boolean = true, private getNow: () => i64 = getTime) {
constructor(
autoStart: boolean = true,
private getNow: () => i64 = getTime
) {
this.getNow = getNow
this.autoStart = autoStart
}
Expand Down
5 changes: 4 additions & 1 deletion src/as/math/Ray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const _normal = new Vector3()
* @author bhouston / http://clara.io
*/
export class Ray {
constructor(public origin: Vector3 = new Vector3(), public direction: Vector3 = new Vector3(0, 0, -1)) {}
constructor(
public origin: Vector3 = new Vector3(),
public direction: Vector3 = new Vector3(0, 0, -1)
) {}

public set(origin: Vector3, direction: Vector3): Ray {
this.origin.copy(origin)
Expand Down
5 changes: 4 additions & 1 deletion src/as/renderers/webgl/WebGLObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ import { Mesh } from '../../objects/Mesh'
export class WebGLObjects {
private updateList: Map<i32, f32> = new Map()

constructor(private geometries: WebGLGeometries, private info: WebGLInfo) {}
constructor(
private geometries: WebGLGeometries,
private info: WebGLInfo
) {}

update(object: Mesh): void {
var frame = this.info.render.frame
Expand Down

0 comments on commit 840b5e1

Please sign in to comment.