Requires

Provides

Shadow.Blur.js

SVG Filter powered shadow

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 21
LSD.Layer.Shadow.Blur = new Class({

Extends: LSD.Layer.Shadow,

  1. 24
  2. 25
  3. 26
  4. 27
  5. 28
  6. 29
  7. 30
  8. 31
  9. 32
  10. 33
  11. 34
  12. 35
  13. 36
  14. 37
  15. 38
  16. 39
  17. 40
  18. 41
  19. 42
paint: function(color, blur, x, y, stroke) { this.produce(stroke); this.shape.fill.apply(this.shape, color ? $splat(color) : null); if (blur > 0) this.shape.blur(blur); else this.shape.unblur(); return { move: { x: x + blur, y: y + blur }, outside: { left: Math.max(blur - x, 0), top: Math.max(blur - y, 0), right: Math.max(blur + x, 0), bottom: Math.max(blur + y, 0) } } } })