字段 | 类型 | 必填 | 默认值 | 描述 |
---|---|---|---|---|
id | string | 是 | - | 唯一标识 |
type | string | 是 | line | 线条类型: line(直线),spline(曲线) |
controlPoints | array | 否 | - | 贝塞尔曲线控制点列表 |
points | array | 是 | - | 标注点列表 |
visible | boolean | 否 | true | 是否可见 |
attributes | object | 否 | - | 类别属性,键值对 |
order | integer | 是 | - | 标注顺序 |
label | string | 是 | - | 标注类别 |
{
"toolName": "polygonTool",
"result": [
{
"id": "FuzuAJ4q",
"visible": true,
"points": [
{
"x": 803.4969512195122,
"y": 605.0312499999999
},
{
"x": 807.0365853658536,
"y": 735.9977134146341
},
{
"x": 900.8368902439024,
"y": 702.3711890243901
},
{
"x": 922.0746951219511,
"y": 631.5785060975609
},
{
"x": 909.6859756097559,
"y": 564.3254573170731
}
],
"order": 6,
"label": "label-1"
}
]
}
{
"toolName": "polygonTool",
"result": [
{
"id": "cf909101-a3e5-4db0-8413-5ef2b94d5dee",
"type": "spline",
"controlPoints": [
{
"x": 244.59013605442175,
"y": 93.42176870748298
},
{
"x": 303.48809523809524,
"y": 132.68707482993196
},
{
"x": 339.4812925170068,
"y": 198.12925170068024
},
{
"x": 195.50850340136054,
"y": 289.7482993197279
},
{
"x": 195.50850340136054,
"y": 289.7482993197279
},
{
"x": 64.62414965986395,
"y": 227.578231292517
},
{
"x": 110.43367346938776,
"y": 126.14285714285712
},
{
"x": 152.97108843537413,
"y": 103.23809523809523
},
{
"x": 234.77380952380952,
"y": 168.68027210884352
},
{
"x": 162.7874149659864,
"y": 175.22448979591834
}
],
"order": 1,
"attribute": "label-1",
"points": [
{
"id": "5adf5d04-f49d-47b9-abba-2f2e95714b40",
"x": 203.68877551020407,
"y": 134.32312925170066
},
{
"id": "f8749eee-207f-4a3e-8603-5ec58d98d7fe",
"x": 321.484693877551,
"y": 165.40816326530611
},
{
"id": "8b2ef9ac-df2c-419d-b872-e7f4272e9af5",
"x": 195.50850340136054,
"y": 289.7482993197279
},
{
"id": "53ab3c39-f567-477f-ae43-b0603e683857",
"x": 87.52891156462584,
"y": 176.86054421768705
},
{
"id": "7488ece9-f1de-42b9-ab6f-67db7ea7bfcc",
"x": 193.87244897959184,
"y": 135.95918367346937
}
]
}
]
}