Skip to content

Commit

Permalink
fix: Fix the merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed Sep 20, 2022
1 parent d21130e commit 9d65982
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import PointOperation from '../../core/toolOperation/pointOperation';
import TextToolOperation from '../../core/toolOperation/TextToolOperation';
import SegmentByRect from '../../core/toolOperation/segmentByRect';
import CommonToolUtils from './CommonToolUtils';
import ScribbleTool from '@/core/toolOperation/ScribbleTool';

const getCurrentOperation = (toolName: EToolName | ECheckModel) => {
switch (toolName) {
Expand All @@ -34,6 +35,8 @@ const getCurrentOperation = (toolName: EToolName | ECheckModel) => {
return PointOperation;
case EToolName.Text:
return TextToolOperation;
case EToolName.ScribbleTool:
return ScribbleTool;
default:
throw new Error('not match tool');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import useSize from '@/hooks/useSize';
import { InitToolStyleConfig } from '@/store/toolStyle/actionCreators';
import { AnnotationEngine, ImgUtils } from '@labelbee/lb-annotation';
import { i18n } from '@labelbee/lb-utils';
import { AppProps } from '@/App';
import { IStepInfo } from '@/types/step';
import StepUtils from '@/utils/StepUtils';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect, useRef, useCallback } from 'react';
import React, { useState, useEffect, useRef } from 'react';
import { connect } from 'react-redux';
import { AppState } from 'src/store';
import { GraphToolInstance } from 'src/store/annotation/types';
Expand Down Expand Up @@ -37,14 +37,6 @@ const SwitchAttributeList: React.FC<IProps> = (props) => {
};
}, [toolInstance, listRef]);

const attributeChanged = useCallback(
(v: string) => {
toolInstance.setDefaultAttribute(v);
forceRender((s) => s + 1);
},
[toolInstance],
);

if (!props.stepInfo) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { cTool } from '@labelbee/lb-annotation';

const { EPointCloudName } = cTool;

const { EPointCloudName } = cTool;

export type FooterTheme = 'light' | 'dark';
interface IProps {
totalPage: number;
Expand Down

0 comments on commit 9d65982

Please sign in to comment.