-
Notifications
You must be signed in to change notification settings - Fork 830
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
<script lang="ts"> | ||
import Model from './models/pcb.svelte'; | ||
import { T, useFrame} from '@threlte/core'; | ||
import { OrbitControls } from '@threlte/extras' | ||
import { Canvas } from '@threlte/core'; | ||
import Scene from './Scene.svelte'; | ||
</script> | ||
|
||
<T.AmbientLight intensity={2} /> | ||
|
||
<T.OrthographicCamera | ||
zoom={42} | ||
makeDefault | ||
position={[0, 0, 100]}> | ||
|
||
<OrbitControls | ||
autoRotate | ||
enableDamping | ||
enablePan={false} | ||
enableZoom={false} | ||
/> | ||
|
||
</T.OrthographicCamera> | ||
|
||
<Model scale={100} position.x={-15.35} position.y={8} position.z={0} /> | ||
<div> | ||
<Canvas> | ||
<Scene /> | ||
</Canvas> | ||
</div> | ||
|
||
<style> | ||
div { | ||
max-width: 100%; | ||
min-height: 100%; | ||
object-fit: contain; | ||
} | ||
</style> |