oncoprintjs 6.0.7 → 6.1.1

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.
@@ -1,6 +1,6 @@
1
- export declare type SortingVector = (number | string)[];
2
- declare type CompareEquals<T> = (a: T, b: T) => number;
3
- declare type GetVector<T> = (t: T) => SortingVector;
1
+ export type SortingVector = (number | string)[];
2
+ type CompareEquals<T> = (a: T, b: T) => number;
3
+ type GetVector<T> = (t: T) => SortingVector;
4
4
  export declare function bucketSort<T>(array: T[], getVector?: (t: T) => SortingVector, compareEquals?: CompareEquals<T>): T[];
5
5
  export declare function stringSort<T>(array: T[], getString?: (t: T) => string): T[];
6
6
  export declare function stringToVector(string: string): number[];
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import './polyfill';
4
5
  import OncoprintModel, { ColumnId, ColumnLabel, ColumnProp, CustomTrackOption, Datum, GAP_MODE_ENUM, SortConfig, TrackGroupHeader, TrackGroupIndex, TrackId, TrackSortDirection, TrackSortSpecification, TrackTooltipFn, UserTrackSpec } from './oncoprintmodel';
@@ -10,7 +11,7 @@ import OncoprintLegendView from './oncoprintlegendrenderer';
10
11
  import OncoprintTrackInfoView from './oncoprinttrackinfoview';
11
12
  import OncoprintMinimapView, { MinimapViewportSpec } from './oncoprintminimapview';
12
13
  import OncoprintHeaderView from './oncoprintheaderview';
13
- export declare type InitParams = {
14
+ export type InitParams = {
14
15
  init_cell_width?: number;
15
16
  init_cell_padding?: number;
16
17
  cell_padding_off_cell_width_threshold?: number;
@@ -20,11 +21,11 @@ export declare type InitParams = {
20
21
  init_cell_padding_on?: boolean;
21
22
  max_height?: number;
22
23
  };
23
- export declare type HorzZoomCallback = (zoom: number) => void;
24
- export declare type MinimapCloseCallback = () => void;
25
- export declare type CellMouseOverCallback = (uid: ColumnId | null, track_id?: TrackId) => void;
26
- export declare type CellClickCallback = (uid: ColumnId | null, track_id?: TrackId) => void;
27
- export declare type ClipboardChangeCallback = (ids: ColumnId[]) => void;
24
+ export type HorzZoomCallback = (zoom: number) => void;
25
+ export type MinimapCloseCallback = () => void;
26
+ export type CellMouseOverCallback = (uid: ColumnId | null, track_id?: TrackId) => void;
27
+ export type CellClickCallback = (uid: ColumnId | null, track_id?: TrackId) => void;
28
+ export type ClipboardChangeCallback = (ids: ColumnId[]) => void;
28
29
  export default class Oncoprint {
29
30
  private ctr_selector;
30
31
  private width;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintModel from './oncoprintmodel';
4
5
  export declare const CLOSE_MENUS_EVENT = "oncoprint-header-view.do-close-menus";
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintModel, { TrackId } from './oncoprintmodel';
4
5
  import OncoprintToolTip from './oncoprinttooltip';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintModel from './oncoprintmodel';
4
5
  export default class OncoprintLegendView {
@@ -1,8 +1,9 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintModel, { ColumnIndex } from './oncoprintmodel';
4
5
  import OncoprintWebGLCellView from './oncoprintwebglcellview';
5
- export declare type MinimapViewportSpec = {
6
+ export type MinimapViewportSpec = {
6
7
  left_col: ColumnIndex;
7
8
  right_col: ColumnIndex;
8
9
  scroll_y_proportion: number;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import CachedProperty from './CachedProperty';
4
5
  import { RuleSet, RuleSetParams, RuleWithId } from './oncoprintruleset';
@@ -10,47 +11,47 @@ export declare enum GAP_MODE_ENUM {
10
11
  SHOW_GAPS_PERCENT = "SHOW_GAPS_PERCENT",
11
12
  HIDE_GAPS = "HIDE_GAPS"
12
13
  }
13
- export declare type ColumnId = string;
14
- export declare type ColumnIndex = number;
15
- export declare type TrackId = number;
16
- export declare type Datum = any;
17
- export declare type RuleSetId = number;
18
- export declare type TrackGroupHeader = {
14
+ export type ColumnId = string;
15
+ export type ColumnIndex = number;
16
+ export type TrackId = number;
17
+ export type Datum = any;
18
+ export type RuleSetId = number;
19
+ export type TrackGroupHeader = {
19
20
  label: {
20
21
  text: string;
21
22
  };
22
23
  options: CustomTrackGroupOption[];
23
24
  };
24
- export declare type TrackGroup = {
25
+ export type TrackGroup = {
25
26
  header?: TrackGroupHeader;
26
27
  tracks: TrackId[];
27
28
  };
28
- export declare type TrackGroupIndex = number;
29
- export declare type TrackSortDirection = 0 | 1 | -1;
30
- export declare type TrackSortComparator<D> = (d1: D, d2: D) => number;
31
- export declare type TrackSortVector<D> = (d: D) => (number | string)[];
32
- export declare type TrackTooltipFn<D> = (cell_data: D[]) => HTMLElement | string | any;
33
- export declare type TrackSortSpecificationComparators<D> = {
29
+ export type TrackGroupIndex = number;
30
+ export type TrackSortDirection = 0 | 1 | -1;
31
+ export type TrackSortComparator<D> = (d1: D, d2: D) => number;
32
+ export type TrackSortVector<D> = (d: D) => (number | string)[];
33
+ export type TrackTooltipFn<D> = (cell_data: D[]) => HTMLElement | string | any;
34
+ export type TrackSortSpecificationComparators<D> = {
34
35
  mandatory: TrackSortComparator<D>;
35
36
  preferred: TrackSortComparator<D>;
36
37
  isVector?: false;
37
38
  };
38
- export declare type TrackSortSpecificationVectors<D> = {
39
+ export type TrackSortSpecificationVectors<D> = {
39
40
  mandatory: TrackSortVector<D>;
40
41
  preferred: TrackSortVector<D>;
41
42
  isVector: true;
42
43
  compareEquals?: TrackSortComparator<D>;
43
44
  };
44
- export declare type TrackSortSpecification<D> = TrackSortSpecificationComparators<D> | TrackSortSpecificationVectors<D>;
45
- export declare type ActiveRules = {
45
+ export type TrackSortSpecification<D> = TrackSortSpecificationComparators<D> | TrackSortSpecificationVectors<D>;
46
+ export type ActiveRules = {
46
47
  [ruleId: number]: boolean;
47
48
  };
48
- export declare type ActiveRulesCount = {
49
+ export type ActiveRulesCount = {
49
50
  [ruleId: number]: number;
50
51
  };
51
- export declare type TrackSortDirectionChangeCallback = (track_id: TrackId, dir: number) => void;
52
- export declare type TrackGapChangeCallBack = (track_id: TrackId, mode: GAP_MODE_ENUM) => void;
53
- export declare type CustomTrackOption = {
52
+ export type TrackSortDirectionChangeCallback = (track_id: TrackId, dir: number) => void;
53
+ export type TrackGapChangeCallBack = (track_id: TrackId, mode: GAP_MODE_ENUM) => void;
54
+ export type CustomTrackOption = {
54
55
  label?: string;
55
56
  separator?: boolean;
56
57
  onClick?: (id: TrackId) => void;
@@ -58,14 +59,14 @@ export declare type CustomTrackOption = {
58
59
  disabled?: boolean;
59
60
  gapLabelsFn?: (model: OncoprintModel) => OncoprintGapConfig[];
60
61
  };
61
- export declare type CustomTrackGroupOption = {
62
+ export type CustomTrackGroupOption = {
62
63
  label?: string;
63
64
  separator?: boolean;
64
65
  onClick?: (id: TrackGroupIndex) => void;
65
66
  weight?: () => string;
66
67
  disabled?: () => boolean;
67
68
  };
68
- export declare type UserTrackSpec<D> = {
69
+ export type UserTrackSpec<D> = {
69
70
  target_group?: TrackGroupIndex;
70
71
  cell_height?: number;
71
72
  track_padding?: number;
@@ -103,17 +104,17 @@ export declare type UserTrackSpec<D> = {
103
104
  track_can_show_gaps?: boolean;
104
105
  show_gaps_on_init?: boolean;
105
106
  };
106
- export declare type LibraryTrackSpec<D> = UserTrackSpec<D> & {
107
+ export type LibraryTrackSpec<D> = UserTrackSpec<D> & {
107
108
  rule_set: RuleSet;
108
109
  track_id: TrackId;
109
110
  };
110
- export declare type TrackOverlappingCells = {
111
+ export type TrackOverlappingCells = {
111
112
  ids: ColumnId[];
112
113
  track: TrackId;
113
114
  top: number;
114
115
  left: number;
115
116
  };
116
- export declare type SortConfig = {
117
+ export type SortConfig = {
117
118
  type: 'alphabetical';
118
119
  } | {
119
120
  type: 'order';
@@ -125,36 +126,36 @@ export declare type SortConfig = {
125
126
  } | {
126
127
  type?: '';
127
128
  };
128
- export declare type IdentifiedShapeList = {
129
+ export type IdentifiedShapeList = {
129
130
  id: ColumnId;
130
131
  shape_list: ComputedShapeParams[];
131
132
  };
132
- export declare type ClusterSortResult = {
133
+ export type ClusterSortResult = {
133
134
  track_group_index: TrackGroupIndex;
134
135
  track_id_order: TrackId[];
135
136
  };
136
- export declare type ColumnLabel = {
137
+ export type ColumnLabel = {
137
138
  left_padding_percent?: number;
138
139
  text_color?: string;
139
140
  circle_color?: string;
140
141
  angle_in_degrees?: number;
141
142
  text: string;
142
143
  };
143
- export declare type TrackProp<T> = {
144
+ export type TrackProp<T> = {
144
145
  [trackId: number]: T;
145
146
  };
146
- export declare type TrackGroupProp<T> = {
147
+ export type TrackGroupProp<T> = {
147
148
  [trackGroupIndex: number]: T;
148
149
  };
149
- export declare type ColumnProp<T> = {
150
+ export type ColumnProp<T> = {
150
151
  [columnId: string]: T;
151
152
  };
152
- export declare type ColumnIdSet = {
153
+ export type ColumnIdSet = {
153
154
  [columnId: string]: any;
154
155
  };
155
- export declare type OncoprintDataGroupsByTrackId<T> = Record<string, OncoprintDataGroups<T>[]>;
156
- export declare type OncoprintDataGroups<T> = OncoprintDataGroup<T>[];
157
- export declare type OncoprintDataGroup<T> = T[];
156
+ export type OncoprintDataGroupsByTrackId<T> = Record<string, OncoprintDataGroups<T>[]>;
157
+ export type OncoprintDataGroups<T> = OncoprintDataGroup<T>[];
158
+ export type OncoprintDataGroup<T> = T[];
158
159
  export default class OncoprintModel {
159
160
  private sort_config;
160
161
  rendering_suppressed_depth: number;
@@ -342,7 +343,7 @@ export default class OncoprintModel {
342
343
  getOncoprintHeight(base?: boolean): number;
343
344
  getOncoprintWidth(base?: boolean): number;
344
345
  showGaps(): boolean;
345
- gapMode(): GAP_MODE_ENUM | GAP_MODE_ENUM.HIDE_GAPS;
346
+ gapMode(): GAP_MODE_ENUM;
346
347
  getOncoprintWidthNoColumnPaddingNoGaps(): number;
347
348
  getColumnLabels(): ColumnProp<ColumnLabel>;
348
349
  setColumnLabels(labels: ColumnProp<ColumnLabel>): void;
@@ -1,7 +1,7 @@
1
1
  import { ComputedShapeParams, ShapeParams } from './oncoprintshape';
2
2
  import { Omit } from './utils';
3
3
  import { ActiveRules, ColumnProp, Datum, RuleSetId } from './oncoprintmodel';
4
- export declare type RuleSetParams = ILinearInterpRuleSetParams | ICategoricalRuleSetParams | IGradientRuleSetParams | IBarRuleSetParams | IStackedBarRuleSetParams | IGradientAndCategoricalRuleSetParams | IGeneticAlterationRuleSetParams;
4
+ export type RuleSetParams = ILinearInterpRuleSetParams | ICategoricalRuleSetParams | IGradientRuleSetParams | IBarRuleSetParams | IStackedBarRuleSetParams | IGradientAndCategoricalRuleSetParams | IGeneticAlterationRuleSetParams;
5
5
  interface IGeneralRuleSetParams {
6
6
  type?: RuleSetType;
7
7
  legend_label?: string;
@@ -63,13 +63,13 @@ export interface IGeneticAlterationRuleSetParams extends IGeneralRuleSetParams {
63
63
  type: RuleSetType.GENE;
64
64
  rule_params: GeneticAlterationRuleParams;
65
65
  }
66
- declare type GeneticAlterationSingleRuleParams = {
66
+ type GeneticAlterationSingleRuleParams = {
67
67
  shapes: ShapeParams[];
68
68
  legend_label: string;
69
69
  exclude_from_legend?: boolean;
70
70
  legend_order?: number;
71
71
  };
72
- export declare type GeneticAlterationRuleParams = {
72
+ export type GeneticAlterationRuleParams = {
73
73
  always?: GeneticAlterationSingleRuleParams;
74
74
  conditional: {
75
75
  [datumKey: string]: {
@@ -77,8 +77,8 @@ export declare type GeneticAlterationRuleParams = {
77
77
  };
78
78
  };
79
79
  };
80
- export declare type RGBAColor = [number, number, number, number];
81
- declare type RuleParams = {
80
+ export type RGBAColor = [number, number, number, number];
81
+ type RuleParams = {
82
82
  shapes: ShapeParams[];
83
83
  legend_label?: string;
84
84
  exclude_from_legend?: boolean;
@@ -86,7 +86,7 @@ declare type RuleParams = {
86
86
  legend_order?: number;
87
87
  legend_base_color?: RGBAColor;
88
88
  };
89
- declare type RuleLegendConfig = {
89
+ type RuleLegendConfig = {
90
90
  type: 'rule';
91
91
  target: any;
92
92
  } | {
@@ -109,8 +109,8 @@ export declare enum RuleSetType {
109
109
  STACKED_BAR = "stacked_bar",
110
110
  GENE = "gene"
111
111
  }
112
- export declare type RuleId = number;
113
- export declare type RuleWithId = {
112
+ export type RuleId = number;
113
+ export type RuleWithId = {
114
114
  id: RuleId;
115
115
  rule: Rule;
116
116
  };
@@ -1,22 +1,22 @@
1
1
  import { Datum } from './oncoprintmodel';
2
2
  import { RGBAColor } from './oncoprintruleset';
3
- declare type StringParameter = 'type';
4
- declare type PercentNumberParameter = 'width' | 'height' | 'x' | 'y' | 'x1' | 'x2' | 'x3' | 'y1' | 'y2' | 'y3';
5
- declare type PlainNumberParameter = 'z' | 'stroke-width' | 'stroke-opacity';
6
- declare type RGBAParameter = 'stroke' | 'fill';
7
- declare type NumberParameter = PercentNumberParameter | PlainNumberParameter;
8
- declare type Parameter = StringParameter | NumberParameter | RGBAParameter;
9
- declare type StringParamFunction = (d: Datum) => string;
10
- declare type NumberParamFunction = (d: Datum) => number;
11
- declare type RGBAParamFunction = (d: Datum) => RGBAColor;
12
- export declare type ShapeParams = {
3
+ type StringParameter = 'type';
4
+ type PercentNumberParameter = 'width' | 'height' | 'x' | 'y' | 'x1' | 'x2' | 'x3' | 'y1' | 'y2' | 'y3';
5
+ type PlainNumberParameter = 'z' | 'stroke-width' | 'stroke-opacity';
6
+ type RGBAParameter = 'stroke' | 'fill';
7
+ type NumberParameter = PercentNumberParameter | PlainNumberParameter;
8
+ type Parameter = StringParameter | NumberParameter | RGBAParameter;
9
+ type StringParamFunction = (d: Datum) => string;
10
+ type NumberParamFunction = (d: Datum) => number;
11
+ type RGBAParamFunction = (d: Datum) => RGBAColor;
12
+ export type ShapeParams = {
13
13
  [x in StringParameter]?: string | StringParamFunction;
14
14
  } & {
15
15
  [x in NumberParameter]?: number | NumberParamFunction;
16
16
  } & {
17
17
  [x in RGBAParameter]?: RGBAColor | RGBAParamFunction;
18
18
  };
19
- export declare type ComputedShapeParams = {
19
+ export type ComputedShapeParams = {
20
20
  [x in StringParameter]?: string;
21
21
  } & {
22
22
  [x in NumberParameter]?: number;
@@ -37,30 +37,30 @@ export declare class Shape {
37
37
  markParameterTypes(): void;
38
38
  getComputedParams(d: Datum, base_width: number, base_height: number): ComputedShapeParams;
39
39
  }
40
- declare type SpecificComputedShapeParams<ShapeParamType> = {
40
+ type SpecificComputedShapeParams<ShapeParamType> = {
41
41
  [x in ShapeParamType & StringParameter]: string;
42
42
  } & {
43
43
  [x in ShapeParamType & NumberParameter]: number;
44
44
  } & {
45
45
  [x in ShapeParamType & RGBAParameter]: RGBAColor;
46
46
  };
47
- declare type RectangleParameter = 'width' | 'height' | 'x' | 'y' | 'z' | 'stroke' | 'stroke-width' | 'fill';
48
- export declare type ComputedRectangleParams = SpecificComputedShapeParams<RectangleParameter>;
47
+ type RectangleParameter = 'width' | 'height' | 'x' | 'y' | 'z' | 'stroke' | 'stroke-width' | 'fill';
48
+ export type ComputedRectangleParams = SpecificComputedShapeParams<RectangleParameter>;
49
49
  export declare class Rectangle extends Shape {
50
50
  getRequiredParameters(): RectangleParameter[];
51
51
  }
52
- declare type TriangleParameter = 'x1' | 'x2' | 'x3' | 'y1' | 'y2' | 'y3' | 'z' | 'stroke' | 'stroke-width' | 'fill';
53
- export declare type ComputedTriangleParams = SpecificComputedShapeParams<TriangleParameter>;
52
+ type TriangleParameter = 'x1' | 'x2' | 'x3' | 'y1' | 'y2' | 'y3' | 'z' | 'stroke' | 'stroke-width' | 'fill';
53
+ export type ComputedTriangleParams = SpecificComputedShapeParams<TriangleParameter>;
54
54
  export declare class Triangle extends Shape {
55
55
  getRequiredParameters(): TriangleParameter[];
56
56
  }
57
- export declare type EllipseParameter = 'width' | 'height' | 'x' | 'y' | 'z' | 'stroke' | 'stroke-width' | 'fill';
58
- export declare type ComputedEllipseParams = SpecificComputedShapeParams<EllipseParameter>;
57
+ export type EllipseParameter = 'width' | 'height' | 'x' | 'y' | 'z' | 'stroke' | 'stroke-width' | 'fill';
58
+ export type ComputedEllipseParams = SpecificComputedShapeParams<EllipseParameter>;
59
59
  export declare class Ellipse extends Shape {
60
60
  getRequiredParameters(): EllipseParameter[];
61
61
  }
62
- export declare type LineParameter = 'x1' | 'y1' | 'x2' | 'y2' | 'z' | 'stroke' | 'stroke-width';
63
- export declare type ComputedLineParams = SpecificComputedShapeParams<LineParameter>;
62
+ export type LineParameter = 'x1' | 'y1' | 'x2' | 'y2' | 'z' | 'stroke' | 'stroke-width';
63
+ export type ComputedLineParams = SpecificComputedShapeParams<LineParameter>;
64
64
  export declare class Line extends Shape {
65
65
  getRequiredParameters(): LineParameter[];
66
66
  }
@@ -1,5 +1,5 @@
1
1
  import { ComputedShapeParams } from './oncoprintshape';
2
- declare type AddVertexCallback = (vertex: [number, number, number], color: [number, number, number, number]) => void;
2
+ type AddVertexCallback = (vertex: [number, number, number], color: [number, number, number, number]) => void;
3
3
  export default function (oncoprint_shape_computed_params: ComputedShapeParams, z_index: number, addVertex: AddVertexCallback): void;
4
4
  export declare function getNumWebGLVertexes(shape: ComputedShapeParams): number;
5
5
  export {};
@@ -1,6 +1,7 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
- export declare type OncoprintTooltipParams = {
4
+ export type OncoprintTooltipParams = {
4
5
  noselect?: boolean;
5
6
  };
6
7
  export default class OncoprintToolTip {
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintToolTip from './oncoprinttooltip';
4
5
  import OncoprintModel from './oncoprintmodel';
@@ -1,8 +1,9 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintModel, { GAP_MODE_ENUM, TrackId, TrackSortDirection } from './oncoprintmodel';
4
5
  export declare const CLOSE_MENUS_EVENT = "oncoprint-track-options-view.do-close-menus";
5
- declare type TrackCallback = (trackId: TrackId) => void;
6
+ type TrackCallback = (trackId: TrackId) => void;
6
7
  export default class OncoprintTrackOptionsView {
7
8
  private $div;
8
9
  private moveUpCallback;
@@ -1,23 +1,24 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
4
  import OncoprintModel, { ColumnId, TrackId, TrackProp } from './oncoprintmodel';
4
5
  import OncoprintToolTip from './oncoprinttooltip';
5
6
  import { CellClickCallback, CellMouseOverCallback } from './oncoprint';
6
- declare type ColorBank = number[];
7
- declare type OncoprintGap = {
7
+ type ColorBank = number[];
8
+ type OncoprintGap = {
8
9
  origin_x: number;
9
10
  origin_y: number;
10
11
  data: OncoprintGapConfig;
11
12
  };
12
- export declare type OncoprintGapConfig = {
13
+ export type OncoprintGapConfig = {
13
14
  labelFormatter: () => string;
14
15
  tooltipFormatter: () => string;
15
16
  };
16
- export declare type OncoprintWebGLContext = WebGLRenderingContext & {
17
+ export type OncoprintWebGLContext = WebGLRenderingContext & {
17
18
  viewportWidth: number;
18
19
  viewportHeight: number;
19
20
  };
20
- export declare type OncoprintShaderProgram = WebGLProgram & {
21
+ export type OncoprintShaderProgram = WebGLProgram & {
21
22
  vertexPositionAttribute: any;
22
23
  vertexColorAttribute: any;
23
24
  vertexOncoprintColumnAttribute: any;
@@ -36,11 +37,11 @@ export declare type OncoprintShaderProgram = WebGLProgram & {
36
37
  positionBitPackBaseUniform: WebGLUniformLocation;
37
38
  texSizeUniform: WebGLUniformLocation;
38
39
  };
39
- export declare type OncoprintTrackBuffer = WebGLBuffer & {
40
+ export type OncoprintTrackBuffer = WebGLBuffer & {
40
41
  itemSize: number;
41
42
  numItems: number;
42
43
  };
43
- export declare type OncoprintVertexTrackBuffer = OncoprintTrackBuffer & {
44
+ export type OncoprintVertexTrackBuffer = OncoprintTrackBuffer & {
44
45
  specificShapesNumItems: number;
45
46
  universalShapesNumItems: number;
46
47
  };
@@ -1,6 +1,7 @@
1
1
  /// <reference types="jquery" />
2
+ /// <reference types="jquery" />
2
3
  /// <reference types="jstree" />
3
- export declare type OncoprintZoomSliderParams = {
4
+ export type OncoprintZoomSliderParams = {
4
5
  btn_size: number;
5
6
  horizontal?: boolean;
6
7
  width?: number;
@@ -1,4 +1,4 @@
1
- export declare type OMath = Math & {
1
+ export type OMath = Math & {
2
2
  log2: (x: number) => number;
3
3
  };
4
4
  export declare const OMath: OMath;
@@ -1,6 +1,6 @@
1
1
  import { ComputedShapeParams } from './oncoprintshape';
2
2
  import { RGBAColor } from './oncoprintruleset';
3
- export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
3
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
4
4
  export declare function cloneShallow<T extends Object>(obj: T): T;
5
5
  export declare function extendArray(target: any[], source: any[]): void;
6
6
  export declare function doesCellIntersectPixel(cellHitzone: [number, number], pixelX: number): boolean;
@@ -1,18 +1,18 @@
1
- declare type Item = {
1
+ type Item = {
2
2
  orderedValueList: number[];
3
3
  };
4
- export declare type EntityItem = Item & {
4
+ export type EntityItem = Item & {
5
5
  entityId: string;
6
6
  };
7
- export declare type CaseItem = Item & {
7
+ export type CaseItem = Item & {
8
8
  caseId: string;
9
9
  };
10
- export declare type CasesAndEntities = {
10
+ export type CasesAndEntities = {
11
11
  [caseId: string]: {
12
12
  [entityId: string]: number;
13
13
  };
14
14
  };
15
- export declare type ClusteringMessage = {
15
+ export type ClusteringMessage = {
16
16
  dimension: 'CASES' | 'ENTITIES';
17
17
  casesAndEntities: CasesAndEntities;
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oncoprintjs",
3
- "version": "6.0.7",
3
+ "version": "6.1.1",
4
4
  "description": "A data visualization for cancer genomic data.",
5
5
  "types": "./dist/js/oncoprint.d.ts",
6
6
  "main": "dist/index.js",
@@ -19,10 +19,7 @@
19
19
  "test": "cross-env jest $GREP --env=jsdom --runInBand --ci --reporters=default --reporters=jest-junit --passWithNoTests",
20
20
  "test:watch": "yarn run test --watch"
21
21
  },
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/cBioPortal/oncoprintjs.git"
25
- },
22
+ "repository": "cBioPortal/cbioportal-frontend",
26
23
  "keywords": [
27
24
  "cancer",
28
25
  "genomics",
@@ -49,16 +46,16 @@
49
46
  ],
50
47
  "license": "ISC",
51
48
  "bugs": {
52
- "url": "https://github.com/cBioPortal/oncoprintjs/issues"
49
+ "url": "https://github.com/cBioPortal/cbioportal-frontend/issues"
53
50
  },
54
- "homepage": "https://github.com/cBioPortal/oncoprintjs",
51
+ "homepage": "https://github.com/cBioPortal/cbioportal-frontend",
55
52
  "dependencies": {
56
53
  "gl-matrix": "2.3.2",
57
54
  "jquery": "^3.2.1",
58
55
  "jstat": "^1.7.1",
59
- "lodash": "^4.17.15",
56
+ "lodash": "^4.17.21",
60
57
  "tayden-clusterfck": "^0.7.0",
61
58
  "typescript": "4.0.3"
62
59
  },
63
- "gitHead": "736485b3eee4f9563cb1aaf0567f897a7b11cfe8"
60
+ "gitHead": "f1c9b08c483852b7c24baf3933deca03d04d610a"
64
61
  }
@@ -617,7 +617,7 @@ export default class OncoprintModel {
617
617
  agg: OncoprintDataGroupsByTrackId<
618
618
  TrackProp<ColumnProp<Datum>>
619
619
  >,
620
- label,
620
+ label: string,
621
621
  trackId: number
622
622
  ) => {
623
623
  // key the data by the datum UID