Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Undefine gradient, alias color
- Loading branch information
Showing
with
3 additions
and
7 deletions.
-
+3
−7
framer/SVGBaseLayer.coffee
|
@@ -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 |
|
|