Skip to content

Commit

Permalink
0.1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
Neosoulink committed Jan 24, 2024
1 parent e5ffed7 commit 7ecef35
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quick-threejs",
"version": "0.1.26",
"version": "0.1.27",
"description": "Quick threejs helper",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export default class QuickThreejs {
if (typeof props?.gridSizes === "number") {
const GRID_HELPER = new THREE.GridHelper(
props?.gridSizes,
props?.gridSizes
props?.gridSizes,
);
this.scene.add(GRID_HELPER);
}
Expand Down
10 changes: 5 additions & 5 deletions src/utils/Resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class Resources extends EventEmitter {
this.loaders.gltfLoader = new GLTFLoader(this.loadingManager);
this.loaders.textureLoader = new THREE.TextureLoader(this.loadingManager);
this.loaders.cubeTextureLoader = new THREE.CubeTextureLoader(
this.loadingManager
this.loadingManager,
);
}

Expand All @@ -116,22 +116,22 @@ export default class Resources extends EventEmitter {
if (!this.items[source.name]) {
if (source.type === "gltfModel" && typeof source.path === "string") {
this.loaders.gltfLoader?.load(source.path, (file) =>
this.sourceLoaded(source, file)
this.sourceLoaded(source, file),
);
}
if (source.type === "texture" && typeof source.path === "string") {
this.loaders.textureLoader?.load(source.path, (file) =>
this.sourceLoaded(source, file)
this.sourceLoaded(source, file),
);
}
if (source.type === "cubeTexture" && typeof source.path === "object") {
this.loaders.cubeTextureLoader?.load(source.path, (file) =>
this.sourceLoaded(source, file)
this.sourceLoaded(source, file),
);
}
if (source.type === "video" && typeof source.path === "string") {
this._videoLoader.load(source.path, (element) =>
this.sourceLoaded(source, element)
this.sourceLoaded(source, element),
);
}
}
Expand Down

0 comments on commit 7ecef35

Please sign in to comment.