seqviz icon indicating copy to clipboard operation
seqviz copied to clipboard

Render an SVG in an annotation

Open leshane opened this issue 2 years ago • 0 comments

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

leshane avatar Sep 16 '23 19:09 leshane