Requires

Provides

Size.js

Base layer that provides shape

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
LSD.Layer.Size = { properties: { size: [['height', 'width'], 'collection'], height: ['length', 'percentage'], width: ['length', 'percentage'] }, prefix: false, paint: function(height, width) { if (height !== null && width !== null) return { size: { height: this.size.height ? (height - this.size.height) : height, width: this.size.width ? (width - this.size.width) : width } } } }