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