circuit-to-svg 0.0.274 → 0.0.275

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
@@ -1583,8 +1583,9 @@ function createSvgObjectsFromPcbPlatedHole(hole, ctx) {
1583
1583
  const { transform, colorMap: colorMap2, showSolderMask } = ctx;
1584
1584
  const [x, y] = applyToPoint12(transform, [hole.x, hole.y]);
1585
1585
  const copperLayer = Array.isArray(hole.layers) && hole.layers[0] || hole.layer || "top";
1586
+ const isCoveredWithSolderMask = Boolean(hole.is_covered_with_solder_mask);
1586
1587
  const soldermaskMargin = (hole.soldermask_margin ?? 0) * Math.abs(transform.a);
1587
- const shouldShowSolderMask = showSolderMask && soldermaskMargin !== 0;
1588
+ const shouldShowSolderMask = showSolderMask && isCoveredWithSolderMask && soldermaskMargin !== 0;
1588
1589
  const solderMaskColor = colorMap2.soldermask.top;
1589
1590
  if (hole.shape === "pill") {
1590
1591
  const scaledOuterWidth = hole.outer_width * Math.abs(transform.a);
@@ -3068,8 +3069,9 @@ import { applyToPoint as applyToPoint24 } from "transformation-matrix";
3068
3069
  function createSvgObjectsFromPcbHole(hole, ctx) {
3069
3070
  const { transform, colorMap: colorMap2, showSolderMask } = ctx;
3070
3071
  const [x, y] = applyToPoint24(transform, [hole.x, hole.y]);
3072
+ const isCoveredWithSolderMask = Boolean(hole.is_covered_with_solder_mask);
3071
3073
  const soldermaskMargin = (hole.soldermask_margin ?? 0) * Math.abs(transform.a);
3072
- const shouldShowSolderMask = showSolderMask && soldermaskMargin !== 0;
3074
+ const shouldShowSolderMask = showSolderMask && isCoveredWithSolderMask && soldermaskMargin !== 0;
3073
3075
  const solderMaskColor = colorMap2.soldermask.top;
3074
3076
  if (hole.hole_shape === "circle" || hole.hole_shape === "square") {
3075
3077
  const scaledDiameter = hole.hole_diameter * Math.abs(transform.a);
@@ -4290,7 +4292,7 @@ function getSoftwareUsedString(circuitJson) {
4290
4292
  var package_default = {
4291
4293
  name: "circuit-to-svg",
4292
4294
  type: "module",
4293
- version: "0.0.273",
4295
+ version: "0.0.274",
4294
4296
  description: "Convert Circuit JSON to SVG",
4295
4297
  main: "dist/index.js",
4296
4298
  files: [
@@ -4314,7 +4316,7 @@ var package_default = {
4314
4316
  "bun-match-svg": "^0.0.12",
4315
4317
  esbuild: "^0.20.2",
4316
4318
  "performance-now": "^2.1.0",
4317
- "circuit-json": "^0.0.317",
4319
+ "circuit-json": "^0.0.319",
4318
4320
  react: "19.1.0",
4319
4321
  "react-cosmos": "7.0.0",
4320
4322
  "react-cosmos-plugin-vite": "7.0.0",