mirror of
https://github.com/sbrow/ps.git
synced 2026-02-28 03:01:43 -05:00
Can now color layers and apply strokes
This commit is contained in:
@@ -8,20 +8,6 @@ function newFile(path) {
|
||||
return f
|
||||
}
|
||||
|
||||
// Moves a layer
|
||||
function positionLayer(lyr, x, y, alignment){
|
||||
if(lyr.iisBackgroundLayer||lyr.positionLocked) return
|
||||
var layerBounds = lyr.bounds;
|
||||
var layerX = layerBounds[0].value;
|
||||
if (alignment == 'top' || alignment == null)
|
||||
var layerY = layerBounds[1].value;
|
||||
else if (alignment == 'bottom')
|
||||
var layerY = layerBounds[3].value;
|
||||
var deltaX = x-layerX;
|
||||
var deltaY = y-layerY;
|
||||
lyr.translate(deltaX, deltaY);
|
||||
}
|
||||
|
||||
// Prints an error message.
|
||||
function err(e) {
|
||||
return 'ERROR: ' + e.message + ' at ' + e.fileName + ':' + e.line;
|
||||
|
||||
Reference in New Issue
Block a user