@dronedeploy/rocos-js-sdk 3.0.1-alpha.26 → 3.0.1-alpha.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,22 +17,28 @@ export interface Target {
17
17
  */
18
18
  data: Record<string, string>;
19
19
  /**
20
- * Position of the target in the 3D space
20
+ * Translation of the target in the 3D space
21
21
  */
22
22
  translation: Vector3;
23
23
  /**
24
24
  * Rotation of the target in the 3D space
25
25
  */
26
26
  rotation: Quaternion;
27
- }
28
- type TargetMediaItem = {
29
- id: string;
30
- data: Record<string, string>;
31
- };
32
- export interface TargetWithMedia extends Target {
27
+ /**
28
+ * Position of the target in WGS84 coordinates
29
+ */
30
+ position: {
31
+ lat: number;
32
+ lon: number;
33
+ alt: number;
34
+ };
33
35
  /**
34
36
  * Media associated with the target (images)
35
37
  */
36
- media: TargetMediaItem[];
38
+ media?: TargetMedia[];
37
39
  }
40
+ type TargetMedia = {
41
+ id: string;
42
+ data: Record<string, string>;
43
+ };
38
44
  export {};
@@ -17,22 +17,28 @@ export interface Target {
17
17
  */
18
18
  data: Record<string, string>;
19
19
  /**
20
- * Position of the target in the 3D space
20
+ * Translation of the target in the 3D space
21
21
  */
22
22
  translation: Vector3;
23
23
  /**
24
24
  * Rotation of the target in the 3D space
25
25
  */
26
26
  rotation: Quaternion;
27
- }
28
- type TargetMediaItem = {
29
- id: string;
30
- data: Record<string, string>;
31
- };
32
- export interface TargetWithMedia extends Target {
27
+ /**
28
+ * Position of the target in WGS84 coordinates
29
+ */
30
+ position: {
31
+ lat: number;
32
+ lon: number;
33
+ alt: number;
34
+ };
33
35
  /**
34
36
  * Media associated with the target (images)
35
37
  */
36
- media: TargetMediaItem[];
38
+ media?: TargetMedia[];
37
39
  }
40
+ type TargetMedia = {
41
+ id: string;
42
+ data: Record<string, string>;
43
+ };
38
44
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dronedeploy/rocos-js-sdk",
3
- "version": "3.0.1-alpha.26",
3
+ "version": "3.0.1-alpha.28",
4
4
  "description": "Javascript SDK for rocos",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",