Skip to content
Browse files

Make sure gradients are compatible with states

  • Loading branch information
Jonas Treub
Jonas Treub committed Jun 28, 2017
1 parent 7cea533 commit bfaf1547c2a7d5db14111a215db75c6169018dfd
Showing with 5 additions and 0 deletions.
  1. +5 −0 framer/
@@ -61,6 +61,10 @@ class LayerStates
if Color.isValidColorProperty(k, v)
stateProperties[k] = new Color(v)

if LinearGradient.isLinearGradient(v)
stateProperties[k] = v

if @_isValidProperty(k, v)
stateProperties[k] = v
@@ -73,6 +77,7 @@ class LayerStates
return true if _.isBoolean(v)
return true if _.isString(v)
return true if Color.isColorObject(v)
return true if LinearGradient.isLinearGradient(v)
return true if v is null
return true if v?.constructor?.name is "Layer"
return false

0 comments on commit bfaf154

Please sign in to comment.
You can’t perform that action at this time.