Skip to content

Commit

Permalink
chore(pre-release): merge #254 from dev
Browse files Browse the repository at this point in the history
### Logs

- chore(pre-release): drop `three-addon` imports
  • Loading branch information
Neosoulink authored Nov 28, 2024
2 parents 42921cc + eb4ee1b commit 7d23027
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/polite-moons-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@quick-threejs/reactive": patch
---

# Logs

## refactor(reactive): drop `threejs` `Addon` imports
2 changes: 1 addition & 1 deletion packages/legacy/src/utils/Debug.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as THREE from "three";
import { OrbitControls } from "three/examples/jsm/Addons";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import GUI from "three/examples/jsm/libs/lil-gui.module.min.js";
import Stats from "stats.js";

Expand Down
3 changes: 2 additions & 1 deletion packages/legacy/src/utils/Resources.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as THREE from "three";
import { EventEmitter } from "events";
import { type GLTF, GLTFLoader, DRACOLoader } from "three/examples/jsm/Addons";
import { type GLTF, GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";

import { QuickThreejs } from "..";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CubeTextureLoader, Texture, VideoTexture } from "three";
import { GLTF } from "three/examples/jsm/Addons";
import { GLTF } from "three/examples/jsm/loaders/GLTFLoader";

export type LoadedResourceItem =
| GLTF
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive/src/core/app/debug/debug.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { inject, singleton } from "tsyringe";
import { AxesHelper, Camera, CameraHelper, GridHelper } from "three";
import { OrbitControls } from "three/examples/jsm/Addons";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";

import { CameraComponent } from "../camera/camera.component";
import { AppComponent } from "../app.component";
Expand Down
3 changes: 2 additions & 1 deletion packages/reactive/src/core/loader/loader.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
LoadingManager,
VideoTexture
} from "three";
import { DRACOLoader, GLTFLoader } from "three/examples/jsm/Addons";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";

import {
LoadedResourceItem,
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive/src/core/loader/loader.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "reflect-metadata";

import { container, inject, Lifecycle, scoped } from "tsyringe";
import { CanvasTexture } from "three";
import { DRACOLoader } from "three/examples/jsm/Addons";
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
import { WorkerThreadModule } from "@quick-threejs/utils";

import { LoaderController } from "./loader.controller";
Expand Down

0 comments on commit 7d23027

Please sign in to comment.