@rcsb/rcsb-saguaro-app 4.4.0-models.2 → 4.4.0-models.22

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 (82) hide show
  1. package/build/dist/7ff3ca6fa798de3f8ac2.woff +0 -0
  2. package/build/dist/RcsbAnnotationConfig/AnnotationConfigInterface.d.ts +30 -0
  3. package/build/dist/RcsbAnnotationConfig/RcsbAnnotationConfig.d.ts +9 -15
  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/EntitySummaryFv.d.ts +1 -0
  17. package/build/dist/RcsbFvExamples/GroupHistogram.d.ts +1 -0
  18. package/build/dist/RcsbFvExamples/InstanceSequenceFv.d.ts +1 -0
  19. package/build/dist/RcsbFvExamples/ResidueDistribution.d.ts +1 -0
  20. package/build/dist/RcsbFvExamples/SingleEntitySummaryFv.d.ts +1 -0
  21. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvContextManager.d.ts +2 -2
  22. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvCoreBuilder.d.ts +2 -2
  23. package/build/dist/RcsbFvWeb/RcsbFvBuilder/RcsbFvInstanceBuilder.d.ts +1 -1
  24. package/build/dist/RcsbFvWeb/{WebTools/WebToolsManager.d.ts → RcsbFvComponents/ComponentsManager.d.ts} +4 -7
  25. package/build/dist/RcsbFvWeb/{WebTools → RcsbFvComponents}/LoaderSpinner.d.ts +0 -0
  26. package/build/dist/RcsbFvWeb/RcsbFvComponents/MountableComponent.d.ts +8 -0
  27. package/build/dist/RcsbFvWeb/{WebTools → RcsbFvComponents}/RcsbTabs.d.ts +0 -0
  28. package/build/dist/RcsbFvWeb/{WebTools → RcsbFvComponents}/SelectButton.d.ts +4 -3
  29. package/build/dist/RcsbFvWeb/RcsbFvComponents/SelectButtonManager.d.ts +17 -0
  30. package/build/dist/RcsbFvWeb/RcsbFvComponents/SelectButtonTitle.d.ts +6 -0
  31. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AlignmentBlockFactory.d.ts +6 -6
  32. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/AnnotationsBlockFactory.d.ts +2 -2
  33. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockFactoryInterface.d.ts +3 -1
  34. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/AnnotationBlockManager.d.ts +1 -2
  35. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvBlockFactory/BlockManager/TrackManagerInterface.d.ts +2 -2
  36. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{AlignmentTrackFactory.d.ts → TrackFactoryImpl/AlignmentTrackFactory.d.ts} +5 -5
  37. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{AnnotationsTrackFactory.d.ts → TrackFactoryImpl/AnnotationsTrackFactory.d.ts} +2 -2
  38. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{ObservedAlignmentTrackFactory.d.ts → TrackFactoryImpl/ObservedAlignmentTrackFactory.d.ts} +2 -2
  39. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{PlainAlignmentTrackFactory.d.ts → TrackFactoryImpl/PlainAlignmentTrackFactory.d.ts} +5 -5
  40. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{PlainObservedAlignmentTrackFactory.d.ts → TrackFactoryImpl/PlainObservedAlignmentTrackFactory.d.ts} +2 -2
  41. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{PositionalScoreAlignmentTrackFactory.d.ts → TrackFactoryImpl/PositionalScoreAlignmentTrackFactory.d.ts} +2 -2
  42. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{SequenceTrackFactory.d.ts → TrackFactoryImpl/SequenceTrackFactory.d.ts} +3 -3
  43. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/{UniprotAlignmentTrackFactory.d.ts → TrackFactoryImpl/UniprotAlignmentTrackFactory.d.ts} +2 -2
  44. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryImpl/AlignmentTrackTitleFactory.d.ts +11 -0
  45. package/build/dist/RcsbFvWeb/RcsbFvFactories/RcsbFvTrackFactory/TrackTitleFactoryInterface.d.ts +4 -0
  46. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvAbstractModule.d.ts +1 -1
  47. package/build/dist/RcsbFvWeb/RcsbFvModule/RcsbFvInterface.d.ts +3 -0
  48. package/build/dist/RcsbGroupWeb/RcsbGroupBuilder.d.ts +4 -2
  49. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/GroupChartLayout.d.ts +0 -1
  50. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupChart/RcsbStatsChartComponent.d.ts +2 -2
  51. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent.d.ts +2 -0
  52. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupDisplay.d.ts +4 -2
  53. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupMembers/Components/Slider.d.ts +4 -0
  54. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/RcsbResidueChartComponent.d.ts +17 -0
  55. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/DistributionChartFactoryImpl/DistributionChartFactory.d.ts +8 -0
  56. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryImpl/MultipleTrackDistributionFactory.d.ts +8 -0
  57. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryImpl/NumericalTrackDistributionFactory.d.ts +8 -0
  58. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryImpl/TrackDistributionFactory.d.ts +10 -0
  59. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/ResidueDistributionFactoryInterface.d.ts +24 -0
  60. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartFactories/TrackBlockFactoryImpl/TrackBlockFactory.d.ts +14 -0
  61. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/Helper.d.ts +4 -0
  62. package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools.d.ts +8 -0
  63. package/build/dist/RcsbRequest/RcsbRequestContextManager.d.ts +5 -4
  64. package/build/dist/RcsbSeacrh/FacetStore/SingleFacets.d.ts +2 -0
  65. package/build/dist/RcsbSeacrh/FacetTools.d.ts +29 -6
  66. package/build/dist/RcsbSeacrh/SearchQueryTools.d.ts +3 -2
  67. package/build/dist/RcsbSeacrh/SearchRequestProperty.d.ts +2 -2
  68. package/build/dist/RcsbUtils/Helpers/Operator.d.ts +1 -0
  69. package/build/dist/RcsbUtils/Helpers/TagDelimiter.d.ts +5 -0
  70. package/build/dist/app.js +1 -1
  71. package/build/dist/app.js.LICENSE.txt +14 -33
  72. package/build/dist/config.js +5 -2
  73. package/build/dist/constants.js +1 -1
  74. package/build/dist/f2539a501be3a673de05.woff2 +0 -0
  75. package/build/dist/plot.d.ts +1 -1
  76. package/build/dist/plot.js +1 -1
  77. package/build/dist/plot.js.LICENSE.txt +21 -29
  78. package/build/dist/worker.js +1 -1
  79. package/package.json +36 -28
  80. package/build/dist/RcsbChartWeb/RcsbChartData/ChartDataInterface.d.ts +0 -7
  81. package/build/dist/a13b815539b49de48d23.woff2 +0 -0
  82. package/build/dist/c1d7432ee75fa194e499.woff +0 -0
@@ -31,3 +31,33 @@ export interface RcsbAnnotationConfigInterface {
31
31
  ignore?: boolean;
32
32
  fitTitleWidth?: boolean;
33
33
  }
34
+ export interface RcsbDistributionConfigInterface {
35
+ blockConfig: RcsbTrackBlockConfigInterface[];
36
+ trackConfig: RcsbTrackConfigInterface[];
37
+ }
38
+ export interface RcsbTrackBlockConfigInterface {
39
+ type: string;
40
+ title: string;
41
+ trackType: string[];
42
+ sort: string[];
43
+ contentType: "binary" | "numerical";
44
+ undefTrack?: {
45
+ label: string;
46
+ color: string;
47
+ id: string;
48
+ };
49
+ axisLabel?: string;
50
+ }
51
+ export interface RcsbTrackConfigInterface {
52
+ type: string;
53
+ color?: string;
54
+ label?: string;
55
+ numericalCategories?: {
56
+ thresholds: number[];
57
+ categories: {
58
+ label: string;
59
+ color: string;
60
+ id: string;
61
+ }[];
62
+ };
63
+ }
@@ -1,6 +1,7 @@
1
- import { Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
- import { RcsbFvDisplayTypes, RcsbFvTrackDataElementInterface } from '@rcsb/rcsb-saguaro';
1
+ import { AnnotationFeatures, Feature } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
+ import { RcsbFvDisplayTypes } from '@rcsb/rcsb-saguaro';
3
3
  import { AnnotationConfigInterface, RcsbAnnotationConfigInterface } from "./AnnotationConfigInterface";
4
+ import { AnnotationRequestContext } from "../RcsbCollectTools/AnnotationCollector/AnnotationCollectorInterface";
4
5
  export interface RcsbMergedTypesInterface {
5
6
  merged_types: Array<string>;
6
7
  title: string;
@@ -10,28 +11,21 @@ export interface RcsbMergedTypesInterface {
10
11
  export declare class RcsbAnnotationConfig {
11
12
  private readonly annotationConfigMap;
12
13
  private readonly annotationMap;
13
- private readonly externalAnnotationsOrder;
14
- private readonly instanceAnnotationsOrder;
15
- private readonly entityAnnotationsOrder;
14
+ private readonly annotationTypes;
16
15
  private readonly mergedTypes;
17
- private readonly addedTypes;
18
16
  constructor(acm?: AnnotationConfigInterface);
19
17
  getConfig(type: string): RcsbAnnotationConfigInterface;
20
18
  allTypes(): Set<string>;
21
19
  uniprotOrder(): Array<string>;
22
20
  instanceOrder(): Array<string>;
23
21
  entityOrder(): Array<string>;
24
- buildAndAddType(d: Feature, trackTitle?: string, titleSuffix?: string, typeSuffix?: string): string;
22
+ getAnnotationType(requestConfig: AnnotationRequestContext, ann: AnnotationFeatures, feature: Feature): Promise<string>;
23
+ isMergedType(type: string): boolean;
24
+ getMergeConfig(type: string): RcsbMergedTypesInterface;
25
25
  private addNewType;
26
- sortAndIncludeNewTypes(): void;
27
26
  private checkAndIncludeNewType;
28
- private cleanAddedTypes;
29
- isMergedType(type: string): boolean;
30
- getMergedType(type: string): string;
31
- annotationMergedPreference(type: string, a: RcsbFvTrackDataElementInterface, b: RcsbFvTrackDataElementInterface): boolean;
32
27
  static randomRgba(str?: string): string;
33
- addProvenance(type: string, provenanceName: string): void;
28
+ private addProvenance;
34
29
  addMultipleProvenance(type: string, provenanceList: Array<string>): void;
35
- getProvenanceList(type: string): Array<string>;
36
- isTransformedToNumerical(type: string): boolean;
30
+ private initTypes;
37
31
  }
@@ -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 {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { RcsbFv, RcsbFvBoardConfigInterface } from "@rcsb/rcsb-saguaro";
2
2
  declare class RcsbFvContextManager {
3
- private rcsbFvManager;
4
- private rcsbButtonManager;
3
+ private readonly rcsbFvManager;
4
+ private readonly rcsbButtonManager;
5
5
  getFv(elementFvId: string, boardConfig?: Partial<RcsbFvBoardConfigInterface>): RcsbFv;
6
6
  hasFv(elementFvId: string): boolean;
7
7
  private setFv;
@@ -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
  }
@@ -8,17 +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 suffix;
13
- private static suffixAdditionalButton;
14
- private static loaderSpinner;
11
+ export declare class ComponentsManager {
12
+ private static readonly loaderSpinner;
13
+ private static readonly selectButtonMap;
14
+ private static readonly nodeMap;
15
15
  static buildSelectButton(elementId: string, options: Array<SelectOptionInterface> | Array<GroupedOptionsInterface>, config?: SelectButtonConfigInterface): void;
16
16
  static addSelectButton(elementId: string, options: Array<SelectOptionInterface>, config?: SelectButtonConfigInterface): void;
17
- private static innerBuildSelectButton;
18
- private static jsxButton;
19
17
  static clearSelectButton(elementId: string): void;
20
18
  static clearAdditionalSelectButton(elementId: string): void;
21
- static innerClearSelectButton(elementId: string, suffix: string): void;
22
19
  static buildLoaderSpinner(elementId: string): void;
23
20
  static unmountLoaderSpinner(elementId: string): void;
24
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
+ }
@@ -1,10 +1,10 @@
1
- import { AlignmentResponse, AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
- import { AlignmentRequestContextType } from "../RcsbFvTrackFactory/AlignmentTrackFactory";
1
+ import { AlignmentResponse, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
+ import { AlignmentRequestContextType } from "../RcsbFvTrackFactory/TrackFactoryImpl/AlignmentTrackFactory";
3
3
  import { BlockFactoryInterface } from "./BlockFactoryInterface";
4
4
  import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
5
5
  import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
6
- export declare class AlignmentBlockFactory implements BlockFactoryInterface<[AlignmentRequestContextType, AlignmentResponse, Array<AnnotationFeatures>]> {
7
- private readonly alignmentTrackFactory;
8
- constructor(alignmentTrackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment, Array<AnnotationFeatures>]> | TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>);
9
- getBlock(alignmentRequestContext: AlignmentRequestContextType, alignmentData: AlignmentResponse, features?: Array<AnnotationFeatures>): Promise<RcsbFvRowConfigInterface[]>;
6
+ export declare class AlignmentBlockFactory implements BlockFactoryInterface<[AlignmentRequestContextType, AlignmentResponse], [AlignmentRequestContextType, TargetAlignment]> {
7
+ readonly trackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>;
8
+ constructor(alignmentTrackFactory: TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]>);
9
+ getBlock(alignmentRequestContext: AlignmentRequestContextType, alignmentData: AlignmentResponse): Promise<RcsbFvRowConfigInterface[]>;
10
10
  }
@@ -5,10 +5,10 @@ import { AnnotationFeatures } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types
5
5
  import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
6
6
  import { BlockManagerInterface } from "./BlockManager/BlockManagerInterface";
7
7
  import { TrackManagerInterface } from "./BlockManager/TrackManagerInterface";
8
- export declare class AnnotationsBlockFactory implements BlockFactoryInterface<[AnnotationRequestContext, AnnotationFeatures[]]> {
8
+ export declare class AnnotationsBlockFactory implements BlockFactoryInterface<[AnnotationRequestContext, AnnotationFeatures[]], [TrackManagerInterface]> {
9
9
  private readonly annotationBlockManager;
10
10
  private readonly annotationsBlockData;
11
- private readonly annotationTrackFactory;
11
+ readonly trackFactory: TrackFactoryInterface<[TrackManagerInterface]>;
12
12
  constructor(annotationBlockManager: BlockManagerInterface<[AnnotationRequestContext, AnnotationFeatures[]]>, annotationTrackFactory: TrackFactoryInterface<[TrackManagerInterface]>);
13
13
  getBlock(annotationsRequestContext: AnnotationRequestContext, annotations: AnnotationFeatures[]): Promise<RcsbFvRowConfigInterface[]>;
14
14
  }
@@ -1,4 +1,6 @@
1
1
  import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
2
- export interface BlockFactoryInterface<T extends any[]> {
2
+ import { TrackFactoryInterface } from "../RcsbFvTrackFactory/TrackFactoryInterface";
3
+ export interface BlockFactoryInterface<T extends any[], S extends any[]> {
4
+ readonly trackFactory: TrackFactoryInterface<S>;
3
5
  getBlock(...args: T): Promise<RcsbFvRowConfigInterface[]>;
4
6
  }
@@ -15,8 +15,7 @@ export declare class AnnotationBlockManager implements BlockManagerInterface<[An
15
15
  getTracks(): Array<TrackManagerInterface>;
16
16
  private has;
17
17
  private orderedTypes;
18
- private addAnnotationToTracks;
18
+ private processAnnotations;
19
19
  private addFeature;
20
- private buildType;
21
20
  private mergeTracks;
22
21
  }
@@ -6,8 +6,8 @@ export interface TrackManagerFactoryInterface<T extends any[]> {
6
6
  getTrackManager(...args: T): TrackManagerInterface;
7
7
  }
8
8
  export interface TrackManagerInterface {
9
- getTrackId(): string;
10
- getConfig(): RcsbAnnotationConfigInterface;
9
+ getId(): string;
10
+ getConfig(): RcsbAnnotationConfigInterface | undefined;
11
11
  getRange(): {
12
12
  min: number;
13
13
  max: number;
@@ -1,19 +1,19 @@
1
1
  import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
2
2
  import { AlignedRegion, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
3
- import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
- import { TrackFactoryInterface } from "./TrackFactoryInterface";
5
- import { AlignmentCollectConfig } from "../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
3
+ import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
+ import { TrackFactoryInterface } from "../TrackFactoryInterface";
5
+ import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
6
6
  export declare type AlignmentRequestContextType = AlignmentCollectConfig & {
7
7
  querySequence?: string;
8
8
  };
9
9
  export declare class AlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
10
10
  private readonly sequenceTrackFactory;
11
11
  private readonly entityInstanceTranslator;
12
+ private readonly trackTitleFactory;
12
13
  constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
13
14
  getTrack(alignmentRequestContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList?: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>): Promise<RcsbFvRowConfigInterface>;
14
- buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): string | RcsbFvLink;
15
+ buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
15
16
  private getAlignmentTrackConfiguration;
16
- private buildInstanceId;
17
17
  alignedRegionToTrackElementList(region: AlignedRegion, alignmentContext: AlignmentContextInterface): Array<RcsbFvTrackDataElementInterface>;
18
18
  addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface;
19
19
  }
@@ -1,6 +1,6 @@
1
- import { TrackFactoryInterface } from "./TrackFactoryInterface";
1
+ import { TrackFactoryInterface } from "../TrackFactoryInterface";
2
2
  import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
3
- import { TrackManagerInterface } from "../RcsbFvBlockFactory/BlockManager/TrackManagerInterface";
3
+ import { TrackManagerInterface } from "../../RcsbFvBlockFactory/BlockManager/TrackManagerInterface";
4
4
  export declare class AnnotationsTrackFactory implements TrackFactoryInterface<[TrackManagerInterface]> {
5
5
  getTrack(annotations: TrackManagerInterface): Promise<RcsbFvRowConfigInterface>;
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
- import { PolymerEntityInstanceTranslate } from "../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
3
- import { TrackFactoryInterface } from "./TrackFactoryInterface";
2
+ import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
3
+ import { TrackFactoryInterface } from "../TrackFactoryInterface";
4
4
  import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
5
5
  import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
6
6
  export declare class ObservedAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
@@ -1,23 +1,23 @@
1
1
  import { RcsbFvColorGradient, RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
2
2
  import { AlignedRegion, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
3
- import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
- import { TrackFactoryInterface } from "./TrackFactoryInterface";
5
- import { AlignmentCollectConfig } from "../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
3
+ import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
+ import { TrackFactoryInterface } from "../TrackFactoryInterface";
5
+ import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
6
6
  export declare type AlignmentRequestContextType = AlignmentCollectConfig & {
7
7
  querySequence?: string;
8
8
  };
9
9
  export declare class PlainAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {
10
10
  private readonly sequenceTrackFactory;
11
11
  private readonly entityInstanceTranslator;
12
+ private readonly trackTitleFactory;
12
13
  constructor(entityInstanceTranslator?: PolymerEntityInstanceTranslate);
13
14
  getTrack(alignmentRequestContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList?: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>, alignmentColor?: RcsbFvColorGradient): Promise<RcsbFvRowConfigInterface>;
14
- buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): string | RcsbFvLink;
15
+ buildAlignmentRowTitle(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment): Promise<string | RcsbFvLink>;
15
16
  getAlignmentTrackConfiguration(alignmentQueryContext: AlignmentRequestContextType, targetAlignment: TargetAlignment, alignedRegionToTrackElementList: (region: AlignedRegion, alignmentContext: AlignmentContextInterface) => Array<RcsbFvTrackDataElementInterface>): {
16
17
  alignedBlocks: Array<RcsbFvTrackDataElementInterface>;
17
18
  mismatchData: Array<RcsbFvTrackDataElementInterface>;
18
19
  sequenceData: Array<RcsbFvTrackDataElementInterface>;
19
20
  };
20
- private buildInstanceId;
21
21
  alignedRegionToTrackElementList(region: AlignedRegion, alignmentContext: AlignmentContextInterface): Array<RcsbFvTrackDataElementInterface>;
22
22
  addAuthorResIds(e: RcsbFvTrackDataElementInterface, alignmentContext: AlignmentContextInterface): RcsbFvTrackDataElementInterface;
23
23
  }
@@ -1,6 +1,6 @@
1
1
  import { AnnotationFeatures, TargetAlignment } from "@rcsb/rcsb-api-tools/build/RcsbGraphQL/Types/Borrego/GqlTypes";
2
- import { PolymerEntityInstanceTranslate } from "../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
3
- import { TrackFactoryInterface } from "./TrackFactoryInterface";
2
+ import { PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
3
+ import { TrackFactoryInterface } from "../TrackFactoryInterface";
4
4
  import { RcsbFvRowConfigInterface } from "@rcsb/rcsb-saguaro";
5
5
  import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
6
6
  export declare class PlainObservedAlignmentTrackFactory implements TrackFactoryInterface<[AlignmentRequestContextType, TargetAlignment]> {