@wemap/providers 13.2.2 → 13.2.3
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +101 -5
- package/dist/index.mjs.map +1 -1
- package/dist/package.json.d.ts +70 -0
- package/dist/src/providers/vision/vps/ImageRelocalization.d.ts +2 -2
- package/dist/src/providers/vision/vps/VpsProvider.d.ts +4 -0
- package/package.json +7 -7
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"author": "Wemap",
|
|
3
|
+
"contributors": [
|
|
4
|
+
"Thibaud Michel <thibaud@getwemap.com>",
|
|
5
|
+
"Guillaume Pannetier <guillaume.pannetier@getwemap.com>"
|
|
6
|
+
],
|
|
7
|
+
"description": "A package using different geoloc systems",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/wemap/wemap-modules-js.git"
|
|
13
|
+
},
|
|
14
|
+
"name": "@wemap/providers",
|
|
15
|
+
"version": "13.2.3",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/wemap/wemap-modules-js#readme",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite build --watch",
|
|
22
|
+
"build": "vite build"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@wemap/camera": "^13.0.0",
|
|
26
|
+
"@wemap/geo": "^13.2.3",
|
|
27
|
+
"@wemap/logger": "^13.0.0",
|
|
28
|
+
"@wemap/map": "^13.2.3",
|
|
29
|
+
"@wemap/maths": "^13.0.0",
|
|
30
|
+
"@wemap/osm": "^13.2.3",
|
|
31
|
+
"@wemap/routers": "^13.2.3",
|
|
32
|
+
"@wemap/utils": "^13.2.3",
|
|
33
|
+
"geomag": "^1.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"map-gl-geolocation": "^0.3.0",
|
|
37
|
+
"mapbox-gl": "^1.13.2"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"wemap",
|
|
41
|
+
"providers",
|
|
42
|
+
"positioning",
|
|
43
|
+
"pdr",
|
|
44
|
+
"wifi",
|
|
45
|
+
"gnss",
|
|
46
|
+
"mapmatching",
|
|
47
|
+
"step-detection"
|
|
48
|
+
],
|
|
49
|
+
"license": "ISC",
|
|
50
|
+
"type": "module",
|
|
51
|
+
"files": [
|
|
52
|
+
"dist",
|
|
53
|
+
"helpers"
|
|
54
|
+
],
|
|
55
|
+
"exports": {
|
|
56
|
+
".": {
|
|
57
|
+
"types": "./dist/index.d.ts",
|
|
58
|
+
"import": "./dist/index.mjs",
|
|
59
|
+
"require": "./dist/index.js"
|
|
60
|
+
},
|
|
61
|
+
"./helpers/*": {
|
|
62
|
+
"default": "./helpers/*.js",
|
|
63
|
+
"types": "./dist/helpers/*.d.ts"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"gitHead": "c7d05352e1f7efd054722f7234d78025c8e9f5e3"
|
|
67
|
+
}
|
|
68
|
+
;
|
|
69
|
+
|
|
70
|
+
export default _default;
|
|
@@ -4,8 +4,8 @@ import { CoarsePose } from './VpsMetadata.js';
|
|
|
4
4
|
import { default as VpsRequest } from './VpsRequest.js';
|
|
5
5
|
import { default as VpsResponse } from './VpsResponse.js';
|
|
6
6
|
declare class ImageRelocalization {
|
|
7
|
-
static _prepareRequest(imageCanvas: HTMLCanvasElement, calibration?: Calibration | null, coarsePose?: CoarsePose | null): VpsRequest;
|
|
8
|
-
static relocalize(endpointUrl: string, imageCanvas: HTMLCanvasElement, calibration?: Calibration | null, coarsePose?: CoarsePose | null, customHeaders?: Record<string, string> | null): Promise<VpsResponse | null>;
|
|
7
|
+
static _prepareRequest(imageCanvas: HTMLCanvasElement, calibration?: Calibration | null, coarsePose?: CoarsePose | null, requestCaller?: string | null): VpsRequest;
|
|
8
|
+
static relocalize(endpointUrl: string, imageCanvas: HTMLCanvasElement, calibration?: Calibration | null, coarsePose?: CoarsePose | null, requestCaller?: string | null, customHeaders?: Record<string, string> | null): Promise<VpsResponse | null>;
|
|
9
9
|
static getHeadingFromQuaternion(quaternion: Quaternion_t): number;
|
|
10
10
|
}
|
|
11
11
|
export default ImageRelocalization;
|
|
@@ -11,6 +11,7 @@ declare class VpsProvider extends Provider<VpsEvent> {
|
|
|
11
11
|
static DEFAULT_MIN_INCLINATION_FOR_REQUEST: number;
|
|
12
12
|
static DEFAULT_WAIT_TIME_MIN_INCLINATION_FOR_REQUEST: number;
|
|
13
13
|
static DEFAULT_USE_COARSE_POSE: boolean;
|
|
14
|
+
static DEFAULT_REQUEST_CALLER: string;
|
|
14
15
|
static CAMERA_TO_SMARTPHONE_ROT: import('@wemap/maths').Quaternion_t;
|
|
15
16
|
_relativeRotationCalc?: RelativeRotationCalc;
|
|
16
17
|
_serverError: boolean;
|
|
@@ -21,6 +22,7 @@ declare class VpsProvider extends Provider<VpsEvent> {
|
|
|
21
22
|
_minInclinationForRequest: number;
|
|
22
23
|
_waitTimeMinInclinationForRequest: number;
|
|
23
24
|
_useCoarsePose: boolean;
|
|
25
|
+
_requestCaller: string;
|
|
24
26
|
getName: () => string;
|
|
25
27
|
availability: () => Promise<void>;
|
|
26
28
|
start(): void;
|
|
@@ -40,6 +42,8 @@ declare class VpsProvider extends Provider<VpsEvent> {
|
|
|
40
42
|
set waitTimeMinInclinationForRequest(waitTimeMinInclinationForRequest: number);
|
|
41
43
|
get useCoarsePose(): boolean;
|
|
42
44
|
set useCoarsePose(useCoarsePose: boolean);
|
|
45
|
+
get requestCaller(): string;
|
|
46
|
+
set requestCaller(requestCaller: string);
|
|
43
47
|
}
|
|
44
48
|
declare const _default: VpsProvider;
|
|
45
49
|
export default _default;
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"url": "git+https://github.com/wemap/wemap-modules-js.git"
|
|
13
13
|
},
|
|
14
14
|
"name": "@wemap/providers",
|
|
15
|
-
"version": "13.2.
|
|
15
|
+
"version": "13.2.3",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
18
18
|
},
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@wemap/camera": "^13.0.0",
|
|
26
|
-
"@wemap/geo": "^13.
|
|
26
|
+
"@wemap/geo": "^13.2.3",
|
|
27
27
|
"@wemap/logger": "^13.0.0",
|
|
28
|
-
"@wemap/map": "^13.2.
|
|
28
|
+
"@wemap/map": "^13.2.3",
|
|
29
29
|
"@wemap/maths": "^13.0.0",
|
|
30
|
-
"@wemap/osm": "^13.2.
|
|
31
|
-
"@wemap/routers": "^13.2.
|
|
32
|
-
"@wemap/utils": "^13.
|
|
30
|
+
"@wemap/osm": "^13.2.3",
|
|
31
|
+
"@wemap/routers": "^13.2.3",
|
|
32
|
+
"@wemap/utils": "^13.2.3",
|
|
33
33
|
"geomag": "^1.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"types": "./dist/helpers/*.d.ts"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "c7d05352e1f7efd054722f7234d78025c8e9f5e3"
|
|
67
67
|
}
|