@jbrowse/plugin-canvas 4.1.13 → 4.1.15

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.
@@ -39,7 +39,7 @@ declare const CanvasFeatureRenderer: import("@jbrowse/core/configuration/configu
39
39
  };
40
40
  subfeatureLabels: {
41
41
  type: string;
42
- model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
42
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"overlay" | "none" | "below">;
43
43
  description: string;
44
44
  defaultValue: string;
45
45
  };
@@ -89,7 +89,7 @@ declare const CanvasFeatureRenderer: import("@jbrowse/core/configuration/configu
89
89
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
90
90
  displayMode: {
91
91
  type: string;
92
- model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
92
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"normal" | "collapse" | "compact" | "reducedRepresentation">;
93
93
  description: string;
94
94
  defaultValue: string;
95
95
  };
@@ -123,7 +123,7 @@ declare const CanvasFeatureRenderer: import("@jbrowse/core/configuration/configu
123
123
  };
124
124
  geneGlyphMode: {
125
125
  type: string;
126
- model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
126
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"all" | "longest" | "longestCoding">;
127
127
  description: string;
128
128
  defaultValue: string;
129
129
  };
@@ -39,7 +39,7 @@ declare const SvgFeatureRenderer: import("@jbrowse/core/configuration/configurat
39
39
  };
40
40
  subfeatureLabels: {
41
41
  type: string;
42
- model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
42
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"overlay" | "none" | "below">;
43
43
  description: string;
44
44
  defaultValue: string;
45
45
  };
@@ -89,7 +89,7 @@ declare const SvgFeatureRenderer: import("@jbrowse/core/configuration/configurat
89
89
  }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
90
90
  displayMode: {
91
91
  type: string;
92
- model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
92
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"normal" | "collapse" | "compact" | "reducedRepresentation">;
93
93
  description: string;
94
94
  defaultValue: string;
95
95
  };
@@ -123,7 +123,7 @@ declare const SvgFeatureRenderer: import("@jbrowse/core/configuration/configurat
123
123
  };
124
124
  geneGlyphMode: {
125
125
  type: string;
126
- model: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
126
+ model: import("@jbrowse/mobx-state-tree").ISimpleType<"all" | "longest" | "longestCoding">;
127
127
  description: string;
128
128
  defaultValue: string;
129
129
  };
@@ -70,6 +70,7 @@ function extractCDSRegions(feature) {
70
70
  .map((sub) => ({
71
71
  start: sub.get('start') - featureStart,
72
72
  end: sub.get('end') - featureStart,
73
+ phase: sub.get('phase') ?? 0,
73
74
  }));
74
75
  }
75
76
  async function fetchTranscriptPeptides(pluginManager, renderProps, transcript) {
@@ -94,6 +95,7 @@ async function fetchTranscriptPeptides(pluginManager, renderProps, transcript) {
94
95
  const seqLen = seq.length;
95
96
  cds = cds
96
97
  .map(region => ({
98
+ ...region,
97
99
  start: seqLen - region.end,
98
100
  end: seqLen - region.start,
99
101
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-canvas",
3
- "version": "4.1.13",
3
+ "version": "4.1.15",
4
4
  "type": "module",
5
5
  "description": "JBrowse 2 plugin for canvas features",
6
6
  "keywords": [
@@ -21,14 +21,14 @@
21
21
  "esm"
22
22
  ],
23
23
  "dependencies": {
24
- "@jbrowse/mobx-state-tree": "^5.5.0",
25
- "@mui/material": "^7.3.8",
24
+ "@jbrowse/mobx-state-tree": "^5.6.0",
25
+ "@mui/material": "^7.3.9",
26
26
  "g2p_mapper": "^2.0.0",
27
27
  "mobx": "^6.15.0",
28
28
  "mobx-react": "^9.2.1",
29
29
  "rxjs": "^7.8.2",
30
- "@jbrowse/core": "^4.1.13",
31
- "@jbrowse/plugin-linear-genome-view": "^4.1.13"
30
+ "@jbrowse/plugin-linear-genome-view": "^4.1.15",
31
+ "@jbrowse/core": "^4.1.15"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=18.0.0"