Skip to content

Commit

Permalink
Add missing documentation for PointsAnnotation outline_color and `t…
Browse files Browse the repository at this point in the history
…hickness` fields (#58)

**Public-Facing Changes**
Added missing documentation for PointsAnnotation `outline_color` and `thickness` fields

**Description**
Foxglove Studio depended on the values of these fields, but they were not documented.

Relates to https://github.com/foxglove/studio/issues/4080
  • Loading branch information
jtbandes authored Aug 10, 2022
1 parent e309363 commit e31bdfd
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 12 deletions.
8 changes: 7 additions & 1 deletion ros_foxglove_msgs/ros1/PointsAnnotation.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion ros_foxglove_msgs/ros2/PointsAnnotation.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 27 additions & 1 deletion schemas/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion schemas/jsonschema/ImageAnnotations.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 28 additions & 1 deletion schemas/jsonschema/PointsAnnotation.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions schemas/proto/foxglove/PointsAnnotation.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion schemas/ros1/PointsAnnotation.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion schemas/ros2/PointsAnnotation.msg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion schemas/typescript/PointsAnnotation.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,17 575,28 @@ const foxglove_PointsAnnotation: FoxgloveMessageSchema = {
description: "Points in 2D image coordinates",
array: true,
},
{
name: "outline_color",
type: { type: "nested", schema: foxglove_Color },
description: "Outline color",
},
{
name: "outline_colors",
type: { type: "nested", schema: foxglove_Color },
description: "Outline colors",
description:
"Per-point colors, if `type` is `POINTS`, or per-segment stroke colors, if `type` is `LINE_LIST`.",
array: true,
},
{
name: "fill_color",
type: { type: "nested", schema: foxglove_Color },
description: "Fill color",
},
{
name: "thickness",
type: { type: "primitive", name: "float64" },
description: "Stroke thickness",
},
],
};

Expand Down

0 comments on commit e31bdfd

Please sign in to comment.