@viamrobotics/motion-tools 0.3.0 → 0.3.1

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.
@@ -32,31 +32,33 @@
32
32
  }}
33
33
  />
34
34
 
35
- <Canvas renderMode="always">
36
- <World>
37
- <SceneProviders>
38
- {#snippet children({ focus })}
39
- <Scene>
40
- {@render appChildren?.()}
41
-
42
- {#if enableXR.current}
43
- <XR />
44
- {/if}
45
- </Scene>
35
+ <div class="relative h-full w-full">
36
+ <Canvas renderMode="always">
37
+ <World>
38
+ <SceneProviders>
39
+ {#snippet children({ focus })}
40
+ <Scene>
41
+ {@render appChildren?.()}
46
42
 
47
- <DomPortal>
48
- <Details />
49
- </DomPortal>
43
+ {#if enableXR.current}
44
+ <XR />
45
+ {/if}
46
+ </Scene>
50
47
 
51
- {#if !focus}
52
48
  <DomPortal>
53
- <TreeContainer />
49
+ <Details />
54
50
  </DomPortal>
55
- {/if}
56
- {/snippet}
57
- </SceneProviders>
58
- </World>
59
- </Canvas>
51
+
52
+ {#if !focus}
53
+ <DomPortal>
54
+ <TreeContainer />
55
+ </DomPortal>
56
+ {/if}
57
+ {/snippet}
58
+ </SceneProviders>
59
+ </World>
60
+ </Canvas>
61
+ </div>
60
62
 
61
63
  {#if enableXR.current}
62
64
  <XRButton mode="immersive-ar" />
@@ -13,7 +13,7 @@
13
13
 
14
14
  {#if object}
15
15
  {@const { geometry, pose } = object}
16
- <div class="border-medium bg-extralight fixed top-0 right-0 z-10 m-2 w-60 border p-2 text-xs">
16
+ <div class="border-medium bg-extralight absolute top-0 right-0 z-10 m-2 w-60 border p-2 text-xs">
17
17
  <div class="flex items-center justify-between gap-2 pb-2">
18
18
  <div class="flex items-center gap-1">
19
19
  <button>
@@ -44,7 +44,7 @@
44
44
  />
45
45
 
46
46
  <button
47
- class="fixed top-2 left-2 p-2"
47
+ class="absolute top-2 left-2 p-2"
48
48
  onclick={() => (showTreeview.current = !showTreeview.current)}
49
49
  >
50
50
  <ListTree />
@@ -52,7 +52,7 @@
52
52
 
53
53
  {#if showTreeview.current}
54
54
  <div
55
- class="bg-extralight border-medium fixed top-0 left-0 m-2 overflow-y-auto border text-xs"
55
+ class="bg-extralight border-medium absolute top-0 left-0 m-2 overflow-y-auto border text-xs"
56
56
  in:fly={{ duration: 250, x: -100 }}
57
57
  out:fly={{ duration: 250, x: -100 }}
58
58
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/motion-tools",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Motion visualization with Viam",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",