@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
|
@@ -584,6 +584,16 @@
|
|
|
584
584
|
enumerable: true,
|
|
585
585
|
configurable: true
|
|
586
586
|
});
|
|
587
|
+
Object.defineProperty(File.prototype, "path", {
|
|
588
|
+
get: function () {
|
|
589
|
+
return this.resizedPath || this._path;
|
|
590
|
+
},
|
|
591
|
+
set: function (filePath) {
|
|
592
|
+
this._path = filePath;
|
|
593
|
+
},
|
|
594
|
+
enumerable: true,
|
|
595
|
+
configurable: true
|
|
596
|
+
});
|
|
587
597
|
File.toFront = function (data) {
|
|
588
598
|
return null;
|
|
589
599
|
};
|
|
@@ -603,6 +613,7 @@
|
|
|
603
613
|
name: 'name',
|
|
604
614
|
original_name: 'originalName',
|
|
605
615
|
path: 'path',
|
|
616
|
+
resized_path: 'resizedPath',
|
|
606
617
|
mime_type: 'mimeType',
|
|
607
618
|
size: 'size',
|
|
608
619
|
engine: 'engine',
|
|
@@ -2809,7 +2820,7 @@
|
|
|
2809
2820
|
return __generator(this, function (_a) {
|
|
2810
2821
|
params = new http.HttpParams();
|
|
2811
2822
|
if (width && height) {
|
|
2812
|
-
params.set('width', width.toString()).set('height', height.toString());
|
|
2823
|
+
params = params.set('width', width.toString()).set('height', height.toString());
|
|
2813
2824
|
}
|
|
2814
2825
|
formData = new FormData();
|
|
2815
2826
|
formData.append('file', fileData, filename);
|