@jbrowse/plugin-linear-genome-view 1.4.4 → 1.5.0
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/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +16 -9
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +2 -2
- package/dist/LinearBareDisplay/model.d.ts +8 -8
- package/dist/LinearBasicDisplay/model.d.ts +11 -8
- package/dist/LinearGenomeView/components/RefNameAutocomplete.d.ts +0 -10
- package/dist/LinearGenomeView/components/ScaleBar.d.ts +22 -2
- package/dist/LinearGenomeView/components/util.d.ts +2 -0
- package/dist/LinearGenomeView/index.d.ts +13 -2
- package/dist/index.d.ts +26 -26
- package/dist/plugin-linear-genome-view.cjs.development.js +272 -268
- package/dist/plugin-linear-genome-view.cjs.development.js.map +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js.map +1 -1
- package/dist/plugin-linear-genome-view.esm.js +272 -269
- package/dist/plugin-linear-genome-view.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +3 -0
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +3 -7
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +15 -13
- package/src/LinearBasicDisplay/model.ts +25 -3
- package/src/LinearGenomeView/components/ExportSvgDialog.tsx +6 -6
- package/src/LinearGenomeView/components/Header.tsx +40 -74
- package/src/LinearGenomeView/components/ImportForm.tsx +124 -134
- package/src/LinearGenomeView/components/LinearGenomeView.test.js +6 -6
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +20 -25
- package/src/LinearGenomeView/components/SequenceDialog.tsx +1 -1
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.js.snap +0 -176
- package/src/LinearGenomeView/components/util.ts +8 -0
- package/src/LinearGenomeView/index.tsx +14 -13
- package/src/index.ts +3 -1
|
@@ -45,6 +45,7 @@ import clone from 'clone'
|
|
|
45
45
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
|
|
46
46
|
import { saveAs } from 'file-saver'
|
|
47
47
|
import { renderToSvg } from './components/LinearGenomeView'
|
|
48
|
+
import RefNameAutocomplete from './components/RefNameAutocomplete'
|
|
48
49
|
import ExportSvgDlg from './components/ExportSvgDialog'
|
|
49
50
|
import ReturnToImportFormDlg from './components/ReturnToImportFormDialog'
|
|
50
51
|
|
|
@@ -551,9 +552,8 @@ export function stateModelFactory(pluginManager: PluginManager) {
|
|
|
551
552
|
initialSnapshot = {},
|
|
552
553
|
displayInitialSnapshot = {},
|
|
553
554
|
) {
|
|
554
|
-
const trackConfigSchema =
|
|
555
|
-
'track'
|
|
556
|
-
)
|
|
555
|
+
const trackConfigSchema =
|
|
556
|
+
pluginManager.pluggableConfigSchemaType('track')
|
|
557
557
|
const configuration = resolveIdentifier(
|
|
558
558
|
trackConfigSchema,
|
|
559
559
|
getRoot(self),
|
|
@@ -602,9 +602,8 @@ export function stateModelFactory(pluginManager: PluginManager) {
|
|
|
602
602
|
},
|
|
603
603
|
|
|
604
604
|
hideTrack(trackId: string) {
|
|
605
|
-
const trackConfigSchema =
|
|
606
|
-
'track'
|
|
607
|
-
)
|
|
605
|
+
const trackConfigSchema =
|
|
606
|
+
pluginManager.pluggableConfigSchemaType('track')
|
|
608
607
|
const configuration = resolveIdentifier(
|
|
609
608
|
trackConfigSchema,
|
|
610
609
|
getRoot(self),
|
|
@@ -1225,9 +1224,10 @@ export function stateModelFactory(pluginManager: PluginManager) {
|
|
|
1225
1224
|
{
|
|
1226
1225
|
label: 'Return to import form',
|
|
1227
1226
|
onClick: () => {
|
|
1228
|
-
getSession(self).
|
|
1229
|
-
|
|
1230
|
-
|
|
1227
|
+
getSession(self).queueDialog((doneCallback: Function) => [
|
|
1228
|
+
ReturnToImportFormDlg,
|
|
1229
|
+
{ model: self, handleClose: doneCallback },
|
|
1230
|
+
])
|
|
1231
1231
|
},
|
|
1232
1232
|
icon: FolderOpenIcon,
|
|
1233
1233
|
},
|
|
@@ -1235,9 +1235,10 @@ export function stateModelFactory(pluginManager: PluginManager) {
|
|
|
1235
1235
|
label: 'Export SVG',
|
|
1236
1236
|
icon: PhotoCameraIcon,
|
|
1237
1237
|
onClick: () => {
|
|
1238
|
-
getSession(self).
|
|
1239
|
-
|
|
1240
|
-
|
|
1238
|
+
getSession(self).queueDialog((doneCallback: Function) => [
|
|
1239
|
+
ExportSvgDlg,
|
|
1240
|
+
{ model: self, handleClose: doneCallback },
|
|
1241
|
+
])
|
|
1241
1242
|
},
|
|
1242
1243
|
},
|
|
1243
1244
|
{
|
|
@@ -1415,6 +1416,6 @@ export function stateModelFactory(pluginManager: PluginManager) {
|
|
|
1415
1416
|
}))
|
|
1416
1417
|
}
|
|
1417
1418
|
|
|
1418
|
-
export { renderToSvg }
|
|
1419
|
+
export { renderToSvg, RefNameAutocomplete }
|
|
1419
1420
|
export type LinearGenomeViewStateModel = ReturnType<typeof stateModelFactory>
|
|
1420
1421
|
export type LinearGenomeViewModel = Instance<LinearGenomeViewStateModel>
|
package/src/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
LinearGenomeViewStateModel,
|
|
27
27
|
stateModelFactory as linearGenomeViewStateModelFactory,
|
|
28
28
|
renderToSvg,
|
|
29
|
+
RefNameAutocomplete,
|
|
29
30
|
} from './LinearGenomeView'
|
|
30
31
|
|
|
31
32
|
import {
|
|
@@ -121,7 +122,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
121
122
|
|
|
122
123
|
configure(pluginManager: PluginManager) {
|
|
123
124
|
if (isAbstractMenuManager(pluginManager.rootModel)) {
|
|
124
|
-
pluginManager.rootModel.appendToSubMenu(['
|
|
125
|
+
pluginManager.rootModel.appendToSubMenu(['Add'], {
|
|
125
126
|
label: 'Linear genome view',
|
|
126
127
|
icon: LineStyleIcon,
|
|
127
128
|
onClick: (session: AbstractSessionModel) => {
|
|
@@ -140,6 +141,7 @@ export {
|
|
|
140
141
|
linearBasicDisplayConfigSchemaFactory,
|
|
141
142
|
linearBasicDisplayModelFactory,
|
|
142
143
|
renderToSvg,
|
|
144
|
+
RefNameAutocomplete,
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
export type { LinearGenomeViewModel, LinearGenomeViewStateModel, BlockModel }
|