Skip to content

Commit

Permalink
docs: add cuboid translation and visible desctription
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Jan 30, 2024
1 parent 772ccd8 commit 7c00d81
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/locale/resources/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"image.polygon": "Polygon",
"image.point": "Point",
"image.line": "Line",
"image.cuboid": "Cuboid",
"video": "Video",
"video.segment": "Segment",
"video.frame": "Timestamp",
Expand Down
1 change: 1 addition & 0 deletions src/locale/resources/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"image.polygon": "多边形",
"image.point": "标点",
"image.line": "标线",
"image.cuboid": "立体框",
"video": "视频",
"video.segment": "片断截取",
"video.frame": "时间戳",
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.cuboid/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"required": ["x", "y"]
}
},
"valid": {
"visible": {
"type": "boolean",
"description": "是否有效",
"description": "是否可见",
"default": true
},
"attributes": {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.line/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import JsonSchemaTable from '../../components/schema-table';
}
],
"id": "rW5Jbd8G",
"valid": true,
"visible": true,
"attributes": {},
"order": 1,
"isVisible": true,
Expand All @@ -61,7 +61,7 @@ import JsonSchemaTable from '../../components/schema-table';
}
],
"id": "TZZj1VdS",
"valid": true,
"visible": true,
"attributes": {},
"order": 2,
"isVisible": true,
Expand Down
6 changes: 3 additions & 3 deletions src/pages/schema.image.line/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"type": "string",
"description": "唯一标识"
},
"valid": {
"visible": {
"type": "boolean",
"description": "是否有效"
"description": "是否可见"
},
"attributes": {
"type": "object",
Expand All @@ -76,5 +76,5 @@
"description": "标注类别"
}
},
"required": ["pointList", "id", "valid", "order", "label"]
"required": ["pointList", "id", "", "order", "label"]
}
2 changes: 1 addition & 1 deletion src/pages/schema.image.point/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import JsonSchemaTable from '../../components/schema-table';
"x": 134.5060975609757,
"y": 376.7248475609756,
"isVisible": true,
"valid": true,
"visible": true,
"id": "pWiUgJIH",
"order": 3,
"label": "label-1"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.point/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"type": "number",
"description": "y坐标"
},
"valid": {
"visible": {
"type": "boolean",
"description": "是否有效",
"description": "是否可见",
"default": true
},
"attributes": {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/schema.image.polygon/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import JsonSchemaTable from '../../components/schema-table';
"result": [
{
"id": "FuzuAJ4q",
"valid": true,
"visible": true,
"isVisible": true,
"pointList": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.polygon/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"required": ["x", "y"]
}
},
"valid": {
"visible": {
"type": "boolean",
"description": "是否有效",
"description": "是否可见",
"default": true
},
"attributes": {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.rect/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import JsonSchemaTable from '../../components/schema-table';
"y": 594.4123475609755,
"width": 168.1326219512195,
"height": 134.5060975609756,
"valid": true,
"visible": true,
"isVisible": true,
"id": "0kjFS5rI",
"order": 4,
Expand All @@ -26,7 +26,7 @@ import JsonSchemaTable from '../../components/schema-table';
"y": 603.2614329268292,
"width": 194.67987804878047,
"height": 69.02286585365853,
"valid": true,
"visible": true,
"isVisible": true,
"id": "AcO6GXyc",
"order": 5,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.rect/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"type": "number",
"description": "拉框高度"
},
"valid": {
"visible": {
"type": "boolean",
"description": "是否有效",
"description": "是否可见",
"default": true
},
"attributes": {
Expand Down

0 comments on commit 7c00d81

Please sign in to comment.