mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
* Moved scripts / runner to separate package
allows future replacement with PS Plugin.
* Fixed issues with Refresh and removed "layer" function.
* Added github documentation via godocdown.
* Reduced number of calls to Panic.
* Updated Tests
* Updated documentation.
* Fixed warnings.
* .gitignore now ignores .test and .out files.
11 lines
282 B
JavaScript
11 lines
282 B
JavaScript
#include lib.js
|
|
var stdout = newFile(arguments[0]);
|
|
var lyr = eval(arguments[1]);
|
|
lyr.translate((Number)(arguments[2]), (Number)(arguments[3]));
|
|
if (lyr.typename == 'LayerSet') {
|
|
lyr.merge()
|
|
lyr=eval(arguments[4])
|
|
Undo();
|
|
}
|
|
stdout.writeln('{' + bounds(lyr) + '}')
|
|
stdout.close(); |