@mtgame/core 0.0.74 → 0.0.76
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/bundles/mtgame-core.umd.js +12 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/file-api.js +3 -3
- package/esm2015/models/file.js +8 -1
- package/esm5/api/file-api.js +2 -2
- package/esm5/models/file.js +12 -1
- package/fesm2015/mtgame-core.js +9 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +12 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/file.d.ts +4 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -371,6 +371,16 @@ var File = /** @class */ (function () {
|
|
|
371
371
|
enumerable: true,
|
|
372
372
|
configurable: true
|
|
373
373
|
});
|
|
374
|
+
Object.defineProperty(File.prototype, "path", {
|
|
375
|
+
get: function () {
|
|
376
|
+
return this.resizedPath || this._path;
|
|
377
|
+
},
|
|
378
|
+
set: function (filePath) {
|
|
379
|
+
this._path = filePath;
|
|
380
|
+
},
|
|
381
|
+
enumerable: true,
|
|
382
|
+
configurable: true
|
|
383
|
+
});
|
|
374
384
|
File.toFront = function (data) {
|
|
375
385
|
return null;
|
|
376
386
|
};
|
|
@@ -390,6 +400,7 @@ var File = /** @class */ (function () {
|
|
|
390
400
|
name: 'name',
|
|
391
401
|
original_name: 'originalName',
|
|
392
402
|
path: 'path',
|
|
403
|
+
resized_path: 'resizedPath',
|
|
393
404
|
mime_type: 'mimeType',
|
|
394
405
|
size: 'size',
|
|
395
406
|
engine: 'engine',
|
|
@@ -2596,7 +2607,7 @@ var FileApi = /** @class */ (function () {
|
|
|
2596
2607
|
return __generator(this, function (_a) {
|
|
2597
2608
|
params = new HttpParams();
|
|
2598
2609
|
if (width && height) {
|
|
2599
|
-
params.set('width', width.toString()).set('height', height.toString());
|
|
2610
|
+
params = params.set('width', width.toString()).set('height', height.toString());
|
|
2600
2611
|
}
|
|
2601
2612
|
formData = new FormData();
|
|
2602
2613
|
formData.append('file', fileData, filename);
|