oncoprintjs 6.0.8 → 6.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +13 -0
- package/README.md +2 -2
- package/dist/index.es.js +10970 -109
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +10889 -28
- package/dist/index.js.map +1 -1
- package/dist/js/bucketsort.d.ts +3 -3
- package/dist/js/oncoprint.d.ts +7 -6
- package/dist/js/oncoprintheaderview.d.ts +1 -0
- package/dist/js/oncoprintlabelview.d.ts +1 -0
- package/dist/js/oncoprintlegendrenderer.d.ts +1 -0
- package/dist/js/oncoprintminimapview.d.ts +2 -1
- package/dist/js/oncoprintmodel.d.ts +37 -36
- package/dist/js/oncoprintruleset.d.ts +8 -8
- package/dist/js/oncoprintshape.d.ts +20 -20
- package/dist/js/oncoprintshapetovertexes.d.ts +1 -1
- package/dist/js/oncoprinttooltip.d.ts +2 -1
- package/dist/js/oncoprinttrackinfoview.d.ts +1 -0
- package/dist/js/oncoprinttrackoptionsview.d.ts +2 -1
- package/dist/js/oncoprintwebglcellview.d.ts +8 -7
- package/dist/js/oncoprintzoomslider.d.ts +2 -1
- package/dist/js/polyfill.d.ts +1 -1
- package/dist/js/utils.d.ts +1 -1
- package/dist/js/workers/clustering-worker.d.ts +5 -5
- package/package.json +11 -14
package/dist/js/bucketsort.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
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[];
|
package/dist/js/oncoprint.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
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,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
|
|
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
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
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
|
|
25
|
+
export type TrackGroup = {
|
|
25
26
|
header?: TrackGroupHeader;
|
|
26
27
|
tracks: TrackId[];
|
|
27
28
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
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
|
|
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
|
|
45
|
-
export
|
|
45
|
+
export type TrackSortSpecification<D> = TrackSortSpecificationComparators<D> | TrackSortSpecificationVectors<D>;
|
|
46
|
+
export type ActiveRules = {
|
|
46
47
|
[ruleId: number]: boolean;
|
|
47
48
|
};
|
|
48
|
-
export
|
|
49
|
+
export type ActiveRulesCount = {
|
|
49
50
|
[ruleId: number]: number;
|
|
50
51
|
};
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
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
|
|
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
|
|
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
|
|
107
|
+
export type LibraryTrackSpec<D> = UserTrackSpec<D> & {
|
|
107
108
|
rule_set: RuleSet;
|
|
108
109
|
track_id: TrackId;
|
|
109
110
|
};
|
|
110
|
-
export
|
|
111
|
+
export type TrackOverlappingCells = {
|
|
111
112
|
ids: ColumnId[];
|
|
112
113
|
track: TrackId;
|
|
113
114
|
top: number;
|
|
114
115
|
left: number;
|
|
115
116
|
};
|
|
116
|
-
export
|
|
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
|
|
129
|
+
export type IdentifiedShapeList = {
|
|
129
130
|
id: ColumnId;
|
|
130
131
|
shape_list: ComputedShapeParams[];
|
|
131
132
|
};
|
|
132
|
-
export
|
|
133
|
+
export type ClusterSortResult = {
|
|
133
134
|
track_group_index: TrackGroupIndex;
|
|
134
135
|
track_id_order: TrackId[];
|
|
135
136
|
};
|
|
136
|
-
export
|
|
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
|
|
144
|
+
export type TrackProp<T> = {
|
|
144
145
|
[trackId: number]: T;
|
|
145
146
|
};
|
|
146
|
-
export
|
|
147
|
+
export type TrackGroupProp<T> = {
|
|
147
148
|
[trackGroupIndex: number]: T;
|
|
148
149
|
};
|
|
149
|
-
export
|
|
150
|
+
export type ColumnProp<T> = {
|
|
150
151
|
[columnId: string]: T;
|
|
151
152
|
};
|
|
152
|
-
export
|
|
153
|
+
export type ColumnIdSet = {
|
|
153
154
|
[columnId: string]: any;
|
|
154
155
|
};
|
|
155
|
-
export
|
|
156
|
-
export
|
|
157
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
81
|
-
|
|
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
|
-
|
|
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
|
|
113
|
-
export
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
48
|
-
export
|
|
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
|
-
|
|
53
|
-
export
|
|
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
|
|
58
|
-
export
|
|
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
|
|
63
|
-
export
|
|
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
|
-
|
|
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,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
|
-
|
|
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
|
-
|
|
7
|
-
|
|
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
|
|
13
|
+
export type OncoprintGapConfig = {
|
|
13
14
|
labelFormatter: () => string;
|
|
14
15
|
tooltipFormatter: () => string;
|
|
15
16
|
};
|
|
16
|
-
export
|
|
17
|
+
export type OncoprintWebGLContext = WebGLRenderingContext & {
|
|
17
18
|
viewportWidth: number;
|
|
18
19
|
viewportHeight: number;
|
|
19
20
|
};
|
|
20
|
-
export
|
|
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
|
|
40
|
+
export type OncoprintTrackBuffer = WebGLBuffer & {
|
|
40
41
|
itemSize: number;
|
|
41
42
|
numItems: number;
|
|
42
43
|
};
|
|
43
|
-
export
|
|
44
|
+
export type OncoprintVertexTrackBuffer = OncoprintTrackBuffer & {
|
|
44
45
|
specificShapesNumItems: number;
|
|
45
46
|
universalShapesNumItems: number;
|
|
46
47
|
};
|
package/dist/js/polyfill.d.ts
CHANGED
package/dist/js/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedShapeParams } from './oncoprintshape';
|
|
2
2
|
import { RGBAColor } from './oncoprintruleset';
|
|
3
|
-
export
|
|
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
|
-
|
|
1
|
+
type Item = {
|
|
2
2
|
orderedValueList: number[];
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type EntityItem = Item & {
|
|
5
5
|
entityId: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CaseItem = Item & {
|
|
8
8
|
caseId: string;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type CasesAndEntities = {
|
|
11
11
|
[caseId: string]: {
|
|
12
12
|
[entityId: string]: number;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export
|
|
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.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "A data visualization for cancer genomic data.",
|
|
5
5
|
"types": "./dist/js/oncoprint.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,20 +9,17 @@
|
|
|
9
9
|
"typings": "dist/index.d.ts",
|
|
10
10
|
"styles": "dist/styles.css",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048
|
|
13
|
-
"start": "
|
|
14
|
-
"watch": "
|
|
15
|
-
"watchSSL": "
|
|
12
|
+
"build": "cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=2048 pnpm run rollup",
|
|
13
|
+
"start": "pnpm run watch",
|
|
14
|
+
"watch": "pnpm run rollup:watch",
|
|
15
|
+
"watchSSL": "pnpm run watch",
|
|
16
16
|
"rollup": "rollup -c rollup.config.ts",
|
|
17
17
|
"rollup:watch": "rollup -c rollup.config.ts -w",
|
|
18
|
-
"prepare": "
|
|
18
|
+
"prepare": "pnpm run build",
|
|
19
19
|
"test": "cross-env jest $GREP --env=jsdom --runInBand --ci --reporters=default --reporters=jest-junit --passWithNoTests",
|
|
20
|
-
"test:watch": "
|
|
21
|
-
},
|
|
22
|
-
"repository": {
|
|
23
|
-
"type": "git",
|
|
24
|
-
"url": "https://github.com/cBioPortal/oncoprintjs.git"
|
|
20
|
+
"test:watch": "pnpm run test --watch"
|
|
25
21
|
},
|
|
22
|
+
"repository": "cBioPortal/cbioportal-frontend",
|
|
26
23
|
"keywords": [
|
|
27
24
|
"cancer",
|
|
28
25
|
"genomics",
|
|
@@ -49,9 +46,9 @@
|
|
|
49
46
|
],
|
|
50
47
|
"license": "ISC",
|
|
51
48
|
"bugs": {
|
|
52
|
-
"url": "https://github.com/cBioPortal/
|
|
49
|
+
"url": "https://github.com/cBioPortal/cbioportal-frontend/issues"
|
|
53
50
|
},
|
|
54
|
-
"homepage": "https://github.com/cBioPortal/
|
|
51
|
+
"homepage": "https://github.com/cBioPortal/cbioportal-frontend",
|
|
55
52
|
"dependencies": {
|
|
56
53
|
"gl-matrix": "2.3.2",
|
|
57
54
|
"jquery": "^3.2.1",
|
|
@@ -60,5 +57,5 @@
|
|
|
60
57
|
"tayden-clusterfck": "^0.7.0",
|
|
61
58
|
"typescript": "4.0.3"
|
|
62
59
|
},
|
|
63
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "727d3a488de0851176ae5660769364e276b94bc7"
|
|
64
61
|
}
|