circuit-to-svg 0.0.136 → 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 +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2810,13 +2810,14 @@ var createSvgObjectsFromSchematicComponentWithSymbol = ({
|
|
|
2810
2810
|
compose7(realToScreenTransform, transformFromSymbolToReal),
|
|
2811
2811
|
circle
|
|
2812
2812
|
);
|
|
2813
|
+
const screenRadius = Math.abs(circle.radius * realToScreenTransform.a);
|
|
2813
2814
|
svgObjects.push({
|
|
2814
2815
|
type: "element",
|
|
2815
2816
|
name: "circle",
|
|
2816
2817
|
attributes: {
|
|
2817
2818
|
cx: screenCirclePos.x.toString(),
|
|
2818
2819
|
cy: screenCirclePos.y.toString(),
|
|
2819
|
-
r: `${
|
|
2820
|
+
r: `${screenRadius}px`,
|
|
2820
2821
|
"stroke-width": `${getSchStrokeSize(realToScreenTransform)}px`,
|
|
2821
2822
|
fill: "none",
|
|
2822
2823
|
stroke: colorMap2.schematic.component_outline
|