Skip to content

Commit 8de27ca

Browse files
authored
fix: Add selectedTool property to Annotator (#46)
1 parent 8348bab commit 8de27ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Annotator/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type Props = {
2929
imageTagList?: Array<string>,
3030
imageClsList?: Array<string>,
3131
enabledTools?: Array<string>,
32+
selectedTool?: String,
3233
showTags?: boolean,
3334
selectedImage?: string,
3435
images?: Array<Image>,
@@ -50,6 +51,7 @@ export const Annotator = ({
5051
pointDistancePrecision,
5152
showTags = true,
5253
enabledTools = ["select", "create-point", "create-box", "create-polygon"],
54+
selectedTool = "select",
5355
regionTagList = [],
5456
regionClsList = [],
5557
imageTagList = [],
@@ -80,7 +82,7 @@ export const Annotator = ({
8082
allowedArea,
8183
showPointDistances,
8284
pointDistancePrecision,
83-
selectedTool: "select",
85+
selectedTool,
8486
mode: null,
8587
taskDescription,
8688
labelImages: imageClsList.length > 0 || imageTagList.length > 0,

0 commit comments

Comments
 (0)