dgeoutils 2.4.29 → 2.4.30

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.
@@ -15,6 +15,7 @@ export declare class InterpolationMatrix {
15
15
  positionToCellCoords(d: DPoint): DPoint;
16
16
  calculate(): InterpolationMatrix;
17
17
  getCellValue({ x, y }: DPoint, key?: string | string[]): (number | Record<string, number>);
18
+ get size(): DPoint;
18
19
  get allCellsClone(): DPolygon[];
19
20
  private interpolateValues;
20
21
  private setKnownValues;
@@ -74,6 +74,13 @@ var InterpolationMatrix = (function () {
74
74
  }
75
75
  return __assign({}, cell.properties);
76
76
  };
77
+ Object.defineProperty(InterpolationMatrix.prototype, "size", {
78
+ get: function () {
79
+ return new DPoint_1.DPoint(Object.keys(this.cells).length, Object.keys(this.cells[0]).length);
80
+ },
81
+ enumerable: false,
82
+ configurable: true
83
+ });
77
84
  Object.defineProperty(InterpolationMatrix.prototype, "allCellsClone", {
78
85
  get: function () {
79
86
  return this.allCells.map(function (p) { return p.clone(); });
@@ -42,6 +42,9 @@ export class InterpolationMatrix {
42
42
  }
43
43
  return Object.assign({}, cell.properties);
44
44
  }
45
+ get size() {
46
+ return new DPoint(Object.keys(this.cells).length, Object.keys(this.cells[0]).length);
47
+ }
45
48
  get allCellsClone() {
46
49
  return this.allCells.map((p) => p.clone());
47
50
  }
@@ -71,6 +71,13 @@ var InterpolationMatrix = (function () {
71
71
  }
72
72
  return __assign({}, cell.properties);
73
73
  };
74
+ Object.defineProperty(InterpolationMatrix.prototype, "size", {
75
+ get: function () {
76
+ return new DPoint(Object.keys(this.cells).length, Object.keys(this.cells[0]).length);
77
+ },
78
+ enumerable: false,
79
+ configurable: true
80
+ });
74
81
  Object.defineProperty(InterpolationMatrix.prototype, "allCellsClone", {
75
82
  get: function () {
76
83
  return this.allCells.map(function (p) { return p.clone(); });