@mtgame/core 0.0.75 → 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 +11 -0
- 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/models/file.js +8 -1
- package/esm5/models/file.js +12 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -0
- 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',
|