Compare commits
2 Commits
ecd9b3d824
...
237518638c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
237518638c | ||
|
|
fea1a98cea |
|
|
@ -7,7 +7,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.particles-list {
|
.particles-list {
|
||||||
max-height: 300px;
|
height: 550px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export class RendererService {
|
||||||
|
|
||||||
// Get container dimensions
|
// Get container dimensions
|
||||||
const containerWidth = container.nativeElement.clientWidth;
|
const containerWidth = container.nativeElement.clientWidth;
|
||||||
const containerHeight = 400; // Fixed height as defined in CSS
|
const containerHeight = container.nativeElement.clientHeight;
|
||||||
|
|
||||||
// Create camera
|
// Create camera
|
||||||
this.camera = new THREE.PerspectiveCamera(75, containerWidth / containerHeight, 0.1, 1000);
|
this.camera = new THREE.PerspectiveCamera(75, containerWidth / containerHeight, 0.1, 1000);
|
||||||
|
|
@ -45,8 +45,8 @@ export class RendererService {
|
||||||
this.controls = new OrbitControls(this.camera, this.renderer.domElement);
|
this.controls = new OrbitControls(this.camera, this.renderer.domElement);
|
||||||
this.controls.enableDamping = true;
|
this.controls.enableDamping = true;
|
||||||
this.controls.dampingFactor = 0.05;
|
this.controls.dampingFactor = 0.05;
|
||||||
this.controls.minDistance = 2;
|
this.controls.minDistance = 0.5;
|
||||||
this.controls.maxDistance = 10;
|
this.controls.maxDistance = 4;
|
||||||
this.controls.target.set(0, 1, 0);
|
this.controls.target.set(0, 1, 0);
|
||||||
this.controls.update();
|
this.controls.update();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user