gi-nx / createDrawingLayer
ts
function createDrawingLayer(layerNameOrId: string, lock?: boolean): void;Creates a new drawing layer with the given name. Optionally locks the layer.
Parameters
| Parameter | Type | Description |
|---|---|---|
layerNameOrId | string | Name of the new drawing layer (or full layer ID) |
lock | boolean | If true, the layer is locked |
Returns
void
Throws
Error if the new layer name already exists