@rcsb/rcsb-saguaro-app 4.4.0-models.9 → 4.4.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.
Files changed (92) hide show
  1. package/README.md +6 -1
  2. package/build/dist/RcsbAnnotationConfig/AnnotationConfigInterface.d.ts +32 -0
  3. package/build/dist/RcsbAnnotationConfig/RcsbAnnotationConstants.d.ts +3 -0
  4. package/build/dist/RcsbAnnotationConfig/RcsbDistributionConfig.d.ts +12 -0
  5. package/build/dist/RcsbChartWeb/RcsbChartComponent/AbstractChartComponent.d.ts +3 -3
  6. package/build/dist/RcsbChartWeb/RcsbChartComponent/AbstractChartImplementation.d.ts +1 -1
  7. package/build/dist/RcsbChartWeb/RcsbChartComponent/BarChartComponent.d.ts +1 -1
  8. package/build/dist/RcsbChartWeb/RcsbChartComponent/ChartConfigInterface.d.ts +21 -1
  9. package/build/dist/RcsbChartWeb/RcsbChartComponent/HistogramChartComponent.d.ts +1 -1
  10. package/build/dist/RcsbChartWeb/RcsbChartComponent/VictoryChartImplementations/Components/TooltipFactory.d.ts +7 -2
  11. package/build/dist/RcsbChartWeb/{RcsbChartData/BarChartData.d.ts → RcsbChartDataProvider/BarChartDataProvider.d.ts} +3 -4
  12. package/build/dist/RcsbChartWeb/{RcsbChartData → RcsbChartDataProvider}/ChartDataProviderInterface.d.ts +9 -1
  13. package/build/dist/RcsbChartWeb/{RcsbChartData/HistogramChartData.d.ts → RcsbChartDataProvider/HistogramChartDataProvider.d.ts} +3 -4
  14. package/build/dist/RcsbChartWeb/RcsbChartTools/ChartTools.d.ts +19 -29
  15. package/build/dist/RcsbExport/RcsbFvUI.d.ts +2 -2
  16. package/build/dist/RcsbFvExamples/ResidueDistribution.d.ts +1 -0
  17. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.d.ts +2 -2
  18. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -1
  19. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvPairwiseAligmentBuilder.d.ts +1 -1
  20. package/build/dist/RcsbFvWeb/RcsbFvBuilder.d.ts +1 -1
  21. package/build/dist/RcsbFvWeb/{WebTools/WebToolsManager.d.ts → RcsbFvComponents/ComponentsManager.d.ts} +2 -6
  22. package/build/dist/RcsbFvWeb/{WebTools → RcsbFvComponents}/LoaderSpinner.d.ts +0 -0
  23. package/build/dist/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +8 -0
  24. package/build/dist/RcsbFvWeb/{WebTools → RcsbFvComponents}/RcsbTabs.d.ts +0 -0
  25. package/build/dist/RcsbFvWeb/{WebTools → RcsbFvComponents}/SelectButton.d.ts +4 -3
  26. package/build/dist/RcsbFvWeb/RcsbFvComponents/SelectButtonManager.d.ts +17 -0
  27. package/build/dist/RcsbFvWeb/RcsbFvComponents/SelectButtonTitle.d.ts +6 -0
  28. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.d.ts +2 -1
  29. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AnnotationsBlockFactory.d.ts +2 -1
  30. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockFactoryInterface.d.ts +1 -0
  31. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/AlignmentTrackFactory.d.ts +3 -3
  32. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/AnnotationsTrackFactory.d.ts +3 -0
  33. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/Helper/TrackUtils.d.ts +9 -0
  34. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/PlainAlignmentTrackFactory.d.ts +1 -2
  35. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/SequenceTrackFactory.d.ts +5 -6
  36. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.d.ts +4 -1
  37. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AnnotationsTrackTitleFactory.d.ts +8 -0
  38. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ExperimentalAlignmentTrackTitleFactory.d.ts +13 -0
  39. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/InstanceSequenceTrackTitleFactory.d.ts +11 -0
  40. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/ModelAlignmentTrackTitleFactory.d.ts +13 -0
  41. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/SequenceTrackTitleFactory.d.ts +12 -0
  42. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryInterface.d.ts +2 -0
  43. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +7 -3
  44. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvChromosome.d.ts +2 -3
  45. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvEntity.d.ts +2 -3
  46. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAlignment.d.ts +2 -3
  47. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvGroupAnnotation.d.ts +2 -3
  48. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvInstance.d.ts +2 -3
  49. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.d.ts +5 -3
  50. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvModuleInterface.d.ts +8 -2
  51. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvPairwiseAlignment.d.ts +2 -3
  52. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvProteinSequence.d.ts +2 -3
  53. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvUniprot.d.ts +2 -3
  54. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotEntity.d.ts +2 -3
  55. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvUniprotInstance.d.ts +2 -3
  56. package/build/dist/RcsbGroupWeb/RcsbGroupBuilder.d.ts +4 -2
  57. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartLayout.d.ts +0 -1
  58. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbStatsChartComponent.d.ts +2 -2
  59. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.d.ts +2 -0
  60. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupDisplay.d.ts +4 -2
  61. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.d.ts +2 -0
  62. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/RcsbResidueChartComponent.d.ts +17 -0
  63. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/DistributionChartFactoryImpl/DistributionChartFactory.d.ts +8 -0
  64. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryImpl/MultipleTrackDistributionFactory.d.ts +8 -0
  65. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryImpl/NumericalTrackDistributionFactory.d.ts +8 -0
  66. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryImpl/TrackDistributionFactory.d.ts +10 -0
  67. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryInterface.d.ts +24 -0
  68. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/TrackBlockFactoryImpl/TrackBlockFactory.d.ts +14 -0
  69. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/Helper.d.ts +4 -0
  70. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.d.ts +8 -0
  71. package/build/dist/RcsbRequest/RcsbRequestContextManager.d.ts +2 -2
  72. package/build/dist/RcsbSeacrh/FacetStore/SingleFacets.d.ts +2 -0
  73. package/build/dist/RcsbSeacrh/FacetTools.d.ts +29 -6
  74. package/build/dist/RcsbSeacrh/SearchQueryTools.d.ts +3 -2
  75. package/build/dist/RcsbSeacrh/SearchRequestProperty.d.ts +2 -2
  76. package/build/dist/RcsbUtils/Helpers/Operator.d.ts +1 -0
  77. package/build/dist/RcsbUtils/Helpers/TagDelimiter.d.ts +5 -0
  78. package/build/dist/{RcsbFvWeb → RcsbUtils}/PairwiseAlignmentTools/PairwiseAlignmentBuilder.d.ts +0 -0
  79. package/build/dist/app.d.ts +1 -0
  80. package/build/dist/app.js +1 -1
  81. package/build/dist/constants.js +1 -1
  82. package/build/dist/e559bf06bc84fd9525e6.woff +0 -0
  83. package/build/dist/ea98e12d2d58747f9fc5.woff2 +0 -0
  84. package/build/dist/plot.d.ts +1 -1
  85. package/build/dist/plot.js +1 -1
  86. package/build/dist/plot.js.LICENSE.txt +9 -0
  87. package/build/dist/worker.js +1 -1
  88. package/package.json +30 -28
  89. package/build/dist/7ff3ca6fa798de3f8ac2.woff +0 -0
  90. package/build/dist/RcsbChartWeb/RcsbChartData/ChartDataInterface.d.ts +0 -7
  91. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackFactoryImpl/ObservedAlignmentTrackFactory.d.ts +0 -17
  92. package/build/dist/f2539a501be3a673de05.woff2 +0 -0
package/README.md CHANGED
@@ -19,12 +19,17 @@ RcsbFvWebApp.buildInstanceFv("pfv", "4Z35.A", {
19
19
  </script>
20
20
  --->
21
21
 
22
- ### Node Module Instalation
22
+ ### Node Module Installation
23
23
  `npm install @rcsb/rcsb-saguaro-app`
24
24
 
25
25
  ### CDN JavaScript
26
26
  `<script src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app/build/dist/app.js" type="text/javascript"></script>`
27
27
 
28
+ ### Testing
29
+ - `npm install`
30
+ - `npm run devServer`
31
+ - Go to `http://localhost:9000/UniprotGroupFv.html`
32
+
28
33
  ### JavaScript Examples
29
34
  * [PDB Instance Chain View](https://rcsb.github.io/rcsb-saguaro-app/examples/instance.html)
30
35
  * [Include Custom Tracks](https://rcsb.github.io/rcsb-saguaro-app/examples/add_new_tracks.html)
@@ -3,6 +3,8 @@ export interface AnnotationConfigInterface {
3
3
  provenance_color_code: {
4
4
  external: string;
5
5
  rcsb_pdb: string;
6
+ rcsb_link: string;
7
+ csm: string;
6
8
  };
7
9
  merge?: Array<{
8
10
  merged_types: Array<string>;
@@ -31,3 +33,33 @@ export interface RcsbAnnotationConfigInterface {
31
33
  ignore?: boolean;
32
34
  fitTitleWidth?: boolean;
33
35
  }
36
+ export interface RcsbDistributionConfigInterface {
37
+ blockConfig: RcsbTrackBlockConfigInterface[];
38
+ trackConfig: RcsbTrackConfigInterface[];
39
+ }
40
+ export interface RcsbTrackBlockConfigInterface {
41
+ type: string;
42
+ title: string;
43
+ trackType: string[];
44
+ sort: string[];
45
+ contentType: "binary" | "numerical";
46
+ undefTrack?: {
47
+ label: string;
48
+ color: string;
49
+ id: string;
50
+ };
51
+ axisLabel?: string;
52
+ }
53
+ export interface RcsbTrackConfigInterface {
54
+ type: string;
55
+ color?: string;
56
+ label?: string;
57
+ numericalCategories?: {
58
+ thresholds: number[];
59
+ categories: {
60
+ label: string;
61
+ color: string;
62
+ id: string;
63
+ }[];
64
+ };
65
+ }
@@ -1,10 +1,13 @@
1
1
  export declare const RcsbAnnotationConstants: {
2
2
  provenanceColorCode: {
3
+ rcsbLink: string;
3
4
  rcsbPdb: string;
4
5
  external: string;
6
+ csm: string;
5
7
  };
6
8
  provenanceName: {
7
9
  pdb: string;
10
+ csm: string;
8
11
  mmseqs: string;
9
12
  promotif: string;
10
13
  userInput: string;
@@ -0,0 +1,12 @@
1
+ import { RcsbDistributionConfigInterface, RcsbTrackBlockConfigInterface, RcsbTrackConfigInterface } from "./AnnotationConfigInterface";
2
+ export declare class RcsbDistributionConfig {
3
+ private readonly distributionConfig;
4
+ private trackToBlockType;
5
+ private trackConfig;
6
+ private blockConfig;
7
+ constructor(dcm?: RcsbDistributionConfigInterface);
8
+ getBlockType(trackType: string): string;
9
+ getBlockConfig(type: string): RcsbTrackBlockConfigInterface;
10
+ getTrackConfig(type: string): RcsbTrackConfigInterface;
11
+ private processConfig;
12
+ }
@@ -1,6 +1,6 @@
1
1
  import { ChartConfigInterface, ChartObjectInterface } from "./ChartConfigInterface";
2
2
  import * as React from "react";
3
- import { ChartDataProviderInterface } from "../RcsbChartData/ChartDataProviderInterface";
3
+ import { ChartDataProviderInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
4
4
  import { AbstractChartImplementationType } from "./AbstractChartImplementation";
5
5
  interface AbstractChartState {
6
6
  data: ChartObjectInterface[];
@@ -21,8 +21,8 @@ export declare abstract class AbstractChartComponent extends React.Component<Abs
21
21
  readonly state: AbstractChartState;
22
22
  componentDidMount(): void;
23
23
  componentWillUnmount(): void;
24
- protected unsubscribe(): void;
25
- protected subscribe(): void;
24
+ private unsubscribe;
25
+ private subscribe;
26
26
  private updateChartMap;
27
27
  private asyncUpdate;
28
28
  }
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ChartDataReaderInterface } from "../RcsbChartData/ChartDataProviderInterface";
2
+ import { ChartDataReaderInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
3
3
  import { ChartConfigInterface } from "./ChartConfigInterface";
4
4
  export interface AbstractChartImplementationInterface {
5
5
  height: number;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChartDataProviderInterface } from "../RcsbChartData/ChartDataProviderInterface";
2
+ import { ChartDataProviderInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
3
3
  import { AbstractChartComponent } from "./AbstractChartComponent";
4
4
  export declare class BarChartComponent extends AbstractChartComponent {
5
5
  protected readonly dataProvider: ChartDataProviderInterface;
@@ -1,8 +1,12 @@
1
- import { ChartDataInterface } from "../RcsbChartData/ChartDataInterface";
1
+ import { ChartDataInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
2
2
  import * as React from "react";
3
3
  export interface ChartObjectInterface {
4
4
  label: string | number;
5
5
  population: number;
6
+ objectConfig?: {
7
+ objectId?: string;
8
+ color?: string;
9
+ };
6
10
  }
7
11
  export declare type BarClickCallbackType = (datum: ChartDataInterface, data: ChartDataInterface[], e: React.MouseEvent<any>) => void;
8
12
  export interface ChartConfigInterface {
@@ -18,6 +22,22 @@ export interface ChartConfigInterface {
18
22
  };
19
23
  axisLabel?: string;
20
24
  barClickCallback?: BarClickCallbackType;
25
+ sort?: (b: ChartDataInterface, a: ChartDataInterface) => number;
26
+ tooltipText?: (a: ChartDataInterface) => string;
27
+ chartDisplayConfig?: Partial<ChartDisplayConfigInterface>;
28
+ }
29
+ export interface ChartDisplayConfigInterface {
30
+ paddingLeft: number;
31
+ paddingTopLarge: number;
32
+ paddingTop: number;
33
+ paddingRight: number;
34
+ constWidth: number;
35
+ constHeight: number;
36
+ xIncrement: number;
37
+ xDomainPadding: number;
38
+ barWidth: number;
39
+ fontFamily: string;
40
+ fontSize: number;
21
41
  }
22
42
  export declare enum ChartType {
23
43
  pie = "pie",
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChartDataProviderInterface } from "../RcsbChartData/ChartDataProviderInterface";
2
+ import { ChartDataProviderInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
3
3
  import { AbstractChartComponent } from "./AbstractChartComponent";
4
4
  export declare class HistogramChartComponent extends AbstractChartComponent {
5
5
  protected readonly dataProvider: ChartDataProviderInterface;
@@ -1,6 +1,11 @@
1
1
  import * as React from "react";
2
2
  import { VictoryTooltipProps } from "victory-tooltip";
3
- export declare class TooltipFactory extends React.Component<VictoryTooltipProps, any> {
4
- static getTooltip(props: VictoryTooltipProps): JSX.Element;
3
+ import { ChartConfigInterface } from "../../ChartConfigInterface";
4
+ declare type TooltipPropsType = VictoryTooltipProps & {
5
+ tooltipText?: ChartConfigInterface["tooltipText"];
6
+ };
7
+ export declare class TooltipFactory extends React.Component<TooltipPropsType, any> {
8
+ static getTooltip(props: TooltipPropsType): JSX.Element;
5
9
  private static text;
6
10
  }
11
+ export {};
@@ -1,11 +1,10 @@
1
1
  import { ChartConfigInterface, ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
2
- import { ChartDataProviderInterface } from "./ChartDataProviderInterface";
3
- import { ChartDataInterface } from "./ChartDataInterface";
4
- export declare class BarChartData implements ChartDataProviderInterface {
2
+ import { ChartDataProviderInterface, ChartDataInterface } from "./ChartDataProviderInterface";
3
+ export declare class BarChartDataProvider implements ChartDataProviderInterface {
5
4
  private stringTicks;
6
5
  private excludedData;
7
6
  private data;
8
- setData(chartData: ChartObjectInterface[], chartSubData: ChartObjectInterface[], config: ChartConfigInterface): void;
7
+ setData(chartData: ChartObjectInterface[], chartSubData: ChartObjectInterface[], config?: ChartConfigInterface): void;
9
8
  getChartData(): {
10
9
  data: ChartDataInterface[];
11
10
  excludedData: ChartDataInterface[];
@@ -1,5 +1,13 @@
1
1
  import { ChartConfigInterface, ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
2
- import { ChartDataInterface } from "./ChartDataInterface";
2
+ export interface ChartDataInterface {
3
+ x: string | number;
4
+ y: number;
5
+ yc?: number;
6
+ label?: string;
7
+ isLabel?: boolean;
8
+ color?: string;
9
+ id?: string;
10
+ }
3
11
  export interface ChartDataProviderInterface extends ChartDataReaderInterface {
4
12
  setData(data: ChartObjectInterface[], subData: ChartObjectInterface[], config: ChartConfigInterface): void;
5
13
  }
@@ -1,10 +1,9 @@
1
- import { ChartDataProviderInterface } from "./ChartDataProviderInterface";
1
+ import { ChartDataProviderInterface, ChartDataInterface } from "./ChartDataProviderInterface";
2
2
  import { ChartConfigInterface, ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
3
- import { ChartDataInterface } from "./ChartDataInterface";
4
- export declare class HistogramChartData implements ChartDataProviderInterface {
3
+ export declare class HistogramChartDataProvider implements ChartDataProviderInterface {
5
4
  private config;
6
5
  private data;
7
- setData(chartData: ChartObjectInterface[], chartSubData: ChartObjectInterface[], config: ChartConfigInterface): void;
6
+ setData(chartData: ChartObjectInterface[], chartSubData: ChartObjectInterface[], config?: ChartConfigInterface): void;
8
7
  getChartData(): {
9
8
  data: ChartDataInterface[];
10
9
  };
@@ -1,33 +1,23 @@
1
- import { ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
2
- import { ChartDataInterface } from "../RcsbChartData/ChartDataInterface";
1
+ import { ChartDisplayConfigInterface, ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
2
+ import { ChartDataInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
3
3
  export declare class ChartTools {
4
- static readonly paddingLeft: number;
5
- static readonly paddingTopLarge: number;
6
- static readonly paddingTop: number;
7
- static readonly paddingRight: number;
8
- static readonly constWidth: number;
9
- static readonly constHeight: number;
10
- static readonly xIncrement: number;
11
- static readonly xDomainPadding: number;
12
- static readonly barWidth: number;
13
- static readonly fontFamily: string;
14
- static readonly fontSize: number;
15
- static mergeGroupSize(data: ChartObjectInterface[], size: number, mergeName?: string): {
16
- x: string;
17
- y: number;
18
- }[];
19
- static mostPopulatedGroups(data: ChartObjectInterface[], maxGroups: number, mergeName?: string): {
20
- x: string;
21
- y: number;
22
- }[];
23
- static mergeDomainMaxValue(data: ChartObjectInterface[], maxValue: number): {
24
- x: number;
25
- y: number;
26
- }[];
4
+ private static readonly paddingLeft;
5
+ private static readonly paddingTopLarge;
6
+ private static readonly paddingTop;
7
+ private static readonly paddingRight;
8
+ private static readonly constWidth;
9
+ private static readonly constHeight;
10
+ private static readonly xIncrement;
11
+ private static readonly xDomainPadding;
12
+ private static readonly barWidth;
13
+ private static readonly fontFamily;
14
+ private static readonly fontSize;
15
+ static getConfig<T>(key: keyof ChartDisplayConfigInterface, chartDisplayConfig: Partial<ChartDisplayConfigInterface>): T;
16
+ static mergeGroupSize(data: ChartObjectInterface[], size: number, mergeName?: string): ChartDataInterface[];
17
+ static mostPopulatedGroups(data: ChartObjectInterface[], maxGroups: number, mergeName?: string): ChartDataInterface[];
18
+ static mergeDomainMaxValue(data: ChartObjectInterface[], maxValue: number): ChartDataInterface[];
27
19
  static labelsAsString(data: ChartObjectInterface[]): ChartDataInterface[];
28
- static labelsAsNumber(data: ChartObjectInterface[]): {
29
- x: number;
30
- y: number;
31
- }[];
20
+ static labelsAsNumber(data: ChartObjectInterface[]): ChartDataInterface[];
32
21
  static addComplementaryData(data: ChartDataInterface[], subData: ChartDataInterface[]): void;
22
+ static mergeData(data: ChartDataInterface[]): ChartDataInterface[];
33
23
  }
@@ -1,5 +1,5 @@
1
- import { GroupedOptionsInterface, SelectOptionInterface } from "../RcsbFvWeb/WebTools/SelectButton";
2
- import { SelectButtonConfigInterface } from "../RcsbFvWeb/WebTools/WebToolsManager";
1
+ import { GroupedOptionsInterface, SelectOptionInterface } from "../RcsbFvWeb/RcsbFvComponents/SelectButton";
2
+ import { SelectButtonConfigInterface } from "../RcsbFvWeb/RcsbFvComponents/ComponentsManager";
3
3
  export declare class RcsbFvUI {
4
4
  static clearSelectButton(elementFvId: string, selectButtonId: string): void;
5
5
  static createSelectButton(elementFvId: string, selectButtonId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,8 +1,8 @@
1
1
  import { PolymerEntityInstanceTranslate } from "../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
2
2
  import { RcsbFv } from "@rcsb/rcsb-saguaro";
3
3
  import { RcsbFvModuleBuildInterface, RcsbFvModuleInterface, RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
4
- import { SelectButtonConfigInterface } from "../WebTools/WebToolsManager";
5
- import { GroupedOptionsInterface, SelectOptionInterface } from "../WebTools/SelectButton";
4
+ import { SelectButtonConfigInterface } from "../RcsbFvComponents/ComponentsManager";
5
+ import { GroupedOptionsInterface, SelectOptionInterface } from "../RcsbFvComponents/SelectButton";
6
6
  export interface CreateFvInterface {
7
7
  elementId: string;
8
8
  fvModuleI: new (elementId: string, rcsbFv: RcsbFv) => RcsbFvModuleInterface;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { RcsbContextType, RcsbFvAdditionalConfig } from "../RcsbFvModule/RcsbFvModuleInterface";
3
3
  import { PolymerEntityInstanceInterface } from "../../RcsbCollectTools/DataCollectors/PolymerEntityInstancesCollector";
4
- import { SelectOptionProps } from "../WebTools/SelectButton";
4
+ import { SelectOptionProps } from "../RcsbFvComponents/SelectButton";
5
5
  import { RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
6
6
  export interface InstanceSequenceOnchangeInterface extends PolymerEntityInstanceInterface {
7
7
  }
@@ -1,5 +1,5 @@
1
- import { PairwiseAlignmentInterface } from "../PairwiseAlignmentTools/PairwiseAlignmentBuilder";
2
1
  import { RcsbFvAdditionalConfig, RcsbFvModulePublicInterface } from "../RcsbFvModule/RcsbFvModuleInterface";
2
+ import { PairwiseAlignmentInterface } from "../../RcsbUtils/PairwiseAlignmentTools/PairwiseAlignmentBuilder";
3
3
  export declare class RcsbFvPairwiseAligmentBuilder {
4
4
  static buildPairwiseAlignment(elementId: string, psa: PairwiseAlignmentInterface, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
5
5
  }
@@ -1,10 +1,10 @@
1
1
  import { RcsbFvAdditionalConfig, RcsbFvModulePublicInterface } from "./RcsbFvModule/RcsbFvModuleInterface";
2
- import { PairwiseAlignmentInterface } from "./PairwiseAlignmentTools/PairwiseAlignmentBuilder";
3
2
  import { UniprotSequenceConfig } from "./RcsbFvBuilder/RcsbFvUniprotBuilder";
4
3
  import { InstanceSequenceConfig, InstanceSequenceOnchangeInterface } from "./RcsbFvBuilder/RcsbFvInstanceBuilder";
5
4
  import { PfvBuilderInterface } from "./RcsbFvBuilder/RcsbFvProteinSequenceBuilder";
6
5
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
7
6
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
7
+ import { PairwiseAlignmentInterface } from "../RcsbUtils/PairwiseAlignmentTools/PairwiseAlignmentBuilder";
8
8
  export declare function unmount(elementId: string): void;
9
9
  export declare function buildMultipleAlignmentSequenceFv(elementFvId: string, elementSelectId: string, upAcc: string, config?: UniprotSequenceConfig, additionalConfig?: RcsbFvAdditionalConfig): Promise<RcsbFvModulePublicInterface>;
10
10
  export declare function buildEntitySummaryFv(elementFvId: string, elementSelectId: string, entityId: string): Promise<RcsbFvModulePublicInterface>;
@@ -8,18 +8,14 @@ export interface SelectButtonConfigInterface {
8
8
  optionProps?: (props: SelectOptionProps) => JSX.Element;
9
9
  isAdditionalButton?: boolean;
10
10
  }
11
- export declare class WebToolsManager {
12
- private static readonly suffix;
13
- private static readonly suffixAdditionalButton;
11
+ export declare class ComponentsManager {
14
12
  private static readonly loaderSpinner;
13
+ private static readonly selectButtonMap;
15
14
  private static readonly nodeMap;
16
15
  static buildSelectButton(elementId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
17
16
  static addSelectButton(elementId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
18
- private static innerBuildSelectButton;
19
- private static jsxButton;
20
17
  static clearSelectButton(elementId: string): void;
21
18
  static clearAdditionalSelectButton(elementId: string): void;
22
- static innerClearSelectButton(elementId: string, suffix: string): void;
23
19
  static buildLoaderSpinner(elementId: string): void;
24
20
  static unmountLoaderSpinner(elementId: string): void;
25
21
  private static hideElement;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from "react";
2
+ export declare class MountableComponent {
3
+ private readonly element;
4
+ private root;
5
+ constructor(element: HTMLElement);
6
+ render(node: ReactNode): void;
7
+ unmount(): void;
8
+ }
@@ -8,8 +8,8 @@ export declare type SelectOptionProps = OptionProps<OptionPropsInterface, false,
8
8
  interface SelectButtonInterface {
9
9
  elementId: string;
10
10
  options?: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>;
11
- additionalOptions?: Array<SelectOptionInterface>;
12
11
  addTitle: boolean;
12
+ renderTitle: (title: string) => void;
13
13
  defaultValue?: string | undefined | null;
14
14
  width?: number;
15
15
  dropdownTitle?: string;
@@ -35,8 +35,9 @@ interface SelectButtonState {
35
35
  selectedOption: OptionPropsInterface;
36
36
  }
37
37
  export declare class SelectButton extends React.Component<SelectButtonInterface, SelectButtonState> {
38
- static readonly BUTTON_CONTAINER_DIV_SUFFIX = "_buttonContainerDiv";
38
+ private static readonly BUTTON_CONTAINER_DIV_SUFFIX;
39
39
  private defaultValue;
40
+ private currentOption;
40
41
  readonly state: SelectButtonState;
41
42
  constructor(props: SelectButtonInterface);
42
43
  private change;
@@ -44,10 +45,10 @@ export declare class SelectButton extends React.Component<SelectButtonInterface,
44
45
  componentDidMount(): void;
45
46
  render(): JSX.Element;
46
47
  private selectRender;
47
- private titleRender;
48
48
  private selectButtonRender;
49
49
  private innerSelectButtonRender;
50
50
  private configStyle;
51
51
  private getSelectOpt;
52
+ private renderTitle;
52
53
  }
53
54
  export {};
@@ -0,0 +1,17 @@
1
+ import { GroupedOptionsInterface, SelectOptionInterface } from "./SelectButton";
2
+ import { SelectButtonConfigInterface } from "./ComponentsManager";
3
+ export declare class SelectButtonManager {
4
+ private readonly elementId;
5
+ private static readonly MAIN_BUTTON_SUFFIX;
6
+ private static readonly ADDITIONAL_BUTTON_SUFFIX;
7
+ private static readonly SELECT_TITLE_DIV;
8
+ private readonly selectComponent;
9
+ constructor(elementId: string);
10
+ createButton(options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
11
+ addButton(options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
12
+ unmountButton(): void;
13
+ unmountAdditionalButton(): void;
14
+ private button;
15
+ private renderTitle;
16
+ private createDiv;
17
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export declare class SelectButtonTitle extends React.Component<{
3
+ title: string;
4
+ }> {
5
+ render(): JSX.Element;
6
+ }
@@ -5,6 +5,7 @@ import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
5
5
  import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
6
6
  export declare class AlignmentBlockFactory implements BlockFactoryInterface<[AlignmentRequestContextType, AlignmentResponse], [AlignmentRequestContextType, TargetAlignment]> {
7
7
  readonly trackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>;
8
- constructor(alignmentTrackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>);
8
+ readonly trackConfigModifier: (alignmentContext: AlignmentRequestContextType, targetAlignment: TargetAlignment) => Promise<Partial<RcsbFvRowConfigInterface>>;
9
+ constructor(alignmentTrackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>, trackModifier: (alignmentContext: AlignmentRequestContextType, targetAlignment: TargetAlignment) => Promise<Partial<RcsbFvRowConfigInterface>>);
9
10
  getBlock(alignmentRequestContext: AlignmentRequestContextType, alignmentData: AlignmentResponse): Promise<RcsbFvRowConfigInterface[]>;
10
11
  }
@@ -9,6 +9,7 @@ export declare class AnnotationsBlockFactory implements BlockFactoryInterface<[A
9
9
  private readonly annotationBlockManager;
10
10
  private readonly annotationsBlockData;
11
11
  readonly trackFactory: TrackFactoryInterface<[TrackManagerInterface]>;
12
- constructor(annotationBlockManager: BlockManagerInterface<[AnnotationRequestContext, AnnotationFeatures[]]>, annotationTrackFactory: TrackFactoryInterface<[TrackManagerInterface]>);
12
+ readonly trackConfigModifier: (trackManager: TrackManagerInterface) => Promise<Partial<RcsbFvRowConfigInterface>>;
13
+ constructor(annotationBlockManager: BlockManagerInterface<[AnnotationRequestContext, AnnotationFeatures[]]>, annotationTrackFactory: TrackFactoryInterface<[TrackManagerInterface]>, trackModifier: (trackManager: TrackManagerInterface) => Promise<Partial<RcsbFvRowConfigInterface>>);
13
14
  getBlock(annotationsRequestContext: AnnotationRequestContext, annotations: AnnotationFeatures[]): Promise<RcsbFvRowConfigInterface[]>;
14
15
  }
@@ -2,5 +2,6 @@ import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
2
2
  import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
3
3
  export interface BlockFactoryInterface<T extends any[], S extends any[]> {
4
4
  readonly trackFactory: TrackFactoryInterface<S>;
5
+ readonly trackConfigModifier: (...args: S) => Promise<Partial<RcsbFvRowConfigInterface>>;
5
6
  getBlock(...args: T): Promise<RcsbFvRowConfigInterface[]>;
6
7
  }
@@ -1,8 +1,9 @@
1
- import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
1
+ import { RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
2
2
  import { AlignedRegion, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
3
3
  import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
4
  import { TrackFactoryInterface } from "../TrackFactoryInterface";
5
5
  import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
6
+ import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
6
7
  export declare type AlignmentRequestContextType = AlignmentCollectConfig & {
7
8
  querySequence?: string;
8
9
  };
@@ -10,9 +11,8 @@ export declare class AlignmentTrackFactory implements TrackFactoryInterface<[Ali
10
11
  private readonly sequenceTrackFactory;
11
12
  private readonly entityInstanceTranslator;
12
13
  private readonly trackTitleFactory;
13
- constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
14
+ constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate, trackTitleFactory?: TrackTitleFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>);
14
15
  getTrack(alignmentRequestContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList?: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>): Promise<RcsbFvRowConfigInterface>;
15
- buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
16
16
  private getAlignmentTrackConfiguration;
17
17
  alignedRegionToTrackElementList(region: AlignedRegion, alignmentContext: AlignmentContextInterface): Array<RcsbFvTrackDataElementInterface>;
18
18
  addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface;
@@ -1,6 +1,9 @@
1
1
  import { TrackFactoryInterface } from "../TrackFactoryInterface";
2
2
  import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
3
3
  import { TrackManagerInterface } from "../../RcsbFvBlockFactory/BlockManager/TrackManagerInterface";
4
+ import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
4
5
  export declare class AnnotationsTrackFactory implements TrackFactoryInterface<[TrackManagerInterface]> {
6
+ private readonly trackTitleFactory;
7
+ constructor(trackTitleFactory?: TrackTitleFactoryInterface<[TrackManagerInterface]>);
5
8
  getTrack(annotations: TrackManagerInterface): Promise<RcsbFvRowConfigInterface>;
6
9
  }
@@ -0,0 +1,9 @@
1
+ import { SequenceReference, Source } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
+ export declare namespace TrackUtils {
3
+ function getProvenanceConfigFormTarget(targetId: string, targetSource: SequenceReference | Source): {
4
+ name: string;
5
+ color: string;
6
+ };
7
+ function transformSourceFromTarget(targetId: string, source: SequenceReference | Source): string;
8
+ function getProvenanceColorFromProvenance(provenance: string): string;
9
+ }
@@ -1,4 +1,4 @@
1
- import { RcsbFvColorGradient, RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
1
+ import { RcsbFvColorGradient, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
2
2
  import { AlignedRegion, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
3
3
  import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
4
  import { TrackFactoryInterface } from "../TrackFactoryInterface";
@@ -12,7 +12,6 @@ export declare class PlainAlignmentTrackFactory implements TrackFactoryInterface
12
12
  private readonly trackTitleFactory;
13
13
  constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
14
14
  getTrack(alignmentRequestContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList?: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>, alignmentColor?: RcsbFvColorGradient): Promise<RcsbFvRowConfigInterface>;
15
- buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
16
15
  getAlignmentTrackConfiguration(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>): {
17
16
  alignedBlocks: Array<RcsbFvTrackDataElementInterface>;
18
17
  mismatchData: Array<RcsbFvTrackDataElementInterface>;
@@ -1,8 +1,8 @@
1
- import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
2
- import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
3
- import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
1
+ import { RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
2
+ import { AlignmentContextInterface, PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
3
  import { TrackFactoryInterface } from "../TrackFactoryInterface";
5
4
  import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
5
+ import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
6
6
  interface BuildSequenceDataInterface extends AlignmentContextInterface {
7
7
  sequence: string;
8
8
  begin: number;
@@ -10,11 +10,10 @@ interface BuildSequenceDataInterface extends AlignmentContextInterface {
10
10
  }
11
11
  export declare class SequenceTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, string]> {
12
12
  private readonly entityInstanceTranslator;
13
- constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
13
+ private readonly trackTitleFactory;
14
+ constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate, trackTitleFactory?: TrackTitleFactoryInterface<[AlignmentRequestContextType]>);
14
15
  getTrack(alignmentQueryContext: AlignmentRequestContextType, querySequence: string): Promise<RcsbFvRowConfigInterface>;
15
16
  buildSequenceData(config: BuildSequenceDataInterface, source: "from" | "to"): Array<RcsbFvTrackDataElementInterface>;
16
17
  addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface;
17
- buildSequenceRowTitle(requestConfig: AlignmentCollectConfig): string | RcsbFvLink;
18
- private buildInstanceId;
19
18
  }
20
19
  export {};
@@ -5,7 +5,10 @@ import { RcsbFvLink } from "@rcsb/rcsb-saguaro";
5
5
  import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
6
6
  export declare class AlignmentTrackTitleFactory implements TrackTitleFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
7
7
  private readonly entityInstanceTranslator;
8
+ private readonly experimentalTrackTitleFactory;
9
+ private readonly modelTrackTitleFactory;
8
10
  constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
9
11
  getTrackTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
10
- private buildInstanceId;
12
+ getTrackTitlePrefix(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string>;
13
+ getTrackTitleFlagColor(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string>;
11
14
  }
@@ -0,0 +1,8 @@
1
+ import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
2
+ import { TrackManagerInterface } from "../../RcsbFvBlockFactory/BlockManager/TrackManagerInterface";
3
+ import { RcsbFvLink } from "@rcsb/rcsb-saguaro";
4
+ export declare class AnnotationsTrackTitleFactory implements TrackTitleFactoryInterface<[TrackManagerInterface]> {
5
+ getTrackTitle(trackManager: TrackManagerInterface): Promise<string | RcsbFvLink>;
6
+ getTrackTitleFlagColor(trackManager: TrackManagerInterface): Promise<string>;
7
+ getTrackTitlePrefix(trackManager: TrackManagerInterface): Promise<string>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
2
+ import { TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
3
+ import { AlignmentRequestContextType } from "../TrackFactoryImpl/AlignmentTrackFactory";
4
+ import { RcsbFvLink } from "@rcsb/rcsb-saguaro";
5
+ import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
6
+ export declare class ExperimentalAlignmentTrackTitleFactory implements TrackTitleFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
7
+ private readonly entityInstanceTranslator;
8
+ constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
9
+ getTrackTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
10
+ getTrackTitlePrefix(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string>;
11
+ getTrackTitleFlagColor(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string>;
12
+ private buildInstanceId;
13
+ }
@@ -0,0 +1,11 @@
1
+ import { TrackTitleFactoryInterface } from "../TrackTitleFactoryInterface";
2
+ import { AlignmentRequestContextType } from "../TrackFactoryImpl/AlignmentTrackFactory";
3
+ import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
+ import { RcsbFvLink } from "@rcsb/rcsb-saguaro";
5
+ export declare class InstanceSequenceTrackTitleFactory implements TrackTitleFactoryInterface<[AlignmentRequestContextType]> {
6
+ private readonly trackTitleFactory;
7
+ constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
8
+ getTrackTitle(alignmentQueryContext: AlignmentRequestContextType): Promise<string | RcsbFvLink>;
9
+ getTrackTitlePrefix(alignmentQueryContext: AlignmentRequestContextType): Promise<string>;
10
+ getTrackTitleFlagColor(alignmentQueryContext: AlignmentRequestContextType): Promise<string>;
11
+ }