Home > PCB_Layer > modifyLayer
PCB_Layer.modifyLayer() 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
modifyLayer(layer: TPCB_LayersInTheSelectable, property: {
name?: string;
type?: TPCB_LayerTypesOfInnerLayer;
color?: string;
transparency?: number;
}): Promise<boolean>;
1
2
3
4
5
6
2
3
4
5
6
Parameters
Parameter | Type | Description |
---|---|---|
layer | 层 | |
property | { name?: string; type?: TPCB_LayerTypesOfInnerLayer; color?: string; transparency?: number; } | 属性 |
Returns
Promise<boolean>
修改后的图层属性,如若为 undefined
则代表修改失败或图层不存在
Remarks
仅内层和自定义层允许修改名称;仅内层允许修改类型