Home > SCH_PrimitivePin > modify
SCH_PrimitivePin.modify() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
修改引脚
签名
typescript
modify(primitiveId: string | ISCH_PrimitivePin, property: {
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
参数名
参数 | 类型 | 描述 |
---|---|---|
primitiveId | string | ISCH_PrimitivePin | 图元 ID |
property | { 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>
引脚图元对象