dgeoutils 2.4.30 → 2.4.31

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.
@@ -26,6 +26,15 @@ var __read = (this && this.__read) || function (o, n) {
26
26
  }
27
27
  return ar;
28
28
  };
29
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
30
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
31
+ if (ar || !(i in from)) {
32
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
33
+ ar[i] = from[i];
34
+ }
35
+ }
36
+ return to.concat(ar || Array.prototype.slice.call(from));
37
+ };
29
38
  Object.defineProperty(exports, "__esModule", { value: true });
30
39
  exports.InterpolationMatrix = void 0;
31
40
  var DPolygon_1 = require("./DPolygon");
@@ -76,7 +85,7 @@ var InterpolationMatrix = (function () {
76
85
  };
77
86
  Object.defineProperty(InterpolationMatrix.prototype, "size", {
78
87
  get: function () {
79
- return new DPoint_1.DPoint(Object.keys(this.cells).length, Object.keys(this.cells[0]).length);
88
+ return new DPoint_1.DPoint(Math.max.apply(Math, __spreadArray([], __read(Object.keys(this.cells).map(Number)), false)), Math.max.apply(Math, __spreadArray([], __read(Object.keys(this.cells[0]).map(Number)), false)));
80
89
  },
81
90
  enumerable: false,
82
91
  configurable: true
@@ -43,7 +43,7 @@ export class InterpolationMatrix {
43
43
  return Object.assign({}, cell.properties);
44
44
  }
45
45
  get size() {
46
- return new DPoint(Object.keys(this.cells).length, Object.keys(this.cells[0]).length);
46
+ return new DPoint(Math.max(...Object.keys(this.cells).map(Number)), Math.max(...Object.keys(this.cells[0]).map(Number)));
47
47
  }
48
48
  get allCellsClone() {
49
49
  return this.allCells.map((p) => p.clone());
@@ -25,6 +25,15 @@ var __read = (this && this.__read) || function (o, n) {
25
25
  }
26
26
  return ar;
27
27
  };
28
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
29
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
30
+ if (ar || !(i in from)) {
31
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
32
+ ar[i] = from[i];
33
+ }
34
+ }
35
+ return to.concat(ar || Array.prototype.slice.call(from));
36
+ };
28
37
  import { DPolygon } from './DPolygon';
29
38
  import { DPoint } from './DPoint';
30
39
  import { isDefAndNotNull } from './utils';
@@ -73,7 +82,7 @@ var InterpolationMatrix = (function () {
73
82
  };
74
83
  Object.defineProperty(InterpolationMatrix.prototype, "size", {
75
84
  get: function () {
76
- return new DPoint(Object.keys(this.cells).length, Object.keys(this.cells[0]).length);
85
+ return new DPoint(Math.max.apply(Math, __spreadArray([], __read(Object.keys(this.cells).map(Number)), false)), Math.max.apply(Math, __spreadArray([], __read(Object.keys(this.cells[0]).map(Number)), false)));
77
86
  },
78
87
  enumerable: false,
79
88
  configurable: true