Skip to content

Commit

Permalink
bump svgpath from 2.3.0 to 2.5.0, fix resulting TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
HackbrettXXX committed Jan 17, 2022
1 parent 6906a8b commit ef0e5a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/nodes/path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export class PathNode extends GeometryNode {
let prevX: number
let prevY: number
svgPath.iterate(seg => {
const type = seg[0]
switch (type) {
switch (seg[0]) {
case 'M':
path.moveTo(seg[1], seg[2])
break
Expand All @@ -56,7 +55,7 @@ export class PathNode extends GeometryNode {
path.close()
break
}
switch (type) {
switch (seg[0]) {
case 'M':
case 'L':
prevX = seg[1]
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4140,9 +4140,9 @@ supports-color@^5.3.0:
has-flag "^3.0.0"

svgpath@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/svgpath/-/svgpath-2.3.0.tgz#efc76705deab6bd1774e9f0ed038bb661b5e4d23"
integrity sha512-N/4UDu3Y2ICik0daMmFW1tplw0XPs1nVIEVYkTiQfj9/JQZeEtAKaSYwheCwje1I4pQ5r22fGpoaNIvGgsyJyg==
version "2.5.0"
resolved "https://registry.yarnpkg.com/svgpath/-/svgpath-2.5.0.tgz#d57434641d9aa9abae02a4038ebf281fa3005b10"
integrity sha512-o/vohwqjUO9nDAh4rcjE3KaW/v//At8UJu2LJMybXidf5QLQLVA4bxH0//4YCsr+1H4Gw1Wi/Jc62ynzSBYidw==

table@^5.2.3:
version "5.4.6"
Expand Down

0 comments on commit ef0e5a3

Please sign in to comment.