@jbrowse/plugin-alignments 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.
@@ -10,6 +10,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
10
10
  track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
11
11
  trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
12
12
  trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
13
+ maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
13
14
  } & {
14
15
  type: import("mobx-state-tree").ISimpleType<"AlignmentsFeatureWidget">;
15
16
  }, {
@@ -18,7 +19,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
18
19
  setFeatureData(featureData: Record<string, unknown>): void;
19
20
  clearFeatureData(): void;
20
21
  setFormattedData(feat: Record<string, unknown>): void;
21
- setExtra(type?: string | undefined, trackId?: string | undefined): void;
22
+ setExtra(type?: string | undefined, trackId?: string | undefined, maxDepth?: number | undefined): void;
22
23
  setError(e: unknown): void;
23
24
  } & {
24
25
  afterCreate(): void;
@@ -34,6 +35,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
34
35
  track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
35
36
  trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
36
37
  trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
38
+ maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
37
39
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
38
40
  type: "BaseFeatureWidget";
39
41
  id: string;
@@ -41,6 +43,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
41
43
  view: import("mobx-state-tree").ReferenceIdentifier | undefined;
42
44
  trackId: string | undefined;
43
45
  trackType: string | undefined;
46
+ maxDepth: number | undefined;
44
47
  formattedFields: any;
45
48
  finalizedFeatureData: any;
46
49
  } & import("mobx-state-tree")._NotCustomized>;
@@ -58,6 +58,11 @@ export default function configSchemaFactory(pluginManager: PluginManager): impor
58
58
  defaultValue: number;
59
59
  description: string;
60
60
  };
61
+ maxDepth: {
62
+ type: string;
63
+ defaultValue: number;
64
+ description: string;
65
+ };
61
66
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
62
67
  formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
63
68
  config: {
@@ -233,14 +233,9 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
233
233
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
234
234
  regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
235
235
  } & {
236
- featureIdUnderMouse: string | undefined; /**
237
- * #property
238
- */
236
+ featureIdUnderMouse: string | undefined;
239
237
  contextMenuFeature: Feature | undefined;
240
238
  } & {
241
- /**
242
- * #property
243
- */
244
239
  readonly blockType: "dynamicBlocks" | "staticBlocks";
245
240
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
246
241
  } & {
@@ -530,7 +530,7 @@ function SharedLinearPileupDisplayMixin(configSchema) {
530
530
  // feature.id that was returned e.g. that the user hasn't
531
531
  // moused over to a new position during the async operation
532
532
  // above
533
- if (self.featureIdUnderMouse === feature.uniqueId) {
533
+ if (self.featureIdUnderMouse === (feature === null || feature === void 0 ? void 0 : feature.uniqueId)) {
534
534
  self.setFeatureUnderMouse(new util_1.SimpleFeature(feature));
535
535
  }
536
536
  }
@@ -244,16 +244,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
244
244
  readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
245
245
  getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
246
246
  getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
247
- searchFeatureByID(id: string): [number, number, number, number] | undefined; /**
248
- * #getter
249
- */
247
+ searchFeatureByID(id: string): [number, number, number, number] | undefined;
250
248
  } & {
251
249
  addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
252
250
  deleteBlock(key: string): void;
253
251
  selectFeature(feature: import("@jbrowse/core/util").Feature): void;
254
- clearFeatureSelection(): void; /**
255
- * #method
256
- */
252
+ clearFeatureSelection(): void;
257
253
  setFeatureIdUnderMouse(feature?: string | undefined): void;
258
254
  setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
259
255
  } & {
@@ -39,7 +39,7 @@ function SNPCoverageConfigFactory(pluginManager) {
39
39
  */
40
40
  scaleType: {
41
41
  type: 'stringEnum',
42
- model: mobx_state_tree_1.types.enumeration('Scale type', ['linear', 'log']),
42
+ model: mobx_state_tree_1.types.enumeration('Scale type', ['linear', 'log']), // todo zscale
43
43
  description: 'The type of scale to use',
44
44
  defaultValue: 'linear',
45
45
  },
@@ -9,22 +9,19 @@ const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view"
9
9
  const mui_1 = require("tss-react/mui");
10
10
  const mobx_react_1 = require("mobx-react");
11
11
  const util_1 = require("@jbrowse/core/util");
12
- const useStyles = (0, mui_1.makeStyles)()(theme => {
13
- const bg = theme.palette.action.disabledBackground;
14
- return {
15
- loading: {
16
- backgroundColor: theme.palette.background.default,
17
- backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
18
- position: 'absolute',
19
- bottom: 0,
20
- height: 50,
21
- width: 300,
22
- right: 0,
23
- pointerEvents: 'none',
24
- textAlign: 'center',
25
- },
26
- };
27
- });
12
+ const useStyles = (0, mui_1.makeStyles)()(theme => ({
13
+ loading: {
14
+ backgroundColor: theme.palette.background.default,
15
+ backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${theme.palette.action.disabledBackground} 5px, ${theme.palette.action.disabledBackground} 10px)`,
16
+ position: 'absolute',
17
+ bottom: 0,
18
+ height: 50,
19
+ width: 300,
20
+ right: 0,
21
+ pointerEvents: 'none',
22
+ textAlign: 'center',
23
+ },
24
+ }));
28
25
  const BaseDisplayComponent = (0, mobx_react_1.observer)(function ({ model, children, }) {
29
26
  const { error, regionTooLarge } = model;
30
27
  return error ? (react_1.default.createElement(plugin_linear_genome_view_1.BlockMsg, { message: `${error}`, severity: "error", buttonText: "Reload", action: model.reload })) : regionTooLarge ? (model.regionCannotBeRendered()) : (react_1.default.createElement(DataDisplay, { model: model }, children));
@@ -10,6 +10,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
10
10
  track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
11
11
  trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
12
12
  trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
13
+ maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
13
14
  } & {
14
15
  type: import("mobx-state-tree").ISimpleType<"AlignmentsFeatureWidget">;
15
16
  }, {
@@ -18,7 +19,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
18
19
  setFeatureData(featureData: Record<string, unknown>): void;
19
20
  clearFeatureData(): void;
20
21
  setFormattedData(feat: Record<string, unknown>): void;
21
- setExtra(type?: string | undefined, trackId?: string | undefined): void;
22
+ setExtra(type?: string | undefined, trackId?: string | undefined, maxDepth?: number | undefined): void;
22
23
  setError(e: unknown): void;
23
24
  } & {
24
25
  afterCreate(): void;
@@ -34,6 +35,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
34
35
  track: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
35
36
  trackId: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
36
37
  trackType: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
38
+ maxDepth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
37
39
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
38
40
  type: "BaseFeatureWidget";
39
41
  id: string;
@@ -41,6 +43,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
41
43
  view: import("mobx-state-tree").ReferenceIdentifier | undefined;
42
44
  trackId: string | undefined;
43
45
  trackType: string | undefined;
46
+ maxDepth: number | undefined;
44
47
  formattedFields: any;
45
48
  finalizedFeatureData: any;
46
49
  } & import("mobx-state-tree")._NotCustomized>;
@@ -58,6 +58,11 @@ export default function configSchemaFactory(pluginManager: PluginManager): impor
58
58
  defaultValue: number;
59
59
  description: string;
60
60
  };
61
+ maxDepth: {
62
+ type: string;
63
+ defaultValue: number;
64
+ description: string;
65
+ };
61
66
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
62
67
  formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
63
68
  config: {
@@ -233,14 +233,9 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
233
233
  regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
234
234
  regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
235
235
  } & {
236
- featureIdUnderMouse: string | undefined; /**
237
- * #property
238
- */
236
+ featureIdUnderMouse: string | undefined;
239
237
  contextMenuFeature: Feature | undefined;
240
238
  } & {
241
- /**
242
- * #property
243
- */
244
239
  readonly blockType: "dynamicBlocks" | "staticBlocks";
245
240
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
246
241
  } & {
@@ -501,7 +501,7 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
501
501
  // feature.id that was returned e.g. that the user hasn't
502
502
  // moused over to a new position during the async operation
503
503
  // above
504
- if (self.featureIdUnderMouse === feature.uniqueId) {
504
+ if (self.featureIdUnderMouse === (feature === null || feature === void 0 ? void 0 : feature.uniqueId)) {
505
505
  self.setFeatureUnderMouse(new SimpleFeature(feature));
506
506
  }
507
507
  }
@@ -244,16 +244,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
244
244
  readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
245
245
  getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
246
246
  getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
247
- searchFeatureByID(id: string): [number, number, number, number] | undefined; /**
248
- * #getter
249
- */
247
+ searchFeatureByID(id: string): [number, number, number, number] | undefined;
250
248
  } & {
251
249
  addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
252
250
  deleteBlock(key: string): void;
253
251
  selectFeature(feature: import("@jbrowse/core/util").Feature): void;
254
- clearFeatureSelection(): void; /**
255
- * #method
256
- */
252
+ clearFeatureSelection(): void;
257
253
  setFeatureIdUnderMouse(feature?: string | undefined): void;
258
254
  setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
259
255
  } & {
@@ -37,7 +37,7 @@ export default function SNPCoverageConfigFactory(pluginManager) {
37
37
  */
38
38
  scaleType: {
39
39
  type: 'stringEnum',
40
- model: types.enumeration('Scale type', ['linear', 'log']),
40
+ model: types.enumeration('Scale type', ['linear', 'log']), // todo zscale
41
41
  description: 'The type of scale to use',
42
42
  defaultValue: 'linear',
43
43
  },
@@ -4,22 +4,19 @@ import { BlockMsg, } from '@jbrowse/plugin-linear-genome-view';
4
4
  import { makeStyles } from 'tss-react/mui';
5
5
  import { observer } from 'mobx-react';
6
6
  import { getContainingView } from '@jbrowse/core/util';
7
- const useStyles = makeStyles()(theme => {
8
- const bg = theme.palette.action.disabledBackground;
9
- return {
10
- loading: {
11
- backgroundColor: theme.palette.background.default,
12
- backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${bg} 5px, ${bg} 10px)`,
13
- position: 'absolute',
14
- bottom: 0,
15
- height: 50,
16
- width: 300,
17
- right: 0,
18
- pointerEvents: 'none',
19
- textAlign: 'center',
20
- },
21
- };
22
- });
7
+ const useStyles = makeStyles()(theme => ({
8
+ loading: {
9
+ backgroundColor: theme.palette.background.default,
10
+ backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${theme.palette.action.disabledBackground} 5px, ${theme.palette.action.disabledBackground} 10px)`,
11
+ position: 'absolute',
12
+ bottom: 0,
13
+ height: 50,
14
+ width: 300,
15
+ right: 0,
16
+ pointerEvents: 'none',
17
+ textAlign: 'center',
18
+ },
19
+ }));
23
20
  const BaseDisplayComponent = observer(function ({ model, children, }) {
24
21
  const { error, regionTooLarge } = model;
25
22
  return error ? (React.createElement(BlockMsg, { message: `${error}`, severity: "error", buttonText: "Reload", action: model.reload })) : regionTooLarge ? (model.regionCannotBeRendered()) : (React.createElement(DataDisplay, { model: model }, children));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-alignments",
3
- "version": "2.7.2",
3
+ "version": "2.9.0",
4
4
  "description": "JBrowse 2 alignments adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -63,5 +63,5 @@
63
63
  "distModule": "esm/index.js",
64
64
  "srcModule": "src/index.ts",
65
65
  "module": "esm/index.js",
66
- "gitHead": "9052b295f2d322e729254457ed9fe2231fb22cce"
66
+ "gitHead": "a50b6f67cf8c8f3c65a7b8cd858de2fcca1f2909"
67
67
  }