Home > SCH_PrimitiveComponent > createNetPort
SCH_PrimitiveComponent.createNetPort() 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
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
direction | 'IN' | 'OUT' | 'BI' | 端口方向 |
net | string | 网络名称 |
x | number | 坐标 X |
y | number | 坐标 Y |
rotation | number | (Optional) 旋转角度 |
mirror | boolean | (Optional) 是否镜像 |
Returns
Promise<ISCH_PrimitiveComponent | undefined>
器件图元对象