@weng-lab/genomebrowser 1.7.2-beta.1 → 1.7.2-beta.2

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.
@@ -5,7 +5,7 @@ export interface GenomicElement {
5
5
  end: number;
6
6
  };
7
7
  }
8
- export declare function mergeTranscripts(gene: TranscriptList, name?: string): Transcript;
8
+ export declare function mergeTranscripts(gene: TranscriptList): Transcript;
9
9
  export declare function mergeUTRs(utrs: GenomicElement[]): GenomicElement[];
10
10
  export declare function renderTranscript(uTranscript: Transcript, x: (value: number) => number, rowHeight: number, width: number): RenderedTranscript;
11
11
  export declare function convertTranscriptCoordinates(transcript: Transcript, x: (x: number) => number): Transcript;
@@ -1,2 +1,2 @@
1
1
  import { PackTranscriptProps } from './types';
2
- export default function PackTranscript({ id, data, height, dimensions, color, onClick, onHover, onLeave, tooltip, }: PackTranscriptProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function PackTranscript({ id, data, geneName, height, dimensions, color, canonicalName, canonicalColor, highlightColor, onClick, onHover, onLeave, tooltip, }: PackTranscriptProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { SquishTranscriptProps } from './types';
2
2
  export declare function bestFontSize(height: number): number;
3
- export default function SquishTranscript({ id, data, geneName, height, dimensions, color, onClick, onHover, onLeave, tooltip, }: SquishTranscriptProps): import("react/jsx-runtime").JSX.Element;
3
+ export default function SquishTranscript({ id, data, geneName, height, dimensions, color, canonicalName, canonicalColor, highlightColor, onClick, onHover, onLeave, tooltip, }: SquishTranscriptProps): import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,9 @@ export interface TranscriptConfig extends Config<Transcript> {
7
7
  version: number;
8
8
  refetch?: LazyQueryExecFunction<any, OperationVariables>;
9
9
  geneName?: string;
10
+ canonicalName: string;
11
+ canonicalColor?: string;
12
+ highlightColor?: string;
10
13
  }
11
14
  interface TranscriptProps {
12
15
  id: string;
@@ -14,14 +17,16 @@ interface TranscriptProps {
14
17
  dimensions: TrackDimensions;
15
18
  height: number;
16
19
  color: string;
20
+ canonicalName?: string;
21
+ canonicalColor?: string;
22
+ highlightColor?: string;
17
23
  onClick?: (transcript: Transcript) => void;
18
24
  onHover?: (transcript: Transcript) => void;
19
25
  onLeave?: (transcript: Transcript) => void;
20
26
  tooltip?: React.FC<Transcript>;
21
- }
22
- export interface SquishTranscriptProps extends TranscriptProps {
23
27
  geneName: string;
24
28
  }
29
+ export type SquishTranscriptProps = TranscriptProps;
25
30
  export type PackTranscriptProps = TranscriptProps;
26
31
  export interface Transcript {
27
32
  id: string;