TPCB_PrimitivePadShape type
焊盘外形
签名
typescript
export type TPCB_PrimitivePadShape =
| [EPCB_PrimitivePadShapeType.ELLIPSE | EPCB_PrimitivePadShapeType.OBLONG | EPCB_PrimitivePadShapeType.REGULAR_POLYGON, number, number]
| [EPCB_PrimitivePadShapeType.RECTANGLE, number, number, number]
| [EPCB_PrimitivePadShapeType.POLYLINE_COMPLEX_POLYGON, TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>];
1
2
3
4
2
3
4
引用
EPCB_PrimitivePadShapeType.ELLIPSE, EPCB_PrimitivePadShapeType.OBLONG, EPCB_PrimitivePadShapeType.REGULAR_POLYGON, EPCB_PrimitivePadShapeType.RECTANGLE, EPCB_PrimitivePadShapeType.POLYLINE_COMPLEX_POLYGON, TPCB_PolygonSourceArray
备注
焊盘当前存在以下四种 外形种类:
① 圆形
[EPCB_PrimitivePadShapeType.ELLIPSE, width, height]
{number}
width
- 宽{number}
height
- 高
② 矩形
[EPCB_PrimitivePadShapeType.RECTANGLE, width, height, round]
{number}
width
- 宽{number}
height
- 高{number}
round
- 圆角半径
③ 正多边形
[EPCB_PrimitivePadShapeType.REGULAR_POLYGON, diameter, numberOfSides]
{number}
diameter
- 直径{number}
numberOfSides
- 边数(> 2)
④ 折线复杂多边形
[EPCB_PrimitivePadShapeType.POLYLINE_COMPLEX_POLYGON, complexPolygon]
{TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>}
complexPolygon
- 复杂多边形源数组,可以使用 IPCB_ComplexPolygon.getSource() 获取