Skip to content

Latest commit

 

History

History
54 lines (51 loc) · 5.43 KB

lineTool.md

File metadata and controls

54 lines (51 loc) · 5.43 KB

线条(lineTool)

格式说明

{
  "width": 1024,
  "height": 681,
  "rotate": 0,
  "valid": true,
  "step_1": {
    "dataSourceStep": 0,
    "toolName": "lineTool",
    "result": [
      {
        "pointList": [
          {
            "x": 341.95147928994083,
            "y": 138.61775147928998,
            "id": "TlfF2xY4"
          },
          {
            "x": 263.7775147928994,
            "y": 292.54792899408284,
            "id": "eKivOQt6"
          },
          {
            "x": 428.9905325443787,
            "y": 409.4059171597633,
            "id": "5L6zZWRM"
          },
          {
            "x": 763.4461538461538,
            "y": 384.42248520710064,
            "id": "IXuGhnQw"
          },
          {
            "x": 781.9822485207101,
            "y": 349.7680473372781,
            "id": "Oiy6pk9d"
          }
        ],
        "id": "rI89mHsg",
        "valid": true,
        "order": 1,
        "attribute": "class-6U",
        "textAttribute": "xxxxxd"
      }
    ]
  }
}
名称类型是否必须默认值备注其他信息
resultobject []
必须
线条列表,数量应与标注对象一致

item 类型: object

pointListobject []
必须
点列表

item 类型: object

idstring
必须
线条ID

mock: @string

validboolean
必须
是否有效

mock: @boolean

ordernumber
必须
序号

mock: @natural

attributestring
非必须
属性标注

mock: @string

textAttributestring
非必须
文本

mock: @string

sourceIDstring
必须
依赖对象的ID

mock: @string