需求说明:
如图在坐标轴内绘制线段,有多个线段,在右侧数值框内生成对应的json字符;线段有两种类型一种是线条,一种是圆弧(圆弧可能是半圆、可能是1/4圆,可能是1/4椭圆),还有一种文字;
复制数组按钮:复制f数组到粘贴板上,即ctrl+c功能;
对应的三种类型数据格式:
线:{
"type": 0,
"typeName": "线",
"valueDept": ["x1", "y1", "x2", "y2"],
"values": [25, 8, 25, 0]
}
圆:{
"type":1,
"typeName": "圆",
"valueDept": ["x","y", "width", "height", "startAngle", "arcAngle"],
"values": [0, 0,10, 10,0,180]
}
文字:{
"type": 5,
"typeName": "文字",
"valueDept": ["x", "y", "文字"],
"values": [0, 300, "单号"]
}