@jbrowse/plugin-linear-comparative-view 2.11.2 → 2.12.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.
- package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +1 -1
- package/dist/LGVSyntenyDisplay/components/util.js +2 -3
- package/dist/LGVSyntenyDisplay/index.js +1 -1
- package/dist/LGVSyntenyDisplay/model.d.ts +35 -36
- package/dist/LaunchLinearSyntenyView.js +1 -1
- package/dist/LinearComparativeDisplay/index.js +1 -1
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +34 -49
- package/dist/LinearComparativeView/index.js +1 -1
- package/dist/LinearComparativeView/model.d.ts +23 -178
- package/dist/LinearComparativeView/model.js +0 -23
- package/dist/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/dist/LinearReadVsRef/index.js +1 -1
- package/dist/LinearSyntenyDisplay/afterAttach.js +1 -2
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +54 -101
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +1 -1
- package/dist/LinearSyntenyDisplay/components/util.d.ts +10 -0
- package/dist/LinearSyntenyDisplay/components/util.js +90 -5
- package/dist/LinearSyntenyDisplay/drawSynteny.js +4 -4
- package/dist/LinearSyntenyDisplay/index.js +1 -1
- package/dist/LinearSyntenyDisplay/model.d.ts +26 -36
- package/dist/LinearSyntenyView/components/ExportSvgDialog.js +1 -1
- package/dist/LinearSyntenyView/components/Icons.js +2 -3
- package/dist/LinearSyntenyView/components/ImportForm/index.js +1 -0
- package/dist/LinearSyntenyView/components/ImportForm/util.js +4 -5
- package/dist/LinearSyntenyView/index.js +1 -1
- package/dist/LinearSyntenyView/model.d.ts +26 -943
- package/dist/LinearSyntenyView/model.js +1 -9
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +1 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +1 -2
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +5 -3
- package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +2 -4
- package/dist/SyntenyFeatureDetail/index.js +1 -1
- package/dist/SyntenyTrack/index.js +1 -1
- package/dist/util.js +5 -6
- package/esm/LGVSyntenyDisplay/components/util.js +1 -1
- package/esm/LGVSyntenyDisplay/model.d.ts +35 -36
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +34 -49
- package/esm/LinearComparativeView/model.d.ts +23 -178
- package/esm/LinearComparativeView/model.js +1 -24
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +54 -101
- package/esm/LinearSyntenyDisplay/components/util.d.ts +10 -0
- package/esm/LinearSyntenyDisplay/components/util.js +84 -1
- package/esm/LinearSyntenyDisplay/model.d.ts +26 -36
- package/esm/LinearSyntenyView/components/ImportForm/index.js +1 -0
- package/esm/LinearSyntenyView/model.d.ts +26 -943
- package/esm/LinearSyntenyView/model.js +0 -8
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +5 -3
- package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +2 -4
- package/package.json +2 -2
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.drawMatchSimple = drawMatchSimple;
|
|
4
|
+
exports.draw = draw;
|
|
5
|
+
exports.drawBox = drawBox;
|
|
6
|
+
exports.drawBezierBox = drawBezierBox;
|
|
7
|
+
exports.onSynClick = onSynClick;
|
|
8
|
+
exports.onSynContextClick = onSynContextClick;
|
|
9
|
+
exports.getTooltip = getTooltip;
|
|
4
10
|
const util_1 = require("@jbrowse/core/util");
|
|
11
|
+
// locals
|
|
12
|
+
const drawSynteny_1 = require("../drawSynteny");
|
|
5
13
|
function drawMatchSimple({ feature, ctx, offsets, cb, height, drawCurves, oobLimit, viewWidth, hideTiny, }) {
|
|
6
14
|
const { p11, p12, p21, p22 } = feature;
|
|
7
15
|
const x11 = p11.offsetPx - offsets[0];
|
|
@@ -40,7 +48,6 @@ function drawMatchSimple({ feature, ctx, offsets, cb, height, drawCurves, oobLim
|
|
|
40
48
|
cb(ctx);
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
|
-
exports.drawMatchSimple = drawMatchSimple;
|
|
44
51
|
function draw(ctx, x1, x2, y1, x3, x4, y2, mid, drawCurves) {
|
|
45
52
|
if (drawCurves) {
|
|
46
53
|
drawBezierBox(ctx, x1, x2, y1, x3, x4, y2, mid);
|
|
@@ -49,7 +56,6 @@ function draw(ctx, x1, x2, y1, x3, x4, y2, mid, drawCurves) {
|
|
|
49
56
|
drawBox(ctx, x1, x2, y1, x3, x4, y2);
|
|
50
57
|
}
|
|
51
58
|
}
|
|
52
|
-
exports.draw = draw;
|
|
53
59
|
function drawBox(ctx, x1, x2, y1, x3, x4, y2) {
|
|
54
60
|
ctx.beginPath();
|
|
55
61
|
ctx.moveTo(x1, y1);
|
|
@@ -59,7 +65,6 @@ function drawBox(ctx, x1, x2, y1, x3, x4, y2) {
|
|
|
59
65
|
ctx.closePath();
|
|
60
66
|
ctx.fill();
|
|
61
67
|
}
|
|
62
|
-
exports.drawBox = drawBox;
|
|
63
68
|
function drawBezierBox(ctx, x1, x2, y1, x3, x4, y2, mid) {
|
|
64
69
|
const len1 = Math.abs(x1 - x2);
|
|
65
70
|
const len2 = Math.abs(x1 - x2);
|
|
@@ -80,4 +85,84 @@ function drawBezierBox(ctx, x1, x2, y1, x3, x4, y2, mid) {
|
|
|
80
85
|
ctx.closePath();
|
|
81
86
|
ctx.fill();
|
|
82
87
|
}
|
|
83
|
-
|
|
88
|
+
function onSynClick(event, model) {
|
|
89
|
+
const ref1 = model.clickMapCanvas;
|
|
90
|
+
const ref2 = model.cigarClickMapCanvas;
|
|
91
|
+
if (!ref1 || !ref2) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const rect = ref1.getBoundingClientRect();
|
|
95
|
+
const ctx1 = ref1.getContext('2d');
|
|
96
|
+
const ctx2 = ref2.getContext('2d');
|
|
97
|
+
if (!ctx1 || !ctx2) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const x = event.clientX - rect.left;
|
|
101
|
+
const y = event.clientY - rect.top;
|
|
102
|
+
const [r1, g1, b1] = ctx1.getImageData(x, y, 1, 1).data;
|
|
103
|
+
const unitMultiplier = Math.floor(drawSynteny_1.MAX_COLOR_RANGE / model.numFeats);
|
|
104
|
+
const id = (0, drawSynteny_1.getId)(r1, g1, b1, unitMultiplier);
|
|
105
|
+
const feat = model.featPositions[id];
|
|
106
|
+
if (feat) {
|
|
107
|
+
const { f } = feat;
|
|
108
|
+
model.setClickId(f.id());
|
|
109
|
+
const session = (0, util_1.getSession)(model);
|
|
110
|
+
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
111
|
+
session.showWidget(session.addWidget('SyntenyFeatureWidget', 'syntenyFeature', {
|
|
112
|
+
featureData: {
|
|
113
|
+
feature1: f.toJSON(),
|
|
114
|
+
feature2: f.get('mate'),
|
|
115
|
+
},
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return feat;
|
|
120
|
+
}
|
|
121
|
+
function onSynContextClick(event, model, setAnchorEl) {
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
const ref1 = model.clickMapCanvas;
|
|
124
|
+
const ref2 = model.cigarClickMapCanvas;
|
|
125
|
+
if (!ref1 || !ref2) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const rect = ref1.getBoundingClientRect();
|
|
129
|
+
const ctx1 = ref1.getContext('2d');
|
|
130
|
+
const ctx2 = ref2.getContext('2d');
|
|
131
|
+
if (!ctx1 || !ctx2) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const { clientX, clientY } = event;
|
|
135
|
+
const x = clientX - rect.left;
|
|
136
|
+
const y = clientY - rect.top;
|
|
137
|
+
const [r1, g1, b1] = ctx1.getImageData(x, y, 1, 1).data;
|
|
138
|
+
const unitMultiplier = Math.floor(drawSynteny_1.MAX_COLOR_RANGE / model.numFeats);
|
|
139
|
+
const id = (0, drawSynteny_1.getId)(r1, g1, b1, unitMultiplier);
|
|
140
|
+
const f = model.featPositions[id];
|
|
141
|
+
if (f) {
|
|
142
|
+
model.setClickId(f.f.id());
|
|
143
|
+
setAnchorEl({ clientX, clientY, feature: f });
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function getTooltip(f, cigarOp, cigarOpLen) {
|
|
147
|
+
// @ts-expect-error
|
|
148
|
+
const f1 = f.toJSON();
|
|
149
|
+
const f2 = f1.mate;
|
|
150
|
+
const l1 = f1.end - f1.start;
|
|
151
|
+
const l2 = f2.end - f2.start;
|
|
152
|
+
const identity = f1.identity;
|
|
153
|
+
const n1 = f1.name;
|
|
154
|
+
const n2 = f2.name;
|
|
155
|
+
return [
|
|
156
|
+
`Loc1: ${(0, util_1.assembleLocString)(f1)}`,
|
|
157
|
+
`Loc2: ${(0, util_1.assembleLocString)(f2)}`,
|
|
158
|
+
`Inverted: ${f1.strand === -1}`,
|
|
159
|
+
`Query len: ${l1.toLocaleString('en-US')}`,
|
|
160
|
+
`Target len: ${l2.toLocaleString('en-US')}`,
|
|
161
|
+
identity ? `Identity: ${identity.toPrecision(2)}` : '',
|
|
162
|
+
cigarOp ? `CIGAR operator: ${cigarOp}${cigarOpLen}` : '',
|
|
163
|
+
n1 ? `Name 1: ${n1}` : '',
|
|
164
|
+
n2 ? `Name 1: ${n2}` : '',
|
|
165
|
+
]
|
|
166
|
+
.filter(f => !!f)
|
|
167
|
+
.join('<br/>');
|
|
168
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MAX_COLOR_RANGE = void 0;
|
|
4
|
+
exports.getId = getId;
|
|
5
|
+
exports.drawRef = drawRef;
|
|
6
|
+
exports.drawMouseoverSynteny = drawMouseoverSynteny;
|
|
4
7
|
const util_1 = require("@jbrowse/core/util");
|
|
5
8
|
const util_2 = require("./components/util");
|
|
6
9
|
exports.MAX_COLOR_RANGE = 255 * 255 * 255; // max color range
|
|
@@ -23,7 +26,6 @@ const oobLimit = 1600;
|
|
|
23
26
|
function getId(r, g, b, unitMultiplier) {
|
|
24
27
|
return Math.floor((r * 255 * 255 + g * 255 + b - 1) / unitMultiplier);
|
|
25
28
|
}
|
|
26
|
-
exports.getId = getId;
|
|
27
29
|
function drawRef(model, ctx1, ctx3) {
|
|
28
30
|
var _a;
|
|
29
31
|
const view = (0, util_1.getContainingView)(model);
|
|
@@ -183,7 +185,6 @@ function drawRef(model, ctx1, ctx3) {
|
|
|
183
185
|
});
|
|
184
186
|
}
|
|
185
187
|
}
|
|
186
|
-
exports.drawRef = drawRef;
|
|
187
188
|
function drawMouseoverSynteny(model) {
|
|
188
189
|
var _a;
|
|
189
190
|
const { clickId, mouseoverId } = model;
|
|
@@ -229,4 +230,3 @@ function drawMouseoverSynteny(model) {
|
|
|
229
230
|
});
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
|
-
exports.drawMouseoverSynteny = drawMouseoverSynteny;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = LinearSyntenyDisplayF;
|
|
29
30
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
30
31
|
// locals
|
|
31
32
|
const configSchemaF_1 = __importDefault(require("./configSchemaF"));
|
|
@@ -44,4 +45,3 @@ function LinearSyntenyDisplayF(pluginManager) {
|
|
|
44
45
|
});
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
exports.default = LinearSyntenyDisplayF;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Instance } from 'mobx-state-tree';
|
|
3
2
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
4
3
|
import { Feature } from '@jbrowse/core/util';
|
|
@@ -58,8 +57,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
58
57
|
error: unknown;
|
|
59
58
|
message: string | undefined;
|
|
60
59
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
61
|
-
onHorizontalScroll?: Function
|
|
62
|
-
blockState?: Record<string, any
|
|
60
|
+
onHorizontalScroll?: Function;
|
|
61
|
+
blockState?: Record<string, any>;
|
|
63
62
|
}>;
|
|
64
63
|
readonly DisplayBlurb: import("react").FC<{
|
|
65
64
|
model: {
|
|
@@ -82,19 +81,14 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
82
81
|
}> | null;
|
|
83
82
|
readonly adapterConfig: any;
|
|
84
83
|
readonly parentTrack: any;
|
|
85
|
-
renderProps(): any;
|
|
86
|
-
* #getter
|
|
87
|
-
*/
|
|
84
|
+
renderProps(): any;
|
|
88
85
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
89
|
-
readonly DisplayMessageComponent: import("react").FC<any
|
|
86
|
+
readonly DisplayMessageComponent: undefined | import("react").FC<any>;
|
|
90
87
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
91
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
92
|
-
* #getter
|
|
93
|
-
* used for synteny svg rendering
|
|
94
|
-
*/
|
|
88
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
95
89
|
regionCannotBeRendered(): null;
|
|
96
90
|
} & {
|
|
97
|
-
setMessage(arg?: string
|
|
91
|
+
setMessage(arg?: string): void;
|
|
98
92
|
setError(error?: unknown): void;
|
|
99
93
|
setRpcDriverName(rpcDriverName: string): void;
|
|
100
94
|
reload(): void;
|
|
@@ -112,7 +106,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
112
106
|
configuration: {
|
|
113
107
|
[x: string]: any;
|
|
114
108
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
115
|
-
setSubschema(slotName: string, data: unknown):
|
|
109
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
110
|
+
[x: string]: any;
|
|
111
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
112
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
113
|
+
[x: string]: any;
|
|
114
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
115
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
116
116
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
117
117
|
height: number;
|
|
118
118
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -138,8 +138,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
138
138
|
error: unknown;
|
|
139
139
|
message: string | undefined;
|
|
140
140
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
141
|
-
onHorizontalScroll?: Function
|
|
142
|
-
blockState?: Record<string, any
|
|
141
|
+
onHorizontalScroll?: Function;
|
|
142
|
+
blockState?: Record<string, any>;
|
|
143
143
|
}>;
|
|
144
144
|
readonly DisplayBlurb: import("react").FC<{
|
|
145
145
|
model: {
|
|
@@ -162,19 +162,14 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
162
162
|
}> | null;
|
|
163
163
|
readonly adapterConfig: any;
|
|
164
164
|
readonly parentTrack: any;
|
|
165
|
-
renderProps(): any;
|
|
166
|
-
* #getter
|
|
167
|
-
*/
|
|
165
|
+
renderProps(): any;
|
|
168
166
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
169
|
-
readonly DisplayMessageComponent: import("react").FC<any
|
|
167
|
+
readonly DisplayMessageComponent: undefined | import("react").FC<any>;
|
|
170
168
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
171
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
172
|
-
* #getter
|
|
173
|
-
* used for synteny svg rendering
|
|
174
|
-
*/
|
|
169
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
175
170
|
regionCannotBeRendered(): null;
|
|
176
171
|
} & {
|
|
177
|
-
setMessage(arg?: string
|
|
172
|
+
setMessage(arg?: string): void;
|
|
178
173
|
setError(error?: unknown): void;
|
|
179
174
|
setRpcDriverName(rpcDriverName: string): void;
|
|
180
175
|
reload(): void;
|
|
@@ -213,8 +208,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
213
208
|
error: unknown;
|
|
214
209
|
message: string | undefined;
|
|
215
210
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
216
|
-
onHorizontalScroll?: Function
|
|
217
|
-
blockState?: Record<string, any
|
|
211
|
+
onHorizontalScroll?: Function;
|
|
212
|
+
blockState?: Record<string, any>;
|
|
218
213
|
}>;
|
|
219
214
|
readonly DisplayBlurb: import("react").FC<{
|
|
220
215
|
model: {
|
|
@@ -237,19 +232,14 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
237
232
|
}> | null;
|
|
238
233
|
readonly adapterConfig: any;
|
|
239
234
|
readonly parentTrack: any;
|
|
240
|
-
renderProps(): any;
|
|
241
|
-
* #getter
|
|
242
|
-
*/
|
|
235
|
+
renderProps(): any;
|
|
243
236
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
244
|
-
readonly DisplayMessageComponent: import("react").FC<any
|
|
237
|
+
readonly DisplayMessageComponent: undefined | import("react").FC<any>;
|
|
245
238
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
246
|
-
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
247
|
-
* #getter
|
|
248
|
-
* used for synteny svg rendering
|
|
249
|
-
*/
|
|
239
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
250
240
|
regionCannotBeRendered(): null;
|
|
251
241
|
} & {
|
|
252
|
-
setMessage(arg?: string
|
|
242
|
+
setMessage(arg?: string): void;
|
|
253
243
|
setError(error?: unknown): void;
|
|
254
244
|
setRpcDriverName(rpcDriverName: string): void;
|
|
255
245
|
reload(): void;
|
|
@@ -265,7 +255,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
265
255
|
setMessage(messageText: string): void;
|
|
266
256
|
setRendered(args?: {
|
|
267
257
|
features: Feature[];
|
|
268
|
-
}
|
|
258
|
+
}): void;
|
|
269
259
|
setError(error: unknown): void;
|
|
270
260
|
} & {
|
|
271
261
|
afterAttach(): void;
|
|
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.default = ExportSvgDialog;
|
|
26
27
|
const react_1 = __importStar(require("react"));
|
|
27
28
|
const material_1 = require("@mui/material");
|
|
28
29
|
const ui_1 = require("@jbrowse/core/ui");
|
|
@@ -85,4 +86,3 @@ function ExportSvgDialog({ model, handleClose, }) {
|
|
|
85
86
|
}
|
|
86
87
|
} }, "Submit"))));
|
|
87
88
|
}
|
|
88
|
-
exports.default = ExportSvgDialog;
|
|
@@ -3,16 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.Curves = Curves;
|
|
7
|
+
exports.StraightLines = StraightLines;
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const material_1 = require("@mui/material");
|
|
9
10
|
function Curves(props) {
|
|
10
11
|
return (react_1.default.createElement(material_1.SvgIcon, { ...props },
|
|
11
12
|
react_1.default.createElement("path", { fill: "currentColor", d: "M16.5,21C13.5,21 12.31,16.76 11.05,12.28C10.14,9.04 9,5 7.5,5C4.11,5 4,11.93 4,12H2C2,11.63 2.06,3 7.5,3C10.5,3 11.71,7.25 12.97,11.74C13.83,14.8 15,19 16.5,19C19.94,19 20.03,12.07 20.03,12H22.03C22.03,12.37 21.97,21 16.5,21Z" })));
|
|
12
13
|
}
|
|
13
|
-
exports.Curves = Curves;
|
|
14
14
|
function StraightLines(props) {
|
|
15
15
|
return (react_1.default.createElement(material_1.SvgIcon, { ...props },
|
|
16
16
|
react_1.default.createElement("path", { fill: "currentColor", d: "M22 12L17 22L7.1 6.04L4.24 12H2L7 2L16.9 17.96L19.76 12H22Z" })));
|
|
17
17
|
}
|
|
18
|
-
exports.StraightLines = StraightLines;
|
|
@@ -93,6 +93,7 @@ const LinearSyntenyViewImportForm = (0, mobx_react_1.observer)(function ({ model
|
|
|
93
93
|
};
|
|
94
94
|
})));
|
|
95
95
|
model.views.forEach(view => view.setWidth(model.width));
|
|
96
|
+
model.views.forEach(view => view.showAllRegions());
|
|
96
97
|
if (sessionTrackData) {
|
|
97
98
|
session.addTrackConf(sessionTrackData);
|
|
98
99
|
model.toggleTrack(sessionTrackData.trackId);
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getName = getName;
|
|
4
|
+
exports.stripGz = stripGz;
|
|
5
|
+
exports.basename = basename;
|
|
6
|
+
exports.extName = extName;
|
|
4
7
|
function getName(sessionTrackData) {
|
|
5
8
|
return sessionTrackData
|
|
6
9
|
? // @ts-expect-error
|
|
@@ -11,17 +14,13 @@ function getName(sessionTrackData) {
|
|
|
11
14
|
sessionTrackData.name
|
|
12
15
|
: undefined;
|
|
13
16
|
}
|
|
14
|
-
exports.getName = getName;
|
|
15
17
|
function stripGz(fileName) {
|
|
16
18
|
return fileName.endsWith('.gz') ? fileName.slice(0, -3) : fileName;
|
|
17
19
|
}
|
|
18
|
-
exports.stripGz = stripGz;
|
|
19
20
|
function basename(str) {
|
|
20
21
|
return str.split('#')[0].split('?')[0].split('/').pop();
|
|
21
22
|
}
|
|
22
|
-
exports.basename = basename;
|
|
23
23
|
function extName(str) {
|
|
24
24
|
const r = str.split('.').pop();
|
|
25
25
|
return r ? `.${r}` : '';
|
|
26
26
|
}
|
|
27
|
-
exports.extName = extName;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = LinearSyntenyViewF;
|
|
29
30
|
const react_1 = require("react");
|
|
30
31
|
const model_1 = __importDefault(require("./model"));
|
|
31
32
|
const ViewType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/ViewType"));
|
|
@@ -39,4 +40,3 @@ function LinearSyntenyViewF(pluginManager) {
|
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
|
-
exports.default = LinearSyntenyViewF;
|