swhitty / SwiftDraw
Showing 1 of 1 files from the diff.

@@ -65,18 +65,11 @@
Loading
65 65
  
66 66
  var location: LayerTree.Point? {
67 67
    guard let location = segments.last?.location else {
68 -
      return lastStart
68 +
      return segments.last(where:\.isMove)?.location
69 69
    }
70 70
    
71 71
    return location
72 72
  }
73 -
74 -
  var lastStart: LayerTree.Point? {
75 -
      guard let index = segments.lastIndex(where:\.isMove) else {
76 -
          return segments.first?.location
77 -
      }
78 -
      return segments[index].location
79 -
  }
80 73
}
81 74
82 75
private extension LayerTree.Path.Segment {
Files Coverage
SwiftDraw 76.03%
Project Totals (59 files) 76.03%
1
ignore:
2
  - "SwiftDrawTests"
3
  - "CommandLine"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading