@mtgame/core 0.0.12 → 0.0.13
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 +44 -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/hockey-game-statistic.js +16 -1
- package/esm2015/models/hockey-statistic.js +6 -1
- package/esm5/models/hockey-game-statistic.js +36 -1
- package/esm5/models/hockey-statistic.js +10 -1
- package/fesm2015/mtgame-core.js +20 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +44 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-statistic.d.ts +5 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2307,6 +2307,41 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2307
2307
|
enumerable: true,
|
|
2308
2308
|
configurable: true
|
|
2309
2309
|
});
|
|
2310
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2311
|
+
get: function () {
|
|
2312
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
2313
|
+
},
|
|
2314
|
+
enumerable: true,
|
|
2315
|
+
configurable: true
|
|
2316
|
+
});
|
|
2317
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "evShots", {
|
|
2318
|
+
get: function () {
|
|
2319
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
|
|
2320
|
+
},
|
|
2321
|
+
enumerable: true,
|
|
2322
|
+
configurable: true
|
|
2323
|
+
});
|
|
2324
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shShots", {
|
|
2325
|
+
get: function () {
|
|
2326
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
|
|
2327
|
+
},
|
|
2328
|
+
enumerable: true,
|
|
2329
|
+
configurable: true
|
|
2330
|
+
});
|
|
2331
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2332
|
+
get: function () {
|
|
2333
|
+
return this.ppShots + this.evShots + this.shShots;
|
|
2334
|
+
},
|
|
2335
|
+
enumerable: true,
|
|
2336
|
+
configurable: true
|
|
2337
|
+
});
|
|
2338
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "goals", {
|
|
2339
|
+
get: function () {
|
|
2340
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
|
|
2341
|
+
},
|
|
2342
|
+
enumerable: true,
|
|
2343
|
+
configurable: true
|
|
2344
|
+
});
|
|
2310
2345
|
Object.defineProperty(HockeyGameStatistic.prototype, "assists", {
|
|
2311
2346
|
get: function () {
|
|
2312
2347
|
return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
|
|
@@ -2382,6 +2417,13 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2382
2417
|
function HockeyStatistic() {
|
|
2383
2418
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2384
2419
|
}
|
|
2420
|
+
Object.defineProperty(HockeyStatistic.prototype, "assists", {
|
|
2421
|
+
get: function () {
|
|
2422
|
+
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
2423
|
+
},
|
|
2424
|
+
enumerable: true,
|
|
2425
|
+
configurable: true
|
|
2426
|
+
});
|
|
2385
2427
|
HockeyStatistic.toFront = function (data) { };
|
|
2386
2428
|
HockeyStatistic.toBack = function (data) { };
|
|
2387
2429
|
__decorate([
|
|
@@ -2437,6 +2479,8 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2437
2479
|
block_shots: 'blockShots',
|
|
2438
2480
|
face_off_losses: 'faceOffLosses',
|
|
2439
2481
|
face_off_wins: 'faceOffWins',
|
|
2482
|
+
face_offs: 'faceOffs',
|
|
2483
|
+
face_off_percent: 'faceOffPercent',
|
|
2440
2484
|
saves: 'saves',
|
|
2441
2485
|
goals_against: 'goalsAgainst',
|
|
2442
2486
|
safety_rate: 'safetyRate',
|