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