@viamrobotics/motion-tools 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,14 +14,14 @@
14
14
  Vector3,
15
15
  Vector4,
16
16
  } from 'three'
17
- import CameraControls from 'camera-controls'
17
+ import Controls from 'camera-controls'
18
18
  import { T, useTask, useThrelte } from '@threlte/core'
19
19
  import type { Snippet } from 'svelte'
20
20
 
21
21
  let installed = false
22
22
 
23
23
  const install = () => {
24
- CameraControls.install({
24
+ Controls.install({
25
25
  THREE: {
26
26
  Box3,
27
27
  Matrix4,
@@ -40,7 +40,7 @@
40
40
 
41
41
  <script lang="ts">
42
42
  interface Props {
43
- ref?: CameraControls
43
+ ref?: Controls
44
44
  enabled?: boolean
45
45
  children?: Snippet
46
46
  }
@@ -53,7 +53,7 @@
53
53
 
54
54
  const { camera, dom, invalidate } = useThrelte()
55
55
 
56
- const controls = new CameraControls(camera.current as PerspectiveCamera, dom)
56
+ const controls = new Controls(camera.current as PerspectiveCamera, dom)
57
57
 
58
58
  $effect.pre(() => {
59
59
  controls.camera = $camera as PerspectiveCamera
@@ -1,7 +1,7 @@
1
- import CameraControls from 'camera-controls';
1
+ import Controls from 'camera-controls';
2
2
  import type { Snippet } from 'svelte';
3
3
  interface Props {
4
- ref?: CameraControls;
4
+ ref?: Controls;
5
5
  enabled?: boolean;
6
6
  children?: Snippet;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/motion-tools",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Motion visualization with Viam",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",