TPCB_PrimitivePadShape type
Pad shape
Signature
typescript
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
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
References
EPCB_PrimitivePadShapeType.ELLIPSE, EPCB_PrimitivePadShapeType.OBLONG, EPCB_PrimitivePadShapeType.REGULAR_POLYGON, EPCB_PrimitivePadShapeType.RECTANGLE, EPCB_PrimitivePadShapeType.POLYLINE_COMPLEX_POLYGON, TPCB_PolygonSourceArray
Remarks
A pad currently has the following four shape types:
- Circle
[EPCB_PrimitivePadShapeType.ELLIPSE, width, height]
{number}width- width{number}height- height
② rectangle
[EPCB_PrimitivePadShapeType.RECTANGLE, width, height, round]
{number}width- width{number}height- height{number}round- corner radius
- Regular polygon
[EPCB_PrimitivePadShapeType.REGULAR_POLYGON, diameter, numberOfSides]
{number}diameter- diameter{number}numberOfSides- Number of sides (> 2)
- Polyline complex polygon
[EPCB_PrimitivePadShapeType.POLYLINE_COMPLEX_POLYGON, complexPolygon]
{TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>}complexPolygon- complex polygon source array, you can use IPCB_ComplexPolygon.getSource() get