Home > PCB_PrimitivePolyline > modify
PCB_PrimitivePolyline.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_PrimitivePolyline, property: {
net?: string;
layer?: TPCB_LayersOfLine;
polygon?: IPCB_Polygon;
lineWidth?: number;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitivePolyline | undefined>;
1
2
3
4
5
6
7
2
3
4
5
6
7
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | IPCB_PrimitivePolyline | 图元 ID |
property | { net?: string; layer?: TPCB_LayersOfLine; polygon?: IPCB_Polygon; lineWidth?: number; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitivePolyline | undefined>
折线图元对象