Skip to content

Commit

Permalink
prefix x,y,z attributes with stereo3d_
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdaisj committed Jun 21, 2023
1 parent 584394a commit 51731c9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion client/dive-common/components/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ export default defineComponent({
trackStyleManager.populateTypeStyles(meta.customTypeStyling);
groupStyleManager.populateTypeStyles(meta.customGroupStyling);


if (meta.customTypeStyling) {
trackFilters.importTypes(Object.keys(meta.customTypeStyling), false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default defineComponent({
argCopy.value.jsonMeta.attributes = {};
// Create x, y, z attributes
['x', 'y', 'z'].forEach((attributeKey) => {
['stereo3d_x', 'stereo3d_y', 'stereo3d_z'].forEach((attributeKey) => {
// ugly but necessary to avoid typescript error
(argCopy.value.jsonMeta.attributes as Record<string, Attribute>)[attributeKey] = {
belongs: 'detection',
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/track_3d_viewer/useTrackDrawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default function useTrackDrawer({
return;
}

const { x, y, z } = attributes;
const { stereo3d_x: x, stereo3d_y: y, stereo3d_z: z } = attributes;

if (x === undefined || y === undefined || z === undefined) {
return;
Expand Down

0 comments on commit 51731c9

Please sign in to comment.