Skip to content

Commit

Permalink
Update ScreenName enum name.
Browse files Browse the repository at this point in the history
  • Loading branch information
azurepolarbear committed Dec 29, 2024
1 parent ab97600 commit 504b362
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/main/horizontal-waves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import {
} from '@batpb/genart';

import { WaveScreen } from './wave-screen';
import {ScreenNames} from "./screen-names";
import {ScreenName} from "./screen-name";

Check failure on line 31 in src/main/horizontal-waves.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

A space is required after '{'

Check failure on line 31 in src/main/horizontal-waves.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

A space is required before '}'

Check failure on line 31 in src/main/horizontal-waves.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Strings must use singlequote

Check failure on line 31 in src/main/horizontal-waves.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

A space is required after '{'

Check failure on line 31 in src/main/horizontal-waves.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

A space is required before '}'

Check failure on line 31 in src/main/horizontal-waves.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Strings must use singlequote

export class HorizontalWaves extends WaveScreen {
constructor() {
super(ScreenNames.HORIZONTAL_WAVES);
super(ScreenName.HORIZONTAL_WAVES);
}

public override draw(): void {
Expand Down
2 changes: 1 addition & 1 deletion src/main/screen-names.ts → src/main/screen-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* for full license details.
*/

export enum ScreenNames {
export enum ScreenName {
HORIZONTAL_WAVES = 'horizontal_waves',
VERTICAL_WAVES = 'vertical_waves',
WAVE_TESTING = 'wave_testing'
Expand Down
4 changes: 2 additions & 2 deletions src/main/vertical-waves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ import {
P5Context,
ScreenHandler
} from '@batpb/genart';
import {ScreenNames} from "./screen-names";
import {ScreenName} from "./screen-name";

Check failure on line 31 in src/main/vertical-waves.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

A space is required after '{'

Check failure on line 31 in src/main/vertical-waves.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

A space is required before '}'

Check failure on line 31 in src/main/vertical-waves.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Strings must use singlequote

Check failure on line 31 in src/main/vertical-waves.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

A space is required after '{'

Check failure on line 31 in src/main/vertical-waves.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

A space is required before '}'

Check failure on line 31 in src/main/vertical-waves.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Strings must use singlequote

export class VerticalWaves extends CanvasScreen {
public constructor() {
super(ScreenNames.VERTICAL_WAVES);
super(ScreenName.VERTICAL_WAVES);
}

public draw(): void {
Expand Down
8 changes: 4 additions & 4 deletions src/main/wave-screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
import { PointDensity, PointSize } from './wave';

import { CategorySelector } from './category-selector';
import {ScreenNames} from "./screen-names";
import {ScreenName} from "./screen-name";

Check failure on line 40 in src/main/wave-screen.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

A space is required after '{'

Check failure on line 40 in src/main/wave-screen.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

A space is required before '}'

Check failure on line 40 in src/main/wave-screen.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Strings must use singlequote

Check failure on line 40 in src/main/wave-screen.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

A space is required after '{'

Check failure on line 40 in src/main/wave-screen.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

A space is required before '}'

Check failure on line 40 in src/main/wave-screen.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Strings must use singlequote

export abstract class WaveScreen extends CanvasScreen {
static readonly #POINT_SIZE_SELECTOR: CategorySelector<PointSize> = new CategorySelector<PointSize>([
Expand Down Expand Up @@ -109,11 +109,11 @@ export abstract class WaveScreen extends CanvasScreen {
} else if (p5.key === '0') {
console.log(`framerate = ${p5.frameRate()}`);
} else if (p5.key === 'a') {
ScreenHandler.currentScreen = ScreenNames.HORIZONTAL_WAVES;
ScreenHandler.currentScreen = ScreenName.HORIZONTAL_WAVES;
} else if (p5.key === 's') {
ScreenHandler.currentScreen = ScreenNames.VERTICAL_WAVES;
ScreenHandler.currentScreen = ScreenName.VERTICAL_WAVES;
} else if (p5.key === 'd') {
ScreenHandler.currentScreen = ScreenNames.WAVE_TESTING;
ScreenHandler.currentScreen = ScreenName.WAVE_TESTING;
} else if (p5.key === 'z') {
this.saveSocialMediaSet(1_000).then((): void => console.log('Social media set saved.'));
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/wave-testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ import {CoordinateMode, P5Context} from '@batpb/genart';

import {AmplitudeType, PointDensity, PointSize, Wave, WaveConfig, WaveFill} from './wave';
import {WaveScreen} from './wave-screen';
import {ScreenNames} from "./screen-names";
import {ScreenName} from "./screen-name";

export class WaveTesting extends WaveScreen {
#horizontalWave: Wave;
#verticalWave: Wave;
#diagonalWave: Wave;

public constructor() {
super(ScreenNames.WAVE_TESTING);
super(ScreenName.WAVE_TESTING);
const p5: P5Lib = P5Context.p5;

WaveScreen.POINT_SIZE_SELECTOR.currentCategory = PointSize.MEDIUM;
Expand Down

0 comments on commit 504b362

Please sign in to comment.