ag-psd 28.5.0 → 29.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/932f0770 +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/b3c2fab7 +0 -0
- package/.v8-cache/v22.13.1-x64-00250a7c/fc97d72d +0 -0
- package/CHANGELOG.md +6 -0
- package/README.md +2 -18
- package/dist/additionalInfo.js +1 -1
- package/dist/bundle.js +1095 -71
- package/dist/helpers.d.ts +2 -2
- package/dist/helpers.js +18 -17
- package/dist/helpers.js.map +1 -1
- package/dist/initializeCanvas.js +2 -17
- package/dist/initializeCanvas.js.map +1 -1
- package/dist-es/additionalInfo.js +1 -1
- package/dist-es/helpers.d.ts +2 -2
- package/dist-es/helpers.js +16 -15
- package/dist-es/helpers.js.map +1 -1
- package/dist-es/initializeCanvas.js +2 -17
- package/dist-es/initializeCanvas.js.map +1 -1
- package/package.json +1 -1
- package/src/additionalInfo.ts +1 -1
- package/src/helpers.ts +17 -17
- package/src/initializeCanvas.ts +2 -19
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v29.0.0
|
|
4
|
+
- Remove `createCanvasFromData` parameter from `initializeCanvas` function, simplifying handling of custom canvas classes
|
|
5
|
+
|
|
6
|
+
## v28.5.1
|
|
7
|
+
- Fixed handling for `transform` property in `vectorOrigination` section
|
|
8
|
+
|
|
3
9
|
## v28.5.0
|
|
4
10
|
- Added partial support for `pixelSource` section
|
|
5
11
|
- Reworked ABR brush types
|
package/README.md
CHANGED
|
@@ -166,15 +166,7 @@ const createCanvas = (width, height) => {
|
|
|
166
166
|
return new OffscreenCanvas(width, height);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
const image = new Image();
|
|
171
|
-
image.src = 'data:image/jpeg;base64,' + agPsd.byteArrayToBase64(data);
|
|
172
|
-
const canvas = new OffscreenCanvas(image.width, image.height);
|
|
173
|
-
canvas.getContext('2d').drawImage(image, 0, 0);
|
|
174
|
-
return canvas;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
agPsd.initializeCanvas(createCanvas, createCanvasFromData);
|
|
169
|
+
agPsd.initializeCanvas(createCanvas);
|
|
178
170
|
|
|
179
171
|
onmessage = message => {
|
|
180
172
|
// skipping thumbnail and layer images here so we don't have to clear and convert them all
|
|
@@ -224,15 +216,7 @@ const createCanvas = (width, height) => {
|
|
|
224
216
|
return OffscreenCanvas(width, height);
|
|
225
217
|
};
|
|
226
218
|
|
|
227
|
-
|
|
228
|
-
const image = new Image();
|
|
229
|
-
image.src = 'data:image/jpeg;base64,' + agPsd.byteArrayToBase64(data);
|
|
230
|
-
const canvas = new OffscreenCanvas(image.width, image.height);
|
|
231
|
-
canvas.getContext('2d').drawImage(image, 0, 0);
|
|
232
|
-
return canvas;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
agPsd.initializeCanvas(createCanvas, createCanvasFromData);
|
|
219
|
+
agPsd.initializeCanvas(createCanvas);
|
|
236
220
|
|
|
237
221
|
onmessage = message => {
|
|
238
222
|
const psd = message.data.psd;
|
package/dist/additionalInfo.js
CHANGED
|
@@ -327,7 +327,7 @@ addHandler('vogk', hasKey('vectorOrigination'), function (reader, target, left)
|
|
|
327
327
|
}
|
|
328
328
|
var trnf = i.Trnf;
|
|
329
329
|
if (trnf) {
|
|
330
|
-
item.transform = [trnf.xx, trnf.xy, trnf.
|
|
330
|
+
item.transform = [trnf.xx, trnf.xy, trnf.yx, trnf.yy, trnf.tx, trnf.ty];
|
|
331
331
|
}
|
|
332
332
|
target.vectorOrigination.keyDescriptorList.push(item);
|
|
333
333
|
}
|