ag-psd 24.0.0 → 25.0.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.
- package/.v8-cache/v22.13.1-x64-00250a7c/4511bacf +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/57d3380b +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/6cbfc0ec +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/7100ee08 +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/75e41e43 +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/8d0bf0b5 +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/b3c2fab7 +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/c314aece +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/cfc49f4f +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/e03e2acd +0 -0
- package/CHANGELOG.md +4 -0
- package/accept.js +18 -1
- package/dist/additionalInfo.js +7 -12
- package/dist/additionalInfo.js.map +1 -1
- package/dist/bundle.js +39 -27
- package/dist/descriptor.d.ts +4 -3
- package/dist/descriptor.js +5 -1
- package/dist/descriptor.js.map +1 -1
- package/dist/psd.d.ts +11 -1
- package/dist/psd.js.map +1 -1
- package/dist/psdReader.js +10 -5
- package/dist/psdReader.js.map +1 -1
- package/dist/psdWriter.js +17 -9
- package/dist/psdWriter.js.map +1 -1
- package/dist-es/additionalInfo.js +7 -12
- package/dist-es/additionalInfo.js.map +1 -1
- package/dist-es/descriptor.d.ts +4 -3
- package/dist-es/descriptor.js +5 -1
- package/dist-es/descriptor.js.map +1 -1
- package/dist-es/psd.d.ts +11 -1
- package/dist-es/psd.js.map +1 -1
- package/dist-es/psdReader.js +10 -5
- package/dist-es/psdReader.js.map +1 -1
- package/dist-es/psdWriter.js +17 -9
- package/dist-es/psdWriter.js.map +1 -1
- package/package.json +1 -1
- package/src/additionalInfo.ts +11 -15
- package/src/descriptor.ts +7 -4
- package/src/psd.ts +8 -1
- package/src/psdReader.ts +11 -6
- package/src/psdWriter.ts +17 -9
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/CHANGELOG.md
CHANGED
package/accept.js
CHANGED
|
@@ -9,7 +9,7 @@ if (type === 'read-write' || type === 'write') {
|
|
|
9
9
|
const file = `expected.${ext}`;
|
|
10
10
|
if (fs.existsSync(path.join('results', type, dir, file))) {
|
|
11
11
|
fs.unlinkSync(path.join('test', type, dir, file));
|
|
12
|
-
fs.
|
|
12
|
+
fs.copyFileSync(
|
|
13
13
|
path.join('results', type, dir, file),
|
|
14
14
|
path.join('test', type, dir, file));
|
|
15
15
|
console.log('copied', dir);
|
|
@@ -22,6 +22,23 @@ if (type === 'read-write' || type === 'write') {
|
|
|
22
22
|
console.log('failed', dir, e.message);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
+
} else if (type === 'read') {
|
|
26
|
+
for (const dir of fs.readdirSync(path.join('test', type))) {
|
|
27
|
+
try {
|
|
28
|
+
const file = `data.json`;
|
|
29
|
+
if (fs.existsSync(path.join('results', type, dir, file))) {
|
|
30
|
+
fs.unlinkSync(path.join('test', type, dir, file));
|
|
31
|
+
fs.copyFileSync(
|
|
32
|
+
path.join('results', type, dir, file),
|
|
33
|
+
path.join('test', type, dir, file));
|
|
34
|
+
console.log('copied', dir);
|
|
35
|
+
} else {
|
|
36
|
+
console.log('skipped', dir);
|
|
37
|
+
}
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.log('failed', dir, e.message);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
25
42
|
} else {
|
|
26
43
|
console.error('Invalid type:', type);
|
|
27
44
|
}
|
package/dist/additionalInfo.js
CHANGED
|
@@ -278,6 +278,13 @@ addHandler('vmsk', hasKey('vectorMask'), function (reader, target, left, _a) {
|
|
|
278
278
|
});
|
|
279
279
|
// TODO: need to write vmsk if has outline ?
|
|
280
280
|
addHandlerAlias('vsms', 'vmsk');
|
|
281
|
+
// addHandlerAlias('vmsk', 'vsms');
|
|
282
|
+
addHandler('vowv', // something with vectors?
|
|
283
|
+
hasKey('vowv'), function (reader, target) {
|
|
284
|
+
target.vowv = (0, psdReader_1.readUint32)(reader); // always 2 ????
|
|
285
|
+
}, function (writer, target) {
|
|
286
|
+
(0, psdWriter_1.writeUint32)(writer, target.vowv);
|
|
287
|
+
});
|
|
281
288
|
addHandler('vogk', hasKey('vectorOrigination'), function (reader, target, left) {
|
|
282
289
|
if ((0, psdReader_1.readInt32)(reader) !== 1)
|
|
283
290
|
throw new Error("Invalid vogk version");
|
|
@@ -2032,18 +2039,6 @@ addHandler('LMsk', hasKey('userMask'), function (reader, target) {
|
|
|
2032
2039
|
(0, psdWriter_1.writeUint8)(writer, 128);
|
|
2033
2040
|
(0, psdWriter_1.writeZeros)(writer, 1);
|
|
2034
2041
|
});
|
|
2035
|
-
if (helpers_1.MOCK_HANDLERS) {
|
|
2036
|
-
addHandler('vowv', // appears with Lr16 section ?
|
|
2037
|
-
function (// appears with Lr16 section ?
|
|
2038
|
-
_) { return false; }, function (reader, target, left) {
|
|
2039
|
-
var value = (0, psdReader_1.readUint32)(reader); // always 2 ????
|
|
2040
|
-
reader;
|
|
2041
|
-
target;
|
|
2042
|
-
console.log('vowv', { value: value }, left());
|
|
2043
|
-
}, function (_writer, _target) {
|
|
2044
|
-
// TODO: write
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
2042
|
if (helpers_1.MOCK_HANDLERS) {
|
|
2048
2043
|
addHandler('Patt', function (target) { return target._Patt !== undefined; }, function (reader, target, left) {
|
|
2049
2044
|
// console.log('additional info: Patt');
|