@jbrowse/plugin-linear-genome-view 2.7.2 → 2.9.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 +18 -11
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +25 -2
- package/dist/BaseLinearDisplay/models/renderSvg.d.ts +1 -1
- package/dist/BaseLinearDisplay/models/renderSvg.js +2 -1
- package/dist/BasicTrack/configSchema.d.ts +5 -0
- package/dist/FeatureTrack/configSchema.d.ts +5 -0
- package/dist/LaunchLinearGenomeView/index.js +16 -14
- package/dist/LinearBasicDisplay/model.d.ts +3 -1
- package/dist/LinearGenomeView/components/CenterLine.js +1 -1
- package/dist/LinearGenomeView/components/ImportForm.js +26 -74
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +12 -0
- package/dist/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +29 -0
- package/dist/LinearGenomeView/components/OverviewScalebar.js +1 -1
- package/dist/LinearGenomeView/components/SearchBox.js +18 -54
- package/dist/LinearGenomeView/model.d.ts +12 -1
- package/dist/LinearGenomeView/model.js +16 -0
- package/dist/index.d.ts +702 -6
- package/dist/index.js +2 -2
- package/dist/searchUtils.d.ts +26 -0
- package/dist/searchUtils.js +90 -0
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +18 -11
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +1 -1
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +1 -1
- package/esm/BaseLinearDisplay/models/renderSvg.js +1 -1
- package/esm/BasicTrack/configSchema.d.ts +5 -0
- package/esm/FeatureTrack/configSchema.d.ts +5 -0
- package/esm/LaunchLinearGenomeView/index.js +16 -14
- package/esm/LinearBasicDisplay/model.d.ts +3 -1
- package/esm/LinearGenomeView/components/CenterLine.js +1 -1
- package/esm/LinearGenomeView/components/ImportForm.js +26 -74
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.d.ts +12 -0
- package/esm/LinearGenomeView/components/ImportFormRefNameAutocomplete.js +24 -0
- package/esm/LinearGenomeView/components/OverviewScalebar.js +1 -1
- package/esm/LinearGenomeView/components/SearchBox.js +19 -55
- package/esm/LinearGenomeView/model.d.ts +12 -1
- package/esm/LinearGenomeView/model.js +16 -0
- package/esm/index.d.ts +702 -6
- package/esm/index.js +2 -2
- package/esm/searchUtils.d.ts +26 -0
- package/esm/searchUtils.js +79 -0
- package/package.json +2 -2
|
@@ -24,6 +24,7 @@ import MenuOpenIcon from '@mui/icons-material/MenuOpen';
|
|
|
24
24
|
import MiniControls from './components/MiniControls';
|
|
25
25
|
import Header from './components/Header';
|
|
26
26
|
import { generateLocations, parseLocStrings } from './util';
|
|
27
|
+
import { handleSelectedRegion } from '../searchUtils';
|
|
27
28
|
// lazies
|
|
28
29
|
const ReturnToImportFormDialog = lazy(() => import('@jbrowse/core/ui/ReturnToImportFormDialog'));
|
|
29
30
|
const SequenceSearchDialog = lazy(() => import('./components/SequenceSearchDialog'));
|
|
@@ -595,7 +596,9 @@ export function stateModelFactory(pluginManager) {
|
|
|
595
596
|
// if none had that configuration, turn one on
|
|
596
597
|
if (!hiddenCount) {
|
|
597
598
|
self.showTrack(trackId);
|
|
599
|
+
return true;
|
|
598
600
|
}
|
|
601
|
+
return false;
|
|
599
602
|
},
|
|
600
603
|
/**
|
|
601
604
|
* #action
|
|
@@ -1077,6 +1080,19 @@ export function stateModelFactory(pluginManager) {
|
|
|
1077
1080
|
}
|
|
1078
1081
|
return this.navToLocations(parseLocStrings(input, assemblyName, isValidRefName), assemblyName);
|
|
1079
1082
|
},
|
|
1083
|
+
/**
|
|
1084
|
+
* #action
|
|
1085
|
+
* Performs a text index search, and navigates to it immediately if a
|
|
1086
|
+
* single result is returned. Will pop up a search dialog if multiple
|
|
1087
|
+
* results are returned
|
|
1088
|
+
*/
|
|
1089
|
+
async navToSearchString({ input, assembly, }) {
|
|
1090
|
+
await handleSelectedRegion({
|
|
1091
|
+
input,
|
|
1092
|
+
assembly,
|
|
1093
|
+
model: self,
|
|
1094
|
+
});
|
|
1095
|
+
},
|
|
1080
1096
|
/**
|
|
1081
1097
|
* #action
|
|
1082
1098
|
* Similar to `navToLocString`, but accepts parsed location objects
|