Skip to content

Render an SVG in an annotation  #229

@leshane

Description

@leshane

Summary of then feature idea. (Why)

I want to be able to render an icon beside the name in an annotation. Some annotations cover sequences that have an identified biological function that can be represented by a symbolic graphic (e.g. SBOL visual).

Description of the ideal solution. (What)

  • I can pass an SVG specification for a icon as a parameter to an annotation, similar to the way I pass a text string for a name as a parameter to an annotation.
  • Like name, a icon is an optional parameter.
  • If the icon parameter has an SVG value, SeqViz should display the designated icon to the left of the annotation name.
  • The icon and name combination should be centered in the annotation
  • If no icon is provided, the name alone should be centered in the annotation.

Conceptual mock

Screenshot 2023-09-16 at 3 31 33 PM

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions