dgeoutils 2.4.8 → 2.4.9
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/DPoint.d.ts +4 -0
- package/dist/cjs/DPoint.js +28 -0
- package/dist/es2015/DPoint.js +12 -0
- package/dist/esm/DPoint.js +28 -0
- package/dist/umd/dgeoutils.js +29 -1
- package/dist/umd/dgeoutils.min.js +1 -1
- package/dist/umd/dgeoutils.min.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/DPoint.d.ts
CHANGED
|
@@ -102,6 +102,10 @@ export declare class DPoint {
|
|
|
102
102
|
get yPoint(): DPoint;
|
|
103
103
|
get wPoint(): DPoint;
|
|
104
104
|
get hPoint(): DPoint;
|
|
105
|
+
get lat(): number;
|
|
106
|
+
get lng(): number;
|
|
107
|
+
get lon(): number;
|
|
108
|
+
get alt(): number | undefined;
|
|
105
109
|
simple(xKey?: string, yKey?: string): {
|
|
106
110
|
[key: string]: number;
|
|
107
111
|
};
|
package/dist/cjs/DPoint.js
CHANGED
|
@@ -595,6 +595,34 @@ var DPoint = (function () {
|
|
|
595
595
|
enumerable: false,
|
|
596
596
|
configurable: true
|
|
597
597
|
});
|
|
598
|
+
Object.defineProperty(DPoint.prototype, "lat", {
|
|
599
|
+
get: function () {
|
|
600
|
+
return this.y;
|
|
601
|
+
},
|
|
602
|
+
enumerable: false,
|
|
603
|
+
configurable: true
|
|
604
|
+
});
|
|
605
|
+
Object.defineProperty(DPoint.prototype, "lng", {
|
|
606
|
+
get: function () {
|
|
607
|
+
return this.x;
|
|
608
|
+
},
|
|
609
|
+
enumerable: false,
|
|
610
|
+
configurable: true
|
|
611
|
+
});
|
|
612
|
+
Object.defineProperty(DPoint.prototype, "lon", {
|
|
613
|
+
get: function () {
|
|
614
|
+
return this.x;
|
|
615
|
+
},
|
|
616
|
+
enumerable: false,
|
|
617
|
+
configurable: true
|
|
618
|
+
});
|
|
619
|
+
Object.defineProperty(DPoint.prototype, "alt", {
|
|
620
|
+
get: function () {
|
|
621
|
+
return this.z;
|
|
622
|
+
},
|
|
623
|
+
enumerable: false,
|
|
624
|
+
configurable: true
|
|
625
|
+
});
|
|
598
626
|
DPoint.prototype.simple = function (xKey, yKey) {
|
|
599
627
|
var _a;
|
|
600
628
|
if (xKey === void 0) { xKey = 'x'; }
|
package/dist/es2015/DPoint.js
CHANGED
|
@@ -495,6 +495,18 @@ export class DPoint {
|
|
|
495
495
|
get hPoint() {
|
|
496
496
|
return this.yPoint;
|
|
497
497
|
}
|
|
498
|
+
get lat() {
|
|
499
|
+
return this.y;
|
|
500
|
+
}
|
|
501
|
+
get lng() {
|
|
502
|
+
return this.x;
|
|
503
|
+
}
|
|
504
|
+
get lon() {
|
|
505
|
+
return this.x;
|
|
506
|
+
}
|
|
507
|
+
get alt() {
|
|
508
|
+
return this.z;
|
|
509
|
+
}
|
|
498
510
|
simple(xKey = 'x', yKey = 'y') {
|
|
499
511
|
return {
|
|
500
512
|
[xKey]: this.x,
|
package/dist/esm/DPoint.js
CHANGED
|
@@ -592,6 +592,34 @@ var DPoint = (function () {
|
|
|
592
592
|
enumerable: false,
|
|
593
593
|
configurable: true
|
|
594
594
|
});
|
|
595
|
+
Object.defineProperty(DPoint.prototype, "lat", {
|
|
596
|
+
get: function () {
|
|
597
|
+
return this.y;
|
|
598
|
+
},
|
|
599
|
+
enumerable: false,
|
|
600
|
+
configurable: true
|
|
601
|
+
});
|
|
602
|
+
Object.defineProperty(DPoint.prototype, "lng", {
|
|
603
|
+
get: function () {
|
|
604
|
+
return this.x;
|
|
605
|
+
},
|
|
606
|
+
enumerable: false,
|
|
607
|
+
configurable: true
|
|
608
|
+
});
|
|
609
|
+
Object.defineProperty(DPoint.prototype, "lon", {
|
|
610
|
+
get: function () {
|
|
611
|
+
return this.x;
|
|
612
|
+
},
|
|
613
|
+
enumerable: false,
|
|
614
|
+
configurable: true
|
|
615
|
+
});
|
|
616
|
+
Object.defineProperty(DPoint.prototype, "alt", {
|
|
617
|
+
get: function () {
|
|
618
|
+
return this.z;
|
|
619
|
+
},
|
|
620
|
+
enumerable: false,
|
|
621
|
+
configurable: true
|
|
622
|
+
});
|
|
595
623
|
DPoint.prototype.simple = function (xKey, yKey) {
|
|
596
624
|
var _a;
|
|
597
625
|
if (xKey === void 0) { xKey = 'x'; }
|