wuepgg3-track 1.2.2 → 1.2.4

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 (44) hide show
  1. package/dist/{SharedSystems-DwpQs0B3.mjs → SharedSystems-ea3Jya5x.mjs} +1 -1
  2. package/dist/{WebGLRenderer-BxYzmakr.mjs → WebGLRenderer-kxzEYmRj.mjs} +2 -2
  3. package/dist/{WebGPURenderer-B3OZUqxK.mjs → WebGPURenderer-o0-xjneX.mjs} +2 -2
  4. package/dist/{browserAll-QiToy11T.mjs → browserAll-OrsoIhxu.mjs} +2 -2
  5. package/dist/components/GenomeView/TrackComponents/3dmol/ShapeList.d.ts +1 -1
  6. package/dist/components/GenomeView/TrackComponents/CategoricalComponents/CategoricalAnnotation.d.ts +7 -6
  7. package/dist/components/GenomeView/TrackComponents/DynseqComponents/DynseqTrackComponents.d.ts +10 -5
  8. package/dist/components/GenomeView/TrackComponents/InteractionComponents/DynamicInteractionTrackComponents.d.ts +62 -0
  9. package/dist/components/GenomeView/TrackComponents/InteractionComponents/PixiHeatmap.d.ts +12 -11
  10. package/dist/components/GenomeView/TrackComponents/MethylcComponents/MethylCTrackComputation.d.ts +10 -4
  11. package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfAnnotation.d.ts +9 -8
  12. package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/GenomicCoordinates.d.ts +5 -3
  13. package/dist/components/GenomeView/TrackComponents/commonComponents/Resize.d.ts +1 -1
  14. package/dist/components/GenomeView/TrackComponents/commonComponents/Track.d.ts +76 -0
  15. package/dist/components/GenomeView/TrackComponents/commonComponents/TrackMessage.d.ts +5 -4
  16. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/FeatureDetail.d.ts +5 -3
  17. package/dist/components/GenomeView/TrackComponents/commonComponents/annotation/PixiAnnotation.d.ts +11 -10
  18. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicplotTrackComponent.d.ts +6 -5
  19. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/GenomicCoordinates.d.ts +5 -3
  20. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/MatplotTrackComponent.d.ts +9 -5
  21. package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/PixiScene.d.ts +10 -9
  22. package/dist/components/GenomeView/TrackComponents/commonComponents/stats/BoxplotTrackComponents.d.ts +18 -13
  23. package/dist/components/GenomeView/TrackComponents/displayModeComponentMap.d.ts +6 -0
  24. package/dist/components/GenomeView/TrackComponents/geneAnnotationTrackComponents/BackgroundedText.d.ts +10 -9
  25. package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroHtmlVisualizer.d.ts +6 -5
  26. package/dist/components/GenomeView/TrackComponents/imageTrackComponents/OmeroSvgVisualizer.d.ts +9 -6
  27. package/dist/components/GenomeView/genomeNavigator/Chromosomes.d.ts +14 -11
  28. package/dist/components/GenomeView/genomeNavigator/GeneSearchBox3D.d.ts +2 -1
  29. package/dist/components/GenomeView/genomeNavigator/MainPane.d.ts +7 -6
  30. package/dist/components/GenomeView/genomeNavigator/RegionPanTracker.d.ts +77 -0
  31. package/dist/components/GenomeView/genomeNavigator/Ruler.d.ts +5 -4
  32. package/dist/components/GenomeView/genomeNavigator/SelectableArea.d.ts +93 -0
  33. package/dist/components/GenomeView/genomeNavigator/SelectedRegionBox.d.ts +5 -4
  34. package/dist/components/GenomeView/genomeNavigator/StandaloneGeneAnnotation.d.ts +16 -0
  35. package/dist/{index-DMPKN3KH.mjs → index-DrkyY71q.mjs} +49442 -80552
  36. package/dist/index.es.js +61 -55
  37. package/dist/index.umd.js +254 -581
  38. package/dist/{webworkerAll-DGICWu_O.mjs → init-DwmuXO-N.mjs} +1 -1
  39. package/dist/models/layoutUtils.d.ts +1 -1
  40. package/dist/trackConfigs/config-menu-components.tsx/CategoryColorConfig.d.ts +3 -2
  41. package/dist/trackConfigs/config-menu-components.tsx/MethylColorConfig.d.ts +3 -2
  42. package/dist/trackConfigs/config-menu-components.tsx/SliderConfig.d.ts +7 -6
  43. package/dist/webworkerAll-CGIZ8uaY.mjs +2 -0
  44. package/package.json +7 -8
@@ -1,4 +1,4 @@
1
- import { q as Le, G as se, t as ae, u as He, k as ne, M as v, v as ie, E as u, e as O, x as S, y as ze, z as F, F as b, R as L, H as oe, I as We, s as m, S as f, h as B, w as H, J as Y, K as Ve, b as J, B as k, i as U, L as M, j as T, N as w, O as Ne, a as je, Q as le, V as ue, W as de, X as ce, C as P, Y as A, Z as $e, P as qe, c as Ke, T as X, D as he, _ as Q, $ as Ye, a0 as Je, a1 as Xe } from "./index-DMPKN3KH.mjs";
1
+ import { q as Le, G as se, t as ae, u as He, k as ne, M as v, v as ie, E as u, e as O, x as S, y as ze, z as F, F as b, R as L, H as oe, I as We, s as m, S as f, h as B, w as H, J as Y, K as Ve, b as J, B as k, i as U, L as M, j as T, N as w, O as Ne, a as je, Q as le, V as ue, W as de, X as ce, C as P, Y as A, Z as $e, P as qe, c as Ke, T as X, D as he, _ as Q, $ as Ye, a0 as Je, a1 as Xe } from "./index-DrkyY71q.mjs";
2
2
  import { S as fe, B as pe, c as Qe } from "./colorToUniform-zJcCVLeu.mjs";
3
3
  const me = class I extends Le {
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { E as d, B, w as m, D as S, J as K, t as Be, q as U, s as b, a2 as Ae, j as $, a3 as Ne, S as p, N as H, i as A, h as N, k as F, M as z, a4 as Y, a5 as ye, a6 as Ce, a7 as q, a8 as De, A as Ie, R as Ge, e as v } from "./index-DMPKN3KH.mjs";
1
+ import { E as d, B, w as m, D as S, J as K, t as Be, q as U, s as b, a2 as Ae, j as $, a3 as Ne, S as p, N as H, i as A, h as N, k as F, M as z, a4 as Y, a5 as ye, a6 as Ce, a7 as q, a8 as De, A as Ie, R as Ge, e as v } from "./index-DrkyY71q.mjs";
2
2
  import { S as O, b as Z } from "./colorToUniform-zJcCVLeu.mjs";
3
- import { e as Ue, G as Fe, c as Oe, b as Pe, U as Me, R as Le, B as J, d as y, f as He, S as we, a as Ve } from "./SharedSystems-DwpQs0B3.mjs";
3
+ import { e as Ue, G as Fe, c as Oe, b as Pe, U as Me, R as Le, B as J, d as y, f as He, S as we, a as Ve } from "./SharedSystems-ea3Jya5x.mjs";
4
4
  class Q {
5
5
  constructor() {
6
6
  this._tempState = O.for2d(), this._didUploadHash = {};
@@ -1,6 +1,6 @@
1
- import { g as E, E as p, f as ae, D as B, S as C, B as T, b as ue, c as L, d as M, w as v, h as y, i as ce, j as de, k as A, l as w, M as k, m as D, n as he, o as pe, p as H, q as z, s as R, A as le, R as fe, e as S } from "./index-DMPKN3KH.mjs";
1
+ import { g as E, E as p, f as ae, D as B, S as C, B as T, b as ue, c as L, d as M, w as v, h as y, i as ce, j as de, k as A, l as w, M as k, m as D, n as he, o as pe, p as H, q as z, s as R, A as le, R as fe, e as S } from "./index-DrkyY71q.mjs";
2
2
  import { S as F, l as ge, a as me } from "./colorToUniform-zJcCVLeu.mjs";
3
- import { c as _e, u as be, U as ye, B as xe, G as Ge, e as Be, R as Se, t as Pe, S as Te, a as Ce } from "./SharedSystems-DwpQs0B3.mjs";
3
+ import { c as _e, u as be, U as ye, B as xe, G as Ge, e as Be, R as Se, t as Pe, S as Te, a as Ce } from "./SharedSystems-ea3Jya5x.mjs";
4
4
  const x = F.for2d();
5
5
  class O {
6
6
  start(e, t, r) {
@@ -1,5 +1,5 @@
1
- import { P as g, r as Q, E as b, T as C, U as ee, a as te, w as y, e as w, C as Z } from "./index-DMPKN3KH.mjs";
2
- import "./webworkerAll-DGICWu_O.mjs";
1
+ import { P as g, r as Q, E as b, T as C, U as ee, a as te, w as y, e as w, C as Z } from "./index-DrkyY71q.mjs";
2
+ import "./init-DwmuXO-N.mjs";
3
3
  class M {
4
4
  /**
5
5
  * @param manager - The event boundary which manages this event. Propagation can only occur
@@ -7,4 +7,4 @@ export declare const ShapeList: {
7
7
  onSetMessage: () => void;
8
8
  };
9
9
  };
10
- export declare function usePrevious(data: any): unknown;
10
+ export declare function usePrevious(data: any): undefined;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import Feature from "../../../../models/Feature";
3
4
  import OpenInterval from "../../../../models/OpenInterval";
4
5
  interface CategoricalAnnotationProps {
@@ -27,17 +28,17 @@ interface CategoricalAnnotationProps {
27
28
  declare class CategoricalAnnotation extends React.Component<CategoricalAnnotationProps> {
28
29
  static TEXT_HEIGHT: number;
29
30
  static propTypes: {
30
- feature: any;
31
- xSpan: any;
32
- y: any;
33
- color: any;
34
- isMinimal: any;
31
+ feature: PropTypes.Validator<Feature>;
32
+ xSpan: PropTypes.Validator<OpenInterval>;
33
+ y: PropTypes.Requireable<number>;
34
+ color: PropTypes.Requireable<string>;
35
+ isMinimal: PropTypes.Requireable<boolean>;
35
36
  /**
36
37
  * Callback for click events. Signature: (event: MouseEvent, feature: Feature): void
37
38
  * `event`: the triggering click event
38
39
  * `feature`: the same Feature as the one passed via props
39
40
  */
40
- onClick: any;
41
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
41
42
  };
42
43
  static defaultProps: {
43
44
  color: string;
@@ -1,4 +1,5 @@
1
1
  import { PureComponent } from "react";
2
+ import PropTypes from "prop-types";
2
3
  import { ScaleChoices } from "../../../../models/ScaleChoices";
3
4
  export declare const MAX_PIXELS_PER_BASE_NUMERIC = 0.5;
4
5
  export declare const DEFAULT_OPTIONS: {
@@ -40,11 +41,15 @@ interface DynseqTrackProps {
40
41
  }
41
42
  declare class DynseqTrackComponents extends PureComponent<DynseqTrackProps> {
42
43
  static propTypes: {
43
- data: any;
44
- unit: any;
45
- options: any;
46
- isLoading: any;
47
- error: any;
44
+ data: PropTypes.Validator<any[]>;
45
+ unit: PropTypes.Requireable<string>;
46
+ options: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
47
+ aggregateMethod: PropTypes.Requireable<string>;
48
+ height: PropTypes.Validator<number>;
49
+ color: PropTypes.Requireable<string>;
50
+ }>>>;
51
+ isLoading: PropTypes.Requireable<boolean>;
52
+ error: PropTypes.Requireable<any>;
48
53
  };
49
54
  xToValue: Array<any> | null;
50
55
  xToValue2: Array<any> | null;
@@ -0,0 +1,62 @@
1
+ import React, { MouseEvent } from "react";
2
+ import { FeaturePlacer } from "../../../../models/getXSpan/FeaturePlacer";
3
+ import { GenomeInteraction } from "../../../../getRemoteData/GenomeInteraction";
4
+ import { ScaleChoices } from "../../../../models/ScaleChoices";
5
+ import { DynamicInteractionDisplayMode } from "../../../../trackConfigs/config-menu-models.tsx/DisplayModes";
6
+ interface DynamicInteractionTrackComponentsProps {
7
+ data: GenomeInteraction[];
8
+ options: {
9
+ color: string;
10
+ color2?: string;
11
+ backgroundColor?: string;
12
+ binSize?: number;
13
+ scoreScale?: string;
14
+ scoreMax?: number;
15
+ scoreMin?: number;
16
+ height: number;
17
+ playing?: boolean;
18
+ speed?: number[];
19
+ lineWidth?: number;
20
+ displayMode: DynamicInteractionDisplayMode;
21
+ dynamicColors?: any[];
22
+ useDynamicColors?: boolean;
23
+ };
24
+ viewer3dNumFrames?: any;
25
+ trackModel: any;
26
+ visRegion: any;
27
+ width: number;
28
+ viewWindow: any;
29
+ updatedLegend?: any;
30
+ }
31
+ export declare const DEFAULT_OPTIONS: {
32
+ color: string;
33
+ color2: string;
34
+ backgroundColor: string;
35
+ scoreScale: ScaleChoices;
36
+ scoreMax: number;
37
+ scoreMin: number;
38
+ height: number;
39
+ playing: boolean;
40
+ speed: number[];
41
+ lineWidth: number;
42
+ useDynamicColors: boolean;
43
+ dynamicColors: any[];
44
+ displayMode: DynamicInteractionDisplayMode;
45
+ };
46
+ declare class DynamicInteractionTrackComponents extends React.PureComponent<DynamicInteractionTrackComponentsProps> {
47
+ featurePlacer: FeaturePlacer;
48
+ scales: any;
49
+ constructor(props: DynamicInteractionTrackComponentsProps);
50
+ computeScale: () => {
51
+ opacityScale: import("d3-scale").ScaleLinear<number, number, never>;
52
+ min: number;
53
+ max: any;
54
+ } | {
55
+ opacityScale: import("d3-scale").ScaleLinear<number, number, never>;
56
+ min: number | undefined;
57
+ max: number | undefined;
58
+ };
59
+ showTooltip(event: MouseEvent, interaction: GenomeInteraction): void;
60
+ render(): JSX.Element;
61
+ }
62
+ export default DynamicInteractionTrackComponents;
@@ -1,4 +1,5 @@
1
1
  import { PureComponent } from "react";
2
+ import PropTypes from "prop-types";
2
3
  import * as PIXI from "pixi.js";
3
4
  interface PixiHeatmapProps {
4
5
  placedInteractionsArray: any;
@@ -34,17 +35,17 @@ interface PixiHeatmapState {
34
35
  }
35
36
  export declare class PixiHeatmap extends PureComponent<PixiHeatmapProps, PixiHeatmapState> {
36
37
  static propTypes: {
37
- placedInteractionsArray: any;
38
- viewWindow: any;
39
- opacityScale: any;
40
- height: any;
41
- width: any;
42
- backgroundColor: any;
43
- color: any;
44
- color2: any;
45
- speed: any;
46
- steps: any;
47
- currentStep: any;
38
+ placedInteractionsArray: PropTypes.Validator<any[]>;
39
+ viewWindow: PropTypes.Validator<object>;
40
+ opacityScale: PropTypes.Validator<(...args: any[]) => any>;
41
+ height: PropTypes.Validator<number>;
42
+ width: PropTypes.Validator<number>;
43
+ backgroundColor: PropTypes.Requireable<string>;
44
+ color: PropTypes.Requireable<string>;
45
+ color2: PropTypes.Requireable<string>;
46
+ speed: PropTypes.Requireable<any[]>;
47
+ steps: PropTypes.Requireable<number>;
48
+ currentStep: PropTypes.Requireable<number>;
48
49
  };
49
50
  static defaultProps: Partial<PixiHeatmapProps>;
50
51
  private myRef;
@@ -1,4 +1,5 @@
1
1
  import { PureComponent } from "react";
2
+ import PropTypes from "prop-types";
2
3
  export declare const DEFAULT_OPTIONS: {
3
4
  height: number;
4
5
  isCombineStrands: boolean;
@@ -51,10 +52,15 @@ interface MethylCTrackProps {
51
52
  }
52
53
  declare class MethylCTrack extends PureComponent<MethylCTrackProps> {
53
54
  static propTypes: {
54
- data: any;
55
- options: any;
56
- isLoading: any;
57
- error: any;
55
+ data: PropTypes.Validator<any[]>;
56
+ options: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
57
+ aggregateMethod: PropTypes.Requireable<string>;
58
+ height: PropTypes.Validator<number>;
59
+ color: PropTypes.Requireable<string>;
60
+ isCombineStrands: PropTypes.Requireable<boolean>;
61
+ }>>>;
62
+ isLoading: PropTypes.Requireable<boolean>;
63
+ error: PropTypes.Requireable<any>;
58
64
  };
59
65
  aggregatedRecords: any[];
60
66
  scales: any;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import OpenInterval from "../../../../models/OpenInterval";
3
4
  import Vcf from "./Vcf";
4
5
  /**
@@ -19,19 +20,19 @@ interface Props {
19
20
  }
20
21
  declare class VcfAnnotation extends React.Component<Props> {
21
22
  static propTypes: {
22
- feature: any;
23
- xSpan: any;
24
- y: any;
25
- height: any;
26
- colorScale: any;
27
- reverseStrandColor: any;
28
- isMinimal: any;
23
+ feature: PropTypes.Validator<Vcf>;
24
+ xSpan: PropTypes.Validator<OpenInterval>;
25
+ y: PropTypes.Requireable<number>;
26
+ height: PropTypes.Requireable<number>;
27
+ colorScale: PropTypes.Requireable<any>;
28
+ reverseStrandColor: PropTypes.Requireable<string>;
29
+ isMinimal: PropTypes.Requireable<boolean>;
29
30
  /**
30
31
  * Callback for click events. Signature: (event: MouseEvent, feature: Feature): void
31
32
  * `event`: the triggering click event
32
33
  * `feature`: the same Feature as the one passed via props
33
34
  */
34
- onClick: any;
35
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
35
36
  };
36
37
  static defaultProps: {
37
38
  onClick: (event: any, feature: any) => undefined;
@@ -1,4 +1,6 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import DisplayedRegionModel from "../../../../../models/DisplayedRegionModel";
2
4
  /**
3
5
  * Calculates genomic coordinates at a page coordinate and displays them.
4
6
  *
@@ -11,9 +13,9 @@ interface GenomicCoordinatesProps {
11
13
  }
12
14
  declare class GenomicCoordinates extends React.Component<GenomicCoordinatesProps> {
13
15
  static propTypes: {
14
- viewRegion: any;
15
- width: any;
16
- x: any;
16
+ viewRegion: PropTypes.Validator<DisplayedRegionModel>;
17
+ width: PropTypes.Validator<number>;
18
+ x: PropTypes.Validator<number>;
17
19
  };
18
20
  /**
19
21
  * @inheritdoc
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const useResizeObserver: () => readonly [import("react").RefObject<HTMLDivElement | null>, {
2
+ declare const useResizeObserver: () => readonly [import("react").MutableRefObject<HTMLDivElement | null>, {
3
3
  width: number;
4
4
  height: number;
5
5
  }];
@@ -0,0 +1,76 @@
1
+ import React from "react";
2
+ import TrackModel, { TrackOptions } from "../../../../models/TrackModel";
3
+ import OpenInterval from "../../../../models/OpenInterval";
4
+ /**
5
+ * Props that TrackContainers provide. Track subtypes may read and use them in any way they wish. Be sure to pass them
6
+ * through to this component!
7
+ */
8
+ export interface PropsFromTrackContainer {
9
+ trackModel: TrackModel;
10
+ width: number;
11
+ viewWindow: OpenInterval;
12
+ metadataTerms?: string[];
13
+ xOffset?: number;
14
+ index?: number;
15
+ options?: TrackOptions;
16
+ style?: object;
17
+ panningAnimation?: string;
18
+ zoomAnimation?: number;
19
+ data: any[];
20
+ meta?: any;
21
+ fileInfo?: any;
22
+ isLoading: boolean;
23
+ error?: any;
24
+ /**
25
+ * Callback for context menu events.
26
+ *
27
+ * @param {React.MouseEvent} event - the event that triggered the callback
28
+ * @param {number} index - this component's `index` prop
29
+ */
30
+ onContextMenu?(event: React.MouseEvent, index: number): void;
31
+ /**
32
+ * Callback for click events EXCEPT those on the metadata indicators.
33
+ *
34
+ * @param {React.MouseEvent} event - the event that triggered the callback
35
+ * @param {number} index - this component's `index` prop
36
+ */
37
+ onClick?(event: React.MouseEvent, index: number): void;
38
+ /**
39
+ * Callback for clicks on the metadata indicators
40
+ *
41
+ * @param {React.MouseEvent} event - the event that triggered the callback
42
+ * @param {string} term - the metadata term that was clicked
43
+ * @param {number} index - this component's `index` prop
44
+ */
45
+ onMetadataClick?(event: React.MouseEvent, term: string, index: number): void;
46
+ }
47
+ /**
48
+ * Track containers do not provide the following. Track subtypes must provide them.
49
+ */
50
+ interface CustomizationProps {
51
+ legend: JSX.Element;
52
+ visualizer: JSX.Element;
53
+ message?: JSX.Element;
54
+ }
55
+ type TrackProps = PropsFromTrackContainer & CustomizationProps;
56
+ /**
57
+ * Displays track legends, visualizers, and metadata bars more-or-less consistently.
58
+ *
59
+ * @author Silas Hsu
60
+ */
61
+ declare class Track extends React.Component<TrackProps> {
62
+ static defaultProps: Partial<TrackProps>;
63
+ private ignoreNextClick;
64
+ constructor(props: TrackProps);
65
+ handleContextMenu(event: React.MouseEvent): void;
66
+ handleClick(event: React.MouseEvent): void;
67
+ handleMetadataClick(event: React.MouseEvent, term: string): void;
68
+ /**
69
+ * Renders track legend, visualizer, loading notice, etc.
70
+ *
71
+ * @return {JSX.Element} element to render
72
+ * @override
73
+ */
74
+ render(): import("react/jsx-runtime").JSX.Element;
75
+ }
76
+ export default Track;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  /**
3
4
  * A message in a <p> that says "x items too small - zoom in to view".
4
5
  *
@@ -9,19 +10,19 @@ import React from "react";
9
10
  export declare function HiddenItemsMessage(props: any): import("react/jsx-runtime").JSX.Element | null;
10
11
  export declare namespace HiddenItemsMessage {
11
12
  var propTypes: {
12
- numHidden: any;
13
+ numHidden: PropTypes.Validator<number>;
13
14
  };
14
15
  }
15
16
  export declare function HiddenImagesMessage(props: any): import("react/jsx-runtime").JSX.Element | null;
16
17
  export declare namespace HiddenImagesMessage {
17
18
  var propTypes: {
18
- numHidden: any;
19
+ numHidden: PropTypes.Validator<number>;
19
20
  };
20
21
  }
21
22
  export declare class TrackMessage extends React.PureComponent {
22
23
  static propTypes: {
23
- message: any;
24
- style: any;
24
+ message: PropTypes.Requireable<string>;
25
+ style: PropTypes.Requireable<object>;
25
26
  };
26
27
  constructor(props: any);
27
28
  /**
@@ -1,4 +1,6 @@
1
+ import PropTypes from "prop-types";
1
2
  import React from "react";
3
+ import Feature from "../../../../../models/Feature";
2
4
  /**
3
5
  * Box that contains feature details when an annotation is clicked.
4
6
  *
@@ -11,9 +13,9 @@ interface FeatureDetailProps {
11
13
  }
12
14
  declare class FeatureDetail extends React.PureComponent<FeatureDetailProps> {
13
15
  static propTypes: {
14
- feature: any;
15
- category: any;
16
- queryEndpoint: any;
16
+ feature: PropTypes.Validator<Feature>;
17
+ category: PropTypes.Requireable<object>;
18
+ queryEndpoint: PropTypes.Requireable<object>;
17
19
  };
18
20
  render(): import("react/jsx-runtime").JSX.Element;
19
21
  }
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import * as PIXI from "pixi.js";
3
4
  export declare const TOP_PADDING = 2;
4
5
  export declare const ROW_VERTICAL_PADDING = 2;
@@ -32,16 +33,16 @@ interface PixiAnnotationState {
32
33
  }
33
34
  export declare class PixiAnnotation extends React.PureComponent<PixiAnnotationProps, PixiAnnotationState> {
34
35
  static propTypes: {
35
- arrangeResults: any;
36
- viewWindow: any;
37
- height: any;
38
- width: any;
39
- backgroundColor: any;
40
- color: any;
41
- color2: any;
42
- speed: any;
43
- steps: any;
44
- currentStep: any;
36
+ arrangeResults: PropTypes.Validator<any[]>;
37
+ viewWindow: PropTypes.Validator<object>;
38
+ height: PropTypes.Validator<number>;
39
+ width: PropTypes.Validator<number>;
40
+ backgroundColor: PropTypes.Requireable<string>;
41
+ color: PropTypes.Requireable<string>;
42
+ color2: PropTypes.Requireable<string>;
43
+ speed: PropTypes.Requireable<any[]>;
44
+ steps: PropTypes.Requireable<number>;
45
+ currentStep: PropTypes.Requireable<number>;
45
46
  };
46
47
  static defaultProps: Partial<PixiAnnotationProps>;
47
48
  private myRef;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import { ScaleChoices } from "../../../../../models/ScaleChoices";
3
4
  export declare const DEFAULT_OPTIONS: {
4
5
  aggregateMethod: string;
@@ -54,11 +55,11 @@ interface DynamicplotTrackState {
54
55
  }
55
56
  declare class DynamicplotTrackComponent extends React.PureComponent<DynamicplotTrackProps, DynamicplotTrackState> {
56
57
  static propTypes: {
57
- data: any;
58
- unit: any;
59
- options: any;
60
- isLoading: any;
61
- error: any;
58
+ data: PropTypes.Validator<any[]>;
59
+ unit: PropTypes.Requireable<string>;
60
+ options: PropTypes.Validator<object>;
61
+ isLoading: PropTypes.Requireable<boolean>;
62
+ error: PropTypes.Requireable<any>;
62
63
  };
63
64
  private xToValue;
64
65
  private scales;
@@ -1,4 +1,6 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import DisplayedRegionModel from "../../../../../models/DisplayedRegionModel";
2
4
  /**
3
5
  * Calculates genomic coordinates at a page coordinate and displays them.
4
6
  *
@@ -11,9 +13,9 @@ interface GenomicCoordinatesProps {
11
13
  }
12
14
  declare class GenomicCoordinates extends React.Component<GenomicCoordinatesProps> {
13
15
  static propTypes: {
14
- viewRegion: any;
15
- width: any;
16
- x: any;
16
+ viewRegion: PropTypes.Validator<DisplayedRegionModel>;
17
+ width: PropTypes.Validator<number>;
18
+ x: PropTypes.Validator<number>;
17
19
  };
18
20
  /**
19
21
  * @inheritdoc
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import { ScaleChoices } from "../../../../../models/ScaleChoices";
3
4
  import Feature from "../../../../../models/Feature";
4
5
  export declare const DEFAULT_OPTIONS: {
@@ -38,11 +39,14 @@ declare class MatplotTrackComponent extends React.PureComponent<MatplotTrackProp
38
39
  /**
39
40
  * NumericalFeatureProcessor provides these. Parents should provide an array of NumericalFeature.
40
41
  */
41
- data: any;
42
- unit: any;
43
- options: any;
44
- isLoading: any;
45
- error: any;
42
+ data: PropTypes.Validator<any[]>;
43
+ unit: PropTypes.Requireable<string>;
44
+ options: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
45
+ aggregateMethod: PropTypes.Requireable<string>;
46
+ height: PropTypes.Validator<number>;
47
+ }>>>;
48
+ isLoading: PropTypes.Requireable<boolean>;
49
+ error: PropTypes.Requireable<any>;
46
50
  };
47
51
  xToValue: any;
48
52
  scales: any;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import * as PIXI from "pixi.js";
3
4
  interface PixiSceneProps {
4
5
  xToValue: {
@@ -30,15 +31,15 @@ interface PixiSceneState {
30
31
  }
31
32
  export declare class PixiScene extends React.PureComponent<PixiSceneProps, PixiSceneState> {
32
33
  static propTypes: {
33
- xToValue: any;
34
- scales: any;
35
- height: any;
36
- width: any;
37
- backgroundColor: any;
38
- color: any;
39
- speed: any;
40
- steps: any;
41
- currentStep: any;
34
+ xToValue: PropTypes.Validator<any[]>;
35
+ scales: PropTypes.Validator<object>;
36
+ height: PropTypes.Validator<number>;
37
+ width: PropTypes.Validator<number>;
38
+ backgroundColor: PropTypes.Requireable<string>;
39
+ color: PropTypes.Requireable<string>;
40
+ speed: PropTypes.Requireable<any[]>;
41
+ steps: PropTypes.Requireable<number>;
42
+ currentStep: PropTypes.Requireable<number>;
42
43
  };
43
44
  static defaultProps: Partial<PixiSceneProps>;
44
45
  private myRef;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  import * as d3 from "d3";
3
4
  import TrackModel from "../../../../../models/TrackModel";
4
5
  import DisplayedRegionModel from "../../../../../models/DisplayedRegionModel";
@@ -31,11 +32,15 @@ declare class BoxplotTrackComponents extends React.PureComponent<BoxplotTrackPro
31
32
  /**
32
33
  * NumericalFeatureProcessor provides these. Parents should provide an array of NumericalFeature.
33
34
  */
34
- data: any;
35
- unit: any;
36
- options: any;
37
- isLoading: any;
38
- error: any;
35
+ data: PropTypes.Validator<any[]>;
36
+ unit: PropTypes.Requireable<string>;
37
+ options: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
38
+ height: PropTypes.Validator<number>;
39
+ color: PropTypes.Requireable<string>;
40
+ windowSize: PropTypes.Requireable<number>;
41
+ }>>>;
42
+ isLoading: PropTypes.Requireable<boolean>;
43
+ error: PropTypes.Requireable<any>;
39
44
  };
40
45
  xMap: {};
41
46
  xAlias: {};
@@ -84,14 +89,14 @@ interface BoxplotProps {
84
89
  }
85
90
  export declare class Boxplot extends React.PureComponent<BoxplotProps> {
86
91
  static propTypes: {
87
- xMap: any;
88
- scales: any;
89
- height: any;
90
- width: any;
91
- windowSize: any;
92
- boxColor: any;
93
- lineColor: any;
94
- forceSvg: any;
92
+ xMap: PropTypes.Validator<object>;
93
+ scales: PropTypes.Validator<object>;
94
+ height: PropTypes.Validator<number>;
95
+ width: PropTypes.Validator<number>;
96
+ windowSize: PropTypes.Validator<number>;
97
+ boxColor: PropTypes.Requireable<string>;
98
+ lineColor: PropTypes.Requireable<string>;
99
+ forceSvg: PropTypes.Requireable<boolean>;
95
100
  };
96
101
  /**
97
102
  * Gets an element to draw for a data record.
@@ -1,4 +1,10 @@
1
1
  export declare const FIBER_DENSITY_CUTOFF_LENGTH = 300000;
2
+ export declare const interactionTracks: Set<string>;
3
+ export declare const bigWithNavTracks: Set<string>;
4
+ export declare const instanceFetchTracks: Set<string>;
5
+ export declare const dynamicMatplotTracks: Set<string>;
6
+ export declare const anchorTracks: Set<string>;
7
+ export declare const densityTracks: Set<string>;
2
8
  export declare const displayModeComponentMap: {
3
9
  [key: string]: any;
4
10
  };
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
2
3
  /**
3
4
  * SVG <text> element with background color. For performance reasons, this component guesses the text dimensions
4
5
  * rather than measuring the text's bounding box. It is reasonably good at this estimation; nonetheless, we are dealing
@@ -23,15 +24,15 @@ interface BackgroundedTextProps {
23
24
  }
24
25
  declare class BackgroundedText extends React.Component<BackgroundedTextProps> {
25
26
  static propTypes: {
26
- x: any;
27
- y: any;
28
- dominantBaseline: any;
29
- textAnchor: any;
30
- children: any;
31
- height: any;
32
- horizontalPadding: any;
33
- backgroundColor: any;
34
- backgroundOpacity: any;
27
+ x: PropTypes.Requireable<number>;
28
+ y: PropTypes.Requireable<number>;
29
+ dominantBaseline: PropTypes.Requireable<string>;
30
+ textAnchor: PropTypes.Requireable<string>;
31
+ children: PropTypes.Requireable<string>;
32
+ height: PropTypes.Requireable<number>;
33
+ horizontalPadding: PropTypes.Requireable<number>;
34
+ backgroundColor: PropTypes.Requireable<string>;
35
+ backgroundOpacity: PropTypes.Requireable<number>;
35
36
  };
36
37
  static defaultProps: {
37
38
  x: number;