@gamepark/react-game 6.35.6 → 6.35.7

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.
@@ -4,6 +4,10 @@ import { ComponentDescription } from '../ComponentDescription';
4
4
  import { FlatMaterialDescription } from './FlatMaterial';
5
5
  export declare abstract class PolyhexDescription<P extends number = number, M extends number = number, L extends number = number, ItemId = any> extends FlatMaterialDescription<P, M, L, ItemId> {
6
6
  abstract coordinatesSystem: HexGridSystem;
7
+ polyhexShape: {
8
+ x: number;
9
+ y: number;
10
+ }[];
7
11
  getPolyhexShape(_item: MaterialItem<P, L, ItemId>, _context: ItemContext<P, M, L>): XYCoordinates[];
8
12
  }
9
13
  export declare function isPolyhexDescription<P extends number = number, M extends number = number, L extends number = number, ItemId = any>(description: ComponentDescription<ItemId>): description is PolyhexDescription<P, M, L, ItemId>;
@@ -20,10 +20,12 @@ var FlatMaterial_1 = require("./FlatMaterial");
20
20
  var PolyhexDescription = /** @class */ (function (_super) {
21
21
  __extends(PolyhexDescription, _super);
22
22
  function PolyhexDescription() {
23
- return _super !== null && _super.apply(this, arguments) || this;
23
+ var _this = _super !== null && _super.apply(this, arguments) || this;
24
+ _this.polyhexShape = [{ x: 0, y: 0 }];
25
+ return _this;
24
26
  }
25
27
  PolyhexDescription.prototype.getPolyhexShape = function (_item, _context) {
26
- return [{ x: 0, y: 0 }];
28
+ return this.polyhexShape;
27
29
  };
28
30
  return PolyhexDescription;
29
31
  }(FlatMaterial_1.FlatMaterialDescription));
@@ -1 +1 @@
1
- {"version":3,"file":"PolyhexDescription.js","sourceRoot":"","sources":["../../../../src/components/material/FlatMaterial/PolyhexDescription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,+CAAwD;AAExD;IACU,sCAAwC;IADlD;;IAQA,CAAC;IAHC,4CAAe,GAAf,UAAgB,KAAiC,EAAE,QAA8B;QAC/E,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;IACzB,CAAC;IACH,yBAAC;AAAD,CAAC,AARD,CACU,sCAAuB,GAOhC;AARqB,gDAAkB;AAUxC,SAAgB,oBAAoB,CAClC,WAAyC;IAEzC,OAAO,OAAQ,WAAkC,CAAC,eAAe,KAAK,UAAU,CAAA;AAClF,CAAC;AAJD,oDAIC"}
1
+ {"version":3,"file":"PolyhexDescription.js","sourceRoot":"","sources":["../../../../src/components/material/FlatMaterial/PolyhexDescription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAGA,+CAAwD;AAExD;IACU,sCAAwC;IADlD;QAAA,qEAUC;QALC,kBAAY,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;;IAKjC,CAAC;IAHC,4CAAe,GAAf,UAAgB,KAAiC,EAAE,QAA8B;QAC/E,OAAO,IAAI,CAAC,YAAY,CAAA;IAC1B,CAAC;IACH,yBAAC;AAAD,CAAC,AAVD,CACU,sCAAuB,GAShC;AAVqB,gDAAkB;AAYxC,SAAgB,oBAAoB,CAClC,WAAyC;IAEzC,OAAO,OAAQ,WAAkC,CAAC,eAAe,KAAK,UAAU,CAAA;AAClF,CAAC;AAJD,oDAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamepark/react-game",
3
- "version": "6.35.6",
3
+ "version": "6.35.7",
4
4
  "description": "React components & tools to create a Board Game user interface for Game Park",
5
5
  "author": "Romain Fromi <romain@game-park.com> (https://game-park.com/)",
6
6
  "license": "ISC",