Skip to content

gi-nx


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

ParameterTypeDescription
layerNameOrIdstringName of the new drawing layer (or full layer ID)
lockbooleanIf true, the layer is locked

Returns

void

Throws

Error if the new layer name already exists