chore: rename @nodes -> @nodarium for everything
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 3m33s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 3m33s
This commit is contained in:
20
app/src/lib/graph-interface/components/Camera.svelte
Normal file
20
app/src/lib/graph-interface/components/Camera.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import { T } from "@threlte/core";
|
||||
import { type OrthographicCamera } from "three";
|
||||
type Props = {
|
||||
camera: OrthographicCamera;
|
||||
position: [number, number, number];
|
||||
};
|
||||
|
||||
let { camera = $bindable(), position }: Props = $props();
|
||||
</script>
|
||||
|
||||
<T.OrthographicCamera
|
||||
bind:ref={camera}
|
||||
position.x={position[0]}
|
||||
position.y={10}
|
||||
position.z={position[1]}
|
||||
rotation.x={-Math.PI / 2}
|
||||
zoom={position[2]}
|
||||
makeDefault
|
||||
/>
|
||||
Reference in New Issue
Block a user