@jbrowse/plugin-linear-comparative-view 2.12.0 → 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 +1 -2
- 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 +21 -150
- 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/SyntenyContextMenu.js +1 -1
- package/dist/LinearSyntenyDisplay/components/util.js +7 -8
- 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/util.js +4 -5
- package/dist/LinearSyntenyView/index.js +1 -1
- package/dist/LinearSyntenyView/model.d.ts +24 -838
- package/dist/LinearSyntenyView/model.js +1 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +1 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +1 -2
- package/dist/SyntenyFeatureDetail/index.js +1 -1
- package/dist/SyntenyTrack/index.js +1 -1
- package/dist/util.js +5 -6
- package/esm/LGVSyntenyDisplay/model.d.ts +35 -36
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +34 -49
- package/esm/LinearComparativeView/model.d.ts +21 -150
- package/esm/LinearSyntenyDisplay/model.d.ts +26 -36
- package/esm/LinearSyntenyView/model.d.ts +24 -838
- package/package.json +2 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Instance, SnapshotIn } from 'mobx-state-tree';
|
|
3
2
|
import { MenuItem } from '@jbrowse/core/ui';
|
|
4
3
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
@@ -52,15 +51,15 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
52
51
|
} & {
|
|
53
52
|
volatileWidth: number | undefined;
|
|
54
53
|
minimumBlockWidth: number;
|
|
55
|
-
draggingTrackId:
|
|
54
|
+
draggingTrackId: undefined | string;
|
|
56
55
|
volatileError: unknown;
|
|
57
56
|
afterDisplayedRegionsSetCallbacks: Function[];
|
|
58
57
|
scaleFactor: number;
|
|
59
58
|
trackRefs: Record<string, HTMLDivElement>;
|
|
60
59
|
coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
|
|
61
60
|
coarseTotalBp: number;
|
|
62
|
-
leftOffset: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset
|
|
63
|
-
rightOffset: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset
|
|
61
|
+
leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
62
|
+
rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
|
|
64
63
|
} & {
|
|
65
64
|
readonly trackLabelsSetting: any;
|
|
66
65
|
readonly width: number;
|
|
@@ -109,8 +108,8 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
109
108
|
removeHighlight(highlight: Required<import("@jbrowse/core/util").ParsedLocString>): void;
|
|
110
109
|
scrollTo(offsetPx: number): number;
|
|
111
110
|
zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
|
|
112
|
-
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset
|
|
113
|
-
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string
|
|
111
|
+
setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
112
|
+
setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
|
|
114
113
|
setNewView(bpPerPx: number, offsetPx: number): void;
|
|
115
114
|
horizontallyFlip(): void;
|
|
116
115
|
showTrack(trackId: string, initialSnapshot?: {}, displayInitialSnapshot?: {}): any;
|
|
@@ -123,30 +122,30 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
123
122
|
moveTrack(movingId: string, targetId: string): void;
|
|
124
123
|
closeView(): void;
|
|
125
124
|
toggleTrack(trackId: string): boolean;
|
|
126
|
-
setTrackLabels(setting: "
|
|
125
|
+
setTrackLabels(setting: "overlapping" | "offset" | "hidden"): void;
|
|
127
126
|
setShowCenterLine(b: boolean): void;
|
|
128
127
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
129
128
|
activateTrackSelector(): import("@jbrowse/core/util").Widget;
|
|
130
|
-
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset
|
|
129
|
+
getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
|
|
131
130
|
start: number;
|
|
132
131
|
end: number;
|
|
133
132
|
type: string;
|
|
134
|
-
regionNumber?: number
|
|
135
|
-
reversed?: boolean
|
|
133
|
+
regionNumber?: number;
|
|
134
|
+
reversed?: boolean;
|
|
136
135
|
refName: string;
|
|
137
136
|
assemblyName: string;
|
|
138
137
|
key: string;
|
|
139
138
|
offsetPx: number;
|
|
140
139
|
widthPx: number;
|
|
141
|
-
variant?: string
|
|
142
|
-
isLeftEndOfDisplayedRegion?: boolean
|
|
140
|
+
variant?: string;
|
|
141
|
+
isLeftEndOfDisplayedRegion?: boolean;
|
|
143
142
|
}[];
|
|
144
143
|
afterDisplayedRegionsSet(cb: Function): void;
|
|
145
144
|
horizontalScroll(distance: number): number;
|
|
146
145
|
center(): void;
|
|
147
146
|
showAllRegions(): void;
|
|
148
|
-
showAllRegionsInAssembly(assemblyName?: string
|
|
149
|
-
setDraggingTrackId(idx?: string
|
|
147
|
+
showAllRegionsInAssembly(assemblyName?: string): void;
|
|
148
|
+
setDraggingTrackId(idx?: string): void;
|
|
150
149
|
setScaleFactor(factor: number): void;
|
|
151
150
|
clearView(): void;
|
|
152
151
|
exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
|
|
@@ -171,141 +170,13 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
171
170
|
setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
|
|
172
171
|
afterAttach(): void;
|
|
173
172
|
} & {
|
|
174
|
-
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset
|
|
175
|
-
navToLocString(input: string, optAssemblyName?: string
|
|
173
|
+
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
|
|
174
|
+
navToLocString(input: string, optAssemblyName?: string): Promise<void>;
|
|
176
175
|
navToSearchString({ input, assembly, }: {
|
|
177
176
|
input: string;
|
|
178
|
-
assembly:
|
|
179
|
-
configuration: any;
|
|
180
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
181
|
-
error: unknown;
|
|
182
|
-
loaded: boolean;
|
|
183
|
-
loadingP: Promise<void> | undefined;
|
|
184
|
-
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
185
|
-
refNameAliases: {
|
|
186
|
-
[x: string]: string | undefined;
|
|
187
|
-
} | undefined;
|
|
188
|
-
lowerCaseRefNameAliases: {
|
|
189
|
-
[x: string]: string | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
cytobands: import("@jbrowse/core/util").Feature[] | undefined; /**
|
|
192
|
-
* #property
|
|
193
|
-
*/
|
|
194
|
-
} & {
|
|
195
|
-
getConf(arg: string): any;
|
|
196
|
-
} & {
|
|
197
|
-
readonly initialized: boolean;
|
|
198
|
-
readonly name: string;
|
|
199
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
200
|
-
readonly aliases: string[];
|
|
201
|
-
readonly displayName: string | undefined;
|
|
202
|
-
hasName(name: string): boolean;
|
|
203
|
-
readonly allAliases: string[];
|
|
204
|
-
readonly allRefNames: string[] | undefined;
|
|
205
|
-
readonly lowerCaseRefNames: string[] | undefined;
|
|
206
|
-
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
207
|
-
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
208
|
-
readonly refNameColors: string[];
|
|
209
|
-
} & {
|
|
210
|
-
readonly refNames: string[] | undefined;
|
|
211
|
-
} & {
|
|
212
|
-
getCanonicalRefName(refName: string): string | undefined;
|
|
213
|
-
getRefNameColor(refName: string): string | undefined;
|
|
214
|
-
isValidRefName(refName: string): boolean;
|
|
215
|
-
} & {
|
|
216
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
217
|
-
setError(e: unknown): void;
|
|
218
|
-
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
219
|
-
setRefNameAliases(aliases: {
|
|
220
|
-
[x: string]: string | undefined;
|
|
221
|
-
}, lcAliases: {
|
|
222
|
-
[x: string]: string | undefined;
|
|
223
|
-
}): void;
|
|
224
|
-
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
225
|
-
setLoadingP(p?: Promise<void> | undefined): void;
|
|
226
|
-
load(): Promise<void>;
|
|
227
|
-
loadPre(): Promise<void>;
|
|
228
|
-
} & {
|
|
229
|
-
getAdapterMapEntry(adapterConf: {
|
|
230
|
-
[x: string]: unknown;
|
|
231
|
-
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
232
|
-
getRefNameMapForAdapter(adapterConf: {
|
|
233
|
-
[x: string]: unknown;
|
|
234
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
235
|
-
[x: string]: string | undefined;
|
|
236
|
-
}>;
|
|
237
|
-
getReverseRefNameMapForAdapter(adapterConf: {
|
|
238
|
-
[x: string]: unknown;
|
|
239
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
240
|
-
[x: string]: string | undefined;
|
|
241
|
-
}>;
|
|
242
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
243
|
-
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
244
|
-
}, {
|
|
245
|
-
error: unknown;
|
|
246
|
-
loaded: boolean;
|
|
247
|
-
loadingP: Promise<void> | undefined;
|
|
248
|
-
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
249
|
-
refNameAliases: {
|
|
250
|
-
[x: string]: string | undefined;
|
|
251
|
-
} | undefined;
|
|
252
|
-
lowerCaseRefNameAliases: {
|
|
253
|
-
[x: string]: string | undefined;
|
|
254
|
-
} | undefined;
|
|
255
|
-
cytobands: import("@jbrowse/core/util").Feature[] | undefined; /**
|
|
256
|
-
* #property
|
|
257
|
-
*/
|
|
258
|
-
} & {
|
|
259
|
-
getConf(arg: string): any;
|
|
260
|
-
} & {
|
|
261
|
-
readonly initialized: boolean;
|
|
262
|
-
readonly name: string;
|
|
263
|
-
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
264
|
-
readonly aliases: string[];
|
|
265
|
-
readonly displayName: string | undefined;
|
|
266
|
-
hasName(name: string): boolean;
|
|
267
|
-
readonly allAliases: string[];
|
|
268
|
-
readonly allRefNames: string[] | undefined;
|
|
269
|
-
readonly lowerCaseRefNames: string[] | undefined;
|
|
270
|
-
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
271
|
-
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
272
|
-
readonly refNameColors: string[];
|
|
273
|
-
} & {
|
|
274
|
-
readonly refNames: string[] | undefined;
|
|
275
|
-
} & {
|
|
276
|
-
getCanonicalRefName(refName: string): string | undefined;
|
|
277
|
-
getRefNameColor(refName: string): string | undefined;
|
|
278
|
-
isValidRefName(refName: string): boolean;
|
|
279
|
-
} & {
|
|
280
|
-
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
281
|
-
setError(e: unknown): void;
|
|
282
|
-
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
283
|
-
setRefNameAliases(aliases: {
|
|
284
|
-
[x: string]: string | undefined;
|
|
285
|
-
}, lcAliases: {
|
|
286
|
-
[x: string]: string | undefined;
|
|
287
|
-
}): void;
|
|
288
|
-
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
289
|
-
setLoadingP(p?: Promise<void> | undefined): void;
|
|
290
|
-
load(): Promise<void>;
|
|
291
|
-
loadPre(): Promise<void>;
|
|
292
|
-
} & {
|
|
293
|
-
getAdapterMapEntry(adapterConf: {
|
|
294
|
-
[x: string]: unknown;
|
|
295
|
-
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
296
|
-
getRefNameMapForAdapter(adapterConf: {
|
|
297
|
-
[x: string]: unknown;
|
|
298
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
299
|
-
[x: string]: string | undefined;
|
|
300
|
-
}>;
|
|
301
|
-
getReverseRefNameMapForAdapter(adapterConf: {
|
|
302
|
-
[x: string]: unknown;
|
|
303
|
-
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
304
|
-
[x: string]: string | undefined;
|
|
305
|
-
}>;
|
|
306
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
177
|
+
assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
|
|
307
178
|
}): Promise<void>;
|
|
308
|
-
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string
|
|
179
|
+
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
|
|
309
180
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
310
181
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
311
182
|
} & {
|
|
@@ -313,12 +184,12 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
313
184
|
bpToPx({ refName, coord, regionNumber, }: {
|
|
314
185
|
refName: string;
|
|
315
186
|
coord: number;
|
|
316
|
-
regionNumber?: number
|
|
187
|
+
regionNumber?: number;
|
|
317
188
|
}): {
|
|
318
189
|
index: number;
|
|
319
190
|
offsetPx: number;
|
|
320
191
|
} | undefined;
|
|
321
|
-
centerAt(coord: number, refName: string, regionNumber?: number
|
|
192
|
+
centerAt(coord: number, refName: string, regionNumber?: number): void;
|
|
322
193
|
pxToBp(px: number): {
|
|
323
194
|
coord: number;
|
|
324
195
|
index: number;
|
|
@@ -328,7 +199,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
328
199
|
offset: number;
|
|
329
200
|
start: number;
|
|
330
201
|
end: number;
|
|
331
|
-
reversed?: boolean
|
|
202
|
+
reversed?: boolean;
|
|
332
203
|
};
|
|
333
204
|
readonly centerLineInfo: {
|
|
334
205
|
coord: number;
|
|
@@ -339,7 +210,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
|
|
|
339
210
|
offset: number;
|
|
340
211
|
start: number;
|
|
341
212
|
end: number;
|
|
342
|
-
reversed?: boolean
|
|
213
|
+
reversed?: boolean;
|
|
343
214
|
} | undefined;
|
|
344
215
|
} & {
|
|
345
216
|
afterCreate(): 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 = ReadVsRefDialog;
|
|
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");
|
|
@@ -281,4 +282,3 @@ function ReadVsRefDialog({ track, feature: preFeature, handleClose, }) {
|
|
|
281
282
|
react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: handleClose }, "Cancel"),
|
|
282
283
|
react_1.default.createElement(material_1.Button, { disabled: !primaryFeature, variant: "contained", color: "primary", onClick: onSubmit }, "Submit"))));
|
|
283
284
|
}
|
|
284
|
-
exports.default = ReadVsRefDialog;
|
|
@@ -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 = LinearReadVsRefMenuItemF;
|
|
29
30
|
const react_1 = require("react");
|
|
30
31
|
const util_1 = require("@jbrowse/core/util");
|
|
31
32
|
// icons
|
|
@@ -75,4 +76,3 @@ function LinearReadVsRefMenuItemF(pm) {
|
|
|
75
76
|
return pluggableElement;
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
exports.default = LinearReadVsRefMenuItemF;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doAfterAttach =
|
|
3
|
+
exports.doAfterAttach = doAfterAttach;
|
|
4
4
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
6
|
const Base1DUtils_1 = require("@jbrowse/core/util/Base1DUtils");
|
|
@@ -103,4 +103,3 @@ function doAfterAttach(self) {
|
|
|
103
103
|
self.setFeatPositions(map);
|
|
104
104
|
}, { fireImmediately: true }));
|
|
105
105
|
}
|
|
106
|
-
exports.doAfterAttach = doAfterAttach;
|
|
@@ -3,6 +3,7 @@ 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.default = SyntenyContextMenu;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const util_1 = require("@jbrowse/core/util");
|
|
8
9
|
const ui_1 = require("@jbrowse/core/ui");
|
|
@@ -54,4 +55,3 @@ function SyntenyContextMenu({ model, onClose, anchorEl, }) {
|
|
|
54
55
|
},
|
|
55
56
|
] }));
|
|
56
57
|
}
|
|
57
|
-
exports.default = SyntenyContextMenu;
|
|
@@ -1,6 +1,12 @@
|
|
|
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");
|
|
5
11
|
// locals
|
|
6
12
|
const drawSynteny_1 = require("../drawSynteny");
|
|
@@ -42,7 +48,6 @@ function drawMatchSimple({ feature, ctx, offsets, cb, height, drawCurves, oobLim
|
|
|
42
48
|
cb(ctx);
|
|
43
49
|
}
|
|
44
50
|
}
|
|
45
|
-
exports.drawMatchSimple = drawMatchSimple;
|
|
46
51
|
function draw(ctx, x1, x2, y1, x3, x4, y2, mid, drawCurves) {
|
|
47
52
|
if (drawCurves) {
|
|
48
53
|
drawBezierBox(ctx, x1, x2, y1, x3, x4, y2, mid);
|
|
@@ -51,7 +56,6 @@ function draw(ctx, x1, x2, y1, x3, x4, y2, mid, drawCurves) {
|
|
|
51
56
|
drawBox(ctx, x1, x2, y1, x3, x4, y2);
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
|
-
exports.draw = draw;
|
|
55
59
|
function drawBox(ctx, x1, x2, y1, x3, x4, y2) {
|
|
56
60
|
ctx.beginPath();
|
|
57
61
|
ctx.moveTo(x1, y1);
|
|
@@ -61,7 +65,6 @@ function drawBox(ctx, x1, x2, y1, x3, x4, y2) {
|
|
|
61
65
|
ctx.closePath();
|
|
62
66
|
ctx.fill();
|
|
63
67
|
}
|
|
64
|
-
exports.drawBox = drawBox;
|
|
65
68
|
function drawBezierBox(ctx, x1, x2, y1, x3, x4, y2, mid) {
|
|
66
69
|
const len1 = Math.abs(x1 - x2);
|
|
67
70
|
const len2 = Math.abs(x1 - x2);
|
|
@@ -82,7 +85,6 @@ function drawBezierBox(ctx, x1, x2, y1, x3, x4, y2, mid) {
|
|
|
82
85
|
ctx.closePath();
|
|
83
86
|
ctx.fill();
|
|
84
87
|
}
|
|
85
|
-
exports.drawBezierBox = drawBezierBox;
|
|
86
88
|
function onSynClick(event, model) {
|
|
87
89
|
const ref1 = model.clickMapCanvas;
|
|
88
90
|
const ref2 = model.cigarClickMapCanvas;
|
|
@@ -116,7 +118,6 @@ function onSynClick(event, model) {
|
|
|
116
118
|
}
|
|
117
119
|
return feat;
|
|
118
120
|
}
|
|
119
|
-
exports.onSynClick = onSynClick;
|
|
120
121
|
function onSynContextClick(event, model, setAnchorEl) {
|
|
121
122
|
event.preventDefault();
|
|
122
123
|
const ref1 = model.clickMapCanvas;
|
|
@@ -142,7 +143,6 @@ function onSynContextClick(event, model, setAnchorEl) {
|
|
|
142
143
|
setAnchorEl({ clientX, clientY, feature: f });
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
|
-
exports.onSynContextClick = onSynContextClick;
|
|
146
146
|
function getTooltip(f, cigarOp, cigarOpLen) {
|
|
147
147
|
// @ts-expect-error
|
|
148
148
|
const f1 = f.toJSON();
|
|
@@ -166,4 +166,3 @@ function getTooltip(f, cigarOp, cigarOpLen) {
|
|
|
166
166
|
.filter(f => !!f)
|
|
167
167
|
.join('<br/>');
|
|
168
168
|
}
|
|
169
|
-
exports.getTooltip = getTooltip;
|
|
@@ -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;
|
|
@@ -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;
|