mrflix / LayerStyles

just like you favorite graphic editor - but in your browser. And it creates CSS.
http://www.layerstyles.org
434 stars 60 forks source link

Distance only vertical #18

Open thany opened 13 years ago

thany commented 13 years ago

Shadow distance can only get a vertical length, not horizontal.

Maybe a slider control is not really fit for a two-dimensional number heh ;)

mrflix commented 13 years ago

hello thany - thanks for contributing!

the distance is abstracted: it's x and y ratio is calculated by the angle.

thany commented 13 years ago

Then maybe an option to switch between "distance" and "offset", where the latter one is what I was missing?

mrflix commented 13 years ago

Sorry, but I don't get your point: box-shadow is defined by max. five attributes:

how these attributes are mapped in layerstyles:

Maybe head back to layerstyles to check the combination of distance and the angle while watching the code change might clear this up.

thany commented 13 years ago

I understand your point. I was referring to an option to switch between setting the abstracted distance and explicit X/Y values.

mrflix commented 13 years ago

Ah okay. No i won't implement that. Try alt key while changing the changing the angle!