@jbrowse/plugin-gccontent 2.2.2 → 2.3.1

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,7 +10,10 @@ const GCContentAdapterF = (pluginManager) => {
10
10
  /**
11
11
  * #slot
12
12
  */
13
- sequenceAdapter: pluginManager.pluggableConfigSchemaType('adapter'),
13
+ sequenceAdapter: {
14
+ type: 'frozen',
15
+ defaultValue: null,
16
+ },
14
17
  }, { explicitlyTyped: true });
15
18
  };
16
19
  exports.default = GCContentAdapterF;
@@ -1 +1 @@
1
- {"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/GCContentAdapter/configSchema.ts"],"names":[],"mappings":";;AACA,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,iBAAiB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACzD,OAAO,IAAA,mCAAmB,EACxB,kBAAkB,EAClB;QACE;;WAEG;QACH,eAAe,EAAE,aAAa,CAAC,yBAAyB,CAAC,SAAS,CAAC;KACpE,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/GCContentAdapter/configSchema.ts"],"names":[],"mappings":";;AACA,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,iBAAiB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACzD,OAAO,IAAA,mCAAmB,EACxB,kBAAkB,EAClB;QACE;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SACnB;KACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA"}
@@ -31,11 +31,9 @@ const configSchema_1 = __importDefault(require("./configSchema"));
31
31
  exports.default = (pluginManager) => {
32
32
  pluginManager.addAdapterType(() => new AdapterType_1.default({
33
33
  name: 'GCContentAdapter',
34
+ displayName: 'GC content adapter',
34
35
  adapterMetadata: {
35
- category: null,
36
36
  hiddenFromGUI: true,
37
- displayName: null,
38
- description: null,
39
37
  },
40
38
  configSchema: (0, configSchema_1.default)(pluginManager),
41
39
  getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./GCContentAdapter'))).then(r => r.default),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GCContentAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAA0C;AAE1C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,kBAAkB;QACxB,eAAe,EAAE;YACf,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,IAAI;YACnB,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;SAClB;QACD,YAAY,EAAE,IAAA,sBAAa,EAAC,aAAa,CAAC;QAC1C,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,oBAAoB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GCContentAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAA0C;AAE1C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,oBAAoB;QACjC,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,YAAY,EAAE,IAAA,sBAAa,EAAC,aAAa,CAAC;QAC1C,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,oBAAoB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
@@ -3,21 +3,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
6
+ const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
7
+ const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
7
8
  const config_1 = __importDefault(require("./config"));
8
9
  const stateModel_1 = __importDefault(require("./stateModel"));
9
10
  exports.default = (pluginManager) => {
10
11
  pluginManager.addDisplayType(() => {
11
12
  const configSchema = (0, config_1.default)(pluginManager);
12
13
  const stateModel = (0, stateModel_1.default)(pluginManager, configSchema);
13
- return {
14
+ return new pluggableElementTypes_1.DisplayType({
14
15
  name: 'LinearGCContentDisplay',
15
16
  configSchema,
16
17
  stateModel,
18
+ displayName: 'GC content display',
17
19
  trackType: 'ReferenceSequenceTrack',
18
20
  viewType: 'LinearGenomeView',
19
- ReactComponent: plugin_linear_genome_view_1.BaseLinearDisplayComponent,
20
- };
21
+ ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
22
+ });
21
23
  });
22
24
  };
23
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/index.ts"],"names":[],"mappings":";;;;;AACA,kFAA+E;AAE/E,sDAA0C;AAC1C,8DAA4C;AAE5C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,IAAA,gBAAmB,EAAC,aAAa,CAAC,CAAA;QACvD,MAAM,UAAU,GAAG,IAAA,oBAAiB,EAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACjE,OAAO;YACL,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU;YACV,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,sDAA0B;SAC3C,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/index.ts"],"names":[],"mappings":";;;;;AAAA,+EAAiE;AAEjE,0DAA0E;AAE1E,sDAA0C;AAC1C,8DAA4C;AAE5C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,IAAA,gBAAmB,EAAC,aAAa,CAAC,CAAA;QACvD,MAAM,UAAU,GAAG,IAAA,oBAAiB,EAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACjE,OAAO,IAAI,mCAAW,CAAC;YACrB,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU;YACV,WAAW,EAAE,oBAAoB;YACjC,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,iDAAiC;SAClD,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
@@ -130,10 +130,10 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
130
130
  reload(): void;
131
131
  } & {
132
132
  currBpPerPx: number;
133
+ scrollTop: number;
133
134
  message: string;
134
135
  featureIdUnderMouse: string | undefined;
135
136
  contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
136
- scrollTop: number;
137
137
  estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
138
138
  estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
139
139
  } & {
@@ -201,12 +201,11 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
201
201
  overrideHeight: number;
202
202
  }): Promise<JSX.Element>;
203
203
  } & {
204
- statsReady: boolean;
205
204
  message: string | undefined;
206
205
  stats: {
207
206
  scoreMin: number;
208
207
  scoreMax: number;
209
- };
208
+ } | undefined;
210
209
  statsFetchInProgress: AbortController | undefined;
211
210
  } & {
212
211
  updateStats(stats: {
@@ -247,14 +246,14 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
247
246
  } & {
248
247
  readonly filled: any;
249
248
  readonly summaryScoreModeSetting: any;
250
- readonly domain: number[];
249
+ readonly domain: number[] | undefined;
251
250
  readonly needsScalebar: boolean;
252
251
  readonly scaleOpts: {
253
- domain: number[];
252
+ domain: number[] | undefined;
254
253
  stats: {
255
254
  scoreMin: number;
256
255
  scoreMax: number;
257
- };
256
+ } | undefined;
258
257
  autoscaleType: any;
259
258
  scaleType: any;
260
259
  inverted: any;
@@ -268,7 +267,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
268
267
  values: number[];
269
268
  format: (d: import("d3-scale").NumberValue) => string;
270
269
  position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
271
- };
270
+ } | undefined;
272
271
  readonly adapterCapabilities: string[];
273
272
  } & {
274
273
  renderProps(): any;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const configuration_1 = require("@jbrowse/core/configuration");
4
+ const plugin_wiggle_1 = require("@jbrowse/plugin-wiggle");
4
5
  const mobx_state_tree_1 = require("mobx-state-tree");
5
6
  function stateModelFactory(pluginManager, configSchema) {
6
- const WigglePlugin = pluginManager.getPlugin('WigglePlugin');
7
- const { linearWiggleDisplayModelFactory } = WigglePlugin.exports;
8
7
  return mobx_state_tree_1.types
9
- .compose('LinearGCContentDisplay', linearWiggleDisplayModelFactory(pluginManager, configSchema), mobx_state_tree_1.types.model({
8
+ .compose('LinearGCContentDisplay', (0, plugin_wiggle_1.linearWiggleDisplayModelFactory)(pluginManager, configSchema), mobx_state_tree_1.types.model({
10
9
  type: mobx_state_tree_1.types.literal('LinearGCContentDisplay'),
11
10
  }))
12
11
  .views(self => {
@@ -1 +1 @@
1
- {"version":3,"file":"stateModel.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/stateModel.ts"],"names":[],"mappings":";;AAAA,+DAGoC;AAEpC,qDAAuC;AAEvC,SAAwB,iBAAiB,CACvC,aAA4B,EAC5B,YAAwC;IAExC,MAAM,YAAY,GAAG,aAAa,CAAC,SAAS,CAC1C,cAAc,CAC6B,CAAA;IAC7C,MAAM,EAAE,+BAA+B,EAAE,GAAG,YAAY,CAAC,OAAO,CAAA;IAChE,OAAO,uBAAK;SACT,OAAO,CACN,wBAAwB,EACxB,+BAA+B,CAAC,aAAa,EAAE,YAAY,CAAC,EAC5D,uBAAK,CAAC,KAAK,CAAC;QACV,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;KAC9C,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL,WAAW;gBACT,MAAM,eAAe,GAAG,IAAA,uBAAO,EAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;gBAC5D,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,aAAa,EAAE;wBACb,IAAI,EAAE,kBAAkB;wBACxB,eAAe;qBAChB;iBACF,CAAA;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC;AA/BD,oCA+BC"}
1
+ {"version":3,"file":"stateModel.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/stateModel.ts"],"names":[],"mappings":";;AAAA,+DAGoC;AAEpC,0DAAwE;AACxE,qDAAuC;AAEvC,SAAwB,iBAAiB,CACvC,aAA4B,EAC5B,YAAwC;IAExC,OAAO,uBAAK;SACT,OAAO,CACN,wBAAwB,EACxB,IAAA,+CAA+B,EAAC,aAAa,EAAE,YAAY,CAAC,EAC5D,uBAAK,CAAC,KAAK,CAAC;QACV,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;KAC9C,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL,WAAW;gBACT,MAAM,eAAe,GAAG,IAAA,uBAAO,EAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;gBAC5D,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,aAAa,EAAE;wBACb,IAAI,EAAE,kBAAkB;wBACxB,eAAe;qBAChB;iBACF,CAAA;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC;AA3BD,oCA2BC"}
@@ -8,7 +8,10 @@ const GCContentAdapterF = (pluginManager) => {
8
8
  /**
9
9
  * #slot
10
10
  */
11
- sequenceAdapter: pluginManager.pluggableConfigSchemaType('adapter'),
11
+ sequenceAdapter: {
12
+ type: 'frozen',
13
+ defaultValue: null,
14
+ },
12
15
  }, { explicitlyTyped: true });
13
16
  };
14
17
  export default GCContentAdapterF;
@@ -1 +1 @@
1
- {"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/GCContentAdapter/configSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,iBAAiB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACzD,OAAO,mBAAmB,CACxB,kBAAkB,EAClB;QACE;;WAEG;QACH,eAAe,EAAE,aAAa,CAAC,yBAAyB,CAAC,SAAS,CAAC;KACpE,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/GCContentAdapter/configSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,iBAAiB,GAAG,CAAC,aAA4B,EAAE,EAAE;IACzD,OAAO,mBAAmB,CACxB,kBAAkB,EAClB;QACE;;WAEG;QACH,eAAe,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,YAAY,EAAE,IAAI;SACnB;KACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -3,11 +3,9 @@ import configSchemaF from './configSchema';
3
3
  export default (pluginManager) => {
4
4
  pluginManager.addAdapterType(() => new AdapterType({
5
5
  name: 'GCContentAdapter',
6
+ displayName: 'GC content adapter',
6
7
  adapterMetadata: {
7
- category: null,
8
8
  hiddenFromGUI: true,
9
- displayName: null,
10
- description: null,
11
9
  },
12
10
  configSchema: configSchemaF(pluginManager),
13
11
  getAdapterClass: () => import('./GCContentAdapter').then(r => r.default),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GCContentAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAE1C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,kBAAkB;QACxB,eAAe,EAAE;YACf,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,IAAI;YACnB,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,IAAI;SAClB;QACD,YAAY,EAAE,aAAa,CAAC,aAAa,CAAC;QAC1C,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GCContentAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAE1C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,oBAAoB;QACjC,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,YAAY,EAAE,aAAa,CAAC,aAAa,CAAC;QAC1C,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACpD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
@@ -1,18 +1,20 @@
1
- import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
1
+ import { DisplayType } from '@jbrowse/core/pluggableElementTypes';
2
+ import { LinearWiggleDisplayReactComponent } from '@jbrowse/plugin-wiggle';
2
3
  import configSchemaFactory from './config';
3
4
  import stateModelFactory from './stateModel';
4
5
  export default (pluginManager) => {
5
6
  pluginManager.addDisplayType(() => {
6
7
  const configSchema = configSchemaFactory(pluginManager);
7
8
  const stateModel = stateModelFactory(pluginManager, configSchema);
8
- return {
9
+ return new DisplayType({
9
10
  name: 'LinearGCContentDisplay',
10
11
  configSchema,
11
12
  stateModel,
13
+ displayName: 'GC content display',
12
14
  trackType: 'ReferenceSequenceTrack',
13
15
  viewType: 'LinearGenomeView',
14
- ReactComponent: BaseLinearDisplayComponent,
15
- };
16
+ ReactComponent: LinearWiggleDisplayReactComponent,
17
+ });
16
18
  });
17
19
  };
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAE/E,OAAO,mBAAmB,MAAM,UAAU,CAAA;AAC1C,OAAO,iBAAiB,MAAM,cAAc,CAAA;AAE5C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;QACvD,MAAM,UAAU,GAAG,iBAAiB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACjE,OAAO;YACL,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU;YACV,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,0BAA0B;SAC3C,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAEjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAE1E,OAAO,mBAAmB,MAAM,UAAU,CAAA;AAC1C,OAAO,iBAAiB,MAAM,cAAc,CAAA;AAE5C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAA;QACvD,MAAM,UAAU,GAAG,iBAAiB,CAAC,aAAa,EAAE,YAAY,CAAC,CAAA;QACjE,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU;YACV,WAAW,EAAE,oBAAoB;YACjC,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,iCAAiC;SAClD,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
@@ -130,10 +130,10 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
130
130
  reload(): void;
131
131
  } & {
132
132
  currBpPerPx: number;
133
+ scrollTop: number;
133
134
  message: string;
134
135
  featureIdUnderMouse: string | undefined;
135
136
  contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
136
- scrollTop: number;
137
137
  estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
138
138
  estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
139
139
  } & {
@@ -201,12 +201,11 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
201
201
  overrideHeight: number;
202
202
  }): Promise<JSX.Element>;
203
203
  } & {
204
- statsReady: boolean;
205
204
  message: string | undefined;
206
205
  stats: {
207
206
  scoreMin: number;
208
207
  scoreMax: number;
209
- };
208
+ } | undefined;
210
209
  statsFetchInProgress: AbortController | undefined;
211
210
  } & {
212
211
  updateStats(stats: {
@@ -247,14 +246,14 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
247
246
  } & {
248
247
  readonly filled: any;
249
248
  readonly summaryScoreModeSetting: any;
250
- readonly domain: number[];
249
+ readonly domain: number[] | undefined;
251
250
  readonly needsScalebar: boolean;
252
251
  readonly scaleOpts: {
253
- domain: number[];
252
+ domain: number[] | undefined;
254
253
  stats: {
255
254
  scoreMin: number;
256
255
  scoreMax: number;
257
- };
256
+ } | undefined;
258
257
  autoscaleType: any;
259
258
  scaleType: any;
260
259
  inverted: any;
@@ -268,7 +267,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
268
267
  values: number[];
269
268
  format: (d: import("d3-scale").NumberValue) => string;
270
269
  position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
271
- };
270
+ } | undefined;
272
271
  readonly adapterCapabilities: string[];
273
272
  } & {
274
273
  renderProps(): any;
@@ -1,8 +1,7 @@
1
1
  import { getConf, } from '@jbrowse/core/configuration';
2
+ import { linearWiggleDisplayModelFactory } from '@jbrowse/plugin-wiggle';
2
3
  import { types } from 'mobx-state-tree';
3
4
  export default function stateModelFactory(pluginManager, configSchema) {
4
- const WigglePlugin = pluginManager.getPlugin('WigglePlugin');
5
- const { linearWiggleDisplayModelFactory } = WigglePlugin.exports;
6
5
  return types
7
6
  .compose('LinearGCContentDisplay', linearWiggleDisplayModelFactory(pluginManager, configSchema), types.model({
8
7
  type: types.literal('LinearGCContentDisplay'),
@@ -1 +1 @@
1
- {"version":3,"file":"stateModel.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/stateModel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,GAER,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,aAA4B,EAC5B,YAAwC;IAExC,MAAM,YAAY,GAAG,aAAa,CAAC,SAAS,CAC1C,cAAc,CAC6B,CAAA;IAC7C,MAAM,EAAE,+BAA+B,EAAE,GAAG,YAAY,CAAC,OAAO,CAAA;IAChE,OAAO,KAAK;SACT,OAAO,CACN,wBAAwB,EACxB,+BAA+B,CAAC,aAAa,EAAE,YAAY,CAAC,EAC5D,KAAK,CAAC,KAAK,CAAC;QACV,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;KAC9C,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL,WAAW;gBACT,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;gBAC5D,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,aAAa,EAAE;wBACb,IAAI,EAAE,kBAAkB;wBACxB,eAAe;qBAChB;iBACF,CAAA;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
1
+ {"version":3,"file":"stateModel.js","sourceRoot":"","sources":["../../src/LinearGCContentDisplay/stateModel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,GAER,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,aAA4B,EAC5B,YAAwC;IAExC,OAAO,KAAK;SACT,OAAO,CACN,wBAAwB,EACxB,+BAA+B,CAAC,aAAa,EAAE,YAAY,CAAC,EAC5D,KAAK,CAAC,KAAK,CAAC;QACV,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,wBAAwB,CAAC;KAC9C,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE;QACZ,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAA;QAC9C,OAAO;YACL,WAAW;gBACT,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;gBAC5D,OAAO;oBACL,GAAG,gBAAgB,EAAE;oBACrB,aAAa,EAAE;wBACb,IAAI,EAAE,kBAAkB;wBACxB,eAAe;qBAChB;iBACF,CAAA;YACH,CAAC;SACF,CAAA;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-gccontent",
3
- "version": "2.2.2",
3
+ "version": "2.3.1",
4
4
  "description": "JBrowse 2 gccontent concepts",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -45,7 +45,6 @@
45
45
  "mobx": "^6.0.0",
46
46
  "mobx-react": "^7.0.0",
47
47
  "mobx-state-tree": "^5.0.0",
48
- "prop-types": "^15.0.0",
49
48
  "react": ">=16.8.0",
50
49
  "rxjs": "^6.0.0"
51
50
  },
@@ -55,5 +54,5 @@
55
54
  "distModule": "esm/index.js",
56
55
  "srcModule": "src/index.ts",
57
56
  "module": "esm/index.js",
58
- "gitHead": "abbc00e8feedbc58de84a7a3e735ec0224909b29"
57
+ "gitHead": "75c4cba2f50c626c62881abd5851dbf2435c2401"
59
58
  }
@@ -13,7 +13,10 @@ const GCContentAdapterF = (pluginManager: PluginManager) => {
13
13
  /**
14
14
  * #slot
15
15
  */
16
- sequenceAdapter: pluginManager.pluggableConfigSchemaType('adapter'),
16
+ sequenceAdapter: {
17
+ type: 'frozen',
18
+ defaultValue: null,
19
+ },
17
20
  },
18
21
  { explicitlyTyped: true },
19
22
  )
@@ -8,11 +8,9 @@ export default (pluginManager: PluginManager) => {
8
8
  () =>
9
9
  new AdapterType({
10
10
  name: 'GCContentAdapter',
11
+ displayName: 'GC content adapter',
11
12
  adapterMetadata: {
12
- category: null,
13
13
  hiddenFromGUI: true,
14
- displayName: null,
15
- description: null,
16
14
  },
17
15
  configSchema: configSchemaF(pluginManager),
18
16
  getAdapterClass: () =>
@@ -1,5 +1,6 @@
1
+ import { DisplayType } from '@jbrowse/core/pluggableElementTypes'
1
2
  import PluginManager from '@jbrowse/core/PluginManager'
2
- import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view'
3
+ import { LinearWiggleDisplayReactComponent } from '@jbrowse/plugin-wiggle'
3
4
 
4
5
  import configSchemaFactory from './config'
5
6
  import stateModelFactory from './stateModel'
@@ -8,13 +9,14 @@ export default (pluginManager: PluginManager) => {
8
9
  pluginManager.addDisplayType(() => {
9
10
  const configSchema = configSchemaFactory(pluginManager)
10
11
  const stateModel = stateModelFactory(pluginManager, configSchema)
11
- return {
12
+ return new DisplayType({
12
13
  name: 'LinearGCContentDisplay',
13
14
  configSchema,
14
15
  stateModel,
16
+ displayName: 'GC content display',
15
17
  trackType: 'ReferenceSequenceTrack',
16
18
  viewType: 'LinearGenomeView',
17
- ReactComponent: BaseLinearDisplayComponent,
18
- }
19
+ ReactComponent: LinearWiggleDisplayReactComponent,
20
+ })
19
21
  })
20
22
  }
@@ -3,16 +3,13 @@ import {
3
3
  AnyConfigurationSchemaType,
4
4
  } from '@jbrowse/core/configuration'
5
5
  import PluginManager from '@jbrowse/core/PluginManager'
6
+ import { linearWiggleDisplayModelFactory } from '@jbrowse/plugin-wiggle'
6
7
  import { types } from 'mobx-state-tree'
7
8
 
8
9
  export default function stateModelFactory(
9
10
  pluginManager: PluginManager,
10
11
  configSchema: AnyConfigurationSchemaType,
11
12
  ) {
12
- const WigglePlugin = pluginManager.getPlugin(
13
- 'WigglePlugin',
14
- ) as import('@jbrowse/plugin-wiggle').default
15
- const { linearWiggleDisplayModelFactory } = WigglePlugin.exports
16
13
  return types
17
14
  .compose(
18
15
  'LinearGCContentDisplay',