Skip to content

Commit

Permalink
Add 'Line Dash' attribute to Stroke
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuahhh committed May 10, 2017
1 parent c8c4c15 commit 06d7468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Graphic/Graphic.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ class Graphic.Stroke extends Graphic.PaintOp
matrix.canvasTransform(ctx)
ctx.strokeStyle = @color
ctx.lineWidth = @lineWidth
ctx.setLineDash(@lineDash) if @lineDash
ctx.stroke()
ctx.restore()

Expand Down
1 change: 1 addition & 0 deletions src/Model/Model.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Model.Stroke = Model.Component.createVariant
Model.Stroke.addChildren [
createAttribute("Stroke Color", "color", "rgba(0.60, 0.60, 0.60, 1.00)")
createAttribute("Line Width", "lineWidth", "1")
createAttribute("Line Dash", "lineDash", "[]")
createAttribute("Scale Stroke?", "scale", "false")
]

Expand Down

0 comments on commit 06d7468

Please sign in to comment.