circuit-to-svg 0.0.147 → 0.0.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -882,7 +882,7 @@ function createSvgObjectsFromPcbTrace(trace, ctx) {
882
882
  const layer = "layer" in start ? start.layer : "layer" in end ? end.layer : null;
883
883
  if (!layer) continue;
884
884
  if (layerFilter && layer !== layerFilter) continue;
885
- const layerColor = layerNameToColor(layer, colorMap2);
885
+ const layerColor = colorMap2.soldermask[layer] ?? layerNameToColor(layer, colorMap2);
886
886
  const traceWidth = "width" in start ? start.width : "width" in end ? end.width : null;
887
887
  const svgObject = {
888
888
  name: "path",