@foxglove/schemas 1.1.2 → 1.3.0
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/internal/schemas.d.ts +2 -0
- package/internal/schemas.d.ts.map +1 -1
- package/internal/schemas.js +59 -0
- package/internal/schemas.js.map +1 -1
- package/internal/schemas.ts +61 -0
- package/package.json +1 -1
- package/schemas/README.md +130 -0
- package/schemas/flatbuffer/FrameTransforms.fbs +13 -0
- package/schemas/flatbuffer/ImageAnnotations.fbs +4 -0
- package/schemas/flatbuffer/TextAnnotation.fbs +30 -0
- package/schemas/jsonschema/FrameTransforms.json +85 -0
- package/schemas/jsonschema/ImageAnnotations.json +96 -0
- package/schemas/jsonschema/TextAnnotation.json +93 -0
- package/schemas/jsonschema/index.d.ts +274 -0
- package/schemas/jsonschema/index.d.ts.map +1 -1
- package/schemas/jsonschema/index.js +275 -1
- package/schemas/jsonschema/index.js.map +1 -1
- package/schemas/jsonschema/index.ts +276 -0
- package/schemas/proto/foxglove/FrameTransforms.proto +13 -0
- package/schemas/proto/foxglove/ImageAnnotations.proto +4 -0
- package/schemas/proto/foxglove/TextAnnotation.proto +30 -0
- package/schemas/ros1/FrameTransforms.msg +7 -0
- package/schemas/ros1/ImageAnnotations.msg +3 -0
- package/schemas/ros1/TextAnnotation.msg +22 -0
- package/schemas/ros2/FrameTransforms.msg +7 -0
- package/schemas/ros2/ImageAnnotations.msg +3 -0
- package/schemas/ros2/TextAnnotation.msg +22 -0
- package/schemas/typescript/FrameTransforms.d.ts +7 -0
- package/schemas/typescript/FrameTransforms.d.ts.map +1 -0
- package/schemas/typescript/FrameTransforms.js +4 -0
- package/schemas/typescript/FrameTransforms.js.map +1 -0
- package/schemas/typescript/FrameTransforms.ts +9 -0
- package/schemas/typescript/ImageAnnotations.d.ts +3 -0
- package/schemas/typescript/ImageAnnotations.d.ts.map +1 -1
- package/schemas/typescript/ImageAnnotations.ts +4 -0
- package/schemas/typescript/TextAnnotation.d.ts +19 -0
- package/schemas/typescript/TextAnnotation.d.ts.map +1 -0
- package/schemas/typescript/TextAnnotation.js +4 -0
- package/schemas/typescript/TextAnnotation.js.map +1 -0
- package/schemas/typescript/TextAnnotation.ts +26 -0
- package/schemas/typescript/index.d.ts +2 -0
- package/schemas/typescript/index.d.ts.map +1 -1
- package/schemas/typescript/index.js +2 -0
- package/schemas/typescript/index.js.map +1 -1
- package/schemas/typescript/index.ts +2 -0
|
@@ -614,6 +614,92 @@ export const FrameTransform = {
|
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
|
|
617
|
+
export const FrameTransforms = {
|
|
618
|
+
"title": "foxglove.FrameTransforms",
|
|
619
|
+
"description": "An array of FrameTransform messages",
|
|
620
|
+
"$comment": "Generated by https://github.com/foxglove/schemas",
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"transforms": {
|
|
624
|
+
"type": "array",
|
|
625
|
+
"items": {
|
|
626
|
+
"title": "foxglove.FrameTransform",
|
|
627
|
+
"description": "A transform between two reference frames in 3D space",
|
|
628
|
+
"type": "object",
|
|
629
|
+
"properties": {
|
|
630
|
+
"timestamp": {
|
|
631
|
+
"type": "object",
|
|
632
|
+
"title": "time",
|
|
633
|
+
"properties": {
|
|
634
|
+
"sec": {
|
|
635
|
+
"type": "integer",
|
|
636
|
+
"minimum": 0
|
|
637
|
+
},
|
|
638
|
+
"nsec": {
|
|
639
|
+
"type": "integer",
|
|
640
|
+
"minimum": 0,
|
|
641
|
+
"maximum": 999999999
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
"description": "Timestamp of transform"
|
|
645
|
+
},
|
|
646
|
+
"parent_frame_id": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "Name of the parent frame"
|
|
649
|
+
},
|
|
650
|
+
"child_frame_id": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"description": "Name of the child frame"
|
|
653
|
+
},
|
|
654
|
+
"translation": {
|
|
655
|
+
"title": "foxglove.Vector3",
|
|
656
|
+
"description": "Translation component of the transform",
|
|
657
|
+
"type": "object",
|
|
658
|
+
"properties": {
|
|
659
|
+
"x": {
|
|
660
|
+
"type": "number",
|
|
661
|
+
"description": "x coordinate length"
|
|
662
|
+
},
|
|
663
|
+
"y": {
|
|
664
|
+
"type": "number",
|
|
665
|
+
"description": "y coordinate length"
|
|
666
|
+
},
|
|
667
|
+
"z": {
|
|
668
|
+
"type": "number",
|
|
669
|
+
"description": "z coordinate length"
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"rotation": {
|
|
674
|
+
"title": "foxglove.Quaternion",
|
|
675
|
+
"description": "Rotation component of the transform",
|
|
676
|
+
"type": "object",
|
|
677
|
+
"properties": {
|
|
678
|
+
"x": {
|
|
679
|
+
"type": "number",
|
|
680
|
+
"description": "x value"
|
|
681
|
+
},
|
|
682
|
+
"y": {
|
|
683
|
+
"type": "number",
|
|
684
|
+
"description": "y value"
|
|
685
|
+
},
|
|
686
|
+
"z": {
|
|
687
|
+
"type": "number",
|
|
688
|
+
"description": "z value"
|
|
689
|
+
},
|
|
690
|
+
"w": {
|
|
691
|
+
"type": "number",
|
|
692
|
+
"description": "w value"
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"description": "Array of transforms"
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
|
|
617
703
|
export const GeoJSON = {
|
|
618
704
|
"title": "foxglove.GeoJSON",
|
|
619
705
|
"description": "GeoJSON data for annotating maps",
|
|
@@ -1056,6 +1142,102 @@ export const ImageAnnotations = {
|
|
|
1056
1142
|
}
|
|
1057
1143
|
},
|
|
1058
1144
|
"description": "Points annotations"
|
|
1145
|
+
},
|
|
1146
|
+
"texts": {
|
|
1147
|
+
"type": "array",
|
|
1148
|
+
"items": {
|
|
1149
|
+
"title": "foxglove.TextAnnotation",
|
|
1150
|
+
"description": "A text label on a 2D image",
|
|
1151
|
+
"type": "object",
|
|
1152
|
+
"properties": {
|
|
1153
|
+
"timestamp": {
|
|
1154
|
+
"type": "object",
|
|
1155
|
+
"title": "time",
|
|
1156
|
+
"properties": {
|
|
1157
|
+
"sec": {
|
|
1158
|
+
"type": "integer",
|
|
1159
|
+
"minimum": 0
|
|
1160
|
+
},
|
|
1161
|
+
"nsec": {
|
|
1162
|
+
"type": "integer",
|
|
1163
|
+
"minimum": 0,
|
|
1164
|
+
"maximum": 999999999
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
"description": "Timestamp of annotation"
|
|
1168
|
+
},
|
|
1169
|
+
"position": {
|
|
1170
|
+
"title": "foxglove.Point2",
|
|
1171
|
+
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels)",
|
|
1172
|
+
"type": "object",
|
|
1173
|
+
"properties": {
|
|
1174
|
+
"x": {
|
|
1175
|
+
"type": "number",
|
|
1176
|
+
"description": "x coordinate position"
|
|
1177
|
+
},
|
|
1178
|
+
"y": {
|
|
1179
|
+
"type": "number",
|
|
1180
|
+
"description": "y coordinate position"
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"text": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"description": "Text to display"
|
|
1187
|
+
},
|
|
1188
|
+
"font_size": {
|
|
1189
|
+
"type": "number",
|
|
1190
|
+
"description": "Font size in pixels"
|
|
1191
|
+
},
|
|
1192
|
+
"text_color": {
|
|
1193
|
+
"title": "foxglove.Color",
|
|
1194
|
+
"description": "Text color",
|
|
1195
|
+
"type": "object",
|
|
1196
|
+
"properties": {
|
|
1197
|
+
"r": {
|
|
1198
|
+
"type": "number",
|
|
1199
|
+
"description": "Red value between 0 and 1"
|
|
1200
|
+
},
|
|
1201
|
+
"g": {
|
|
1202
|
+
"type": "number",
|
|
1203
|
+
"description": "Green value between 0 and 1"
|
|
1204
|
+
},
|
|
1205
|
+
"b": {
|
|
1206
|
+
"type": "number",
|
|
1207
|
+
"description": "Blue value between 0 and 1"
|
|
1208
|
+
},
|
|
1209
|
+
"a": {
|
|
1210
|
+
"type": "number",
|
|
1211
|
+
"description": "Alpha value between 0 and 1"
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
},
|
|
1215
|
+
"background_color": {
|
|
1216
|
+
"title": "foxglove.Color",
|
|
1217
|
+
"description": "Background fill color",
|
|
1218
|
+
"type": "object",
|
|
1219
|
+
"properties": {
|
|
1220
|
+
"r": {
|
|
1221
|
+
"type": "number",
|
|
1222
|
+
"description": "Red value between 0 and 1"
|
|
1223
|
+
},
|
|
1224
|
+
"g": {
|
|
1225
|
+
"type": "number",
|
|
1226
|
+
"description": "Green value between 0 and 1"
|
|
1227
|
+
},
|
|
1228
|
+
"b": {
|
|
1229
|
+
"type": "number",
|
|
1230
|
+
"description": "Blue value between 0 and 1"
|
|
1231
|
+
},
|
|
1232
|
+
"a": {
|
|
1233
|
+
"type": "number",
|
|
1234
|
+
"description": "Alpha value between 0 and 1"
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
},
|
|
1240
|
+
"description": "Text annotations"
|
|
1059
1241
|
}
|
|
1060
1242
|
}
|
|
1061
1243
|
};
|
|
@@ -4503,6 +4685,100 @@ export const SpherePrimitive = {
|
|
|
4503
4685
|
}
|
|
4504
4686
|
};
|
|
4505
4687
|
|
|
4688
|
+
export const TextAnnotation = {
|
|
4689
|
+
"title": "foxglove.TextAnnotation",
|
|
4690
|
+
"description": "A text label on a 2D image",
|
|
4691
|
+
"$comment": "Generated by https://github.com/foxglove/schemas",
|
|
4692
|
+
"type": "object",
|
|
4693
|
+
"properties": {
|
|
4694
|
+
"timestamp": {
|
|
4695
|
+
"type": "object",
|
|
4696
|
+
"title": "time",
|
|
4697
|
+
"properties": {
|
|
4698
|
+
"sec": {
|
|
4699
|
+
"type": "integer",
|
|
4700
|
+
"minimum": 0
|
|
4701
|
+
},
|
|
4702
|
+
"nsec": {
|
|
4703
|
+
"type": "integer",
|
|
4704
|
+
"minimum": 0,
|
|
4705
|
+
"maximum": 999999999
|
|
4706
|
+
}
|
|
4707
|
+
},
|
|
4708
|
+
"description": "Timestamp of annotation"
|
|
4709
|
+
},
|
|
4710
|
+
"position": {
|
|
4711
|
+
"title": "foxglove.Point2",
|
|
4712
|
+
"description": "Bottom-left origin of the text label in 2D image coordinates (pixels)",
|
|
4713
|
+
"type": "object",
|
|
4714
|
+
"properties": {
|
|
4715
|
+
"x": {
|
|
4716
|
+
"type": "number",
|
|
4717
|
+
"description": "x coordinate position"
|
|
4718
|
+
},
|
|
4719
|
+
"y": {
|
|
4720
|
+
"type": "number",
|
|
4721
|
+
"description": "y coordinate position"
|
|
4722
|
+
}
|
|
4723
|
+
}
|
|
4724
|
+
},
|
|
4725
|
+
"text": {
|
|
4726
|
+
"type": "string",
|
|
4727
|
+
"description": "Text to display"
|
|
4728
|
+
},
|
|
4729
|
+
"font_size": {
|
|
4730
|
+
"type": "number",
|
|
4731
|
+
"description": "Font size in pixels"
|
|
4732
|
+
},
|
|
4733
|
+
"text_color": {
|
|
4734
|
+
"title": "foxglove.Color",
|
|
4735
|
+
"description": "Text color",
|
|
4736
|
+
"type": "object",
|
|
4737
|
+
"properties": {
|
|
4738
|
+
"r": {
|
|
4739
|
+
"type": "number",
|
|
4740
|
+
"description": "Red value between 0 and 1"
|
|
4741
|
+
},
|
|
4742
|
+
"g": {
|
|
4743
|
+
"type": "number",
|
|
4744
|
+
"description": "Green value between 0 and 1"
|
|
4745
|
+
},
|
|
4746
|
+
"b": {
|
|
4747
|
+
"type": "number",
|
|
4748
|
+
"description": "Blue value between 0 and 1"
|
|
4749
|
+
},
|
|
4750
|
+
"a": {
|
|
4751
|
+
"type": "number",
|
|
4752
|
+
"description": "Alpha value between 0 and 1"
|
|
4753
|
+
}
|
|
4754
|
+
}
|
|
4755
|
+
},
|
|
4756
|
+
"background_color": {
|
|
4757
|
+
"title": "foxglove.Color",
|
|
4758
|
+
"description": "Background fill color",
|
|
4759
|
+
"type": "object",
|
|
4760
|
+
"properties": {
|
|
4761
|
+
"r": {
|
|
4762
|
+
"type": "number",
|
|
4763
|
+
"description": "Red value between 0 and 1"
|
|
4764
|
+
},
|
|
4765
|
+
"g": {
|
|
4766
|
+
"type": "number",
|
|
4767
|
+
"description": "Green value between 0 and 1"
|
|
4768
|
+
},
|
|
4769
|
+
"b": {
|
|
4770
|
+
"type": "number",
|
|
4771
|
+
"description": "Blue value between 0 and 1"
|
|
4772
|
+
},
|
|
4773
|
+
"a": {
|
|
4774
|
+
"type": "number",
|
|
4775
|
+
"description": "Alpha value between 0 and 1"
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
}
|
|
4780
|
+
};
|
|
4781
|
+
|
|
4506
4782
|
export const TextPrimitive = {
|
|
4507
4783
|
"title": "foxglove.TextPrimitive",
|
|
4508
4784
|
"description": "A primitive representing a text label",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
syntax = "proto3";
|
|
4
|
+
|
|
5
|
+
import "foxglove/FrameTransform.proto";
|
|
6
|
+
|
|
7
|
+
package foxglove;
|
|
8
|
+
|
|
9
|
+
// An array of FrameTransform messages
|
|
10
|
+
message FrameTransforms {
|
|
11
|
+
// Array of transforms
|
|
12
|
+
repeated foxglove.FrameTransform transforms = 1;
|
|
13
|
+
}
|
|
@@ -4,6 +4,7 @@ syntax = "proto3";
|
|
|
4
4
|
|
|
5
5
|
import "foxglove/CircleAnnotation.proto";
|
|
6
6
|
import "foxglove/PointsAnnotation.proto";
|
|
7
|
+
import "foxglove/TextAnnotation.proto";
|
|
7
8
|
|
|
8
9
|
package foxglove;
|
|
9
10
|
|
|
@@ -14,4 +15,7 @@ message ImageAnnotations {
|
|
|
14
15
|
|
|
15
16
|
// Points annotations
|
|
16
17
|
repeated foxglove.PointsAnnotation points = 2;
|
|
18
|
+
|
|
19
|
+
// Text annotations
|
|
20
|
+
repeated foxglove.TextAnnotation texts = 3;
|
|
17
21
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
syntax = "proto3";
|
|
4
|
+
|
|
5
|
+
import "foxglove/Color.proto";
|
|
6
|
+
import "foxglove/Point2.proto";
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
package foxglove;
|
|
10
|
+
|
|
11
|
+
// A text label on a 2D image
|
|
12
|
+
message TextAnnotation {
|
|
13
|
+
// Timestamp of annotation
|
|
14
|
+
google.protobuf.Timestamp timestamp = 1;
|
|
15
|
+
|
|
16
|
+
// Bottom-left origin of the text label in 2D image coordinates (pixels)
|
|
17
|
+
foxglove.Point2 position = 2;
|
|
18
|
+
|
|
19
|
+
// Text to display
|
|
20
|
+
string text = 3;
|
|
21
|
+
|
|
22
|
+
// Font size in pixels
|
|
23
|
+
double font_size = 4;
|
|
24
|
+
|
|
25
|
+
// Text color
|
|
26
|
+
foxglove.Color text_color = 5;
|
|
27
|
+
|
|
28
|
+
// Background fill color
|
|
29
|
+
foxglove.Color background_color = 6;
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# foxglove_msgs/TextAnnotation
|
|
2
|
+
# A text label on a 2D image
|
|
3
|
+
|
|
4
|
+
# Generated by https://github.com/foxglove/schemas
|
|
5
|
+
|
|
6
|
+
# Timestamp of annotation
|
|
7
|
+
time timestamp
|
|
8
|
+
|
|
9
|
+
# Bottom-left origin of the text label in 2D image coordinates (pixels)
|
|
10
|
+
foxglove_msgs/Point2 position
|
|
11
|
+
|
|
12
|
+
# Text to display
|
|
13
|
+
string text
|
|
14
|
+
|
|
15
|
+
# Font size in pixels
|
|
16
|
+
float64 font_size
|
|
17
|
+
|
|
18
|
+
# Text color
|
|
19
|
+
foxglove_msgs/Color text_color
|
|
20
|
+
|
|
21
|
+
# Background fill color
|
|
22
|
+
foxglove_msgs/Color background_color
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# foxglove_msgs/msg/TextAnnotation
|
|
2
|
+
# A text label on a 2D image
|
|
3
|
+
|
|
4
|
+
# Generated by https://github.com/foxglove/schemas
|
|
5
|
+
|
|
6
|
+
# Timestamp of annotation
|
|
7
|
+
builtin_interfaces/Time timestamp
|
|
8
|
+
|
|
9
|
+
# Bottom-left origin of the text label in 2D image coordinates (pixels)
|
|
10
|
+
foxglove_msgs/Point2 position
|
|
11
|
+
|
|
12
|
+
# Text to display
|
|
13
|
+
string text
|
|
14
|
+
|
|
15
|
+
# Font size in pixels
|
|
16
|
+
float64 font_size
|
|
17
|
+
|
|
18
|
+
# Text color
|
|
19
|
+
foxglove_msgs/Color text_color
|
|
20
|
+
|
|
21
|
+
# Background fill color
|
|
22
|
+
foxglove_msgs/Color background_color
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameTransforms.d.ts","sourceRoot":"","sources":["FrameTransforms.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG;IAC5B,0BAA0B;IAC1B,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameTransforms.js","sourceRoot":"","sources":["FrameTransforms.ts"],"names":[],"mappings":";AAAA,mDAAmD"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { CircleAnnotation } from "./CircleAnnotation";
|
|
2
2
|
import { PointsAnnotation } from "./PointsAnnotation";
|
|
3
|
+
import { TextAnnotation } from "./TextAnnotation";
|
|
3
4
|
/** Array of annotations for a 2D image */
|
|
4
5
|
export type ImageAnnotations = {
|
|
5
6
|
/** Circle annotations */
|
|
6
7
|
circles: CircleAnnotation[];
|
|
7
8
|
/** Points annotations */
|
|
8
9
|
points: PointsAnnotation[];
|
|
10
|
+
/** Text annotations */
|
|
11
|
+
texts: TextAnnotation[];
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=ImageAnnotations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageAnnotations.d.ts","sourceRoot":"","sources":["ImageAnnotations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageAnnotations.d.ts","sourceRoot":"","sources":["ImageAnnotations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,yBAAyB;IACzB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAE5B,yBAAyB;IACzB,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,uBAAuB;IACvB,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { CircleAnnotation } from "./CircleAnnotation";
|
|
4
4
|
import { PointsAnnotation } from "./PointsAnnotation";
|
|
5
|
+
import { TextAnnotation } from "./TextAnnotation";
|
|
5
6
|
|
|
6
7
|
/** Array of annotations for a 2D image */
|
|
7
8
|
export type ImageAnnotations = {
|
|
@@ -10,4 +11,7 @@ export type ImageAnnotations = {
|
|
|
10
11
|
|
|
11
12
|
/** Points annotations */
|
|
12
13
|
points: PointsAnnotation[];
|
|
14
|
+
|
|
15
|
+
/** Text annotations */
|
|
16
|
+
texts: TextAnnotation[];
|
|
13
17
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Color } from "./Color";
|
|
2
|
+
import { Point2 } from "./Point2";
|
|
3
|
+
import { Time } from "./Time";
|
|
4
|
+
/** A text label on a 2D image */
|
|
5
|
+
export type TextAnnotation = {
|
|
6
|
+
/** Timestamp of annotation */
|
|
7
|
+
timestamp: Time;
|
|
8
|
+
/** Bottom-left origin of the text label in 2D image coordinates (pixels) */
|
|
9
|
+
position: Point2;
|
|
10
|
+
/** Text to display */
|
|
11
|
+
text: string;
|
|
12
|
+
/** Font size in pixels */
|
|
13
|
+
font_size: number;
|
|
14
|
+
/** Text color */
|
|
15
|
+
text_color: Color;
|
|
16
|
+
/** Background fill color */
|
|
17
|
+
background_color: Color;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=TextAnnotation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAnnotation.d.ts","sourceRoot":"","sources":["TextAnnotation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,iCAAiC;AACjC,MAAM,MAAM,cAAc,GAAG;IAC3B,8BAA8B;IAC9B,SAAS,EAAE,IAAI,CAAC;IAEhB,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IAEjB,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IAEb,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAElB,iBAAiB;IACjB,UAAU,EAAE,KAAK,CAAC;IAElB,4BAA4B;IAC5B,gBAAgB,EAAE,KAAK,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAnnotation.js","sourceRoot":"","sources":["TextAnnotation.ts"],"names":[],"mappings":";AAAA,mDAAmD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated by https://github.com/foxglove/schemas
|
|
2
|
+
|
|
3
|
+
import { Color } from "./Color";
|
|
4
|
+
import { Point2 } from "./Point2";
|
|
5
|
+
import { Time } from "./Time";
|
|
6
|
+
|
|
7
|
+
/** A text label on a 2D image */
|
|
8
|
+
export type TextAnnotation = {
|
|
9
|
+
/** Timestamp of annotation */
|
|
10
|
+
timestamp: Time;
|
|
11
|
+
|
|
12
|
+
/** Bottom-left origin of the text label in 2D image coordinates (pixels) */
|
|
13
|
+
position: Point2;
|
|
14
|
+
|
|
15
|
+
/** Text to display */
|
|
16
|
+
text: string;
|
|
17
|
+
|
|
18
|
+
/** Font size in pixels */
|
|
19
|
+
font_size: number;
|
|
20
|
+
|
|
21
|
+
/** Text color */
|
|
22
|
+
text_color: Color;
|
|
23
|
+
|
|
24
|
+
/** Background fill color */
|
|
25
|
+
background_color: Color;
|
|
26
|
+
};
|
|
@@ -6,6 +6,7 @@ export * from "./CompressedImage";
|
|
|
6
6
|
export * from "./CubePrimitive";
|
|
7
7
|
export * from "./CylinderPrimitive";
|
|
8
8
|
export * from "./FrameTransform";
|
|
9
|
+
export * from "./FrameTransforms";
|
|
9
10
|
export * from "./GeoJSON";
|
|
10
11
|
export * from "./Grid";
|
|
11
12
|
export * from "./ImageAnnotations";
|
|
@@ -35,6 +36,7 @@ export * from "./SceneEntityDeletion";
|
|
|
35
36
|
export * from "./SceneEntityDeletionType";
|
|
36
37
|
export * from "./SceneUpdate";
|
|
37
38
|
export * from "./SpherePrimitive";
|
|
39
|
+
export * from "./TextAnnotation";
|
|
38
40
|
export * from "./TextPrimitive";
|
|
39
41
|
export * from "./TriangleListPrimitive";
|
|
40
42
|
export * from "./Vector2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./CompressedImage"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./CubePrimitive"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./CylinderPrimitive"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./FrameTransform"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./FrameTransforms"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GeoJSON"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./Grid"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./ImageAnnotations"), exports);
|
|
@@ -38,6 +39,7 @@ tslib_1.__exportStar(require("./SceneEntityDeletion"), exports);
|
|
|
38
39
|
tslib_1.__exportStar(require("./SceneEntityDeletionType"), exports);
|
|
39
40
|
tslib_1.__exportStar(require("./SceneUpdate"), exports);
|
|
40
41
|
tslib_1.__exportStar(require("./SpherePrimitive"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./TextAnnotation"), exports);
|
|
41
43
|
tslib_1.__exportStar(require("./TextPrimitive"), exports);
|
|
42
44
|
tslib_1.__exportStar(require("./TriangleListPrimitive"), exports);
|
|
43
45
|
tslib_1.__exportStar(require("./Vector2"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,8DAAoC;AACpC,6DAAmC;AACnC,kDAAwB;AACxB,4DAAkC;AAClC,0DAAgC;AAChC,8DAAoC;AACpC,2DAAiC;AACjC,oDAA0B;AAC1B,iDAAuB;AACvB,6DAAmC;AACnC,yDAA+B;AAC/B,sDAA4B;AAC5B,0DAAgC;AAChC,qDAA2B;AAC3B,wDAA8B;AAC9B,gDAAsB;AACtB,qDAA2B;AAC3B,2DAAiC;AACjC,wDAA8B;AAC9B,+DAAqC;AACrC,mDAAyB;AACzB,mDAAyB;AACzB,uDAA6B;AAC7B,6DAAmC;AACnC,iEAAuC;AACvC,iDAAuB;AACvB,wDAA8B;AAC9B,yDAA+B;AAC/B,mEAAyC;AACzC,uDAA6B;AAC7B,qDAA2B;AAC3B,wDAA8B;AAC9B,gEAAsC;AACtC,oEAA0C;AAC1C,wDAA8B;AAC9B,4DAAkC;AAClC,0DAAgC;AAChC,kEAAwC;AACxC,oDAA0B;AAC1B,oDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,8DAAoC;AACpC,6DAAmC;AACnC,kDAAwB;AACxB,4DAAkC;AAClC,0DAAgC;AAChC,8DAAoC;AACpC,2DAAiC;AACjC,4DAAkC;AAClC,oDAA0B;AAC1B,iDAAuB;AACvB,6DAAmC;AACnC,yDAA+B;AAC/B,sDAA4B;AAC5B,0DAAgC;AAChC,qDAA2B;AAC3B,wDAA8B;AAC9B,gDAAsB;AACtB,qDAA2B;AAC3B,2DAAiC;AACjC,wDAA8B;AAC9B,+DAAqC;AACrC,mDAAyB;AACzB,mDAAyB;AACzB,uDAA6B;AAC7B,6DAAmC;AACnC,iEAAuC;AACvC,iDAAuB;AACvB,wDAA8B;AAC9B,yDAA+B;AAC/B,mEAAyC;AACzC,uDAA6B;AAC7B,qDAA2B;AAC3B,wDAA8B;AAC9B,gEAAsC;AACtC,oEAA0C;AAC1C,wDAA8B;AAC9B,4DAAkC;AAClC,2DAAiC;AACjC,0DAAgC;AAChC,kEAAwC;AACxC,oDAA0B;AAC1B,oDAA0B"}
|
|
@@ -6,6 +6,7 @@ export * from "./CompressedImage";
|
|
|
6
6
|
export * from "./CubePrimitive";
|
|
7
7
|
export * from "./CylinderPrimitive";
|
|
8
8
|
export * from "./FrameTransform";
|
|
9
|
+
export * from "./FrameTransforms";
|
|
9
10
|
export * from "./GeoJSON";
|
|
10
11
|
export * from "./Grid";
|
|
11
12
|
export * from "./ImageAnnotations";
|
|
@@ -35,6 +36,7 @@ export * from "./SceneEntityDeletion";
|
|
|
35
36
|
export * from "./SceneEntityDeletionType";
|
|
36
37
|
export * from "./SceneUpdate";
|
|
37
38
|
export * from "./SpherePrimitive";
|
|
39
|
+
export * from "./TextAnnotation";
|
|
38
40
|
export * from "./TextPrimitive";
|
|
39
41
|
export * from "./TriangleListPrimitive";
|
|
40
42
|
export * from "./Vector2";
|