Permalink
Browse files

Add support for strokeWidth and a multiplier

  • Loading branch information...
nvh committed Dec 13, 2017
1 parent a740c2d commit a557f66b0175a2cb82e1248c3017d2b859019d20
Showing with 5 additions and 0 deletions.
  1. +3 −0 framer/LayerStyle.coffee
  2. +2 −0 framer/SVGLayer.coffee
View
@@ -242,6 +242,9 @@ exports.LayerStyle =
fill: (layer) ->
return layer._properties.fill
strokeWidth: (layer) ->
return layer._properties.strokeWidth * layer.strokeWidthMultiplier
color: (layer) ->
return layer._properties.color
View
@@ -27,6 +27,8 @@ class exports.SVGLayer extends Layer
@define "fill", layerProperty(@, "fill", "fill", null, validFill, toFill)
@define "stroke", layerProperty(@, "stroke", "stroke", null, validFill, toFill)
@define "strokeWidthMultiplier", @simpleProperty("strokeWidthMultiplier", 1)
@define "strokeWidth", layerProperty(@, "strokeWidth", "strokeWidth", null, _.isNumber)
@define "color", layerProperty(@, "color", "color", null, Color.validColorValue, Color.toColor, null, ((layer, value) -> layer.fill = value), "_elementHTML", true)
@define "gradient",

0 comments on commit a557f66

Please sign in to comment.