LayerInfo
A single layer definition with metadata.
Combines the GDS layer identity (number, datatype) with display properties (color, fill, opacity) and a human-readable description.
Use info.layer to get the underlying Layer for rosette APIs:
layers = load_layer_map()
cell.add_polygon(poly, layers.silicon.layer)Attributes
attributenamestrSemantic name (e.g., "silicon", "metal").
attributelayerLayerThe underlying Layer(number, datatype).
attributecolorstrHex color string (e.g., "#ff69b4").
attributefillstrFill pattern: "solid", "hatched", "crosshatched", or "dotted".
attributeopacityfloatFill opacity from 0.0 to 1.0.
attributedescriptionstrHuman-readable description.
attributenumberintGDS layer number (shortcut for layer.number).
attributedatatypeintGDS datatype (shortcut for layer.datatype).
Methods
func__init__(name, layer, color='#808080', fill='solid', opacity=0.7, description='') -> NoneCreate a new LayerInfo.
paramnamestrSemantic name for the layer.
paramlayerLayerThe GDS layer identity.
paramcolorstr= '#808080'Hex color string.
paramfillstr= 'solid'Fill pattern.
paramopacityfloat= 0.7Fill opacity.
paramdescriptionstr= ''Human-readable description.
Returns
None