Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Jan 31, 2024
1 parent ba5101c commit bc3c667
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 28 deletions.
8 changes: 4 additions & 4 deletions src/pages/schema.image.cuboid/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "唯一标识"
},
"direction": {
"type": "string",
"description": "正面方向: front(前面),back(后面),left(左侧面),right(右侧面)",
Expand Down Expand Up @@ -167,10 +171,6 @@
]
}
},
"id": {
"type": "string",
"description": "唯一标识"
},
"order": {
"type": "integer",
"description": "标注顺序",
Expand Down
2 changes: 0 additions & 2 deletions src/pages/schema.image.line/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import JsonSchemaTable from '../../components/schema-table';
"visible": true,
"attributes": {},
"order": 1,
"isVisible": true,
"label": "noneAttribute"
},
{
Expand All @@ -64,7 +63,6 @@ import JsonSchemaTable from '../../components/schema-table';
"visible": true,
"attributes": {},
"order": 2,
"isVisible": true,
"label": "noneAttribute"
}
],
Expand Down
10 changes: 5 additions & 5 deletions src/pages/schema.image.line/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"title": "Generated schema for Root",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "唯一标识"
},
"lineType": {
"type": "string",
"description": "线条类型: line(直线),spline(曲线)",
Expand Down Expand Up @@ -48,10 +52,6 @@
"required": ["x", "y", "id"]
}
},
"id": {
"type": "string",
"description": "唯一标识"
},
"visible": {
"type": "boolean",
"description": "是否可见"
Expand All @@ -76,5 +76,5 @@
"description": "标注类别"
}
},
"required": ["pointList", "id", "", "order", "label"]
"required": ["lineType", "pointList", "id", "", "order", "label"]
}
1 change: 0 additions & 1 deletion src/pages/schema.image.point/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import JsonSchemaTable from '../../components/schema-table';
{
"x": 134.5060975609757,
"y": 376.7248475609756,
"isVisible": true,
"visible": true,
"id": "pWiUgJIH",
"order": 3,
Expand Down
8 changes: 4 additions & 4 deletions src/pages/schema.image.point/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "唯一标识"
},
"x": {
"type": "number",
"description": "x坐标"
Expand All @@ -26,10 +30,6 @@
]
}
},
"id": {
"type": "string",
"description": "唯一标识"
},
"order": {
"type": "integer",
"description": "标注顺序",
Expand Down
1 change: 0 additions & 1 deletion src/pages/schema.image.polygon/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import JsonSchemaTable from '../../components/schema-table';
{
"id": "FuzuAJ4q",
"visible": true,
"isVisible": true,
"pointList": [
{
"x": 803.4969512195122,
Expand Down
10 changes: 5 additions & 5 deletions src/pages/schema.image.polygon/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "唯一标识"
},
"lineType": {
"type": "string",
"description": "线条类型: line(直线),spline(曲线)",
Expand Down Expand Up @@ -59,10 +63,6 @@
]
}
},
"id": {
"type": "string",
"description": "唯一标识"
},
"order": {
"type": "integer",
"description": "标注顺序",
Expand All @@ -74,5 +74,5 @@
"default": "none"
}
},
"required": ["x", "y", "width", "height", "id", "order", "label"]
"required": ["lineType", "x", "y", "width", "height", "id", "order", "label"]
}
2 changes: 0 additions & 2 deletions src/pages/schema.image.rect/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import JsonSchemaTable from '../../components/schema-table';
"width": 168.1326219512195,
"height": 134.5060975609756,
"visible": true,
"isVisible": true,
"id": "0kjFS5rI",
"order": 4,
"label": "label-1"
Expand All @@ -27,7 +26,6 @@ import JsonSchemaTable from '../../components/schema-table';
"width": 194.67987804878047,
"height": 69.02286585365853,
"visible": true,
"isVisible": true,
"id": "AcO6GXyc",
"order": 5,
"label": "label-1"
Expand Down
8 changes: 4 additions & 4 deletions src/pages/schema.image.rect/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "唯一标识"
},
"x": {
"type": "number",
"description": "拉框左上角x坐标"
Expand Down Expand Up @@ -34,10 +38,6 @@
]
}
},
"id": {
"type": "string",
"description": "唯一标识"
},
"order": {
"type": "integer",
"description": "标注顺序",
Expand Down

0 comments on commit bc3c667

Please sign in to comment.