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/dist/bundle.js
CHANGED
|
@@ -455,7 +455,7 @@ function readVectorMask(reader, vectorMask, width, height, size) {
|
|
|
455
455
|
open: selector === 3,
|
|
456
456
|
operation: boolOp === -1 ? 'combine' : exports.booleanOperations[boolOp],
|
|
457
457
|
knots: [],
|
|
458
|
-
fillRule: flags
|
|
458
|
+
fillRule: flags === 2 ? 'non-zero' : 'even-odd',
|
|
459
459
|
};
|
|
460
460
|
paths.push(path);
|
|
461
461
|
break;
|
|
@@ -534,7 +534,7 @@ addHandler('vmsk', hasKey('vectorMask'), function (reader, target, left, _a) {
|
|
|
534
534
|
(0, psdWriter_1.writeUint16)(writer, path.open ? 3 : 0);
|
|
535
535
|
(0, psdWriter_1.writeUint16)(writer, path.knots.length);
|
|
536
536
|
(0, psdWriter_1.writeUint16)(writer, Math.abs(exports.booleanOperations.indexOf(path.operation))); // default to 1 if not found
|
|
537
|
-
(0, psdWriter_1.writeUint16)(writer,
|
|
537
|
+
(0, psdWriter_1.writeUint16)(writer, path.fillRule === 'non-zero' ? 2 : 1);
|
|
538
538
|
(0, psdWriter_1.writeZeros)(writer, 18); // TODO: these are sometimes non-zero
|
|
539
539
|
var linkedKnot = path.open ? 4 : 1;
|
|
540
540
|
var unlinkedKnot = path.open ? 5 : 2;
|
|
@@ -179,7 +179,7 @@ export function readVectorMask(reader, vectorMask, width, height, size) {
|
|
|
179
179
|
open: selector === 3,
|
|
180
180
|
operation: boolOp === -1 ? 'combine' : booleanOperations[boolOp],
|
|
181
181
|
knots: [],
|
|
182
|
-
fillRule: flags
|
|
182
|
+
fillRule: flags === 2 ? 'non-zero' : 'even-odd',
|
|
183
183
|
};
|
|
184
184
|
paths.push(path);
|
|
185
185
|
break;
|
|
@@ -257,7 +257,7 @@ addHandler('vmsk', hasKey('vectorMask'), function (reader, target, left, _a) {
|
|
|
257
257
|
writeUint16(writer, path.open ? 3 : 0);
|
|
258
258
|
writeUint16(writer, path.knots.length);
|
|
259
259
|
writeUint16(writer, Math.abs(booleanOperations.indexOf(path.operation))); // default to 1 if not found
|
|
260
|
-
writeUint16(writer,
|
|
260
|
+
writeUint16(writer, path.fillRule === 'non-zero' ? 2 : 1);
|
|
261
261
|
writeZeros(writer, 18); // TODO: these are sometimes non-zero
|
|
262
262
|
var linkedKnot = path.open ? 4 : 1;
|
|
263
263
|
var unlinkedKnot = path.open ? 5 : 2;
|