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

DomCR / ACadSharp / 14084601072

26 Mar 2025 01:32PM UTC coverage: 76.345% (-3.4%) from 79.72%
14084601072

Pull #211

github

web-flow
Merge 070f025e9 into c902191a1
Pull Request #211: Cad to svg

5536 of 7962 branches covered (69.53%)

Branch coverage included in aggregate %.

259 of 305 new or added lines in 8 files covered. (84.92%)

5 existing lines in 2 files now uncovered.

21926 of 28009 relevant lines covered (78.28%)

74951.67 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;
18✔
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
                {
16✔
18
                        double value = (double)lineweightType;
16✔
19
                        if (lineweightType == LineweightType.W0)
16!
NEW
20
                        {
×
NEW
21
                                value = 1;
×
NEW
22
                        }
×
23

24
                        return Math.Abs(value) / this.LineWeightRatio;
16✔
25
                }
16✔
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