Home > SCH_PrimitivePin > create
SCH_PrimitivePin.create() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
创建引脚
Signature
typescript
create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: string, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
x | number | 坐标 X |
y | number | 坐标 Y |
pinNumber | string | 引脚编号 |
pinName | string | (Optional) 引脚名称 |
rotation | number | (Optional) 旋转角度,可选 |
pinLength | number | (Optional) 引脚长度 |
pinColor | string | null | (Optional) 引脚颜色, |
pinShape | string | (Optional) |
pinType | (Optional) 引脚类型 |
Returns
Promise<ISCH_PrimitivePin | undefined>
引脚图元对象