LayerStyles icon indicating copy to clipboard operation
LayerStyles copied to clipboard

Distance only vertical

Open thany opened this issue 14 years ago • 5 comments

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

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

thany avatar May 18 '11 08:05 thany

hello thany - thanks for contributing!

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

mrflix avatar May 18 '11 08:05 mrflix

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

thany avatar May 18 '11 08:05 thany

Sorry, but I don't get your point: box-shadow is defined by max. five attributes: - horizontal offset - vertical offset - blur radius - spread distance - color

how these attributes are mapped in layerstyles: - the horizontal and vertical distance are calculated through the angle and the distance (the angle splits up the distance into horizontal and vertical proportion) - blur radius = blur - spread = size (this is slightly misleading as someone already noted - i'll fix the naming)

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

mrflix avatar May 18 '11 08:05 mrflix

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

thany avatar May 18 '11 08:05 thany

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

mrflix avatar May 18 '11 09:05 mrflix