heitzmann / gdstk

Gdstk (GDSII Tool Kit) is a C++/Python library for creation and manipulation of GDSII and OASIS files.
https://heitzmann.github.io/gdstk/
Boost Software License 1.0
337 stars 84 forks source link

FEATURE REQUEST: write_svg adds layernum:layertype #239

Closed nmz787-intel closed 6 months ago

nmz787-intel commented 7 months ago

I would like to get the layer and datatype added to the SVG, it could even be a separate file like a JSON dictionary mapping the two. Trying to make a quick and dirty HTML based viewer.

nmz787-intel commented 6 months ago

I realized after investigating the SVG file output more, that the CSS classname embed the lpp: .l0d0 means layer 0, datatype 0 .l1d1 means layer 1, datatype 1