Home > SCH_PrimitiveComponent > createNetFlag
SCH_PrimitiveComponent.createNetFlag() 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
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
identification | 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround' | 标识类型 |
net | string | 网络名称 |
x | number | 坐标 X |
y | number | 坐标 Y |
rotation | number | (Optional) 旋转角度 |
mirror | boolean | (Optional) 是否镜像 |
Returns
Promise<ISCH_PrimitiveComponent | undefined>
器件图元对象