ag-psd 18.0.0 → 18.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ag-psd",
3
- "version": "18.0.0",
3
+ "version": "18.0.1",
4
4
  "description": "Library for reading and writing PSD files",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist-es/index.js",
@@ -273,7 +273,7 @@ export function readVectorMask(reader: PsdReader, vectorMask: LayerVectorMask, w
273
273
  open: selector === 3,
274
274
  operation: boolOp === -1 ? 'combine' : booleanOperations[boolOp],
275
275
  knots: [],
276
- fillRule: flags & 2 ? 'non-zero' : 'even-odd',
276
+ fillRule: flags === 2 ? 'non-zero' : 'even-odd',
277
277
  };
278
278
  paths.push(path);
279
279
  break;
@@ -364,7 +364,7 @@ addHandler(
364
364
  writeUint16(writer, path.open ? 3 : 0);
365
365
  writeUint16(writer, path.knots.length);
366
366
  writeUint16(writer, Math.abs(booleanOperations.indexOf(path.operation))); // default to 1 if not found
367
- writeUint16(writer, 1 | (path.fillRule === 'non-zero' ? 2 : 0));
367
+ writeUint16(writer, path.fillRule === 'non-zero' ? 2 : 1);
368
368
  writeZeros(writer, 18); // TODO: these are sometimes non-zero
369
369
 
370
370
  const linkedKnot = path.open ? 4 : 1;