Skip to content

Commit

Permalink
fix relative stops; bump 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Nov 16, 2020
1 parent 56c7514 commit 269158f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion json_paint.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.0.8"
version = "0.0.9"
author = "jiyinyiyong"
description = "JSON DSL for canvas rendering"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/json_paint/shape_renderer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ proc renderPolyline(ctx: ptr Context, tree: JsonNode, base: TreeContext) =
let point = readPointVec(stop)
ctx.lineTo point.x + base.x, point.y + base.y
elif tree.contains("relative-stops"):
let stops = tree["stops"]
let stops = tree["relative-stops"]
if stops.kind != JArray: showError("Expects array of relative stops")
for stop in stops.elems:
let point = readPointVec(stop)
Expand Down

0 comments on commit 269158f

Please sign in to comment.