Include built dist folder for external usage
This commit is contained in:
parent
df9023d78b
commit
9d54b00dbc
298
dist/docs.json
vendored
Normal file
298
dist/docs.json
vendored
Normal file
@ -0,0 +1,298 @@
|
||||
{
|
||||
"api": {
|
||||
"name": "DumonGeolocationPlugin",
|
||||
"slug": "dumongeolocationplugin",
|
||||
"docs": "",
|
||||
"tags": [],
|
||||
"methods": [
|
||||
{
|
||||
"name": "startPositioning",
|
||||
"signature": "() => Promise<void>",
|
||||
"parameters": [],
|
||||
"returns": "Promise<void>",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"slug": "startpositioning"
|
||||
},
|
||||
{
|
||||
"name": "stopPositioning",
|
||||
"signature": "() => Promise<void>",
|
||||
"parameters": [],
|
||||
"returns": "Promise<void>",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"slug": "stoppositioning"
|
||||
},
|
||||
{
|
||||
"name": "getLatestPosition",
|
||||
"signature": "() => Promise<PositioningData>",
|
||||
"parameters": [],
|
||||
"returns": "Promise<PositioningData>",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [
|
||||
"PositioningData"
|
||||
],
|
||||
"slug": "getlatestposition"
|
||||
},
|
||||
{
|
||||
"name": "addListener",
|
||||
"signature": "(eventName: 'onPositionUpdate', listenerFunc: (data: PositioningData) => void) => PluginListenerHandle",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "eventName",
|
||||
"docs": "",
|
||||
"type": "'onPositionUpdate'"
|
||||
},
|
||||
{
|
||||
"name": "listenerFunc",
|
||||
"docs": "",
|
||||
"type": "(data: PositioningData) => void"
|
||||
}
|
||||
],
|
||||
"returns": "PluginListenerHandle",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [
|
||||
"PluginListenerHandle",
|
||||
"PositioningData"
|
||||
],
|
||||
"slug": "addlisteneronpositionupdate-"
|
||||
}
|
||||
],
|
||||
"properties": []
|
||||
},
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "PositioningData",
|
||||
"slug": "positioningdata",
|
||||
"docs": "",
|
||||
"tags": [],
|
||||
"methods": [],
|
||||
"properties": [
|
||||
{
|
||||
"name": "source",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "'GNSS' | 'WIFI' | 'FUSED' | 'MOCK'"
|
||||
},
|
||||
{
|
||||
"name": "timestamp",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "latitude",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "longitude",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "accuracy",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "gnssData",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [
|
||||
"SatelliteStatus"
|
||||
],
|
||||
"type": "SatelliteStatus"
|
||||
},
|
||||
{
|
||||
"name": "wifiData",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [
|
||||
"WifiAp"
|
||||
],
|
||||
"type": "WifiAp[] | undefined"
|
||||
},
|
||||
{
|
||||
"name": "imuData",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [
|
||||
"ImuData"
|
||||
],
|
||||
"type": "ImuData"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "SatelliteStatus",
|
||||
"slug": "satellitestatus",
|
||||
"docs": "",
|
||||
"tags": [],
|
||||
"methods": [],
|
||||
"properties": [
|
||||
{
|
||||
"name": "satellitesInView",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "usedInFix",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "constellationCounts",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "{ [key: string]: number; }"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "WifiAp",
|
||||
"slug": "wifiap",
|
||||
"docs": "",
|
||||
"tags": [],
|
||||
"methods": [],
|
||||
"properties": [
|
||||
{
|
||||
"name": "ssid",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bssid",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "rssi",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "distance",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number | undefined"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ImuData",
|
||||
"slug": "imudata",
|
||||
"docs": "",
|
||||
"tags": [],
|
||||
"methods": [],
|
||||
"properties": [
|
||||
{
|
||||
"name": "accelX",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "accelY",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "accelZ",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "gyroX",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "gyroY",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "gyroZ",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "speed",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number | undefined"
|
||||
},
|
||||
{
|
||||
"name": "acceleration",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number | undefined"
|
||||
},
|
||||
{
|
||||
"name": "directionRad",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "number | undefined"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "PluginListenerHandle",
|
||||
"slug": "pluginlistenerhandle",
|
||||
"docs": "",
|
||||
"tags": [],
|
||||
"methods": [],
|
||||
"properties": [
|
||||
{
|
||||
"name": "remove",
|
||||
"tags": [],
|
||||
"docs": "",
|
||||
"complexTypes": [],
|
||||
"type": "() => Promise<void>"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"enums": [],
|
||||
"typeAliases": [],
|
||||
"pluginConfigs": []
|
||||
}
|
||||
55
dist/esm/definitions.d.ts
vendored
Normal file
55
dist/esm/definitions.d.ts
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
import type { PluginListenerHandle } from '@capacitor/core';
|
||||
export interface SatelliteStatus {
|
||||
satellitesInView: number;
|
||||
usedInFix: number;
|
||||
constellationCounts: {
|
||||
[key: string]: number;
|
||||
};
|
||||
}
|
||||
export interface WifiAp {
|
||||
ssid: string;
|
||||
bssid: string;
|
||||
rssi: number;
|
||||
distance?: number;
|
||||
}
|
||||
export interface WifiScanResult {
|
||||
apCount: number;
|
||||
aps: WifiAp[];
|
||||
}
|
||||
export interface ImuData {
|
||||
accelX: number;
|
||||
accelY: number;
|
||||
accelZ: number;
|
||||
gyroX: number;
|
||||
gyroY: number;
|
||||
gyroZ: number;
|
||||
speed?: number;
|
||||
acceleration?: number;
|
||||
directionRad?: number;
|
||||
}
|
||||
export interface GpsData {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
accuracy: number;
|
||||
satellitesInView?: number;
|
||||
usedInFix?: number;
|
||||
constellationCounts?: {
|
||||
[key: string]: number;
|
||||
};
|
||||
}
|
||||
export interface PositioningData {
|
||||
source: 'GNSS' | 'WIFI' | 'FUSED' | 'MOCK';
|
||||
timestamp: number;
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
accuracy: number;
|
||||
gnssData?: SatelliteStatus;
|
||||
wifiData?: WifiAp[];
|
||||
imuData?: ImuData;
|
||||
}
|
||||
export interface DumonGeolocationPlugin {
|
||||
startPositioning(): Promise<void>;
|
||||
stopPositioning(): Promise<void>;
|
||||
getLatestPosition(): Promise<PositioningData>;
|
||||
addListener(eventName: 'onPositionUpdate', listenerFunc: (data: PositioningData) => void): PluginListenerHandle;
|
||||
}
|
||||
2
dist/esm/definitions.js
vendored
Normal file
2
dist/esm/definitions.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=definitions.js.map
|
||||
1
dist/esm/definitions.js.map
vendored
Normal file
1
dist/esm/definitions.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport interface SatelliteStatus {\n satellitesInView: number;\n usedInFix: number;\n constellationCounts: { [key: string]: number };\n}\n\nexport interface WifiAp {\n ssid: string;\n bssid: string;\n rssi: number;\n distance?: number;\n}\n\nexport interface WifiScanResult {\n apCount: number;\n aps: WifiAp[];\n}\n\nexport interface ImuData {\n accelX: number;\n accelY: number;\n accelZ: number;\n gyroX: number;\n gyroY: number;\n gyroZ: number;\n speed?: number;\n acceleration?: number;\n directionRad?: number;\n}\n\nexport interface GpsData {\n latitude: number;\n longitude: number;\n accuracy: number;\n satellitesInView?: number;\n usedInFix?: number;\n constellationCounts?: { [key: string]: number };\n}\n\nexport interface PositioningData {\n source: 'GNSS' | 'WIFI' | 'FUSED' | 'MOCK';\n timestamp: number;\n latitude: number;\n longitude: number;\n accuracy: number;\n\n gnssData?: SatelliteStatus;\n wifiData?: WifiAp[];\n imuData?: ImuData;\n}\n\nexport interface DumonGeolocationPlugin {\n startPositioning(): Promise<void>;\n stopPositioning(): Promise<void>;\n getLatestPosition(): Promise<PositioningData>;\n\n addListener(\n eventName: 'onPositionUpdate',\n listenerFunc: (data: PositioningData) => void\n ): PluginListenerHandle;\n}"]}
|
||||
4
dist/esm/index.d.ts
vendored
Normal file
4
dist/esm/index.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import type { DumonGeolocationPlugin } from './definitions';
|
||||
declare const DumonGeolocation: DumonGeolocationPlugin;
|
||||
export * from './definitions';
|
||||
export { DumonGeolocation };
|
||||
7
dist/esm/index.js
vendored
Normal file
7
dist/esm/index.js
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { registerPlugin } from '@capacitor/core';
|
||||
const DumonGeolocation = registerPlugin('DumonGeolocation', {
|
||||
web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),
|
||||
});
|
||||
export * from './definitions';
|
||||
export { DumonGeolocation };
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist/esm/index.js.map
vendored
Normal file
1
dist/esm/index.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,gBAAgB,GAAG,cAAc,CAAyB,kBAAkB,EAAE;IAClF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;CACpE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { DumonGeolocationPlugin } from './definitions';\n\nconst DumonGeolocation = registerPlugin<DumonGeolocationPlugin>('DumonGeolocation', {\n web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),\n});\n\nexport * from './definitions';\nexport { DumonGeolocation };"]}
|
||||
7
dist/esm/web.d.ts
vendored
Normal file
7
dist/esm/web.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
import { WebPlugin } from '@capacitor/core';
|
||||
import type { PositioningData } from './definitions';
|
||||
export declare class DumonGeolocationWeb extends WebPlugin {
|
||||
startPositioning(): Promise<void>;
|
||||
stopPositioning(): Promise<void>;
|
||||
getLatestPosition(): Promise<PositioningData>;
|
||||
}
|
||||
37
dist/esm/web.js
vendored
Normal file
37
dist/esm/web.js
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
import { WebPlugin } from '@capacitor/core';
|
||||
export class DumonGeolocationWeb extends WebPlugin {
|
||||
async startPositioning() {
|
||||
console.log('DumonGeolocationWeb: startPositioning() called (no-op)');
|
||||
}
|
||||
async stopPositioning() {
|
||||
console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');
|
||||
}
|
||||
async getLatestPosition() {
|
||||
console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');
|
||||
return {
|
||||
source: 'GNSS',
|
||||
timestamp: Date.now(),
|
||||
latitude: 0,
|
||||
longitude: 0,
|
||||
accuracy: 999,
|
||||
gnssData: {
|
||||
satellitesInView: 0,
|
||||
usedInFix: 0,
|
||||
constellationCounts: {}
|
||||
},
|
||||
wifiData: [],
|
||||
imuData: {
|
||||
accelX: 0,
|
||||
accelY: 0,
|
||||
accelZ: 0,
|
||||
gyroX: 0,
|
||||
gyroY: 0,
|
||||
gyroZ: 0,
|
||||
speed: 0,
|
||||
acceleration: 0,
|
||||
directionRad: 0
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=web.js.map
|
||||
1
dist/esm/web.js.map
vendored
Normal file
1
dist/esm/web.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAChD,KAAK,CAAC,gBAAgB;QACpB,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC,CAAC;QACtF,OAAO;YACL,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,QAAQ,EAAE,CAAC;YACX,SAAS,EAAE,CAAC;YACZ,QAAQ,EAAE,GAAG;YACb,QAAQ,EAAE;gBACR,gBAAgB,EAAE,CAAC;gBACnB,SAAS,EAAE,CAAC;gBACZ,mBAAmB,EAAE,EAAE;aACxB;YACD,QAAQ,EAAE,EAAE;YACZ,OAAO,EAAE;gBACP,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;gBACT,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,CAAC;gBACR,YAAY,EAAE,CAAC;gBACf,YAAY,EAAE,CAAC;aAChB;SACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport type { PositioningData } from './definitions';\n\nexport class DumonGeolocationWeb extends WebPlugin {\n async startPositioning(): Promise<void> {\n console.log('DumonGeolocationWeb: startPositioning() called (no-op)');\n }\n\n async stopPositioning(): Promise<void> {\n console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');\n }\n\n async getLatestPosition(): Promise<PositioningData> {\n console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');\n return {\n source: 'GNSS',\n timestamp: Date.now(),\n latitude: 0,\n longitude: 0,\n accuracy: 999,\n gnssData: {\n satellitesInView: 0,\n usedInFix: 0,\n constellationCounts: {}\n },\n wifiData: [],\n imuData: {\n accelX: 0,\n accelY: 0,\n accelZ: 0,\n gyroX: 0,\n gyroY: 0,\n gyroZ: 0,\n speed: 0,\n acceleration: 0,\n directionRad: 0\n }\n };\n }\n}"]}
|
||||
51
dist/plugin.cjs.js
vendored
Normal file
51
dist/plugin.cjs.js
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
'use strict';
|
||||
|
||||
var core = require('@capacitor/core');
|
||||
|
||||
const DumonGeolocation = core.registerPlugin('DumonGeolocation', {
|
||||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.DumonGeolocationWeb()),
|
||||
});
|
||||
|
||||
class DumonGeolocationWeb extends core.WebPlugin {
|
||||
async startPositioning() {
|
||||
console.log('DumonGeolocationWeb: startPositioning() called (no-op)');
|
||||
}
|
||||
async stopPositioning() {
|
||||
console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');
|
||||
}
|
||||
async getLatestPosition() {
|
||||
console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');
|
||||
return {
|
||||
source: 'GNSS',
|
||||
timestamp: Date.now(),
|
||||
latitude: 0,
|
||||
longitude: 0,
|
||||
accuracy: 999,
|
||||
gnssData: {
|
||||
satellitesInView: 0,
|
||||
usedInFix: 0,
|
||||
constellationCounts: {}
|
||||
},
|
||||
wifiData: [],
|
||||
imuData: {
|
||||
accelX: 0,
|
||||
accelY: 0,
|
||||
accelZ: 0,
|
||||
gyroX: 0,
|
||||
gyroY: 0,
|
||||
gyroZ: 0,
|
||||
speed: 0,
|
||||
acceleration: 0,
|
||||
directionRad: 0
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
var web = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
DumonGeolocationWeb: DumonGeolocationWeb
|
||||
});
|
||||
|
||||
exports.DumonGeolocation = DumonGeolocation;
|
||||
//# sourceMappingURL=plugin.cjs.js.map
|
||||
1
dist/plugin.cjs.js.map
vendored
Normal file
1
dist/plugin.cjs.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst DumonGeolocation = registerPlugin('DumonGeolocation', {\n web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),\n});\nexport * from './definitions';\nexport { DumonGeolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class DumonGeolocationWeb extends WebPlugin {\n async startPositioning() {\n console.log('DumonGeolocationWeb: startPositioning() called (no-op)');\n }\n async stopPositioning() {\n console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');\n }\n async getLatestPosition() {\n console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');\n return {\n source: 'GNSS',\n timestamp: Date.now(),\n latitude: 0,\n longitude: 0,\n accuracy: 999,\n gnssData: {\n satellitesInView: 0,\n usedInFix: 0,\n constellationCounts: {}\n },\n wifiData: [],\n imuData: {\n accelX: 0,\n accelY: 0,\n accelZ: 0,\n gyroX: 0,\n gyroY: 0,\n gyroZ: 0,\n speed: 0,\n acceleration: 0,\n directionRad: 0\n }\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,gBAAgB,GAAGA,mBAAc,CAAC,kBAAkB,EAAE;AAC5D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;AACvE,CAAC;;ACFM,MAAM,mBAAmB,SAASC,cAAS,CAAC;AACnD,IAAI,MAAM,gBAAgB,GAAG;AAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC;AAC7E;AACA,IAAI,MAAM,eAAe,GAAG;AAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC;AAC5E;AACA,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC;AAC7F,QAAQ,OAAO;AACf,YAAY,MAAM,EAAE,MAAM;AAC1B,YAAY,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;AACjC,YAAY,QAAQ,EAAE,CAAC;AACvB,YAAY,SAAS,EAAE,CAAC;AACxB,YAAY,QAAQ,EAAE,GAAG;AACzB,YAAY,QAAQ,EAAE;AACtB,gBAAgB,gBAAgB,EAAE,CAAC;AACnC,gBAAgB,SAAS,EAAE,CAAC;AAC5B,gBAAgB,mBAAmB,EAAE;AACrC,aAAa;AACb,YAAY,QAAQ,EAAE,EAAE;AACxB,YAAY,OAAO,EAAE;AACrB,gBAAgB,MAAM,EAAE,CAAC;AACzB,gBAAgB,MAAM,EAAE,CAAC;AACzB,gBAAgB,MAAM,EAAE,CAAC;AACzB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,KAAK,EAAE,CAAC;AACxB,gBAAgB,YAAY,EAAE,CAAC;AAC/B,gBAAgB,YAAY,EAAE;AAC9B;AACA,SAAS;AACT;AACA;;;;;;;;;"}
|
||||
54
dist/plugin.js
vendored
Normal file
54
dist/plugin.js
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
var capacitorDumonGeolocation = (function (exports, core) {
|
||||
'use strict';
|
||||
|
||||
const DumonGeolocation = core.registerPlugin('DumonGeolocation', {
|
||||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.DumonGeolocationWeb()),
|
||||
});
|
||||
|
||||
class DumonGeolocationWeb extends core.WebPlugin {
|
||||
async startPositioning() {
|
||||
console.log('DumonGeolocationWeb: startPositioning() called (no-op)');
|
||||
}
|
||||
async stopPositioning() {
|
||||
console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');
|
||||
}
|
||||
async getLatestPosition() {
|
||||
console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');
|
||||
return {
|
||||
source: 'GNSS',
|
||||
timestamp: Date.now(),
|
||||
latitude: 0,
|
||||
longitude: 0,
|
||||
accuracy: 999,
|
||||
gnssData: {
|
||||
satellitesInView: 0,
|
||||
usedInFix: 0,
|
||||
constellationCounts: {}
|
||||
},
|
||||
wifiData: [],
|
||||
imuData: {
|
||||
accelX: 0,
|
||||
accelY: 0,
|
||||
accelZ: 0,
|
||||
gyroX: 0,
|
||||
gyroY: 0,
|
||||
gyroZ: 0,
|
||||
speed: 0,
|
||||
acceleration: 0,
|
||||
directionRad: 0
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
var web = /*#__PURE__*/Object.freeze({
|
||||
__proto__: null,
|
||||
DumonGeolocationWeb: DumonGeolocationWeb
|
||||
});
|
||||
|
||||
exports.DumonGeolocation = DumonGeolocation;
|
||||
|
||||
return exports;
|
||||
|
||||
})({}, capacitorExports);
|
||||
//# sourceMappingURL=plugin.js.map
|
||||
1
dist/plugin.js.map
vendored
Normal file
1
dist/plugin.js.map
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst DumonGeolocation = registerPlugin('DumonGeolocation', {\n web: () => import('./web').then((m) => new m.DumonGeolocationWeb()),\n});\nexport * from './definitions';\nexport { DumonGeolocation };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class DumonGeolocationWeb extends WebPlugin {\n async startPositioning() {\n console.log('DumonGeolocationWeb: startPositioning() called (no-op)');\n }\n async stopPositioning() {\n console.log('DumonGeolocationWeb: stopPositioning() called (no-op)');\n }\n async getLatestPosition() {\n console.log('DumonGeolocationWeb: getLatestPosition() called (returning dummy data)');\n return {\n source: 'GNSS',\n timestamp: Date.now(),\n latitude: 0,\n longitude: 0,\n accuracy: 999,\n gnssData: {\n satellitesInView: 0,\n usedInFix: 0,\n constellationCounts: {}\n },\n wifiData: [],\n imuData: {\n accelX: 0,\n accelY: 0,\n accelZ: 0,\n gyroX: 0,\n gyroY: 0,\n gyroZ: 0,\n speed: 0,\n acceleration: 0,\n directionRad: 0\n }\n };\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,gBAAgB,GAAGA,mBAAc,CAAC,kBAAkB,EAAE;IAC5D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,mBAAmB,EAAE,CAAC;IACvE,CAAC;;ICFM,MAAM,mBAAmB,SAASC,cAAS,CAAC;IACnD,IAAI,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC;IAC7E;IACA,IAAI,MAAM,eAAe,GAAG;IAC5B,QAAQ,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC;IAC5E;IACA,IAAI,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,OAAO,CAAC,GAAG,CAAC,wEAAwE,CAAC;IAC7F,QAAQ,OAAO;IACf,YAAY,MAAM,EAAE,MAAM;IAC1B,YAAY,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;IACjC,YAAY,QAAQ,EAAE,CAAC;IACvB,YAAY,SAAS,EAAE,CAAC;IACxB,YAAY,QAAQ,EAAE,GAAG;IACzB,YAAY,QAAQ,EAAE;IACtB,gBAAgB,gBAAgB,EAAE,CAAC;IACnC,gBAAgB,SAAS,EAAE,CAAC;IAC5B,gBAAgB,mBAAmB,EAAE;IACrC,aAAa;IACb,YAAY,QAAQ,EAAE,EAAE;IACxB,YAAY,OAAO,EAAE;IACrB,gBAAgB,MAAM,EAAE,CAAC;IACzB,gBAAgB,MAAM,EAAE,CAAC;IACzB,gBAAgB,MAAM,EAAE,CAAC;IACzB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,KAAK,EAAE,CAAC;IACxB,gBAAgB,YAAY,EAAE,CAAC;IAC/B,gBAAgB,YAAY,EAAE;IAC9B;IACA,SAAS;IACT;IACA;;;;;;;;;;;;;;;"}
|
||||
Loading…
x
Reference in New Issue
Block a user