Permalink
Browse files

Undefine gradient, alias color

  • Loading branch information...
nvh committed Jan 23, 2018
1 parent b6af600 commit 73e3afbfd9d968ceef2cae97a753e47818508936
Showing with 3 additions and 7 deletions.
  1. +3 −7 framer/SVGBaseLayer.coffee
View
@@ -69,6 +69,8 @@ class exports.SVGBaseLayer extends Layer
@undefine ["borderRadius", "cornerRadius", "borderStyle"]
@undefine ["constraintValues", "htmlIntrinsicSize"]
@undefine "gradient"
# Aliassed helpers
@alias = (propertyName, proxiedName) ->
@define propertyName,
@@ -82,6 +84,7 @@ class exports.SVGBaseLayer extends Layer
@alias "strokeColor", "stroke"
@alias "borderWidth", "strokeWidth"
@alias "backgroundColor", "fill"
@alias "color", "fill"
# Overridden functions from Layer
_insertElement: ->
@@ -161,13 +164,6 @@ class exports.SVGBaseLayer extends Layer
for prop in ["frame", "stroke", "strokeWidth", "strokeLinecap", "strokeLinejoin", "strokeMiterlimit", "strokeDasharray", "strokeDashoffset", "rotation", "scale"]
@on "change:#{prop}", @resetViewbox
@define "gradient",
get: ->
console.warn "The gradient property is currently not supported on shapes"
return undefined
set: (value) ->
console.warn "The gradient property is currently not supported on shapes"
calculateSize: ->
element = @_element
measuredElement = null

0 comments on commit 73e3afb

Please sign in to comment.