Permalink
Browse files

Renamed inside -> inner and outside -> outer

  • Loading branch information...
nvh committed Sep 18, 2017
1 parent 70e3606 commit a32d2080a49ffe0c39c7811c59ce8050730aec0b
Showing with 11 additions and 11 deletions.
  1. +2 −2 framer/LayerStyle.coffee
  2. +9 −9 test/tests/LayerTest.coffee
View
@@ -48,9 +48,9 @@ getShadowStrings = (layer, types, createString) ->
if shadow is null
continue
shadow = _.defaults _.clone(shadow), Framer.Defaults.Shadow
if shadow.type is "inside"
if shadow.type is "inner"
shadow.type = "inset"
else if shadow.type is "outside"
else if shadow.type is "outer"
if layer.image? and layer.image isnt ""
shadow.type = "drop"
else
@@ -932,29 +932,29 @@ describe "Layer", ->
l.style.textShadow.should.equal "rgba(123, 123, 123, 0.498039) 5px 0px 0px"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 0px 15px 0px)"
it "should use outside as an alias for box shadow", ->
it "should use outer as an alias for box shadow", ->
l = new Layer
l.shadow1 =
type: "outside"
type: "outer"
x: 10
l.shadow1.type.should.equal "outside"
l.shadow1.type.should.equal "outer"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px"
it "should use outside as an alias for drop shadow when image is set", ->
it "should use outer as an alias for drop shadow when image is set", ->
l = new Layer
image: "static/test2.png"
l.shadow1 =
type: "outside"
type: "outer"
x: 10
l.shadow1.type.should.equal "outside"
l.shadow1.type.should.equal "outer"
l.style.webkitFilter.should.equal "drop-shadow(rgba(123, 123, 123, 0.498039) 10px 0px 0px)"
it "should use inside as an alias for inset shadow", ->
it "should use inner as an alias for inset shadow", ->
l = new Layer
l.shadow1 =
type: "inside"
type: "inner"
x: 10
l.shadow1.type.should.equal "inside"
l.shadow1.type.should.equal "inner"
l.style.boxShadow.should.equal "rgba(123, 123, 123, 0.498039) 10px 0px 0px 0px inset"
describe "Events", ->

0 comments on commit a32d208

Please sign in to comment.