Skip to content

Commit

Permalink
Fix #261: "D" attribute of path parsed incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
ystrot committed Dec 28, 2017
1 parent 05c91d8 commit 931583e
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 282 deletions.
32 changes: 0 additions & 32 deletions Source/svg/SVGConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -300,36 +300,4 @@ open class SVGConstants {
open static let defaultStrokeLineCap = LineCap.butt
open static let defaultStrokeLineJoin = LineJoin.miter

open static let moveToAbsolute = "M"
open static let moveToRelative = "m"
open static let lineToAbsolute = "L"
open static let lineToRelative = "l"
open static let lineHorizontalAbsolute = "H"
open static let lineHorizontalRelative = "h"
open static let lineVerticalAbsolute = "V"
open static let lineVerticalRelative = "v"
open static let curveToAbsolute = "C"
open static let curveToRelative = "c"
open static let smoothCurveToAbsolute = "S"
open static let smoothCurveToRelative = "s"
open static let closePathAbsolute = "Z"
open static let closePathRelative = "z"

open static let pathCommands = [
moveToAbsolute,
moveToRelative,
lineToAbsolute,
lineToRelative,
lineHorizontalAbsolute,
lineHorizontalRelative,
lineVerticalAbsolute,
lineVerticalRelative,
curveToAbsolute,
curveToRelative,
smoothCurveToAbsolute,
smoothCurveToRelative,
closePathAbsolute,
closePathRelative
]

}
Loading

0 comments on commit 931583e

Please sign in to comment.