Skip to content

Commit

Permalink
fix(lb-components): Adjustment of useAnnotatedBoxStore
Browse files Browse the repository at this point in the history
  • Loading branch information
lihqi committed Feb 18, 2024
1 parent a436acb commit f0914a4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '@labelbee/lb-annotation';
import { useDispatch } from '@/store/ctx';
import { ChangeSave } from '@/store/annotation/actionCreators';
import useAnnotatedBoxStore from '@/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/store';
import useAnnotatedBoxStore from '@/store/annotatedBox';

interface IPointCloudContextInstances {
topViewInstance?: PointCloudAnnotation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* @file Use zustand share annotatedBoxes store without provider
* Note used differently than react context
* @author lihuaqi <lihuaqi@sensetime.com>
* @date 2024年2月18日
*/

import { create } from 'zustand';
import { IPointCloudBoxList } from '@labelbee/lb-utils';
import { IPointCloudContext } from '@/components/pointCloudView/PointCloudContext';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* @file Show all trackIDs in current frame
* Selected effects page flip will clear
* Highlighted effect page will not clear
* @author lihuaqi <lihuaqi@sensetime.com>
* @date 2024年2月18日
*/

import React, { useState, useEffect } from 'react';
import { Checkbox, Popover, Tag } from 'antd';
import { PointCloudUtils, i18n } from '@labelbee/lb-utils';
Expand All @@ -12,7 +20,7 @@ import HighlightActiveSvg from '@/assets/annotation/pointCloudTool/highlight_a.s
import { QuestionCircleOutlined } from '@ant-design/icons';
import { isDoubleClick } from '@/utils/audio';

import useAnnotatedBoxStore from './store';
import useAnnotatedBoxStore from '@/store/annotatedBox';

interface ITrackIDItem {
id: string;
Expand Down

0 comments on commit f0914a4

Please sign in to comment.