ag-psd 28.2.0 → 28.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.v8-cache/v22.13.1-x64-00250a7c/b3c2fab7 +0 -0
- package/dist/additionalInfo.js +10 -14
- package/dist/additionalInfo.js.map +1 -1
- package/dist/bundle.js +10 -14
- package/dist/psd.d.ts +1 -1
- package/dist-es/additionalInfo.js +10 -14
- package/dist-es/additionalInfo.js.map +1 -1
- package/dist-es/psd.d.ts +1 -1
- package/package.json +1 -1
- package/src/additionalInfo.ts +39 -36
- package/src/psd.ts +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1412,7 +1412,7 @@ function parseFilterFXItem(f, options) {
|
|
|
1412
1412
|
removeJpegArtifact: f.Fltr.removeJPEGArtifact,
|
|
1413
1413
|
reduceColorNoise: (0, descriptor_1.parsePercent)(f.Fltr.ClNs),
|
|
1414
1414
|
sharpenDetails: (0, descriptor_1.parsePercent)(f.Fltr.Shrp),
|
|
1415
|
-
channelDenoise: f.Fltr.channelDenoise.map(function (c) { return (__assign({ channels: c.Chnl.map(
|
|
1415
|
+
channelDenoise: f.Fltr.channelDenoise.map(function (c) { return (__assign({ channels: c.Chnl.map(descriptor_1.Chnl.decode), amount: c.Amnt }, (c.EdgF ? { preserveDetails: c.EdgF } : {}))); }),
|
|
1416
1416
|
} });
|
|
1417
1417
|
case 'ClrH': return __assign(__assign({}, base), { type: 'color halftone', filter: {
|
|
1418
1418
|
radius: f.Fltr['Rds '],
|
|
@@ -1639,10 +1639,9 @@ function parseFilterFXItem(f, options) {
|
|
|
1639
1639
|
;
|
|
1640
1640
|
case 'Crvs':
|
|
1641
1641
|
{
|
|
1642
|
-
return __assign(__assign({}, base), { type: 'curves', filter: {
|
|
1643
|
-
presetKind: descriptor_1.presetKindType.decode(f.Fltr.presetKind),
|
|
1642
|
+
return __assign(__assign({}, base), { type: 'curves', filter: __assign({ presetKind: descriptor_1.presetKindType.decode(f.Fltr.presetKind) }, (f.Fltr.Adjs ? {
|
|
1644
1643
|
adjustments: f.Fltr.Adjs.map(function (a) {
|
|
1645
|
-
var channels = a.Chnl.map(
|
|
1644
|
+
var channels = a.Chnl.map(descriptor_1.Chnl.decode);
|
|
1646
1645
|
if (a['Crv ']) {
|
|
1647
1646
|
return {
|
|
1648
1647
|
channels: channels,
|
|
@@ -1660,8 +1659,8 @@ function parseFilterFXItem(f, options) {
|
|
|
1660
1659
|
else {
|
|
1661
1660
|
throw new Error("Unknown curve adjustment");
|
|
1662
1661
|
}
|
|
1663
|
-
})
|
|
1664
|
-
} });
|
|
1662
|
+
})
|
|
1663
|
+
} : {})) });
|
|
1665
1664
|
}
|
|
1666
1665
|
;
|
|
1667
1666
|
case 'BrgC':
|
|
@@ -2156,22 +2155,19 @@ function serializeFilterFXItem(f) {
|
|
|
2156
2155
|
warpedVertices: f.filter.warpedVertices.map(pointToHrznVrtc),
|
|
2157
2156
|
quads: f.filter.quads.map(function (indices) { return ({ indices: indices }); }),
|
|
2158
2157
|
}, filterID: 442 });
|
|
2159
|
-
case 'curves': return __assign(__assign({}, base), { Fltr: {
|
|
2160
|
-
_name: 'Curves',
|
|
2161
|
-
_classID: 'Crvs',
|
|
2162
|
-
presetKind: descriptor_1.presetKindType.encode(f.filter.presetKind),
|
|
2158
|
+
case 'curves': return __assign(__assign({}, base), { Fltr: __assign({ _name: 'Curves', _classID: 'Crvs', presetKind: descriptor_1.presetKindType.encode(f.filter.presetKind) }, (f.filter.adjustments ? {
|
|
2163
2159
|
Adjs: f.filter.adjustments.map(function (a) { return 'curve' in a ? {
|
|
2164
2160
|
_name: '',
|
|
2165
2161
|
_classID: 'CrvA',
|
|
2166
|
-
Chnl: a.channels.map(
|
|
2162
|
+
Chnl: a.channels.map(descriptor_1.Chnl.encode),
|
|
2167
2163
|
'Crv ': a.curve.map(function (c) { return (__assign({ _name: '', _classID: 'Pnt ', Hrzn: c.x, Vrtc: c.y }, (c.curved ? { Cnty: true } : {}))); }),
|
|
2168
2164
|
} : {
|
|
2169
2165
|
_name: '',
|
|
2170
2166
|
_classID: 'CrvA',
|
|
2171
|
-
Chnl: a.channels.map(
|
|
2167
|
+
Chnl: a.channels.map(descriptor_1.Chnl.encode),
|
|
2172
2168
|
Mpng: a.values,
|
|
2173
|
-
}; })
|
|
2174
|
-
}, filterID: 1131574899 });
|
|
2169
|
+
}; })
|
|
2170
|
+
} : {})), filterID: 1131574899 });
|
|
2175
2171
|
case 'brightness/contrast': return __assign(__assign({}, base), { Fltr: {
|
|
2176
2172
|
_name: 'Brightness/Contrast',
|
|
2177
2173
|
_classID: 'BrgC',
|
package/dist/psd.d.ts
CHANGED
|
@@ -1106,7 +1106,7 @@ function parseFilterFXItem(f, options) {
|
|
|
1106
1106
|
removeJpegArtifact: f.Fltr.removeJPEGArtifact,
|
|
1107
1107
|
reduceColorNoise: parsePercent(f.Fltr.ClNs),
|
|
1108
1108
|
sharpenDetails: parsePercent(f.Fltr.Shrp),
|
|
1109
|
-
channelDenoise: f.Fltr.channelDenoise.map(function (c) { return (__assign({ channels: c.Chnl.map(
|
|
1109
|
+
channelDenoise: f.Fltr.channelDenoise.map(function (c) { return (__assign({ channels: c.Chnl.map(Chnl.decode), amount: c.Amnt }, (c.EdgF ? { preserveDetails: c.EdgF } : {}))); }),
|
|
1110
1110
|
} });
|
|
1111
1111
|
case 'ClrH': return __assign(__assign({}, base), { type: 'color halftone', filter: {
|
|
1112
1112
|
radius: f.Fltr['Rds '],
|
|
@@ -1333,10 +1333,9 @@ function parseFilterFXItem(f, options) {
|
|
|
1333
1333
|
;
|
|
1334
1334
|
case 'Crvs':
|
|
1335
1335
|
{
|
|
1336
|
-
return __assign(__assign({}, base), { type: 'curves', filter: {
|
|
1337
|
-
presetKind: presetKindType.decode(f.Fltr.presetKind),
|
|
1336
|
+
return __assign(__assign({}, base), { type: 'curves', filter: __assign({ presetKind: presetKindType.decode(f.Fltr.presetKind) }, (f.Fltr.Adjs ? {
|
|
1338
1337
|
adjustments: f.Fltr.Adjs.map(function (a) {
|
|
1339
|
-
var channels = a.Chnl.map(
|
|
1338
|
+
var channels = a.Chnl.map(Chnl.decode);
|
|
1340
1339
|
if (a['Crv ']) {
|
|
1341
1340
|
return {
|
|
1342
1341
|
channels: channels,
|
|
@@ -1354,8 +1353,8 @@ function parseFilterFXItem(f, options) {
|
|
|
1354
1353
|
else {
|
|
1355
1354
|
throw new Error("Unknown curve adjustment");
|
|
1356
1355
|
}
|
|
1357
|
-
})
|
|
1358
|
-
} });
|
|
1356
|
+
})
|
|
1357
|
+
} : {})) });
|
|
1359
1358
|
}
|
|
1360
1359
|
;
|
|
1361
1360
|
case 'BrgC':
|
|
@@ -1850,22 +1849,19 @@ function serializeFilterFXItem(f) {
|
|
|
1850
1849
|
warpedVertices: f.filter.warpedVertices.map(pointToHrznVrtc),
|
|
1851
1850
|
quads: f.filter.quads.map(function (indices) { return ({ indices: indices }); }),
|
|
1852
1851
|
}, filterID: 442 });
|
|
1853
|
-
case 'curves': return __assign(__assign({}, base), { Fltr: {
|
|
1854
|
-
_name: 'Curves',
|
|
1855
|
-
_classID: 'Crvs',
|
|
1856
|
-
presetKind: presetKindType.encode(f.filter.presetKind),
|
|
1852
|
+
case 'curves': return __assign(__assign({}, base), { Fltr: __assign({ _name: 'Curves', _classID: 'Crvs', presetKind: presetKindType.encode(f.filter.presetKind) }, (f.filter.adjustments ? {
|
|
1857
1853
|
Adjs: f.filter.adjustments.map(function (a) { return 'curve' in a ? {
|
|
1858
1854
|
_name: '',
|
|
1859
1855
|
_classID: 'CrvA',
|
|
1860
|
-
Chnl: a.channels.map(
|
|
1856
|
+
Chnl: a.channels.map(Chnl.encode),
|
|
1861
1857
|
'Crv ': a.curve.map(function (c) { return (__assign({ _name: '', _classID: 'Pnt ', Hrzn: c.x, Vrtc: c.y }, (c.curved ? { Cnty: true } : {}))); }),
|
|
1862
1858
|
} : {
|
|
1863
1859
|
_name: '',
|
|
1864
1860
|
_classID: 'CrvA',
|
|
1865
|
-
Chnl: a.channels.map(
|
|
1861
|
+
Chnl: a.channels.map(Chnl.encode),
|
|
1866
1862
|
Mpng: a.values,
|
|
1867
|
-
}; })
|
|
1868
|
-
}, filterID: 1131574899 });
|
|
1863
|
+
}; })
|
|
1864
|
+
} : {})), filterID: 1131574899 });
|
|
1869
1865
|
case 'brightness/contrast': return __assign(__assign({}, base), { Fltr: {
|
|
1870
1866
|
_name: 'Brightness/Contrast',
|
|
1871
1867
|
_classID: 'BrgC',
|