circuit-to-svg 0.0.135 → 0.0.136

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
@@ -2805,6 +2805,26 @@ var createSvgObjectsFromSchematicComponentWithSymbol = ({
2805
2805
  children: []
2806
2806
  });
2807
2807
  }
2808
+ for (const circle of circles) {
2809
+ const screenCirclePos = applyToPoint25(
2810
+ compose7(realToScreenTransform, transformFromSymbolToReal),
2811
+ circle
2812
+ );
2813
+ svgObjects.push({
2814
+ type: "element",
2815
+ name: "circle",
2816
+ attributes: {
2817
+ cx: screenCirclePos.x.toString(),
2818
+ cy: screenCirclePos.y.toString(),
2819
+ r: `${Math.abs(realToScreenTransform.a) * 0.02}px`,
2820
+ "stroke-width": `${getSchStrokeSize(realToScreenTransform)}px`,
2821
+ fill: "none",
2822
+ stroke: colorMap2.schematic.component_outline
2823
+ },
2824
+ value: "",
2825
+ children: []
2826
+ });
2827
+ }
2808
2828
  return svgObjects;
2809
2829
  };
2810
2830