circuit-to-svg 0.0.199 → 0.0.200

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
@@ -680,8 +680,8 @@ function createSvgObjectsFromPcbSilkscreenText(pcbSilkscreenText, ctx) {
680
680
  const transformedFontSize = font_size * Math.abs(transform.a);
681
681
  let textAnchor = "middle";
682
682
  let dominantBaseline = "central";
683
- let dx = 0;
684
- let dy = 0;
683
+ const dx = 0;
684
+ const dy = 0;
685
685
  switch (anchor_alignment) {
686
686
  case "top_left":
687
687
  textAnchor = "start";
@@ -723,7 +723,7 @@ function createSvgObjectsFromPcbSilkscreenText(pcbSilkscreenText, ctx) {
723
723
  }
724
724
  const textTransform = compose2(
725
725
  translate2(transformedX, transformedY),
726
- rotate2(ccw_rotation * Math.PI / 180),
726
+ rotate2(-ccw_rotation * Math.PI / 180),
727
727
  ...layer === "bottom" ? [scale(-1, 1)] : []
728
728
  );
729
729
  const color = layer === "bottom" ? colorMap2.silkscreen.bottom : colorMap2.silkscreen.top;
@@ -1743,7 +1743,7 @@ function getSoftwareUsedString(circuitJson) {
1743
1743
  var package_default = {
1744
1744
  name: "circuit-to-svg",
1745
1745
  type: "module",
1746
- version: "0.0.198",
1746
+ version: "0.0.199",
1747
1747
  description: "Convert Circuit JSON to SVG",
1748
1748
  main: "dist/index.js",
1749
1749
  files: [