Permalink
Browse files

Rename @Proxy to @alias

  • Loading branch information...
nvh committed Jan 15, 2018
1 parent d90e148 commit 00df8de452c32c8a4a3c7e6169d82cb36f925ab6
Showing with 6 additions and 6 deletions.
  1. +6 −6 framer/SVGBaseLayer.coffee
View
@@ -13,7 +13,7 @@ class exports.SVGBaseLayer extends Layer
@define "html", get: -> @_element.outerHTML or ""
@define "width", get: -> @_width
@define "height", get: -> @_height
# Disabled properties
@undefine ["label", "blending", "image"]
@undefine ["blur", "brightness", "saturate", "hueRotate", "contrast", "invert", "grayscale", "sepia"] # webkitFilter properties
@@ -25,18 +25,18 @@ class exports.SVGBaseLayer extends Layer
@undefine ["borderRadius", "cornerRadius", "borderStyle"]
@undefine ["constraintValues", "htmlIntrinsicSize"]
# Proxied helpers
@proxy = (propertyName, proxiedName) ->
# Aliassed helpers
@alias = (propertyName, proxiedName) ->
@define propertyName,
get: ->
@[proxiedName]
set: (value) ->
return if @__applyingDefaults
@[proxiedName] = value
@proxy "borderColor", "stroke"
@proxy "strokeColor", "stroke"
@proxy "borderWidth", "strokeWidth"
@alias "borderColor", "stroke"
@alias "strokeColor", "stroke"
@alias "borderWidth", "strokeWidth"
# Overridden functions from Layer
_insertElement: ->

0 comments on commit 00df8de

Please sign in to comment.