Home > PCB_PrimitiveArc > modify
PCB_PrimitiveArc.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 | IPCB_PrimitiveArc, property: {
net?: string;
layer?: TPCB_LayersOfLine;
startX?: number;
startY?: number;
endX?: number;
endY?: number;
arcAngle?: number;
lineWidth?: number;
interactiveMode?: EPCB_PrimitiveArcInteractiveMode;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitiveArc | undefined>;
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | IPCB_PrimitiveArc | 图元 ID |
property | { net?: string; layer?: TPCB_LayersOfLine; startX?: number; startY?: number; endX?: number; endY?: number; arcAngle?: number; lineWidth?: number; interactiveMode?: EPCB_PrimitiveArcInteractiveMode; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitiveArc | undefined>
圆弧线图元对象