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