@zappar/zappar-cv 3.0.1-alpha.16 → 3.0.1-alpha.17
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/README.md +2 -2
- package/lib/additional.d.ts +1 -0
- package/lib/deserializer.d.ts +4 -1
- package/lib/deserializer.js +3 -0
- package/lib/gen/zappar-bridge.d.ts +33 -9
- package/lib/gen/zappar-bridge.js +3 -0
- package/lib/gen/zappar-client.d.ts +1 -0
- package/lib/gen/zappar-client.js +236 -47
- package/lib/gen/zappar-cwrap.js +157 -32
- package/lib/gen/zappar-native.d.ts +44 -10
- package/lib/gen/zappar-native.js +23 -1
- package/lib/gen/zappar-server.d.ts +3 -0
- package/lib/gen/zappar-server.js +127 -27
- package/lib/gen/zappar.d.ts +40 -11
- package/lib/gen/zappar.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/native.js +48 -4
- package/lib/permission.js +35 -9
- package/lib/serializer.d.ts +4 -1
- package/lib/serializer.js +3 -0
- package/lib/tr.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/zappar-cv.js +1 -1
- package/lib/zappar-cv.wasm +0 -0
- package/package.json +1 -1
- package/umd/751.zappar-cv.js +1 -1
- package/umd/867.zappar-cv.js +1 -1
- package/umd/{6cf17bab4f58a189fc94.wasm → e601e2d6a412c37c4379.wasm} +0 -0
- package/umd/zappar-cv.js +1 -1
- package/umd/zappar-cv.worker.js +1 -1
package/lib/gen/zappar-cwrap.js
CHANGED
|
@@ -237,39 +237,64 @@ export function getRuntimeObject(mod) {
|
|
|
237
237
|
let world_tracker_quality_wrapped = mod.cwrap("zappar_world_tracker_quality", "number", [
|
|
238
238
|
"number"
|
|
239
239
|
]);
|
|
240
|
-
let
|
|
240
|
+
let world_tracker_horizontal_plane_detection_enabled_wrapped = mod.cwrap("zappar_world_tracker_horizontal_plane_detection_enabled", "number", [
|
|
241
241
|
"number"
|
|
242
242
|
]);
|
|
243
|
-
let
|
|
243
|
+
let world_tracker_horizontal_plane_detection_enabled_set_wrapped = mod.cwrap("zappar_world_tracker_horizontal_plane_detection_enabled_set", null, [
|
|
244
244
|
"number",
|
|
245
245
|
"number"
|
|
246
246
|
]);
|
|
247
|
-
let
|
|
247
|
+
let world_tracker_vertical_plane_detection_enabled_wrapped = mod.cwrap("zappar_world_tracker_vertical_plane_detection_enabled", "number", [
|
|
248
248
|
"number"
|
|
249
249
|
]);
|
|
250
|
-
let
|
|
250
|
+
let world_tracker_vertical_plane_detection_enabled_set_wrapped = mod.cwrap("zappar_world_tracker_vertical_plane_detection_enabled_set", null, [
|
|
251
251
|
"number",
|
|
252
252
|
"number"
|
|
253
253
|
]);
|
|
254
|
-
let
|
|
254
|
+
let world_tracker_plane_anchor_count_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_count", "number", [
|
|
255
|
+
"number"
|
|
256
|
+
]);
|
|
257
|
+
let world_tracker_plane_anchor_id_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_id", "string", [
|
|
258
|
+
"number",
|
|
259
|
+
"number"
|
|
260
|
+
]);
|
|
261
|
+
let world_tracker_plane_anchor_pose_raw_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_pose_raw", "number", [
|
|
255
262
|
"number",
|
|
256
263
|
"number"
|
|
257
264
|
]);
|
|
258
|
-
let
|
|
265
|
+
let world_tracker_plane_anchor_status_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_status", "number", [
|
|
259
266
|
"number",
|
|
260
267
|
"number"
|
|
261
268
|
]);
|
|
262
|
-
let
|
|
269
|
+
let world_tracker_plane_anchor_polygon_data_size_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_polygon_data_size", "number", [
|
|
263
270
|
"number",
|
|
264
271
|
"number"
|
|
265
272
|
]);
|
|
266
|
-
let
|
|
273
|
+
let world_tracker_plane_anchor_polygon_data_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_polygon_data", "number", [
|
|
274
|
+
"number",
|
|
275
|
+
"number"
|
|
276
|
+
]);
|
|
277
|
+
let world_tracker_plane_anchor_polygon_version_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_polygon_version", "number", [
|
|
278
|
+
"number",
|
|
279
|
+
"number"
|
|
280
|
+
]);
|
|
281
|
+
let world_tracker_plane_anchor_orientation_wrapped = mod.cwrap("zappar_world_tracker_plane_anchor_orientation", "number", [
|
|
282
|
+
"number",
|
|
283
|
+
"number"
|
|
284
|
+
]);
|
|
285
|
+
let world_tracker_world_anchor_status_wrapped = mod.cwrap("zappar_world_tracker_world_anchor_status", "number", [
|
|
286
|
+
"number"
|
|
287
|
+
]);
|
|
288
|
+
let world_tracker_world_anchor_id_wrapped = mod.cwrap("zappar_world_tracker_world_anchor_id", "string", [
|
|
267
289
|
"number"
|
|
268
290
|
]);
|
|
269
291
|
let world_tracker_world_anchor_pose_raw_wrapped = mod.cwrap("zappar_world_tracker_world_anchor_pose_raw", "number", [
|
|
270
292
|
"number"
|
|
271
293
|
]);
|
|
272
|
-
let
|
|
294
|
+
let world_tracker_ground_anchor_id_wrapped = mod.cwrap("zappar_world_tracker_ground_anchor_id", "string", [
|
|
295
|
+
"number"
|
|
296
|
+
]);
|
|
297
|
+
let world_tracker_ground_anchor_status_wrapped = mod.cwrap("zappar_world_tracker_ground_anchor_status", "number", [
|
|
273
298
|
"number"
|
|
274
299
|
]);
|
|
275
300
|
let world_tracker_ground_anchor_pose_raw_wrapped = mod.cwrap("zappar_world_tracker_ground_anchor_pose_raw", "number", [
|
|
@@ -310,6 +335,29 @@ export function getRuntimeObject(mod) {
|
|
|
310
335
|
let world_tracker_projections_data_wrapped = mod.cwrap("zappar_world_tracker_projections_data", "number", [
|
|
311
336
|
"number"
|
|
312
337
|
]);
|
|
338
|
+
let custom_anchor_create_wrapped = mod.cwrap("zappar_custom_anchor_create", "number", ["number", "number", "string"]);
|
|
339
|
+
let custom_anchor_destroy_wrapped = mod.cwrap("zappar_custom_anchor_destroy", null, ["number"]);
|
|
340
|
+
let custom_anchor_status_wrapped = mod.cwrap("zappar_custom_anchor_status", "number", [
|
|
341
|
+
"number"
|
|
342
|
+
]);
|
|
343
|
+
let custom_anchor_enabled_set_wrapped = mod.cwrap("zappar_custom_anchor_enabled_set", null, [
|
|
344
|
+
"number",
|
|
345
|
+
"number"
|
|
346
|
+
]);
|
|
347
|
+
let custom_anchor_enabled_wrapped = mod.cwrap("zappar_custom_anchor_enabled", "number", [
|
|
348
|
+
"number"
|
|
349
|
+
]);
|
|
350
|
+
let custom_anchor_pose_raw_wrapped = mod.cwrap("zappar_custom_anchor_pose_raw", "number", [
|
|
351
|
+
"number"
|
|
352
|
+
]);
|
|
353
|
+
let custom_anchor_pose_set_from_camera_offset_raw_wrapped = mod.cwrap("zappar_custom_anchor_pose_set_from_camera_offset_raw", null, [
|
|
354
|
+
"number",
|
|
355
|
+
"number", "number", "number", "number"
|
|
356
|
+
]);
|
|
357
|
+
let custom_anchor_pose_set_from_anchor_offset_wrapped = mod.cwrap("zappar_custom_anchor_pose_set_from_anchor_offset", null, [
|
|
358
|
+
"number",
|
|
359
|
+
"string", "number", "number", "number", "number"
|
|
360
|
+
]);
|
|
313
361
|
let dataArrayArgLength = 32;
|
|
314
362
|
let dataArrayArg = mod._malloc(dataArrayArgLength);
|
|
315
363
|
let floatDataArrayArgLength = 16 * 4;
|
|
@@ -796,51 +844,78 @@ export function getRuntimeObject(mod) {
|
|
|
796
844
|
let ret = world_tracker_quality_wrapped(o);
|
|
797
845
|
return ret;
|
|
798
846
|
},
|
|
799
|
-
|
|
800
|
-
let ret =
|
|
847
|
+
world_tracker_horizontal_plane_detection_enabled: (o) => {
|
|
848
|
+
let ret = world_tracker_horizontal_plane_detection_enabled_wrapped(o);
|
|
849
|
+
ret = ret === 1;
|
|
850
|
+
return ret;
|
|
851
|
+
},
|
|
852
|
+
world_tracker_horizontal_plane_detection_enabled_set: (o, horizontal_plane_detection_enabled) => {
|
|
853
|
+
let arg_horizontal_plane_detection_enabled = horizontal_plane_detection_enabled ? 1 : 0;
|
|
854
|
+
let ret = world_tracker_horizontal_plane_detection_enabled_set_wrapped(o, arg_horizontal_plane_detection_enabled);
|
|
855
|
+
return ret;
|
|
856
|
+
},
|
|
857
|
+
world_tracker_vertical_plane_detection_enabled: (o) => {
|
|
858
|
+
let ret = world_tracker_vertical_plane_detection_enabled_wrapped(o);
|
|
801
859
|
ret = ret === 1;
|
|
802
860
|
return ret;
|
|
803
861
|
},
|
|
804
|
-
|
|
805
|
-
let
|
|
806
|
-
let ret =
|
|
862
|
+
world_tracker_vertical_plane_detection_enabled_set: (o, vertical_plane_detection_enabled) => {
|
|
863
|
+
let arg_vertical_plane_detection_enabled = vertical_plane_detection_enabled ? 1 : 0;
|
|
864
|
+
let ret = world_tracker_vertical_plane_detection_enabled_set_wrapped(o, arg_vertical_plane_detection_enabled);
|
|
807
865
|
return ret;
|
|
808
866
|
},
|
|
809
|
-
|
|
810
|
-
let ret =
|
|
867
|
+
world_tracker_plane_anchor_count: (o) => {
|
|
868
|
+
let ret = world_tracker_plane_anchor_count_wrapped(o);
|
|
811
869
|
return ret;
|
|
812
870
|
},
|
|
813
|
-
|
|
871
|
+
world_tracker_plane_anchor_id: (o, indx) => {
|
|
814
872
|
let arg_indx = indx;
|
|
815
|
-
let ret =
|
|
873
|
+
let ret = world_tracker_plane_anchor_id_wrapped(o, arg_indx);
|
|
874
|
+
return ret;
|
|
875
|
+
},
|
|
876
|
+
world_tracker_plane_anchor_pose_raw: (o, indx) => {
|
|
877
|
+
let arg_indx = indx;
|
|
878
|
+
let ret = world_tracker_plane_anchor_pose_raw_wrapped(o, arg_indx);
|
|
816
879
|
let ab = new Float32Array(16);
|
|
817
880
|
ab.set(mod.HEAPF32.subarray(ret / 4, 16 + ret / 4));
|
|
818
881
|
ret = ab;
|
|
819
882
|
return ret;
|
|
820
883
|
},
|
|
821
|
-
|
|
884
|
+
world_tracker_plane_anchor_status: (o, indx) => {
|
|
822
885
|
let arg_indx = indx;
|
|
823
|
-
let ret =
|
|
824
|
-
ret = ret === 1;
|
|
886
|
+
let ret = world_tracker_plane_anchor_status_wrapped(o, arg_indx);
|
|
825
887
|
return ret;
|
|
826
888
|
},
|
|
827
|
-
|
|
889
|
+
world_tracker_plane_anchor_polygon_data_size: (o, indx) => {
|
|
828
890
|
let arg_indx = indx;
|
|
829
|
-
let ret =
|
|
891
|
+
let ret = world_tracker_plane_anchor_polygon_data_size_wrapped(o, arg_indx);
|
|
830
892
|
return ret;
|
|
831
893
|
},
|
|
832
|
-
|
|
894
|
+
world_tracker_plane_anchor_polygon_data: (o, indx) => {
|
|
833
895
|
let arg_indx = indx;
|
|
834
|
-
let ret =
|
|
835
|
-
let retsize =
|
|
896
|
+
let ret = world_tracker_plane_anchor_polygon_data_wrapped(o, arg_indx);
|
|
897
|
+
let retsize = world_tracker_plane_anchor_polygon_data_size_wrapped(o, indx);
|
|
836
898
|
let ab = new Float32Array(retsize);
|
|
837
899
|
ab.set(mod.HEAPF32.subarray(ret / 4, retsize + ret / 4));
|
|
838
900
|
ret = ab;
|
|
839
901
|
return ret;
|
|
840
902
|
},
|
|
841
|
-
|
|
842
|
-
let
|
|
843
|
-
ret =
|
|
903
|
+
world_tracker_plane_anchor_polygon_version: (o, indx) => {
|
|
904
|
+
let arg_indx = indx;
|
|
905
|
+
let ret = world_tracker_plane_anchor_polygon_version_wrapped(o, arg_indx);
|
|
906
|
+
return ret;
|
|
907
|
+
},
|
|
908
|
+
world_tracker_plane_anchor_orientation: (o, indx) => {
|
|
909
|
+
let arg_indx = indx;
|
|
910
|
+
let ret = world_tracker_plane_anchor_orientation_wrapped(o, arg_indx);
|
|
911
|
+
return ret;
|
|
912
|
+
},
|
|
913
|
+
world_tracker_world_anchor_status: (o) => {
|
|
914
|
+
let ret = world_tracker_world_anchor_status_wrapped(o);
|
|
915
|
+
return ret;
|
|
916
|
+
},
|
|
917
|
+
world_tracker_world_anchor_id: (o) => {
|
|
918
|
+
let ret = world_tracker_world_anchor_id_wrapped(o);
|
|
844
919
|
return ret;
|
|
845
920
|
},
|
|
846
921
|
world_tracker_world_anchor_pose_raw: (o) => {
|
|
@@ -850,9 +925,12 @@ export function getRuntimeObject(mod) {
|
|
|
850
925
|
ret = ab;
|
|
851
926
|
return ret;
|
|
852
927
|
},
|
|
853
|
-
|
|
854
|
-
let ret =
|
|
855
|
-
|
|
928
|
+
world_tracker_ground_anchor_id: (o) => {
|
|
929
|
+
let ret = world_tracker_ground_anchor_id_wrapped(o);
|
|
930
|
+
return ret;
|
|
931
|
+
},
|
|
932
|
+
world_tracker_ground_anchor_status: (o) => {
|
|
933
|
+
let ret = world_tracker_ground_anchor_status_wrapped(o);
|
|
856
934
|
return ret;
|
|
857
935
|
},
|
|
858
936
|
world_tracker_ground_anchor_pose_raw: (o) => {
|
|
@@ -922,5 +1000,52 @@ export function getRuntimeObject(mod) {
|
|
|
922
1000
|
ret = ab;
|
|
923
1001
|
return ret;
|
|
924
1002
|
},
|
|
1003
|
+
custom_anchor_create: (pipeline, worldtracker, id) => {
|
|
1004
|
+
let arg_pipeline = pipeline;
|
|
1005
|
+
let arg_worldtracker = worldtracker;
|
|
1006
|
+
let arg_id = id;
|
|
1007
|
+
return custom_anchor_create_wrapped(arg_pipeline, arg_worldtracker, arg_id);
|
|
1008
|
+
},
|
|
1009
|
+
custom_anchor_destroy: () => {
|
|
1010
|
+
custom_anchor_destroy_wrapped();
|
|
1011
|
+
},
|
|
1012
|
+
custom_anchor_status: (o) => {
|
|
1013
|
+
let ret = custom_anchor_status_wrapped(o);
|
|
1014
|
+
return ret;
|
|
1015
|
+
},
|
|
1016
|
+
custom_anchor_enabled_set: (o, enabled) => {
|
|
1017
|
+
let arg_enabled = enabled ? 1 : 0;
|
|
1018
|
+
let ret = custom_anchor_enabled_set_wrapped(o, arg_enabled);
|
|
1019
|
+
return ret;
|
|
1020
|
+
},
|
|
1021
|
+
custom_anchor_enabled: (o) => {
|
|
1022
|
+
let ret = custom_anchor_enabled_wrapped(o);
|
|
1023
|
+
ret = ret === 1;
|
|
1024
|
+
return ret;
|
|
1025
|
+
},
|
|
1026
|
+
custom_anchor_pose_raw: (o) => {
|
|
1027
|
+
let ret = custom_anchor_pose_raw_wrapped(o);
|
|
1028
|
+
let ab = new Float32Array(16);
|
|
1029
|
+
ab.set(mod.HEAPF32.subarray(ret / 4, 16 + ret / 4));
|
|
1030
|
+
ret = ab;
|
|
1031
|
+
return ret;
|
|
1032
|
+
},
|
|
1033
|
+
custom_anchor_pose_set_from_camera_offset_raw: (o, x, y, z, orientation) => {
|
|
1034
|
+
let arg_x = x;
|
|
1035
|
+
let arg_y = y;
|
|
1036
|
+
let arg_z = z;
|
|
1037
|
+
let arg_orientation = orientation;
|
|
1038
|
+
let ret = custom_anchor_pose_set_from_camera_offset_raw_wrapped(o, arg_x, arg_y, arg_z, arg_orientation);
|
|
1039
|
+
return ret;
|
|
1040
|
+
},
|
|
1041
|
+
custom_anchor_pose_set_from_anchor_offset: (o, anchor_id, x, y, z, orientation) => {
|
|
1042
|
+
let arg_anchor_id = anchor_id;
|
|
1043
|
+
let arg_x = x;
|
|
1044
|
+
let arg_y = y;
|
|
1045
|
+
let arg_z = z;
|
|
1046
|
+
let arg_orientation = orientation;
|
|
1047
|
+
let ret = custom_anchor_pose_set_from_anchor_offset_wrapped(o, arg_anchor_id, arg_x, arg_y, arg_z, arg_orientation);
|
|
1048
|
+
return ret;
|
|
1049
|
+
},
|
|
925
1050
|
};
|
|
926
1051
|
}
|
|
@@ -40,6 +40,12 @@ export declare enum instant_world_tracker_transform_orientation_t {
|
|
|
40
40
|
MINUS_Z_HEADING = 5,
|
|
41
41
|
UNCHANGED = 6
|
|
42
42
|
}
|
|
43
|
+
export declare enum transform_orientation_t {
|
|
44
|
+
UNCHANGED = 0,
|
|
45
|
+
WORLD = 1,
|
|
46
|
+
PARENT = 2,
|
|
47
|
+
Z_TOWARDS_CAMERA = 3
|
|
48
|
+
}
|
|
43
49
|
export declare enum log_level_t {
|
|
44
50
|
LOG_LEVEL_NONE = 0,
|
|
45
51
|
LOG_LEVEL_ERROR = 1,
|
|
@@ -64,7 +70,17 @@ export declare enum image_target_type_t {
|
|
|
64
70
|
export declare enum world_tracker_quality_t {
|
|
65
71
|
WORLD_TRACKER_QUALITY_INITIALIZING = 0,
|
|
66
72
|
WORLD_TRACKER_QUALITY_GOOD = 1,
|
|
67
|
-
|
|
73
|
+
WORLD_TRACKER_QUALITY_LIMITED = 2
|
|
74
|
+
}
|
|
75
|
+
export declare enum anchor_status_t {
|
|
76
|
+
ANCHOR_STATUS_INITIALIZING = 0,
|
|
77
|
+
ANCHOR_STATUS_TRACKING = 1,
|
|
78
|
+
ANCHOR_STATUS_PAUSED = 2,
|
|
79
|
+
ANCHOR_STATUS_STOPPED = 3
|
|
80
|
+
}
|
|
81
|
+
export declare enum plane_orientation_t {
|
|
82
|
+
PLANE_ORIENTATION_HORIZONTAL = 0,
|
|
83
|
+
PLANE_ORIENTATION_VERTICAL = 1
|
|
68
84
|
}
|
|
69
85
|
export declare enum camera_profile_t {
|
|
70
86
|
DEFAULT = 0,
|
|
@@ -103,6 +119,9 @@ export declare type zappar_zapcode_tracker_t = number & {
|
|
|
103
119
|
export declare type zappar_world_tracker_t = number & {
|
|
104
120
|
_: 'zappar_world_tracker_t';
|
|
105
121
|
};
|
|
122
|
+
export declare type zappar_custom_anchor_t = number & {
|
|
123
|
+
_: 'zappar_custom_anchor_t';
|
|
124
|
+
};
|
|
106
125
|
export interface zappar_cwrap {
|
|
107
126
|
log_level(): log_level_t;
|
|
108
127
|
log_level_set(level: log_level_t): void;
|
|
@@ -188,16 +207,23 @@ export interface zappar_cwrap {
|
|
|
188
207
|
world_tracker_enabled(o: zappar_world_tracker_t): boolean;
|
|
189
208
|
world_tracker_enabled_set(o: zappar_world_tracker_t, enabled: boolean): void;
|
|
190
209
|
world_tracker_quality(o: zappar_world_tracker_t): number;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
210
|
+
world_tracker_horizontal_plane_detection_enabled(o: zappar_world_tracker_t): boolean;
|
|
211
|
+
world_tracker_horizontal_plane_detection_enabled_set(o: zappar_world_tracker_t, horizontal_plane_detection_enabled: boolean): void;
|
|
212
|
+
world_tracker_vertical_plane_detection_enabled(o: zappar_world_tracker_t): boolean;
|
|
213
|
+
world_tracker_vertical_plane_detection_enabled_set(o: zappar_world_tracker_t, vertical_plane_detection_enabled: boolean): void;
|
|
214
|
+
world_tracker_plane_anchor_count(o: zappar_world_tracker_t): number;
|
|
215
|
+
world_tracker_plane_anchor_id(o: zappar_world_tracker_t, indx: number): string;
|
|
216
|
+
world_tracker_plane_anchor_pose_raw(o: zappar_world_tracker_t, indx: number): Float32Array;
|
|
217
|
+
world_tracker_plane_anchor_status(o: zappar_world_tracker_t, indx: number): anchor_status_t;
|
|
218
|
+
world_tracker_plane_anchor_polygon_data_size(o: zappar_world_tracker_t, indx: number): number;
|
|
219
|
+
world_tracker_plane_anchor_polygon_data(o: zappar_world_tracker_t, indx: number): Float32Array;
|
|
220
|
+
world_tracker_plane_anchor_polygon_version(o: zappar_world_tracker_t, indx: number): number;
|
|
221
|
+
world_tracker_plane_anchor_orientation(o: zappar_world_tracker_t, indx: number): plane_orientation_t;
|
|
222
|
+
world_tracker_world_anchor_status(o: zappar_world_tracker_t): anchor_status_t;
|
|
223
|
+
world_tracker_world_anchor_id(o: zappar_world_tracker_t): string;
|
|
199
224
|
world_tracker_world_anchor_pose_raw(o: zappar_world_tracker_t): Float32Array;
|
|
200
|
-
|
|
225
|
+
world_tracker_ground_anchor_id(o: zappar_world_tracker_t): string;
|
|
226
|
+
world_tracker_ground_anchor_status(o: zappar_world_tracker_t): anchor_status_t;
|
|
201
227
|
world_tracker_ground_anchor_pose_raw(o: zappar_world_tracker_t): Float32Array;
|
|
202
228
|
world_tracker_reset(o: zappar_world_tracker_t): void;
|
|
203
229
|
world_tracker_tracks_data_enabled(o: zappar_world_tracker_t): boolean;
|
|
@@ -210,4 +236,12 @@ export interface zappar_cwrap {
|
|
|
210
236
|
world_tracker_projections_data_enabled_set(o: zappar_world_tracker_t, projections_data_enabled: boolean): void;
|
|
211
237
|
world_tracker_projections_data_size(o: zappar_world_tracker_t): number;
|
|
212
238
|
world_tracker_projections_data(o: zappar_world_tracker_t): Float32Array;
|
|
239
|
+
custom_anchor_create(pipeline: zappar_pipeline_t, worldtracker: zappar_world_tracker_t, id: string): zappar_custom_anchor_t;
|
|
240
|
+
custom_anchor_destroy(o: zappar_custom_anchor_t): void;
|
|
241
|
+
custom_anchor_status(o: zappar_custom_anchor_t): anchor_status_t;
|
|
242
|
+
custom_anchor_enabled_set(o: zappar_custom_anchor_t, enabled: boolean): void;
|
|
243
|
+
custom_anchor_enabled(o: zappar_custom_anchor_t): boolean;
|
|
244
|
+
custom_anchor_pose_raw(o: zappar_custom_anchor_t): Float32Array;
|
|
245
|
+
custom_anchor_pose_set_from_camera_offset_raw(o: zappar_custom_anchor_t, x: number, y: number, z: number, orientation: transform_orientation_t): void;
|
|
246
|
+
custom_anchor_pose_set_from_anchor_offset(o: zappar_custom_anchor_t, anchor_id: string, x: number, y: number, z: number, orientation: transform_orientation_t): void;
|
|
213
247
|
}
|
package/lib/gen/zappar-native.js
CHANGED
|
@@ -46,6 +46,14 @@ export var instant_world_tracker_transform_orientation_t;
|
|
|
46
46
|
instant_world_tracker_transform_orientation_t[instant_world_tracker_transform_orientation_t["UNCHANGED"] = 6] = "UNCHANGED";
|
|
47
47
|
})(instant_world_tracker_transform_orientation_t || (instant_world_tracker_transform_orientation_t = {}));
|
|
48
48
|
;
|
|
49
|
+
export var transform_orientation_t;
|
|
50
|
+
(function (transform_orientation_t) {
|
|
51
|
+
transform_orientation_t[transform_orientation_t["UNCHANGED"] = 0] = "UNCHANGED";
|
|
52
|
+
transform_orientation_t[transform_orientation_t["WORLD"] = 1] = "WORLD";
|
|
53
|
+
transform_orientation_t[transform_orientation_t["PARENT"] = 2] = "PARENT";
|
|
54
|
+
transform_orientation_t[transform_orientation_t["Z_TOWARDS_CAMERA"] = 3] = "Z_TOWARDS_CAMERA";
|
|
55
|
+
})(transform_orientation_t || (transform_orientation_t = {}));
|
|
56
|
+
;
|
|
49
57
|
export var log_level_t;
|
|
50
58
|
(function (log_level_t) {
|
|
51
59
|
log_level_t[log_level_t["LOG_LEVEL_NONE"] = 0] = "LOG_LEVEL_NONE";
|
|
@@ -77,9 +85,23 @@ export var world_tracker_quality_t;
|
|
|
77
85
|
(function (world_tracker_quality_t) {
|
|
78
86
|
world_tracker_quality_t[world_tracker_quality_t["WORLD_TRACKER_QUALITY_INITIALIZING"] = 0] = "WORLD_TRACKER_QUALITY_INITIALIZING";
|
|
79
87
|
world_tracker_quality_t[world_tracker_quality_t["WORLD_TRACKER_QUALITY_GOOD"] = 1] = "WORLD_TRACKER_QUALITY_GOOD";
|
|
80
|
-
world_tracker_quality_t[world_tracker_quality_t["
|
|
88
|
+
world_tracker_quality_t[world_tracker_quality_t["WORLD_TRACKER_QUALITY_LIMITED"] = 2] = "WORLD_TRACKER_QUALITY_LIMITED";
|
|
81
89
|
})(world_tracker_quality_t || (world_tracker_quality_t = {}));
|
|
82
90
|
;
|
|
91
|
+
export var anchor_status_t;
|
|
92
|
+
(function (anchor_status_t) {
|
|
93
|
+
anchor_status_t[anchor_status_t["ANCHOR_STATUS_INITIALIZING"] = 0] = "ANCHOR_STATUS_INITIALIZING";
|
|
94
|
+
anchor_status_t[anchor_status_t["ANCHOR_STATUS_TRACKING"] = 1] = "ANCHOR_STATUS_TRACKING";
|
|
95
|
+
anchor_status_t[anchor_status_t["ANCHOR_STATUS_PAUSED"] = 2] = "ANCHOR_STATUS_PAUSED";
|
|
96
|
+
anchor_status_t[anchor_status_t["ANCHOR_STATUS_STOPPED"] = 3] = "ANCHOR_STATUS_STOPPED";
|
|
97
|
+
})(anchor_status_t || (anchor_status_t = {}));
|
|
98
|
+
;
|
|
99
|
+
export var plane_orientation_t;
|
|
100
|
+
(function (plane_orientation_t) {
|
|
101
|
+
plane_orientation_t[plane_orientation_t["PLANE_ORIENTATION_HORIZONTAL"] = 0] = "PLANE_ORIENTATION_HORIZONTAL";
|
|
102
|
+
plane_orientation_t[plane_orientation_t["PLANE_ORIENTATION_VERTICAL"] = 1] = "PLANE_ORIENTATION_VERTICAL";
|
|
103
|
+
})(plane_orientation_t || (plane_orientation_t = {}));
|
|
104
|
+
;
|
|
83
105
|
export var camera_profile_t;
|
|
84
106
|
(function (camera_profile_t) {
|
|
85
107
|
camera_profile_t[camera_profile_t["DEFAULT"] = 0] = "DEFAULT";
|
|
@@ -11,6 +11,7 @@ import { zappar_barcode_finder_t } from "./zappar-native";
|
|
|
11
11
|
import { zappar_instant_world_tracker_t } from "./zappar-native";
|
|
12
12
|
import { zappar_zapcode_tracker_t } from "./zappar-native";
|
|
13
13
|
import { zappar_world_tracker_t } from "./zappar-native";
|
|
14
|
+
import { zappar_custom_anchor_t } from "./zappar-native";
|
|
14
15
|
export declare class zappar_server {
|
|
15
16
|
private _impl;
|
|
16
17
|
private _sender;
|
|
@@ -39,6 +40,8 @@ export declare class zappar_server {
|
|
|
39
40
|
_zapcode_tracker_by_instance: Map<number, zappar_zapcode_tracker_t>;
|
|
40
41
|
_pipeline_id_by_world_tracker_id: Map<number, number>;
|
|
41
42
|
_world_tracker_by_instance: Map<number, zappar_world_tracker_t>;
|
|
43
|
+
_pipeline_id_by_custom_anchor_id: Map<number, number>;
|
|
44
|
+
_custom_anchor_by_instance: Map<number, zappar_custom_anchor_t>;
|
|
42
45
|
processBuffer(b: ArrayBuffer): void;
|
|
43
46
|
exploreState(): void;
|
|
44
47
|
}
|