Home > PCB_PrimitiveRegion > modify
PCB_PrimitiveRegion.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_PrimitiveRegion, property: {
layer?: TPCB_LayersOfRegion;
complexPolygon?: IPCB_Polygon;
ruleType?: Array<EPCB_PrimitiveRegionRuleType>;
regionName?: string;
lineWidth?: number;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitiveRegion | undefined>;
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | IPCB_PrimitiveRegion | 图元 ID |
property | { layer?: TPCB_LayersOfRegion; complexPolygon?: IPCB_Polygon; ruleType?: Array<EPCB_PrimitiveRegionRuleType>; regionName?: string; lineWidth?: number; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitiveRegion | undefined>
区域图元对象,undefined
表示修改失败