@anocca/sequence-viewer-utils
Home > @anocca/sequence-viewer-utils
Contains utilities, types and constants used by all @anocca/sequence-viewer- packages
Enumerations
Enumeration | Description |
---|---|
SeqAnnotationDirectionsEnum | The direction of an annotation |
Functions
Function | Description |
---|---|
getFont(size, weight) | Creates a font string based on fontSize and fontWeight |
getRatio(context) | Get the device pixel ratio |
scaleBuffer(canvas, width, height) | Scale the canvas according to the device pixel ratio |
Type Aliases
Type Alias | Description |
---|---|
Annotation | Annotation |
AnnotationFormProps | Props for an AnnotationForm component |
Annotations | List of annotations |
ChromatogramData | Chromatogram data to render the chromatogram |
CircularCameraProgress | The progress on zoom, angle and radius between 0 and 1 inclusive |
CircularSelection | Sequence selection defines lets say we have sequence of length 3000 and annotation of 4 bp length locations:
|
DrawFunction | The draw function, e.g. drawLinear or drawCircular that paints the canvas element |
Matrix | A transform matrix |
RenderData | Frequently updated data for drawCircular and drawLinear |
SearchResult | Search result |
SelectionRange | Selection range |
SequenceControllerRef | To programatically call onClickAnnotation to select annotation in the sequence controller |