dgeoutils 2.4.29 → 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.
- package/dist/cjs/InterpolationMatrix.d.ts +1 -0
- package/dist/cjs/InterpolationMatrix.js +16 -0
- package/dist/es2015/InterpolationMatrix.js +3 -0
- package/dist/esm/InterpolationMatrix.js +16 -0
- package/dist/umd/dgeoutils.js +43 -27
- package/dist/umd/dgeoutils.min.js +1 -1
- package/dist/umd/dgeoutils.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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");
|
|
@@ -74,6 +83,13 @@ var InterpolationMatrix = (function () {
|
|
|
74
83
|
}
|
|
75
84
|
return __assign({}, cell.properties);
|
|
76
85
|
};
|
|
86
|
+
Object.defineProperty(InterpolationMatrix.prototype, "size", {
|
|
87
|
+
get: function () {
|
|
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)));
|
|
89
|
+
},
|
|
90
|
+
enumerable: false,
|
|
91
|
+
configurable: true
|
|
92
|
+
});
|
|
77
93
|
Object.defineProperty(InterpolationMatrix.prototype, "allCellsClone", {
|
|
78
94
|
get: function () {
|
|
79
95
|
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(Math.max(...Object.keys(this.cells).map(Number)), Math.max(...Object.keys(this.cells[0]).map(Number)));
|
|
47
|
+
}
|
|
45
48
|
get allCellsClone() {
|
|
46
49
|
return this.allCells.map((p) => p.clone());
|
|
47
50
|
}
|
|
@@ -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';
|
|
@@ -71,6 +80,13 @@ var InterpolationMatrix = (function () {
|
|
|
71
80
|
}
|
|
72
81
|
return __assign({}, cell.properties);
|
|
73
82
|
};
|
|
83
|
+
Object.defineProperty(InterpolationMatrix.prototype, "size", {
|
|
84
|
+
get: function () {
|
|
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)));
|
|
86
|
+
},
|
|
87
|
+
enumerable: false,
|
|
88
|
+
configurable: true
|
|
89
|
+
});
|
|
74
90
|
Object.defineProperty(InterpolationMatrix.prototype, "allCellsClone", {
|
|
75
91
|
get: function () {
|
|
76
92
|
return this.allCells.map(function (p) { return p.clone(); });
|