mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
bug fix for layers
This commit is contained in:
@@ -110,7 +110,7 @@ function layers(lyrs) {
|
||||
lyr.bounds[3] + ']], "Visible": ' + lyr.visible+', "TextItem": ').replace(/ px/g, "");
|
||||
if (lyr.kind == LayerKind.TEXT) {
|
||||
str += ('{"Contents": "'+lyr.textItem.contents+'",').replace(/\r/g, '\\r');
|
||||
var size = Number(lyr.textItem.size.replace(/ p[tx]/g, ''));
|
||||
var size = Number((lyr.textItem.size).replace(/ p[tx]/g, ''));
|
||||
if (lyr.textItem.size.includes("px")) {
|
||||
size = (size / app.activeDocument.resolution) * 72;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user