Requires

Provides

Radius.js

Rounds shapes corners

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 22
  2. 23
  3. 24
  4. 25
  5. 26
  6. 27
  7. 28
  8. 29
  9. 30
  10. 31
  11. 32
  12. 33
  13. 34
  14. 35
  15. 36
  16. 37
  17. 38
  18. 39
  19. 40
LSD.Layer.Radius = { properties: { radius: [['topLeft', 'bottomLeft', 'topRight', 'bottomRight'], 'collection'], topLeft: ['percentage', 'length'], bottomLeft: ['percentage', 'length'], topRight: ['percentage', 'length'], bottomRight: ['percentage', 'length'], }, paint: function() { return { radius: Array.prototype.splice.call(arguments, 0).map(function(r) { return r || 0}) } } } LSD.Layer.prepare('corner', ['radius'], false);