capacitor-motioncal 0.0.1

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.
Files changed (36) hide show
  1. package/CapacitorMotionCal.podspec +23 -0
  2. package/README.md +126 -0
  3. package/android/build.gradle +67 -0
  4. package/android/src/main/AndroidManifest.xml +3 -0
  5. package/android/src/main/java/com/denizak/motioncalibration/MotionCalibrationPlugin.java +248 -0
  6. package/android/src/main/jniLibs/arm64-v8a/libmotioncalibration.so +0 -0
  7. package/android/src/main/jniLibs/armeabi-v7a/libmotioncalibration.so +0 -0
  8. package/android/src/main/jniLibs/x86/libmotioncalibration.so +0 -0
  9. package/android/src/main/jniLibs/x86_64/libmotioncalibration.so +0 -0
  10. package/common/imuread.h +156 -0
  11. package/common/magcal.c +602 -0
  12. package/common/mahony.c +330 -0
  13. package/common/matrix.c +446 -0
  14. package/common/motioncalibration.c +7 -0
  15. package/common/motioncalibration.h +12 -0
  16. package/common/quality.c +257 -0
  17. package/common/rawdata.c +349 -0
  18. package/common/serialdata.c +501 -0
  19. package/common/visualize.c +131 -0
  20. package/dist/docs.json +292 -0
  21. package/dist/esm/definitions.d.ts +122 -0
  22. package/dist/esm/definitions.js +2 -0
  23. package/dist/esm/definitions.js.map +1 -0
  24. package/dist/esm/index.d.ts +4 -0
  25. package/dist/esm/index.js +7 -0
  26. package/dist/esm/index.js.map +1 -0
  27. package/dist/esm/web.d.ts +54 -0
  28. package/dist/esm/web.js +58 -0
  29. package/dist/esm/web.js.map +1 -0
  30. package/dist/plugin.cjs.js +72 -0
  31. package/dist/plugin.cjs.js.map +1 -0
  32. package/dist/plugin.js +75 -0
  33. package/dist/plugin.js.map +1 -0
  34. package/ios/Sources/MotionCalibrationPlugin/MotionCalibration-Bridging-Header.h +26 -0
  35. package/ios/Sources/MotionCalibrationPlugin/MotionCalibrationPlugin.swift +200 -0
  36. package/package.json +83 -0
package/dist/docs.json ADDED
@@ -0,0 +1,292 @@
1
+ {
2
+ "api": {
3
+ "name": "MotionCalibrationPlugin",
4
+ "slug": "motioncalibrationplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "updateBValue",
10
+ "signature": "(options: { value: number; }) => Promise<void>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "- Object containing the value to set",
15
+ "type": "{ value: number; }"
16
+ }
17
+ ],
18
+ "returns": "Promise<void>",
19
+ "tags": [
20
+ {
21
+ "name": "param",
22
+ "text": "options - Object containing the value to set"
23
+ }
24
+ ],
25
+ "docs": "Update the B (magnetic field magnitude) value",
26
+ "complexTypes": [],
27
+ "slug": "updatebvalue"
28
+ },
29
+ {
30
+ "name": "getBValue",
31
+ "signature": "() => Promise<{ value: number; }>",
32
+ "parameters": [],
33
+ "returns": "Promise<{ value: number; }>",
34
+ "tags": [
35
+ {
36
+ "name": "returns",
37
+ "text": "Object containing the B value"
38
+ }
39
+ ],
40
+ "docs": "Get the current B value",
41
+ "complexTypes": [],
42
+ "slug": "getbvalue"
43
+ },
44
+ {
45
+ "name": "isSendCalAvailable",
46
+ "signature": "() => Promise<{ available: number; }>",
47
+ "parameters": [],
48
+ "returns": "Promise<{ available: number; }>",
49
+ "tags": [
50
+ {
51
+ "name": "returns",
52
+ "text": "Object containing availability status (0 or 1)"
53
+ }
54
+ ],
55
+ "docs": "Check if send calibration is available",
56
+ "complexTypes": [],
57
+ "slug": "issendcalavailable"
58
+ },
59
+ {
60
+ "name": "readDataFromFile",
61
+ "signature": "(options: { filename: string; }) => Promise<{ result: number; }>",
62
+ "parameters": [
63
+ {
64
+ "name": "options",
65
+ "docs": "- Object containing the filename",
66
+ "type": "{ filename: string; }"
67
+ }
68
+ ],
69
+ "returns": "Promise<{ result: number; }>",
70
+ "tags": [
71
+ {
72
+ "name": "param",
73
+ "text": "options - Object containing the filename"
74
+ },
75
+ {
76
+ "name": "returns",
77
+ "text": "Object containing the result code"
78
+ }
79
+ ],
80
+ "docs": "Read calibration data from a file",
81
+ "complexTypes": [],
82
+ "slug": "readdatafromfile"
83
+ },
84
+ {
85
+ "name": "setResultFilename",
86
+ "signature": "(options: { filename: string; }) => Promise<void>",
87
+ "parameters": [
88
+ {
89
+ "name": "options",
90
+ "docs": "- Object containing the filename",
91
+ "type": "{ filename: string; }"
92
+ }
93
+ ],
94
+ "returns": "Promise<void>",
95
+ "tags": [
96
+ {
97
+ "name": "param",
98
+ "text": "options - Object containing the filename"
99
+ }
100
+ ],
101
+ "docs": "Set the filename for writing calibration results",
102
+ "complexTypes": [],
103
+ "slug": "setresultfilename"
104
+ },
105
+ {
106
+ "name": "sendCalibration",
107
+ "signature": "() => Promise<{ result: number; }>",
108
+ "parameters": [],
109
+ "returns": "Promise<{ result: number; }>",
110
+ "tags": [
111
+ {
112
+ "name": "returns",
113
+ "text": "Object containing the result code"
114
+ }
115
+ ],
116
+ "docs": "Send the calibration data",
117
+ "complexTypes": [],
118
+ "slug": "sendcalibration"
119
+ },
120
+ {
121
+ "name": "getQualitySurfaceGapError",
122
+ "signature": "() => Promise<{ error: number; }>",
123
+ "parameters": [],
124
+ "returns": "Promise<{ error: number; }>",
125
+ "tags": [
126
+ {
127
+ "name": "returns",
128
+ "text": "Object containing the error value"
129
+ }
130
+ ],
131
+ "docs": "Get the quality surface gap error metric",
132
+ "complexTypes": [],
133
+ "slug": "getqualitysurfacegaperror"
134
+ },
135
+ {
136
+ "name": "getQualityMagnitudeVarianceError",
137
+ "signature": "() => Promise<{ error: number; }>",
138
+ "parameters": [],
139
+ "returns": "Promise<{ error: number; }>",
140
+ "tags": [
141
+ {
142
+ "name": "returns",
143
+ "text": "Object containing the error value"
144
+ }
145
+ ],
146
+ "docs": "Get the quality magnitude variance error metric",
147
+ "complexTypes": [],
148
+ "slug": "getqualitymagnitudevarianceerror"
149
+ },
150
+ {
151
+ "name": "getQualityWobbleError",
152
+ "signature": "() => Promise<{ error: number; }>",
153
+ "parameters": [],
154
+ "returns": "Promise<{ error: number; }>",
155
+ "tags": [
156
+ {
157
+ "name": "returns",
158
+ "text": "Object containing the error value"
159
+ }
160
+ ],
161
+ "docs": "Get the quality wobble error metric",
162
+ "complexTypes": [],
163
+ "slug": "getqualitywobbleerror"
164
+ },
165
+ {
166
+ "name": "getQualitySphericalFitError",
167
+ "signature": "() => Promise<{ error: number; }>",
168
+ "parameters": [],
169
+ "returns": "Promise<{ error: number; }>",
170
+ "tags": [
171
+ {
172
+ "name": "returns",
173
+ "text": "Object containing the error value"
174
+ }
175
+ ],
176
+ "docs": "Get the quality spherical fit error metric",
177
+ "complexTypes": [],
178
+ "slug": "getqualitysphericalfiterror"
179
+ },
180
+ {
181
+ "name": "displayCallback",
182
+ "signature": "() => Promise<void>",
183
+ "parameters": [],
184
+ "returns": "Promise<void>",
185
+ "tags": [],
186
+ "docs": "Trigger the display callback",
187
+ "complexTypes": [],
188
+ "slug": "displaycallback"
189
+ },
190
+ {
191
+ "name": "getCalibrationData",
192
+ "signature": "() => Promise<{ data: string; }>",
193
+ "parameters": [],
194
+ "returns": "Promise<{ data: string; }>",
195
+ "tags": [
196
+ {
197
+ "name": "returns",
198
+ "text": "Object containing the base64 encoded calibration data"
199
+ }
200
+ ],
201
+ "docs": "Get the calibration data as a base64 encoded string",
202
+ "complexTypes": [],
203
+ "slug": "getcalibrationdata"
204
+ },
205
+ {
206
+ "name": "getDrawPoints",
207
+ "signature": "() => Promise<{ points: number[][]; }>",
208
+ "parameters": [],
209
+ "returns": "Promise<{ points: number[][]; }>",
210
+ "tags": [
211
+ {
212
+ "name": "returns",
213
+ "text": "Object containing the 2D array of points"
214
+ }
215
+ ],
216
+ "docs": "Get the draw points for visualization",
217
+ "complexTypes": [],
218
+ "slug": "getdrawpoints"
219
+ },
220
+ {
221
+ "name": "resetRawData",
222
+ "signature": "() => Promise<void>",
223
+ "parameters": [],
224
+ "returns": "Promise<void>",
225
+ "tags": [],
226
+ "docs": "Reset the raw calibration data",
227
+ "complexTypes": [],
228
+ "slug": "resetrawdata"
229
+ },
230
+ {
231
+ "name": "getHardIronOffset",
232
+ "signature": "() => Promise<{ offset: number[]; }>",
233
+ "parameters": [],
234
+ "returns": "Promise<{ offset: number[]; }>",
235
+ "tags": [
236
+ {
237
+ "name": "returns",
238
+ "text": "Object containing the offset array"
239
+ }
240
+ ],
241
+ "docs": "Get the hard iron offset values [x, y, z]",
242
+ "complexTypes": [],
243
+ "slug": "gethardironoffset"
244
+ },
245
+ {
246
+ "name": "getSoftIronMatrix",
247
+ "signature": "() => Promise<{ matrix: number[][]; }>",
248
+ "parameters": [],
249
+ "returns": "Promise<{ matrix: number[][]; }>",
250
+ "tags": [
251
+ {
252
+ "name": "returns",
253
+ "text": "Object containing the 3x3 matrix"
254
+ }
255
+ ],
256
+ "docs": "Get the soft iron matrix (3x3)",
257
+ "complexTypes": [],
258
+ "slug": "getsoftironmatrix"
259
+ },
260
+ {
261
+ "name": "getGeomagneticFieldMagnitude",
262
+ "signature": "() => Promise<{ magnitude: number; }>",
263
+ "parameters": [],
264
+ "returns": "Promise<{ magnitude: number; }>",
265
+ "tags": [
266
+ {
267
+ "name": "returns",
268
+ "text": "Object containing the magnitude value"
269
+ }
270
+ ],
271
+ "docs": "Get the geomagnetic field magnitude",
272
+ "complexTypes": [],
273
+ "slug": "getgeomagneticfieldmagnitude"
274
+ },
275
+ {
276
+ "name": "clearDrawPoints",
277
+ "signature": "() => Promise<void>",
278
+ "parameters": [],
279
+ "returns": "Promise<void>",
280
+ "tags": [],
281
+ "docs": "Clear the draw points data",
282
+ "complexTypes": [],
283
+ "slug": "cleardrawpoints"
284
+ }
285
+ ],
286
+ "properties": []
287
+ },
288
+ "interfaces": [],
289
+ "enums": [],
290
+ "typeAliases": [],
291
+ "pluginConfigs": []
292
+ }
@@ -0,0 +1,122 @@
1
+ export interface MotionCalibrationPlugin {
2
+ /**
3
+ * Update the B (magnetic field magnitude) value
4
+ * @param options - Object containing the value to set
5
+ */
6
+ updateBValue(options: {
7
+ value: number;
8
+ }): Promise<void>;
9
+ /**
10
+ * Get the current B value
11
+ * @returns Object containing the B value
12
+ */
13
+ getBValue(): Promise<{
14
+ value: number;
15
+ }>;
16
+ /**
17
+ * Check if send calibration is available
18
+ * @returns Object containing availability status (0 or 1)
19
+ */
20
+ isSendCalAvailable(): Promise<{
21
+ available: number;
22
+ }>;
23
+ /**
24
+ * Read calibration data from a file
25
+ * @param options - Object containing the filename
26
+ * @returns Object containing the result code
27
+ */
28
+ readDataFromFile(options: {
29
+ filename: string;
30
+ }): Promise<{
31
+ result: number;
32
+ }>;
33
+ /**
34
+ * Set the filename for writing calibration results
35
+ * @param options - Object containing the filename
36
+ */
37
+ setResultFilename(options: {
38
+ filename: string;
39
+ }): Promise<void>;
40
+ /**
41
+ * Send the calibration data
42
+ * @returns Object containing the result code
43
+ */
44
+ sendCalibration(): Promise<{
45
+ result: number;
46
+ }>;
47
+ /**
48
+ * Get the quality surface gap error metric
49
+ * @returns Object containing the error value
50
+ */
51
+ getQualitySurfaceGapError(): Promise<{
52
+ error: number;
53
+ }>;
54
+ /**
55
+ * Get the quality magnitude variance error metric
56
+ * @returns Object containing the error value
57
+ */
58
+ getQualityMagnitudeVarianceError(): Promise<{
59
+ error: number;
60
+ }>;
61
+ /**
62
+ * Get the quality wobble error metric
63
+ * @returns Object containing the error value
64
+ */
65
+ getQualityWobbleError(): Promise<{
66
+ error: number;
67
+ }>;
68
+ /**
69
+ * Get the quality spherical fit error metric
70
+ * @returns Object containing the error value
71
+ */
72
+ getQualitySphericalFitError(): Promise<{
73
+ error: number;
74
+ }>;
75
+ /**
76
+ * Trigger the display callback
77
+ */
78
+ displayCallback(): Promise<void>;
79
+ /**
80
+ * Get the calibration data as a base64 encoded string
81
+ * @returns Object containing the base64 encoded calibration data
82
+ */
83
+ getCalibrationData(): Promise<{
84
+ data: string;
85
+ }>;
86
+ /**
87
+ * Get the draw points for visualization
88
+ * @returns Object containing the 2D array of points
89
+ */
90
+ getDrawPoints(): Promise<{
91
+ points: number[][];
92
+ }>;
93
+ /**
94
+ * Reset the raw calibration data
95
+ */
96
+ resetRawData(): Promise<void>;
97
+ /**
98
+ * Get the hard iron offset values [x, y, z]
99
+ * @returns Object containing the offset array
100
+ */
101
+ getHardIronOffset(): Promise<{
102
+ offset: number[];
103
+ }>;
104
+ /**
105
+ * Get the soft iron matrix (3x3)
106
+ * @returns Object containing the 3x3 matrix
107
+ */
108
+ getSoftIronMatrix(): Promise<{
109
+ matrix: number[][];
110
+ }>;
111
+ /**
112
+ * Get the geomagnetic field magnitude
113
+ * @returns Object containing the magnitude value
114
+ */
115
+ getGeomagneticFieldMagnitude(): Promise<{
116
+ magnitude: number;
117
+ }>;
118
+ /**
119
+ * Clear the draw points data
120
+ */
121
+ clearDrawPoints(): Promise<void>;
122
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { MotionCalibrationPlugin } from './definitions';
2
+ declare const MotionCalibration: MotionCalibrationPlugin;
3
+ export * from './definitions';
4
+ export { MotionCalibration };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const MotionCalibration = registerPlugin('MotionCalibration', {
3
+ web: () => import('./web').then((m) => new m.MotionCalibrationWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { MotionCalibration };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { MotionCalibrationPlugin } from './definitions';
3
+ export declare class MotionCalibrationWeb extends WebPlugin implements MotionCalibrationPlugin {
4
+ updateBValue(_options: {
5
+ value: number;
6
+ }): Promise<void>;
7
+ getBValue(): Promise<{
8
+ value: number;
9
+ }>;
10
+ isSendCalAvailable(): Promise<{
11
+ available: number;
12
+ }>;
13
+ readDataFromFile(_options: {
14
+ filename: string;
15
+ }): Promise<{
16
+ result: number;
17
+ }>;
18
+ setResultFilename(_options: {
19
+ filename: string;
20
+ }): Promise<void>;
21
+ sendCalibration(): Promise<{
22
+ result: number;
23
+ }>;
24
+ getQualitySurfaceGapError(): Promise<{
25
+ error: number;
26
+ }>;
27
+ getQualityMagnitudeVarianceError(): Promise<{
28
+ error: number;
29
+ }>;
30
+ getQualityWobbleError(): Promise<{
31
+ error: number;
32
+ }>;
33
+ getQualitySphericalFitError(): Promise<{
34
+ error: number;
35
+ }>;
36
+ displayCallback(): Promise<void>;
37
+ getCalibrationData(): Promise<{
38
+ data: string;
39
+ }>;
40
+ getDrawPoints(): Promise<{
41
+ points: number[][];
42
+ }>;
43
+ resetRawData(): Promise<void>;
44
+ getHardIronOffset(): Promise<{
45
+ offset: number[];
46
+ }>;
47
+ getSoftIronMatrix(): Promise<{
48
+ matrix: number[][];
49
+ }>;
50
+ getGeomagneticFieldMagnitude(): Promise<{
51
+ magnitude: number;
52
+ }>;
53
+ clearDrawPoints(): Promise<void>;
54
+ }
@@ -0,0 +1,58 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class MotionCalibrationWeb extends WebPlugin {
3
+ async updateBValue(_options) {
4
+ throw this.unimplemented('Not implemented on web.');
5
+ }
6
+ async getBValue() {
7
+ throw this.unimplemented('Not implemented on web.');
8
+ }
9
+ async isSendCalAvailable() {
10
+ throw this.unimplemented('Not implemented on web.');
11
+ }
12
+ async readDataFromFile(_options) {
13
+ throw this.unimplemented('Not implemented on web.');
14
+ }
15
+ async setResultFilename(_options) {
16
+ throw this.unimplemented('Not implemented on web.');
17
+ }
18
+ async sendCalibration() {
19
+ throw this.unimplemented('Not implemented on web.');
20
+ }
21
+ async getQualitySurfaceGapError() {
22
+ throw this.unimplemented('Not implemented on web.');
23
+ }
24
+ async getQualityMagnitudeVarianceError() {
25
+ throw this.unimplemented('Not implemented on web.');
26
+ }
27
+ async getQualityWobbleError() {
28
+ throw this.unimplemented('Not implemented on web.');
29
+ }
30
+ async getQualitySphericalFitError() {
31
+ throw this.unimplemented('Not implemented on web.');
32
+ }
33
+ async displayCallback() {
34
+ throw this.unimplemented('Not implemented on web.');
35
+ }
36
+ async getCalibrationData() {
37
+ throw this.unimplemented('Not implemented on web.');
38
+ }
39
+ async getDrawPoints() {
40
+ throw this.unimplemented('Not implemented on web.');
41
+ }
42
+ async resetRawData() {
43
+ throw this.unimplemented('Not implemented on web.');
44
+ }
45
+ async getHardIronOffset() {
46
+ throw this.unimplemented('Not implemented on web.');
47
+ }
48
+ async getSoftIronMatrix() {
49
+ throw this.unimplemented('Not implemented on web.');
50
+ }
51
+ async getGeomagneticFieldMagnitude() {
52
+ throw this.unimplemented('Not implemented on web.');
53
+ }
54
+ async clearDrawPoints() {
55
+ throw this.unimplemented('Not implemented on web.');
56
+ }
57
+ }
58
+ //# sourceMappingURL=web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD,KAAK,CAAC,YAAY,CAAC,QAA2B;QAC5C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK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AAK,CAAC,iBAAiB;QACrB,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,iBAAiB;QACrB,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,4BAA4B;QAChC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,eAAe;QACnB,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF"}
@@ -0,0 +1,72 @@
1
+ 'use strict';
2
+
3
+ var core = require('@capacitor/core');
4
+
5
+ const MotionCalibration = core.registerPlugin('MotionCalibration', {
6
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.MotionCalibrationWeb()),
7
+ });
8
+
9
+ class MotionCalibrationWeb extends core.WebPlugin {
10
+ async updateBValue(_options) {
11
+ throw this.unimplemented('Not implemented on web.');
12
+ }
13
+ async getBValue() {
14
+ throw this.unimplemented('Not implemented on web.');
15
+ }
16
+ async isSendCalAvailable() {
17
+ throw this.unimplemented('Not implemented on web.');
18
+ }
19
+ async readDataFromFile(_options) {
20
+ throw this.unimplemented('Not implemented on web.');
21
+ }
22
+ async setResultFilename(_options) {
23
+ throw this.unimplemented('Not implemented on web.');
24
+ }
25
+ async sendCalibration() {
26
+ throw this.unimplemented('Not implemented on web.');
27
+ }
28
+ async getQualitySurfaceGapError() {
29
+ throw this.unimplemented('Not implemented on web.');
30
+ }
31
+ async getQualityMagnitudeVarianceError() {
32
+ throw this.unimplemented('Not implemented on web.');
33
+ }
34
+ async getQualityWobbleError() {
35
+ throw this.unimplemented('Not implemented on web.');
36
+ }
37
+ async getQualitySphericalFitError() {
38
+ throw this.unimplemented('Not implemented on web.');
39
+ }
40
+ async displayCallback() {
41
+ throw this.unimplemented('Not implemented on web.');
42
+ }
43
+ async getCalibrationData() {
44
+ throw this.unimplemented('Not implemented on web.');
45
+ }
46
+ async getDrawPoints() {
47
+ throw this.unimplemented('Not implemented on web.');
48
+ }
49
+ async resetRawData() {
50
+ throw this.unimplemented('Not implemented on web.');
51
+ }
52
+ async getHardIronOffset() {
53
+ throw this.unimplemented('Not implemented on web.');
54
+ }
55
+ async getSoftIronMatrix() {
56
+ throw this.unimplemented('Not implemented on web.');
57
+ }
58
+ async getGeomagneticFieldMagnitude() {
59
+ throw this.unimplemented('Not implemented on web.');
60
+ }
61
+ async clearDrawPoints() {
62
+ throw this.unimplemented('Not implemented on web.');
63
+ }
64
+ }
65
+
66
+ var web = /*#__PURE__*/Object.freeze({
67
+ __proto__: null,
68
+ MotionCalibrationWeb: MotionCalibrationWeb
69
+ });
70
+
71
+ exports.MotionCalibration = MotionCalibration;
72
+ //# sourceMappingURL=plugin.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst MotionCalibration = registerPlugin('MotionCalibration', {\n web: () => import('./web').then((m) => new m.MotionCalibrationWeb()),\n});\nexport * from './definitions';\nexport { MotionCalibration };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class MotionCalibrationWeb extends WebPlugin {\n async updateBValue(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async getBValue() {\n throw this.unimplemented('Not implemented on web.');\n }\n async isSendCalAvailable() {\n throw this.unimplemented('Not implemented on web.');\n }\n async readDataFromFile(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async setResultFilename(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n async sendCalibration() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getQualitySurfaceGapError() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getQualityMagnitudeVarianceError() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getQualityWobbleError() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getQualitySphericalFitError() {\n throw this.unimplemented('Not implemented on web.');\n }\n async displayCallback() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getCalibrationData() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getDrawPoints() {\n throw this.unimplemented('Not implemented on web.');\n }\n async resetRawData() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getHardIronOffset() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getSoftIronMatrix() {\n throw this.unimplemented('Not implemented on web.');\n }\n async getGeomagneticFieldMagnitude() {\n throw this.unimplemented('Not implemented on web.');\n }\n async clearDrawPoints() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,iBAAiB,GAAGA,mBAAc,CAAC,mBAAmB,EAAE;AAC9D,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACxE,CAAC;;ACFM,MAAM,oBAAoB,SAASC,cAAS,CAAC;AACpD,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;AACjC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,kBAAkB,GAAG;AAC/B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,gBAAgB,CAAC,QAAQ,EAAE;AACrC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ,IAAI,MAAM,iBAAiB,CAAC,QAAQ,EAAE;AACtC,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC;AAC3D,IAAI;AACJ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