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, 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
Parameters
Parameter | Type | Description |
---|---|---|
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; } | 修改参数 |
Returns
Promise<ISCH_PrimitivePin | undefined>
引脚图元对象