circuit-to-svg 0.0.135 → 0.0.137

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,27 @@ 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
+ const screenRadius = Math.abs(circle.radius * realToScreenTransform.a);
2814
+ svgObjects.push({
2815
+ type: "element",
2816
+ name: "circle",
2817
+ attributes: {
2818
+ cx: screenCirclePos.x.toString(),
2819
+ cy: screenCirclePos.y.toString(),
2820
+ r: `${screenRadius}px`,
2821
+ "stroke-width": `${getSchStrokeSize(realToScreenTransform)}px`,
2822
+ fill: "none",
2823
+ stroke: colorMap2.schematic.component_outline
2824
+ },
2825
+ value: "",
2826
+ children: []
2827
+ });
2828
+ }
2808
2829
  return svgObjects;
2809
2830
  };
2810
2831