ag-psd 28.3.0 → 28.3.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
@@ -557,11 +557,9 @@ addHandler('vmsk', hasKey('vectorMask'), function (reader, target, left, _a) {
557
557
  (0, psdWriter_1.writeFixedPointPath32)(writer, clipboard.resolution);
558
558
  (0, psdWriter_1.writeZeros)(writer, 4);
559
559
  }
560
- if (vectorMask.fillStartsWithAllPixels !== undefined) {
561
- (0, psdWriter_1.writeUint16)(writer, 8);
562
- (0, psdWriter_1.writeUint16)(writer, vectorMask.fillStartsWithAllPixels ? 1 : 0);
563
- (0, psdWriter_1.writeZeros)(writer, 22);
564
- }
560
+ (0, psdWriter_1.writeUint16)(writer, 8);
561
+ (0, psdWriter_1.writeUint16)(writer, vectorMask.fillStartsWithAllPixels ? 1 : 0);
562
+ (0, psdWriter_1.writeZeros)(writer, 22);
565
563
  for (var _i = 0, _b = vectorMask.paths; _i < _b.length; _i++) {
566
564
  var path = _b[_i];
567
565
  (0, psdWriter_1.writeUint16)(writer, path.open ? 3 : 0);
@@ -251,11 +251,9 @@ addHandler('vmsk', hasKey('vectorMask'), function (reader, target, left, _a) {
251
251
  writeFixedPointPath32(writer, clipboard.resolution);
252
252
  writeZeros(writer, 4);
253
253
  }
254
- if (vectorMask.fillStartsWithAllPixels !== undefined) {
255
- writeUint16(writer, 8);
256
- writeUint16(writer, vectorMask.fillStartsWithAllPixels ? 1 : 0);
257
- writeZeros(writer, 22);
258
- }
254
+ writeUint16(writer, 8);
255
+ writeUint16(writer, vectorMask.fillStartsWithAllPixels ? 1 : 0);
256
+ writeZeros(writer, 22);
259
257
  for (var _i = 0, _b = vectorMask.paths; _i < _b.length; _i++) {
260
258
  var path = _b[_i];
261
259
  writeUint16(writer, path.open ? 3 : 0);