ag-psd 28.1.1 → 28.2.0

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.
@@ -1363,8 +1363,18 @@ function parseFilterFXItem(f, options) {
1363
1363
  } });
1364
1364
  }
1365
1365
  ;
1366
+ case 'BrgC':
1367
+ {
1368
+ return __assign(__assign({}, base), { type: 'brightness/contrast', filter: {
1369
+ brightness: f.Fltr.Brgh,
1370
+ contrast: f.Fltr.Cntr,
1371
+ useLegacy: !!f.Fltr.useLegacy,
1372
+ } });
1373
+ }
1374
+ ;
1366
1375
  default:
1367
1376
  if (options.throwForMissingFeatures) {
1377
+ console.log('FILTER', require('util').inspect(f, false, 99, true));
1368
1378
  throw new Error("Unknown filter classId: ".concat(f.Fltr._classID));
1369
1379
  }
1370
1380
  return undefined;
@@ -1384,9 +1394,10 @@ function parseFilterFXItem(f, options) {
1384
1394
  case 1181639749: return __assign(__assign({}, base), { type: 'find edges' });
1385
1395
  case 1399616122: return __assign(__assign({}, base), { type: 'solarize' });
1386
1396
  case 1314149187: return __assign(__assign({}, base), { type: 'ntsc colors' });
1397
+ case 1231976050: return __assign(__assign({}, base), { type: 'invert' });
1387
1398
  default:
1388
1399
  if (options.throwForMissingFeatures) {
1389
- // console.log('FILTER', require('util').inspect(f, false, 99, true));
1400
+ console.log('FILTER', require('util').inspect(f, false, 99, true));
1390
1401
  throw new Error("Unknown filterID: ".concat(f.filterID));
1391
1402
  }
1392
1403
  }
@@ -1722,6 +1733,7 @@ function serializeFilterFXItem(f) {
1722
1733
  IntC: descriptor_1.IntC.encode(f.filter.newFieldsBy),
1723
1734
  }, filterID: 1148089458 });
1724
1735
  case 'ntsc colors': return __assign(__assign({}, base), { filterID: 1314149187 });
1736
+ case 'invert': return __assign(__assign({}, base), { filterID: 1231976050 });
1725
1737
  case 'custom': return __assign(__assign({}, base), { Fltr: {
1726
1738
  _name: 'Custom',
1727
1739
  _classID: 'Cstm',
@@ -1859,6 +1871,13 @@ function serializeFilterFXItem(f) {
1859
1871
  Mpng: a.values,
1860
1872
  }; }),
1861
1873
  }, filterID: 1131574899 });
1874
+ case 'brightness/contrast': return __assign(__assign({}, base), { Fltr: {
1875
+ _name: 'Brightness/Contrast',
1876
+ _classID: 'BrgC',
1877
+ Brgh: f.filter.brightness,
1878
+ Cntr: f.filter.contrast,
1879
+ useLegacy: !!f.filter.useLegacy,
1880
+ }, filterID: 1114793795 });
1862
1881
  // case 'hsb/hsl': return {
1863
1882
  // TODO: ...
1864
1883
  // };