magicrealmsshared 0.3.25 → 0.3.27
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.
|
@@ -33,3 +33,7 @@ export type POSUPDATE = {
|
|
|
33
33
|
};
|
|
34
34
|
export declare const ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
|
|
35
35
|
export type ADMIN_WELL_CREATE = Pick<Well<string>, "pos"> & Partial<Omit<Well<string>, "_id" | "pos">>;
|
|
36
|
+
export declare const ADMIN_WELL_DELETE_COMMAND = "ADMIN_WELL_DELETE";
|
|
37
|
+
export type ADMIN_WELL_DELETE = {
|
|
38
|
+
_id: string;
|
|
39
|
+
};
|
package/dist/communication/ws.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ADMIN_WELL_CREATE_COMMAND = exports.POSUPDATE_COMMAND = exports.DATA_UPDATE_COMMAND = exports.LOGIN_RESPONSE_CODE_SERVER_ERROR = exports.LOGIN_RESPONSE_CODE_PASSWORD_INVALID = exports.LOGIN_RESPONSE_CODE_EMAIL_INVALID = exports.LOGIN_RESPONSE_CODE_SUCCESS = exports.LOGIN_RESPONSE_COMMAND = exports.LOGIN_COMMAND = exports.AUTH_INVALID = exports.AUTH_ACK = exports.AUTH = void 0;
|
|
3
|
+
exports.ADMIN_WELL_DELETE_COMMAND = exports.ADMIN_WELL_CREATE_COMMAND = exports.POSUPDATE_COMMAND = exports.DATA_UPDATE_COMMAND = exports.LOGIN_RESPONSE_CODE_SERVER_ERROR = exports.LOGIN_RESPONSE_CODE_PASSWORD_INVALID = exports.LOGIN_RESPONSE_CODE_EMAIL_INVALID = exports.LOGIN_RESPONSE_CODE_SUCCESS = exports.LOGIN_RESPONSE_COMMAND = exports.LOGIN_COMMAND = exports.AUTH_INVALID = exports.AUTH_ACK = exports.AUTH = void 0;
|
|
4
4
|
exports.AUTH = "AUTH";
|
|
5
5
|
exports.AUTH_ACK = "AUTH_ACK";
|
|
6
6
|
exports.AUTH_INVALID = "AI";
|
|
@@ -13,3 +13,4 @@ exports.LOGIN_RESPONSE_CODE_SERVER_ERROR = 1000;
|
|
|
13
13
|
exports.DATA_UPDATE_COMMAND = "DATA_UPDATE";
|
|
14
14
|
exports.POSUPDATE_COMMAND = "POSUPDATE";
|
|
15
15
|
exports.ADMIN_WELL_CREATE_COMMAND = "ADMIN_WELL_CREATE";
|
|
16
|
+
exports.ADMIN_WELL_DELETE_COMMAND = "ADMIN_WELL_DELETE";
|
package/dist/geo/chunks.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export declare const ChunkSizeLong = 0.025;
|
|
|
8
8
|
export declare const ChunkSizeLat = 0.025;
|
|
9
9
|
export declare function ChunkCoordinatesAreEqual(...chunkCoordinates: ChunkCoordinates[]): boolean;
|
|
10
10
|
export declare function ChunkCoordinatesOfGEOJSONPoint(point: GeoJSON.Point): ChunkCoordinates;
|
|
11
|
-
export declare function ChunkBoundaries(chunkCoordinates: ChunkCoordinates): number[];
|
|
11
|
+
export declare function ChunkBoundaries(chunkCoordinates: ChunkCoordinates): number[][];
|
|
12
12
|
export declare function GEOJSONPointIsInChunks(point: GeoJSON.Point, ...chunkCoordinates: ChunkCoordinates[]): boolean;
|
package/dist/geo/chunks.js
CHANGED
|
@@ -27,10 +27,8 @@ function ChunkCoordinatesOfGEOJSONPoint(point) {
|
|
|
27
27
|
//Long-Min, Long-Max, Lat-Min, Lat-Max
|
|
28
28
|
function ChunkBoundaries(chunkCoordinates) {
|
|
29
29
|
return [
|
|
30
|
-
chunkCoordinates[0] * exports.ChunkSizeLong,
|
|
31
|
-
(chunkCoordinates[0] + 1) * exports.ChunkSizeLong,
|
|
32
|
-
chunkCoordinates[1] * exports.ChunkSizeLat,
|
|
33
|
-
(chunkCoordinates[1] + 1) * exports.ChunkSizeLat,
|
|
30
|
+
[chunkCoordinates[0] * exports.ChunkSizeLong, chunkCoordinates[1] * exports.ChunkSizeLat],
|
|
31
|
+
[(chunkCoordinates[0] + 1) * exports.ChunkSizeLong, (chunkCoordinates[1] + 1) * exports.ChunkSizeLat]
|
|
34
32
|
];
|
|
35
33
|
}
|
|
36
34
|
function GEOJSONPointIsInChunks(point, ...chunkCoordinates) {
|