Requires

Provides

Shadow.js

Drops outer shadow with offsets. Like a box shadow!

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin

only gecko & webkit nightlies AppleWebKit/534.1+ (KHTML, … plus means nightly

  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
Browser.Features.SVGFilters = Browser.firefox || (Browser.webkit && navigator.userAgent.indexOf("+ (KHTML") > -1) LSD.Layer.Shadow = { properties: { shadow: ['blur', ['offsetX', 'offsetY'], 'color'], blur: ['length', 'number'], offsetX: ['length', 'number'], offsetY: ['length', 'number'], color: ['color'] }, paint: function(color, blur, x, y, stroke, method) {

if (!method) { if (this.method) method = method if (blur < 4) method = ‘onion’; else if (Browser.Features.boxShadow && this.base.name == ‘rectangle’) method = ‘native’; else if (Browser.Features.SVGFilters) method = ‘blur’; else method = ‘onion’ } if (this.method && method != this.method) this.eject(); return this.setMethod(method).paint.apply(this, arguments);

  1. 46
  2. 47
} }