• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 14101911880

27 Mar 2025 08:19AM UTC coverage: 76.335% (-3.4%) from 79.72%
14101911880

Pull #211

github

web-flow
Merge 5b1fbf460 into c902191a1
Pull Request #211: Cad to svg

5559 of 7990 branches covered (69.57%)

Branch coverage included in aggregate %.

322 of 394 new or added lines in 9 files covered. (81.73%)

24 existing lines in 2 files now uncovered.

21991 of 28101 relevant lines covered (78.26%)

74709.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/ACadSharp/IO/SVG/SvgConfiguration.cs
1
using System;
2

3
namespace ACadSharp.IO
4
{
5
        /// <summary>
6
        /// Configuration for writing SVG files.
7
        /// </summary>
8
        public class SvgConfiguration : CadWriterConfiguration
9
        {
10
                public double LineWeightRatio { get; set; } = 5;
19✔
11

12
                public double PointRadius { get; set; } = 0.5;
3✔
13

14
                public const double PixelSize = 3.7795275591;
15

16
                public double GetLineWeightValue(LineweightType lineweightType)
17
                {
17✔
18
                        double value = (double)lineweightType;
17✔
19
                        if (lineweightType == LineweightType.W0)
17!
NEW
20
                        {
×
NEW
21
                                value = 1;
×
NEW
22
                        }
×
23

24
                        return Math.Abs(value) / this.LineWeightRatio;
17✔
25
                }
17✔
26
        }
27
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc