Home > SCH_PrimitivePin > create
SCH_PrimitivePin.create() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
创建引脚
签名
typescript
function create(
x: number,
y: number,
pinNumber: string,
pinName?: string,
rotation?: number,
pinLength?: number,
pinColor?: string | null,
pinShape?: ESCH_PrimitivePinShape,
pinType?: ESCH_PrimitivePinType,
): Promise<ISCH_PrimitivePin | undefined>;1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
参数名
参数 | 类型 | 描述 |
|---|---|---|
x | number | 坐标 X |
y | number | 坐标 Y |
pinNumber | string | 引脚编号 |
pinName | string | (可选) 引脚名称 |
rotation | number | (可选) 旋转角度,可选 |
pinLength | number | (可选) 引脚长度 |
pinColor | string | null | (可选) 引脚颜色, |
pinShape | (可选) 引脚形状 | |
pinType | (可选) 引脚类型 |
返回值
Promise<ISCH_PrimitivePin | undefined>
引脚图元对象