Sha256: 8067ecf2216476212293a081cb741e2978d04a03b9e323b2b76b05fec95c61b5
Contents?: true
Size: 673 Bytes
Versions: 7
Compression:
Stored size: 673 Bytes
Contents
/* --- script: Size.js description: Base layer that provides shape license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Layer provides: - LSD.Layer.Size ... */ 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 } } } }
Version data entries
7 entries across 7 versions & 1 rubygems