Home > PCB_Layer > setLayerInvisible
PCB_Layer.setLayerInvisible() 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
setLayerInvisible(layer?: TPCB_LayersInTheSelectable | Array<TPCB_LayersInTheSelectable>, setOtherLayerVisible?: boolean): Promise<boolean>;
1
Parameters
Parameter | Type | Description |
---|---|---|
layer | TPCB_LayersInTheSelectable | Array<TPCB_LayersInTheSelectable> | (Optional) 层,如若不指定任何层则默认为所有层 |
setOtherLayerVisible | boolean | (Optional) 是否将其它层设置为可见 |
Returns
Promise<boolean>
操作是否成功