Sha256: 253ad6ffc7b283e8bc5d4727ec69134ad3fff58a9f6b029798d0b21ca4bcdfcf
Contents?: true
Size: 573 Bytes
Versions: 7
Compression:
Stored size: 573 Bytes
Contents
/* --- script: Scale.js description: Adds a way to set scale level to the layer license: Public domain (http://unlicense.org). authors: Yaroslaff Fedin requires: - LSD.Layer provides: - LSD.Layer.Scale ... */ LSD.Layer.Scale = { properties: { scale: [['x', 'y'], 'collection'], x: ['number', 'percentage'], y: ['number', 'percentage'] }, paint: function(x, y) { if (x != null || y != null) return { size: { width: - this.size.width * (1 - x), height: - this.size.height * (1 - y) } } } }
Version data entries
7 entries across 7 versions & 1 rubygems