Skip to content

Commit

Permalink
Update App.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
LimesKey authored Sep 11, 2024
1 parent fb1f825 commit 21d0ba0
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions showcase/src/lib/components/App.svelte
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>

0 comments on commit 21d0ba0

Please sign in to comment.