@jbrowse/plugin-circular-view 1.4.4 → 1.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-circular-view",
3
- "version": "1.4.4",
3
+ "version": "1.5.3",
4
4
  "description": "JBrowse 2 circular view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "c12a2b1cef07dbc5ea40be5c76e03b655b7f3636"
52
+ "gitHead": "cea9023ebce8bbe5c08ae9e00c4e74fe3f02a7f1"
53
53
  }
@@ -37,7 +37,6 @@ export const BaseChordDisplayModel = types
37
37
  reactElement: undefined as React.ReactElement | undefined,
38
38
  data: undefined,
39
39
  message: '',
40
- error: undefined as Error | undefined,
41
40
  renderingComponent: undefined as undefined | AnyReactComponentType,
42
41
  refNameMap: undefined as Record<string, string> | undefined,
43
42
  }
@@ -171,7 +170,7 @@ export const BaseChordDisplayModel = types
171
170
  self.renderingComponent = renderingComponent
172
171
  }
173
172
  },
174
- renderError(error: Error) {
173
+ renderError(error: unknown) {
175
174
  console.error(error)
176
175
  // the rendering failed for some reason
177
176
  self.filled = false
@@ -185,16 +184,11 @@ export const BaseChordDisplayModel = types
185
184
  setRefNameMap(refNameMap: Record<string, string>) {
186
185
  self.refNameMap = refNameMap
187
186
  },
188
- setError(error: Error) {
189
- self.error = error
190
- },
191
187
  }))
192
188
  .actions(self => {
193
189
  const { pluginManager } = getEnv(self)
194
- const {
195
- renderReactionData,
196
- renderReactionEffect,
197
- } = pluginManager.jbrequire(renderReactionFactory)
190
+ const { renderReactionData, renderReactionEffect } =
191
+ pluginManager.jbrequire(renderReactionFactory)
198
192
  return {
199
193
  afterAttach() {
200
194
  makeAbortableReaction(
@@ -326,9 +326,8 @@ export default function CircularView(pluginManager: PluginManager) {
326
326
  },
327
327
 
328
328
  showTrack(trackId: string, initialSnapshot = {}) {
329
- const trackConfigSchema = pluginManager.pluggableConfigSchemaType(
330
- 'track',
331
- )
329
+ const trackConfigSchema =
330
+ pluginManager.pluggableConfigSchemaType('track')
332
331
  const configuration = resolveIdentifier(
333
332
  trackConfigSchema,
334
333
  getRoot(self),
@@ -382,9 +381,8 @@ export default function CircularView(pluginManager: PluginManager) {
382
381
  },
383
382
 
384
383
  hideTrack(trackId: string) {
385
- const trackConfigSchema = pluginManager.pluggableConfigSchemaType(
386
- 'track',
387
- )
384
+ const trackConfigSchema =
385
+ pluginManager.pluggableConfigSchemaType('track')
388
386
  const configuration = resolveIdentifier(
389
387
  trackConfigSchema,
390
388
  getRoot(self),
package/src/index.ts CHANGED
@@ -24,7 +24,7 @@ export default class CircularViewPlugin extends Plugin {
24
24
 
25
25
  configure(pluginManager: PluginManager) {
26
26
  if (isAbstractMenuManager(pluginManager.rootModel)) {
27
- pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {
27
+ pluginManager.rootModel.appendToSubMenu(['Add'], {
28
28
  label: 'Circular view',
29
29
  icon: DataUsageIcon,
30
30
  onClick: (session: AbstractSessionModel) => {