jscad-electronics 0.0.152 → 0.0.154

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/vanilla.js CHANGED
@@ -843,6 +843,7 @@ var getLeadWidth = (pinCount, width10) => {
843
843
  };
844
844
 
845
845
  // lib/PinHeader.tsx
846
+ var PIN_METAL_COLOR = "#c0c0c0";
846
847
  var PinHeader = ({
847
848
  x,
848
849
  y,
@@ -866,7 +867,7 @@ var PinHeader = ({
866
867
  center: [x, y, flipZ(bodyHeight / 2)]
867
868
  }
868
869
  ) }),
869
- !faceup && /* @__PURE__ */ jsx(Colorize, { color: "gold", children: smd ? /* @__PURE__ */ jsx(
870
+ !faceup && /* @__PURE__ */ jsx(Colorize, { color: PIN_METAL_COLOR, children: smd ? /* @__PURE__ */ jsx(
870
871
  SmdChipLead,
871
872
  {
872
873
  rotation: -Math.PI / 2,
@@ -885,7 +886,7 @@ var PinHeader = ({
885
886
  /* @__PURE__ */ jsx(
886
887
  Cuboid,
887
888
  {
888
- color: "gold",
889
+ color: PIN_METAL_COLOR,
889
890
  size: [pinThickness, pinThickness, shortSidePinLength * 0.9],
890
891
  center: [x, y, flipZ(bodyHeight * 0.9 + bodyHeight / 2)]
891
892
  }
@@ -893,7 +894,7 @@ var PinHeader = ({
893
894
  /* @__PURE__ */ jsx(
894
895
  Cuboid,
895
896
  {
896
- color: "gold",
897
+ color: PIN_METAL_COLOR,
897
898
  size: [
898
899
  pinThickness / 1.8,
899
900
  pinThickness / 1.8,
@@ -903,11 +904,11 @@ var PinHeader = ({
903
904
  }
904
905
  )
905
906
  ] }) }),
906
- /* @__PURE__ */ jsx(Colorize, { color: "gold", children: /* @__PURE__ */ jsx(Translate, { y: rightangle ? -3.9 : 0, z: rightangle ? 1 : 0, children: /* @__PURE__ */ jsx(Rotate, { rotation: rightangle ? [-Math.PI / 2, 0, 0] : [0, 0, 0], children: /* @__PURE__ */ jsxs(Hull, { children: [
907
+ /* @__PURE__ */ jsx(Colorize, { color: PIN_METAL_COLOR, children: /* @__PURE__ */ jsx(Translate, { y: rightangle ? -3.9 : 0, z: rightangle ? 1 : 0, children: /* @__PURE__ */ jsx(Rotate, { rotation: rightangle ? [-Math.PI / 2, 0, 0] : [0, 0, 0], children: /* @__PURE__ */ jsxs(Hull, { children: [
907
908
  /* @__PURE__ */ jsx(
908
909
  Cuboid,
909
910
  {
910
- color: "gold",
911
+ color: PIN_METAL_COLOR,
911
912
  size: [pinThickness, pinThickness, longSidePinLength * 0.9],
912
913
  center: [x, y, flipZ(-longSidePinLength / 2 * 0.9)]
913
914
  }
@@ -915,7 +916,7 @@ var PinHeader = ({
915
916
  /* @__PURE__ */ jsx(
916
917
  Cuboid,
917
918
  {
918
- color: "gold",
919
+ color: PIN_METAL_COLOR,
919
920
  size: [
920
921
  pinThickness / 1.8,
921
922
  pinThickness / 1.8,