Skip to content

Commit

Permalink
docs: pointList -> points
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Feb 6, 2024
1 parent f806ff6 commit 754de83
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/pages/schema.image.line/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import CodePreview from '../../components/code-preview';
"toolName": "lineTool",
"result": [
{
"pointList": [
"points": [
{
"x": 346.88414634146346,
"y": 229.8300304878049,
Expand Down Expand Up @@ -43,7 +43,7 @@ import CodePreview from '../../components/code-preview';
"label": "noneAttribute"
},
{
"pointList": [
"points": [
{
"x": 684.9192073170732,
"y": 127.18064024390246,
Expand Down Expand Up @@ -97,7 +97,7 @@ import CodePreview from '../../components/code-preview';
],
"order": 1,
"attribute": "label-1",
"pointList": [
"points": [
{
"id": "74aede72-8b5e-4f28-978e-04f2827b95ae",
"x": 55.683673469387756,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/schema.image.line/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"required": ["x", "y"]
}
},
"pointList": {
"points": {
"type": "array",
"description": "标注点列表",
"items": {
Expand Down Expand Up @@ -76,5 +76,5 @@
"description": "标注类别"
}
},
"required": ["lineType", "pointList", "id", "", "order", "label"]
"required": ["lineType", "points", "id", "", "order", "label"]
}
4 changes: 2 additions & 2 deletions src/pages/schema.image.polygon/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import CodePreview from '../../components/code-preview';
{
"id": "FuzuAJ4q",
"visible": true,
"pointList": [
"points": [
{
"x": 803.4969512195122,
"y": 605.0312499999999
Expand Down Expand Up @@ -96,7 +96,7 @@ import CodePreview from '../../components/code-preview';
],
"order": 1,
"attribute": "label-1",
"pointList": [
"points": [
{
"id": "5adf5d04-f49d-47b9-abba-2f2e95714b40",
"x": 203.68877551020407,
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 @@ -29,7 +29,7 @@
"required": ["x", "y"]
}
},
"pointList": {
"points": {
"type": "array",
"description": "标注点列表",
"items": {
Expand Down Expand Up @@ -74,5 +74,5 @@
"default": "none"
}
},
"required": ["lineType", "pointList", "x", "y", "width", "height", "id", "order", "label"]
"required": ["lineType", "points", "x", "y", "width", "height", "id", "order", "label"]
}

0 comments on commit 754de83

Please sign in to comment.