Sha256: e29e7e80bb1ce0259244dd960888c5337226d343ac14c4bd94a9c6d7d25a16bb
Contents?: true
Size: 754 Bytes
Versions: 7
Compression:
Stored size: 754 Bytes
Contents
/* --- script: Offset.js description: Positions layer around the canvas license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Layer provides: [LSD.Layer.Offset] ... */ LSD.Layer.Offset = { properties: { offset: [['top', 'right', 'bottom', 'left']], top: ['length', 'percentage'], left: ['length', 'percentage'], bottom: ['length', 'percentage'], right: ['length', 'percentage'], }, paint: function(top, right, bottom, left) { return { move: { x: left == null && right != null ? (this.size.width - (right || 0)) : (left || 0), y: top == null && bottom != null ? (this.size.height - (bottom || 0)) : (top || 0) } } } };
Version data entries
7 entries across 7 versions & 1 rubygems