@rcsb/rcsb-saguaro-app 4.4.0-models.13 → 4.4.0-models.14
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.
- package/build/dist/RcsbChartWeb/RcsbChartComponent/ChartConfigInterface.d.ts +14 -0
- package/build/dist/RcsbChartWeb/RcsbChartTools/ChartTools.d.ts +13 -12
- package/build/dist/RcsbGroupWeb/RcsbGroupBuilder.d.ts +2 -1
- package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbGroupDisplay.d.ts +2 -1
- package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/RcsbResidueChartComponent.d.ts +2 -0
- package/build/dist/RcsbSeacrh/FacetTools.d.ts +28 -1
- package/build/dist/plot.js +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,20 @@ export interface ChartConfigInterface {
|
|
|
24
24
|
barClickCallback?: BarClickCallbackType;
|
|
25
25
|
sort?: (b: ChartDataInterface, a: ChartDataInterface) => number;
|
|
26
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;
|
|
27
41
|
}
|
|
28
42
|
export declare enum ChartType {
|
|
29
43
|
pie = "pie",
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
|
|
1
|
+
import { ChartDisplayConfigInterface, ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
|
|
2
2
|
import { ChartDataInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
|
|
3
3
|
export declare class ChartTools {
|
|
4
|
-
static readonly paddingLeft
|
|
5
|
-
static readonly paddingTopLarge
|
|
6
|
-
static readonly paddingTop
|
|
7
|
-
static readonly paddingRight
|
|
8
|
-
static readonly constWidth
|
|
9
|
-
static readonly constHeight
|
|
10
|
-
static readonly xIncrement
|
|
11
|
-
static readonly xDomainPadding
|
|
12
|
-
static readonly barWidth
|
|
13
|
-
static readonly fontFamily
|
|
14
|
-
static readonly fontSize
|
|
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;
|
|
15
16
|
static mergeGroupSize(data: ChartObjectInterface[], size: number, mergeName?: string): ChartDataInterface[];
|
|
16
17
|
static mostPopulatedGroups(data: ChartObjectInterface[], maxGroups: number, mergeName?: string): ChartDataInterface[];
|
|
17
18
|
static mergeDomainMaxValue(data: ChartObjectInterface[], maxValue: number): ChartDataInterface[];
|
|
@@ -7,11 +7,12 @@ import { SearchQueryContextManagerSubjectInterface } from "./RcsbGroupView/RcsbG
|
|
|
7
7
|
import { Subscription } from "rxjs";
|
|
8
8
|
import { RcsbGroupContentTextInterface } from "./RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent";
|
|
9
9
|
import { ResidueChartInterface } from "./RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools";
|
|
10
|
+
import { ChartDisplayConfigInterface } from "../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
|
|
10
11
|
export declare function buildSearchRequest(elementId: string, searchQuery: SearchQueryType, returnType: ReturnType): Promise<void>;
|
|
11
12
|
export declare function buildGroup(elementId: string, groupProvenance: GroupProvenanceId, groupId: string, query?: SearchQuery, facetLayoutGrid?: string[], additionalProperties?: GroupChartAdditionalProperties): Promise<void>;
|
|
12
13
|
export declare function buildGroupMembers(elementId: string, groupProvenance: GroupProvenanceId, groupId: string, nRows: number, nColumns: number, query?: SearchQuery): void;
|
|
13
14
|
export declare function buildGroupContent(elementId: string, groupProvenance: GroupProvenanceId, groupId: string, query?: SearchQuery, textConfig?: RcsbGroupContentTextInterface): void;
|
|
14
|
-
export declare function buildResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[]): void;
|
|
15
|
+
export declare function buildResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[], chartDisplayConfig?: Partial<ChartDisplayConfigInterface>): void;
|
|
15
16
|
export declare const searchQueryContextManager: {
|
|
16
17
|
subscribe(f: (o: SearchQueryContextManagerSubjectInterface) => void): Subscription;
|
|
17
18
|
};
|
|
@@ -6,10 +6,11 @@ import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnu
|
|
|
6
6
|
import { GroupChartAdditionalProperties } from "./RcsbGroupChart/GroupChartAdditionalProperties";
|
|
7
7
|
import { RcsbGroupContentTextInterface } from "./RcsbGroupContent/RcsbGroupContentComponent";
|
|
8
8
|
import { ResidueChartInterface } from "./RcsbResidueChart/ResidueChartTools/ResidueChartTools";
|
|
9
|
+
import { ChartDisplayConfigInterface } from "../../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
|
|
9
10
|
export declare class RcsbGroupDisplay {
|
|
10
11
|
static displayRcsbSearchStats(elementId: string, facetStore: FacetStoreInterface, searchQuery: SearchQueryType, returnType: ReturnType): Promise<void>;
|
|
11
12
|
static displaySearchAttributes(elementId: string, groupProvenanceId: GroupProvenanceId, groupId: string, searchQuery?: SearchQuery, facetLayoutGrid?: string[], additionalProperties?: GroupChartAdditionalProperties): Promise<void>;
|
|
12
13
|
static displayGroupMembers(elementId: string, groupProvenanceId: GroupProvenanceId, groupId: string, nRows: number, nColumns: number, query?: SearchQuery): void;
|
|
13
14
|
static displayGroupContent(elementId: string, groupProvenanceId: GroupProvenanceId, groupId: string, query?: SearchQuery, textConfig?: RcsbGroupContentTextInterface): void;
|
|
14
|
-
static displayResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[]): void;
|
|
15
|
+
static displayResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[], chartDisplayConfig?: Partial<ChartDisplayConfigInterface>): void;
|
|
15
16
|
}
|
package/build/dist/RcsbGroupWeb/RcsbGroupView/RcsbResidueChart/RcsbResidueChartComponent.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ChartMapType } from "../RcsbGroupChart/GroupChartLayout";
|
|
3
3
|
import { ResidueChartInterface } from "./ResidueChartTools/ResidueChartTools";
|
|
4
|
+
import { ChartDisplayConfigInterface } from "../../../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
|
|
4
5
|
interface RcsbResidueChartState {
|
|
5
6
|
layout: string[];
|
|
6
7
|
chartMap: ChartMapType;
|
|
7
8
|
}
|
|
8
9
|
export declare class RcsbResidueChartComponent extends React.Component<ResidueChartInterface & {
|
|
9
10
|
facetLayoutGrid?: string[];
|
|
11
|
+
chartDisplayConfig?: Partial<ChartDisplayConfigInterface>;
|
|
10
12
|
}, RcsbResidueChartState> {
|
|
11
13
|
render(): JSX.Element;
|
|
12
14
|
componentDidMount(): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BucketFacet } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchResultInterface";
|
|
2
|
-
import { ChartConfigInterface, ChartObjectInterface, ChartType } from "../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
|
|
2
|
+
import { ChartConfigInterface, ChartDisplayConfigInterface, ChartObjectInterface, ChartType } from "../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
|
|
3
3
|
import { FacetMemberInterface } from "./FacetStore/FacetMemberInterface";
|
|
4
4
|
import { AttributeTextQueryParameters } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
|
|
5
5
|
import { Operator, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
|
|
@@ -24,6 +24,33 @@ export declare class FacetTools {
|
|
|
24
24
|
static getResultDrilldowns(facetMembers: FacetMemberInterface[], searchResultFacets: Array<BucketFacet>, labelList?: string[], recursiveOut?: Array<RcsbChartInterface>): Array<RcsbChartInterface>;
|
|
25
25
|
static subtractDrilldowns(partial: Array<RcsbChartInterface>, full: Array<RcsbChartInterface>): Array<RcsbChartInterface>;
|
|
26
26
|
static getFacetFromName(facetMembers: FacetMemberInterface[], name: string): FacetMemberInterface;
|
|
27
|
+
static addChartDisplayConfig(chart: RcsbChartInterface, chartDisplayConfig: Partial<ChartDisplayConfigInterface>): {
|
|
28
|
+
chartConfig: {
|
|
29
|
+
chartDisplayConfig: Partial<ChartDisplayConfigInterface>;
|
|
30
|
+
mergeGroupSize?: number;
|
|
31
|
+
mergeDomainMaxValue?: number;
|
|
32
|
+
mostPopulatedGroups?: number;
|
|
33
|
+
mergeName?: string;
|
|
34
|
+
domainMinValue?: number;
|
|
35
|
+
histogramBinIncrement?: number;
|
|
36
|
+
tickIncrement?: {
|
|
37
|
+
origin: number;
|
|
38
|
+
increment: number;
|
|
39
|
+
};
|
|
40
|
+
axisLabel?: string;
|
|
41
|
+
barClickCallback?: import("../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface").BarClickCallbackType;
|
|
42
|
+
sort?: (b: import("../RcsbChartWeb/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataInterface, a: import("../RcsbChartWeb/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataInterface) => number;
|
|
43
|
+
tooltipText?: (a: import("../RcsbChartWeb/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataInterface) => string;
|
|
44
|
+
};
|
|
45
|
+
chartType: ChartType;
|
|
46
|
+
labelList?: string[];
|
|
47
|
+
attribute: string;
|
|
48
|
+
attributeName: string;
|
|
49
|
+
title: string;
|
|
50
|
+
data: ChartObjectInterface[];
|
|
51
|
+
filters?: SearchFilter[];
|
|
52
|
+
contentType: "string" | "number" | "date";
|
|
53
|
+
};
|
|
27
54
|
private static includeMissingFacets;
|
|
28
55
|
private static getFacetChartTypeFromAttribute;
|
|
29
56
|
private static getFacetFiltersFromName;
|