@viamrobotics/motion-tools 1.30.0 → 1.31.0
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.
- package/dist/components/SelectedTransformControls.svelte +2 -1
- package/dist/components/overlay/Details.svelte +2 -1
- package/dist/hooks/useConfigFrames.svelte.js +1 -1
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +1 -0
- package/dist/loaders/pcd/worker.inline.d.ts +1 -1
- package/dist/loaders/pcd/worker.inline.js +1 -1
- package/dist/loaders/pcd/worker.js +3 -1
- package/dist/plugins/Selection/Ellipse.svelte +21 -16
- package/dist/plugins/Selection/Lasso.svelte +21 -16
- package/dist/plugins/Selection/relations.d.ts +6 -0
- package/dist/plugins/Selection/relations.js +7 -0
- package/dist/plugins/Selection/traits.d.ts +0 -5
- package/dist/plugins/Selection/traits.js +1 -6
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +1 -0
- package/dist/snapshot.d.ts +14 -0
- package/dist/snapshot.js +23 -0
- package/package.json +2 -2
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
)
|
|
44
44
|
const isFragmentComponentWithVariables = $derived(
|
|
45
45
|
name.current &&
|
|
46
|
-
Object.keys(partConfig.componentNameToFragmentInfo[name.current]?.variables ?? {}).length >
|
|
46
|
+
Object.keys(partConfig.componentNameToFragmentInfo?.[name.current]?.variables ?? {}).length >
|
|
47
|
+
0
|
|
47
48
|
)
|
|
48
49
|
|
|
49
50
|
// Mesh sets name={entity} on its inner mesh, so useSelectedObject3d resolves
|
|
@@ -111,7 +111,8 @@
|
|
|
111
111
|
const isGeometry = $derived(!!geometriesAPI.current)
|
|
112
112
|
const isFragmentComponentWithVariables = $derived(
|
|
113
113
|
name.current &&
|
|
114
|
-
Object.keys(partConfig.componentNameToFragmentInfo[name.current]?.variables ?? {}).length >
|
|
114
|
+
Object.keys(partConfig.componentNameToFragmentInfo?.[name.current]?.variables ?? {}).length >
|
|
115
|
+
0
|
|
115
116
|
)
|
|
116
117
|
const showEditFrameOptions = $derived(
|
|
117
118
|
isFrameNode && partConfig.hasEditPermissions && !isFragmentComponentWithVariables
|
|
@@ -25,7 +25,7 @@ export const provideConfigFrames = () => {
|
|
|
25
25
|
});
|
|
26
26
|
const [fragmentFrames, fragmentUnsetFrameNames] = $derived.by(() => {
|
|
27
27
|
const { fragment_mods: fragmentMods = [] } = partConfig.current;
|
|
28
|
-
const fragmentDefinedComponents = Object.keys(partConfig.componentNameToFragmentInfo);
|
|
28
|
+
const fragmentDefinedComponents = Object.keys(partConfig.componentNameToFragmentInfo ?? {});
|
|
29
29
|
const results = {};
|
|
30
30
|
const unsetResults = [];
|
|
31
31
|
// deal with fragment defined components
|
package/dist/lib.d.ts
CHANGED
package/dist/lib.js
CHANGED
|
@@ -13,3 +13,4 @@ export { OrientationVector } from './three/OrientationVector';
|
|
|
13
13
|
export { parsePcdInWorker } from './loaders/pcd';
|
|
14
14
|
export { createBinaryPCD } from './pcd';
|
|
15
15
|
export { metadataFromStruct } from './metadata';
|
|
16
|
+
export { decodeDrawnSnapshotPointClouds } from './snapshot';
|