@ -143,7 +143,7 @@ interface State {
convertMasksToPolygons : boolean ;
trackedShapes : TrackedShape [ ] ;
fetching : boolean ;
pointsRec i eved: boolean ;
pointsRec ei ved: boolean ;
approxPolyAccuracy : number ;
mode : 'detection' | 'interaction' | 'tracking' ;
portals : React.ReactPortal [ ] ;
@ -231,7 +231,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
approxPolyAccuracy : props.defaultApproxPolyAccuracy ,
trackedShapes : [ ] ,
fetching : false ,
pointsRec i eved: false ,
pointsRec ei ved: false ,
mode : 'interaction' ,
portals : [ ] ,
} ;
@ -294,7 +294,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
this . setState ( {
approxPolyAccuracy : defaultApproxPolyAccuracy ,
pointsRec i eved: false ,
pointsRec ei ved: false ,
} ) ;
window . addEventListener ( 'contextmenu' , this . contextmenuDisabler ) ;
}
@ -386,7 +386,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
} ;
this . interaction . lastestApproximatedPoints = approximated ;
this . setState ( { pointsRec i eved: ! ! response . points . length } ) ;
this . setState ( { pointsRec ei ved: ! ! response . points . length } ) ;
} finally {
if ( this . interaction . id === interactionId && this . interaction . hideMessage ) {
this . interaction . hideMessage ( ) ;
@ -416,7 +416,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
} catch ( err : any ) {
notification . error ( {
description : err.toString ( ) ,
message : 'Interaction error occur ed',
message : 'Interaction error occur r ed',
} ) ;
}
} ;
@ -508,7 +508,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
} catch ( err : any ) {
notification . error ( {
description : err.toString ( ) ,
message : 'Tracking error occur ed',
message : 'Tracking error occur r ed',
} ) ;
}
} ;
@ -663,7 +663,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
if ( prevProps . frame !== frame && trackedShapes . length ) {
// 1. find all trackable objects on the current frame
// 2. d e vide them into two groups: with relevant state, without relevant state
// 2. d i vide them into two groups: with relevant state, without relevant state
const trackingData = trackedShapes . reduce < AccumulatorType > (
( acc : AccumulatorType , trackedShape : TrackedShape ) : AccumulatorType = > {
const {
@ -1277,7 +1277,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
interactors , detectors , trackers , isActivated , canvasInstance , labels , frameIsDeleted ,
} = this . props ;
const {
fetching , approxPolyAccuracy , pointsRec i eved, mode , portals , convertMasksToPolygons ,
fetching , approxPolyAccuracy , pointsRec ei ved, mode , portals , convertMasksToPolygons ,
} = this . state ;
if ( ! [ . . . interactors , . . . detectors , . . . trackers ] . length ) return null ;
@ -1302,7 +1302,7 @@ export class ToolsControlComponent extends React.PureComponent<Props, State> {
} ;
const showAnyContent = labels . length && ! frameIsDeleted ;
const showInteractionContent = isActivated && mode === 'interaction' && pointsRec i eved && convertMasksToPolygons ;
const showInteractionContent = isActivated && mode === 'interaction' && pointsRec ei ved && convertMasksToPolygons ;
const showDetectionContent = fetching && mode === 'detection' ;
const interactionContent : JSX.Element | null = showInteractionContent ? (