Home > SCH_PrimitivePin > modify
SCH_PrimitivePin.modify() 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
modify(primitiveId: string | ISCH_PrimitivePin, 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 |
---|---|---|
primitiveId | string | ISCH_PrimitivePin | 图元 ID |
x | number | (Optional) 坐标 X |
y | number | (Optional) 坐标 Y |
pinNumber | string | (Optional) 引脚编号 |
pinName | string | (Optional) 引脚名称 |
rotation | number | (Optional) 旋转角度,可选 |
pinLength | number | (Optional) 引脚长度 |
pinColor | string | null | (Optional) 引脚颜色, |
pinShape | string | (Optional) |
pinType | (Optional) 引脚类型 |
Returns
Promise<ISCH_PrimitivePin | undefined>
引脚图元对象