Skip to content

Commit d72350e

Browse files
committed
style: fix js styles.
1 parent 899eccb commit d72350e

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

src/demo/demo.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { Scene } from '../scene.js';
2-
import { Particles } from '../particles.js';
3-
import { Renderer } from '../renderer.js';
4-
import { Gui } from '../gui.js';
5-
import { loadTextures } from '../texture.js';
6-
import { loadSettings, exportSettings } from '../settings.js';
1+
import {Scene} from '../scene.js';
2+
import {Particles} from '../particles.js';
3+
import {Renderer} from '../renderer.js';
4+
import {Gui} from '../gui.js';
5+
import {loadTextures} from '../texture.js';
6+
import {loadSettings, exportSettings} from '../settings.js';
77
import '../assets/css/main.css';
88

99
export async function initWebGLTechParticles(containerId) {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export async function initWebGLTechParticles(containerId, settingsPath) {
1515
scene.init();
1616
particles.init();
1717
renderer.init();
18-
}
18+
}

src/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export class Renderer {
55
this.scene = scene;
66
this.particles = particles;
77
this.containerId = containerId;
8-
this.renderer = new THREE.WebGLRenderer({ antialias: true });
8+
this.renderer = new THREE.WebGLRenderer({antialias: true});
99
}
1010

1111
init() {

src/scene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as THREE from 'three';
2-
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
2+
import {OrbitControls} from 'three/addons/controls/OrbitControls.js';
33

44
export class Scene {
55
constructor(settings, containerId) {

src/settings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export async function loadSettings(settingsPath) {
44
if (!response.ok) {
55
throw new Error(`Failed to load settings from ${path}`);
66
}
7+
78
return await response.json();
89
}
910

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ module.exports = {
5151
plugins: [
5252
new CopyWebpackPlugin({
5353
patterns: [
54-
{ from: 'settings.json', to: 'settings.json' },
55-
{ from: 'src/assets/icons', to: 'assets/icons' },
54+
{from: 'settings.json', to: 'settings.json'},
55+
{from: 'src/assets/icons', to: 'assets/icons'},
5656
],
5757
}),
5858
],

0 commit comments

Comments
 (0)