circuit-to-canvas 0.0.48 → 0.0.49

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
@@ -1019,8 +1019,8 @@ function drawPcbHole(params) {
1019
1019
  const margin = isCoveredWithSoldermask ? 0 : hole.soldermask_margin ?? 0;
1020
1020
  const hasSoldermask = !isCoveredWithSoldermask && hole.soldermask_margin !== void 0 && hole.soldermask_margin !== 0;
1021
1021
  const positiveMarginColor = colorMap.substrate;
1022
- const soldermaskOverlayColor = colorMap.soldermask.top;
1023
- const soldermaskRingColor = colorMap.soldermask.top;
1022
+ const soldermaskOverlayColor = colorMap.soldermaskOverCopper.top;
1023
+ const soldermaskRingColor = colorMap.soldermaskOverCopper.top;
1024
1024
  if (hole.hole_shape === "circle") {
1025
1025
  if (hasSoldermask && margin > 0) {
1026
1026
  drawCircle({
@@ -37,8 +37,8 @@ export function drawPcbHole(params: DrawPcbHoleParams): void {
37
37
  hole.soldermask_margin !== undefined &&
38
38
  hole.soldermask_margin !== 0
39
39
  const positiveMarginColor = colorMap.substrate
40
- const soldermaskOverlayColor = colorMap.soldermask.top
41
- const soldermaskRingColor = colorMap.soldermask.top
40
+ const soldermaskOverlayColor = colorMap.soldermaskOverCopper.top
41
+ const soldermaskRingColor = colorMap.soldermaskOverCopper.top
42
42
 
43
43
  if (hole.hole_shape === "circle") {
44
44
  // For positive margins, draw extended mask area first
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "circuit-to-canvas",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.48",
4
+ "version": "0.0.49",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "tsup-node ./lib/index.ts --format esm --dts",