Home > PCB_PrimitiveFill > modify
PCB_PrimitiveFill.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_PrimitiveFill, property: {
layer?: TPCB_LayersOfFill;
complexPolygon?: IPCB_Polygon;
net?: string;
fillMode?: EPCB_PrimitiveFillMode;
lineWidth?: number;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitiveFill | undefined>;
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | IPCB_PrimitiveFill | 图元 ID |
property | { layer?: TPCB_LayersOfFill; complexPolygon?: IPCB_Polygon; net?: string; fillMode?: EPCB_PrimitiveFillMode; lineWidth?: number; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitiveFill | undefined>
填充图元对象,undefined
表示修改失败