jbrowse-plugin-msaview 1.0.14 → 1.0.18

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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v1.0.18
2
+
3
+ - Fix clicking on node labels
4
+
5
+ # v1.0.17
6
+
7
+ - Avoid Link redirection at react-msaview importform
8
+
9
+ # v1.0.16
10
+
11
+ - Update to latest react-msaview
12
+
13
+ # v1.0.15
14
+
15
+ - Change to add to 'Add' top level menu
16
+
1
17
  # v1.0.14
2
18
 
3
19
  - Fix session link loading from distconfig.json
package/README.md CHANGED
@@ -1,15 +1,18 @@
1
- ![Push](https://github.com/GMOD/jbrowse-plugin-msaview/workflows/Push/badge.svg)
2
-
3
1
  # jbrowse-plugin-msaview
4
2
 
3
+ This plugin packages https://github.com/gmod/react-msaview for usage inside of JBrowse 2
4
+
5
+ See the docs for the react-msaview for more info https://github.com/GMOD/react-msaview/blob/main/docs/user_guide.md
6
+
5
7
  ## Gallery
6
8
 
7
9
  ![](img/1.png)
8
- ![](img/2.png)
10
+
11
+ MSAView plugin running in v1.5.0 of JBrowse web
9
12
 
10
13
  ## Demo
11
14
 
12
- https://s3.amazonaws.com/jbrowse.org/code/jb2/master/index.html?config=https://unpkg.com/jbrowse-plugin-msaview/dist/config.json&session=share-BVmmEYAoAv&password=SuQaN
15
+ https://s3.amazonaws.com/jbrowse.org/code/jb2/main/index.html?config=https://unpkg.com/jbrowse-plugin-msaview/dist/config.json&session=share-BVmmEYAoAv&password=SuQaN
13
16
 
14
17
  ## Features
15
18
 
@@ -6,7 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var Plugin = _interopDefault(require('@jbrowse/core/Plugin'));
8
8
  var util = require('@jbrowse/core/util');
9
- var reactMsaview = require('react-msaview');
9
+ var MSA = require('react-msaview');
10
10
  var ViewType = _interopDefault(require('@jbrowse/core/pluggableElementTypes/ViewType'));
11
11
  var GridOn = _interopDefault(require('@material-ui/icons/GridOn'));
12
12
 
@@ -69,7 +69,7 @@ function _isNativeReflectConstruct() {
69
69
  if (typeof Proxy === "function") return true;
70
70
 
71
71
  try {
72
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
72
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
73
73
  return true;
74
74
  } catch (e) {
75
75
  return false;
@@ -87,6 +87,8 @@ function _assertThisInitialized(self) {
87
87
  function _possibleConstructorReturn(self, call) {
88
88
  if (call && (typeof call === "object" || typeof call === "function")) {
89
89
  return call;
90
+ } else if (call !== void 0) {
91
+ throw new TypeError("Derived constructors may only return object or undefined");
90
92
  }
91
93
 
92
94
  return _assertThisInitialized(self);
@@ -111,7 +113,7 @@ function _createSuper(Derived) {
111
113
  };
112
114
  }
113
115
 
114
- var version = "1.0.14";
116
+ var version = "1.0.18";
115
117
 
116
118
  var MsaViewPlugin = /*#__PURE__*/function (_Plugin) {
117
119
  _inherits(MsaViewPlugin, _Plugin);
@@ -132,12 +134,15 @@ var MsaViewPlugin = /*#__PURE__*/function (_Plugin) {
132
134
  _createClass(MsaViewPlugin, [{
133
135
  key: "install",
134
136
  value: function install(pluginManager) {
137
+ console.log({
138
+ MSA: MSA
139
+ });
135
140
  pluginManager.addViewType(function () {
136
141
  return new ViewType({
137
142
  name: 'MsaView',
138
143
  //@ts-ignore
139
- stateModel: reactMsaview.MSAModel,
140
- ReactComponent: reactMsaview.MSAView
144
+ stateModel: MSA.MSAModel,
145
+ ReactComponent: MSA.MSAView
141
146
  });
142
147
  });
143
148
  }
@@ -145,7 +150,7 @@ var MsaViewPlugin = /*#__PURE__*/function (_Plugin) {
145
150
  key: "configure",
146
151
  value: function configure(pluginManager) {
147
152
  if (util.isAbstractMenuManager(pluginManager.rootModel)) {
148
- pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {
153
+ pluginManager.rootModel.appendToSubMenu(['Add'], {
149
154
  label: 'Multiple sequence alignment view',
150
155
  icon: GridOn,
151
156
  onClick: function onClick(session) {
@@ -1 +1 @@
1
- {"version":3,"file":"jbrowse-plugin-msaview.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["import Plugin from '@jbrowse/core/Plugin'\nimport PluginManager from '@jbrowse/core/PluginManager'\nimport { version } from '../package.json'\nimport { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'\nimport { MSAModel, MSAView } from 'react-msaview'\nimport ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'\nimport GridOn from '@material-ui/icons/GridOn'\n\nexport default class MsaViewPlugin extends Plugin {\n name = 'MsaViewPlugin'\n version = version\n\n install(pluginManager: PluginManager) {\n pluginManager.addViewType(\n () =>\n new ViewType({\n name: 'MsaView',\n //@ts-ignore\n stateModel: MSAModel,\n ReactComponent: MSAView,\n }),\n )\n }\n\n configure(pluginManager: PluginManager) {\n if (isAbstractMenuManager(pluginManager.rootModel)) {\n pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {\n label: 'Multiple sequence alignment view',\n icon: GridOn,\n onClick: (session: AbstractSessionModel) => {\n session.addView('MsaView', {})\n },\n })\n }\n }\n}\n"],"names":["MsaViewPlugin","version","pluginManager","addViewType","ViewType","name","stateModel","MSAModel","ReactComponent","MSAView","isAbstractMenuManager","rootModel","appendToSubMenu","label","icon","GridOn","onClick","session","addView","Plugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQqBA;;;;;AAArB;;;;;;AACE,cAAA,GAAO,eAAP;AACA,iBAAA,GAAUC,OAAV;;AAyBD;;;;4BAvBSC;AACNA,MAAAA,aAAa,CAACC,WAAd,CACE;AAAA,eACE,IAAIC,QAAJ,CAAa;AACXC,UAAAA,IAAI,EAAE,SADK;AAEX;AACAC,UAAAA,UAAU,EAAEC,qBAHD;AAIXC,UAAAA,cAAc,EAAEC;AAJL,SAAb,CADF;AAAA,OADF;AASD;;;8BAESP;AACR,UAAIQ,0BAAqB,CAACR,aAAa,CAACS,SAAf,CAAzB,EAAoD;AAClDT,QAAAA,aAAa,CAACS,SAAd,CAAwBC,eAAxB,CAAwC,CAAC,MAAD,EAAS,KAAT,CAAxC,EAAyD;AACvDC,UAAAA,KAAK,EAAE,kCADgD;AAEvDC,UAAAA,IAAI,EAAEC,MAFiD;AAGvDC,UAAAA,OAAO,EAAE,iBAACC,OAAD;AACPA,YAAAA,OAAO,CAACC,OAAR,CAAgB,SAAhB,EAA2B,EAA3B;AACD;AALsD,SAAzD;AAOD;AACF;;;;EA1BwCC;;;;"}
1
+ {"version":3,"file":"jbrowse-plugin-msaview.cjs.development.js","sources":["../src/index.ts"],"sourcesContent":["import Plugin from '@jbrowse/core/Plugin'\nimport PluginManager from '@jbrowse/core/PluginManager'\nimport { version } from '../package.json'\nimport { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'\nimport * as MSA from 'react-msaview'\nimport ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'\nimport GridOn from '@material-ui/icons/GridOn'\n\nexport default class MsaViewPlugin extends Plugin {\n name = 'MsaViewPlugin'\n version = version\n\n install(pluginManager: PluginManager) {\n console.log({ MSA })\n pluginManager.addViewType(\n () =>\n new ViewType({\n name: 'MsaView',\n //@ts-ignore\n stateModel: MSA.MSAModel,\n ReactComponent: MSA.MSAView,\n }),\n )\n }\n\n configure(pluginManager: PluginManager) {\n if (isAbstractMenuManager(pluginManager.rootModel)) {\n pluginManager.rootModel.appendToSubMenu(['Add'], {\n label: 'Multiple sequence alignment view',\n icon: GridOn,\n onClick: (session: AbstractSessionModel) => {\n session.addView('MsaView', {})\n },\n })\n }\n }\n}\n"],"names":["MsaViewPlugin","version","pluginManager","console","log","MSA","addViewType","ViewType","name","stateModel","ReactComponent","isAbstractMenuManager","rootModel","appendToSubMenu","label","icon","GridOn","onClick","session","addView","Plugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQqBA;;;;;AAArB;;;;;;AACE,cAAA,GAAO,eAAP;AACA,iBAAA,GAAUC,OAAV;;AA0BD;;;;WAxBC,iBAAQC,aAAR;AACEC,MAAAA,OAAO,CAACC,GAAR,CAAY;AAAEC,QAAAA,GAAG,EAAHA;AAAF,OAAZ;AACAH,MAAAA,aAAa,CAACI,WAAd,CACE;AAAA,eACE,IAAIC,QAAJ,CAAa;AACXC,UAAAA,IAAI,EAAE,SADK;AAEX;AACAC,UAAAA,UAAU,EAAEJ,YAHD;AAIXK,UAAAA,cAAc,EAAEL;AAJL,SAAb,CADF;AAAA,OADF;AASD;;;WAED,mBAAUH,aAAV;AACE,UAAIS,0BAAqB,CAACT,aAAa,CAACU,SAAf,CAAzB,EAAoD;AAClDV,QAAAA,aAAa,CAACU,SAAd,CAAwBC,eAAxB,CAAwC,CAAC,KAAD,CAAxC,EAAiD;AAC/CC,UAAAA,KAAK,EAAE,kCADwC;AAE/CC,UAAAA,IAAI,EAAEC,MAFyC;AAG/CC,UAAAA,OAAO,EAAE,iBAACC,OAAD;AACPA,YAAAA,OAAO,CAACC,OAAR,CAAgB,SAAhB,EAA2B,EAA3B;AACD;AAL8C,SAAjD;AAOD;AACF;;;;EA3BwCC;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@jbrowse/core/Plugin")),n=require("@jbrowse/core/util"),r=require("react-msaview"),o=e(require("@jbrowse/core/pluggableElementTypes/ViewType")),i=e(require("@material-ui/icons/GridOn"));function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}exports.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,t);var c,f=l(s);function s(){var e;return u(this,s),(e=f.apply(this,arguments)).name="MsaViewPlugin",e.version="1.0.14",e}return(c=[{key:"install",value:function(e){e.addViewType((function(){return new o({name:"MsaView",stateModel:r.MSAModel,ReactComponent:r.MSAView})}))}},{key:"configure",value:function(e){n.isAbstractMenuManager(e.rootModel)&&e.rootModel.appendToSubMenu(["File","Add"],{label:"Multiple sequence alignment view",icon:i,onClick:function(e){e.addView("MsaView",{})}})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,c),s}();
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("@jbrowse/core/Plugin")),n=require("@jbrowse/core/util"),r=require("react-msaview"),o=e(require("@jbrowse/core/pluggableElementTypes/ViewType")),i=e(require("@material-ui/icons/GridOn"));function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}exports.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,t);var c,f=l(s);function s(){var e;return u(this,s),(e=f.apply(this,arguments)).name="MsaViewPlugin",e.version="1.0.18",e}return(c=[{key:"install",value:function(e){console.log({MSA:r}),e.addViewType((function(){return new o({name:"MsaView",stateModel:r.MSAModel,ReactComponent:r.MSAView})}))}},{key:"configure",value:function(e){n.isAbstractMenuManager(e.rootModel)&&e.rootModel.appendToSubMenu(["Add"],{label:"Multiple sequence alignment view",icon:i,onClick:function(e){e.addView("MsaView",{})}})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,c),s}();
2
2
  //# sourceMappingURL=jbrowse-plugin-msaview.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jbrowse-plugin-msaview.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["import Plugin from '@jbrowse/core/Plugin'\nimport PluginManager from '@jbrowse/core/PluginManager'\nimport { version } from '../package.json'\nimport { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'\nimport { MSAModel, MSAView } from 'react-msaview'\nimport ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'\nimport GridOn from '@material-ui/icons/GridOn'\n\nexport default class MsaViewPlugin extends Plugin {\n name = 'MsaViewPlugin'\n version = version\n\n install(pluginManager: PluginManager) {\n pluginManager.addViewType(\n () =>\n new ViewType({\n name: 'MsaView',\n //@ts-ignore\n stateModel: MSAModel,\n ReactComponent: MSAView,\n }),\n )\n }\n\n configure(pluginManager: PluginManager) {\n if (isAbstractMenuManager(pluginManager.rootModel)) {\n pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {\n label: 'Multiple sequence alignment view',\n icon: GridOn,\n onClick: (session: AbstractSessionModel) => {\n session.addView('MsaView', {})\n },\n })\n }\n }\n}\n"],"names":["Plugin","pluginManager","addViewType","ViewType","name","stateModel","MSAModel","ReactComponent","MSAView","isAbstractMenuManager","rootModel","appendToSubMenu","label","icon","GridOn","onClick","session","addView"],"mappings":"s/CAQ2CA,qFAClC,6EAGCC,GACNA,EAAcC,aACZ,kBACE,IAAIC,EAAS,CACXC,KAAM,UAENC,WAAYC,WACZC,eAAgBC,iDAKdP,GACJQ,wBAAsBR,EAAcS,YACtCT,EAAcS,UAAUC,gBAAgB,CAAC,OAAQ,OAAQ,CACvDC,MAAO,mCACPC,KAAMC,EACNC,QAAS,SAACC,GACRA,EAAQC,QAAQ,UAAW"}
1
+ {"version":3,"file":"jbrowse-plugin-msaview.cjs.production.min.js","sources":["../src/index.ts"],"sourcesContent":["import Plugin from '@jbrowse/core/Plugin'\nimport PluginManager from '@jbrowse/core/PluginManager'\nimport { version } from '../package.json'\nimport { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'\nimport * as MSA from 'react-msaview'\nimport ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'\nimport GridOn from '@material-ui/icons/GridOn'\n\nexport default class MsaViewPlugin extends Plugin {\n name = 'MsaViewPlugin'\n version = version\n\n install(pluginManager: PluginManager) {\n console.log({ MSA })\n pluginManager.addViewType(\n () =>\n new ViewType({\n name: 'MsaView',\n //@ts-ignore\n stateModel: MSA.MSAModel,\n ReactComponent: MSA.MSAView,\n }),\n )\n }\n\n configure(pluginManager: PluginManager) {\n if (isAbstractMenuManager(pluginManager.rootModel)) {\n pluginManager.rootModel.appendToSubMenu(['Add'], {\n label: 'Multiple sequence alignment view',\n icon: GridOn,\n onClick: (session: AbstractSessionModel) => {\n session.addView('MsaView', {})\n },\n })\n }\n }\n}\n"],"names":["Plugin","pluginManager","console","log","MSA","addViewType","ViewType","name","stateModel","ReactComponent","isAbstractMenuManager","rootModel","appendToSubMenu","label","icon","GridOn","onClick","session","addView"],"mappings":"qmDAQ2CA,qFAClC,oEAGP,SAAQC,GACNC,QAAQC,IAAI,CAAEC,IAAAA,IACdH,EAAcI,aACZ,kBACE,IAAIC,EAAS,CACXC,KAAM,UAENC,WAAYJ,WACZK,eAAgBL,wCAKxB,SAAUH,GACJS,wBAAsBT,EAAcU,YACtCV,EAAcU,UAAUC,gBAAgB,CAAC,OAAQ,CAC/CC,MAAO,mCACPC,KAAMC,EACNC,QAAS,SAACC,GACRA,EAAQC,QAAQ,UAAW"}
@@ -1,5 +1,6 @@
1
1
  import Plugin from '@jbrowse/core/Plugin';
2
2
  import { isAbstractMenuManager } from '@jbrowse/core/util';
3
+ import * as MSA from 'react-msaview';
3
4
  import { MSAModel, MSAView } from 'react-msaview';
4
5
  import ViewType from '@jbrowse/core/pluggableElementTypes/ViewType';
5
6
  import GridOn from '@material-ui/icons/GridOn';
@@ -63,7 +64,7 @@ function _isNativeReflectConstruct() {
63
64
  if (typeof Proxy === "function") return true;
64
65
 
65
66
  try {
66
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
67
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
67
68
  return true;
68
69
  } catch (e) {
69
70
  return false;
@@ -81,6 +82,8 @@ function _assertThisInitialized(self) {
81
82
  function _possibleConstructorReturn(self, call) {
82
83
  if (call && (typeof call === "object" || typeof call === "function")) {
83
84
  return call;
85
+ } else if (call !== void 0) {
86
+ throw new TypeError("Derived constructors may only return object or undefined");
84
87
  }
85
88
 
86
89
  return _assertThisInitialized(self);
@@ -105,7 +108,7 @@ function _createSuper(Derived) {
105
108
  };
106
109
  }
107
110
 
108
- var version = "1.0.14";
111
+ var version = "1.0.18";
109
112
 
110
113
  var MsaViewPlugin = /*#__PURE__*/function (_Plugin) {
111
114
  _inherits(MsaViewPlugin, _Plugin);
@@ -126,6 +129,9 @@ var MsaViewPlugin = /*#__PURE__*/function (_Plugin) {
126
129
  _createClass(MsaViewPlugin, [{
127
130
  key: "install",
128
131
  value: function install(pluginManager) {
132
+ console.log({
133
+ MSA: MSA
134
+ });
129
135
  pluginManager.addViewType(function () {
130
136
  return new ViewType({
131
137
  name: 'MsaView',
@@ -139,7 +145,7 @@ var MsaViewPlugin = /*#__PURE__*/function (_Plugin) {
139
145
  key: "configure",
140
146
  value: function configure(pluginManager) {
141
147
  if (isAbstractMenuManager(pluginManager.rootModel)) {
142
- pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {
148
+ pluginManager.rootModel.appendToSubMenu(['Add'], {
143
149
  label: 'Multiple sequence alignment view',
144
150
  icon: GridOn,
145
151
  onClick: function onClick(session) {
@@ -1 +1 @@
1
- {"version":3,"file":"jbrowse-plugin-msaview.esm.js","sources":["../src/index.ts"],"sourcesContent":["import Plugin from '@jbrowse/core/Plugin'\nimport PluginManager from '@jbrowse/core/PluginManager'\nimport { version } from '../package.json'\nimport { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'\nimport { MSAModel, MSAView } from 'react-msaview'\nimport ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'\nimport GridOn from '@material-ui/icons/GridOn'\n\nexport default class MsaViewPlugin extends Plugin {\n name = 'MsaViewPlugin'\n version = version\n\n install(pluginManager: PluginManager) {\n pluginManager.addViewType(\n () =>\n new ViewType({\n name: 'MsaView',\n //@ts-ignore\n stateModel: MSAModel,\n ReactComponent: MSAView,\n }),\n )\n }\n\n configure(pluginManager: PluginManager) {\n if (isAbstractMenuManager(pluginManager.rootModel)) {\n pluginManager.rootModel.appendToSubMenu(['File', 'Add'], {\n label: 'Multiple sequence alignment view',\n icon: GridOn,\n onClick: (session: AbstractSessionModel) => {\n session.addView('MsaView', {})\n },\n })\n }\n }\n}\n"],"names":["MsaViewPlugin","version","pluginManager","addViewType","ViewType","name","stateModel","MSAModel","ReactComponent","MSAView","isAbstractMenuManager","rootModel","appendToSubMenu","label","icon","GridOn","onClick","session","addView","Plugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQqBA;;;;;AAArB;;;;;;AACE,cAAA,GAAO,eAAP;AACA,iBAAA,GAAUC,OAAV;;AAyBD;;;;4BAvBSC;AACNA,MAAAA,aAAa,CAACC,WAAd,CACE;AAAA,eACE,IAAIC,QAAJ,CAAa;AACXC,UAAAA,IAAI,EAAE,SADK;AAEX;AACAC,UAAAA,UAAU,EAAEC,QAHD;AAIXC,UAAAA,cAAc,EAAEC;AAJL,SAAb,CADF;AAAA,OADF;AASD;;;8BAESP;AACR,UAAIQ,qBAAqB,CAACR,aAAa,CAACS,SAAf,CAAzB,EAAoD;AAClDT,QAAAA,aAAa,CAACS,SAAd,CAAwBC,eAAxB,CAAwC,CAAC,MAAD,EAAS,KAAT,CAAxC,EAAyD;AACvDC,UAAAA,KAAK,EAAE,kCADgD;AAEvDC,UAAAA,IAAI,EAAEC,MAFiD;AAGvDC,UAAAA,OAAO,EAAE,iBAACC,OAAD;AACPA,YAAAA,OAAO,CAACC,OAAR,CAAgB,SAAhB,EAA2B,EAA3B;AACD;AALsD,SAAzD;AAOD;AACF;;;;EA1BwCC;;;;"}
1
+ {"version":3,"file":"jbrowse-plugin-msaview.esm.js","sources":["../src/index.ts"],"sourcesContent":["import Plugin from '@jbrowse/core/Plugin'\nimport PluginManager from '@jbrowse/core/PluginManager'\nimport { version } from '../package.json'\nimport { AbstractSessionModel, isAbstractMenuManager } from '@jbrowse/core/util'\nimport * as MSA from 'react-msaview'\nimport ViewType from '@jbrowse/core/pluggableElementTypes/ViewType'\nimport GridOn from '@material-ui/icons/GridOn'\n\nexport default class MsaViewPlugin extends Plugin {\n name = 'MsaViewPlugin'\n version = version\n\n install(pluginManager: PluginManager) {\n console.log({ MSA })\n pluginManager.addViewType(\n () =>\n new ViewType({\n name: 'MsaView',\n //@ts-ignore\n stateModel: MSA.MSAModel,\n ReactComponent: MSA.MSAView,\n }),\n )\n }\n\n configure(pluginManager: PluginManager) {\n if (isAbstractMenuManager(pluginManager.rootModel)) {\n pluginManager.rootModel.appendToSubMenu(['Add'], {\n label: 'Multiple sequence alignment view',\n icon: GridOn,\n onClick: (session: AbstractSessionModel) => {\n session.addView('MsaView', {})\n },\n })\n }\n }\n}\n"],"names":["MsaViewPlugin","version","pluginManager","console","log","MSA","addViewType","ViewType","name","stateModel","ReactComponent","isAbstractMenuManager","rootModel","appendToSubMenu","label","icon","GridOn","onClick","session","addView","Plugin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQqBA;;;;;AAArB;;;;;;AACE,cAAA,GAAO,eAAP;AACA,iBAAA,GAAUC,OAAV;;AA0BD;;;;WAxBC,iBAAQC,aAAR;AACEC,MAAAA,OAAO,CAACC,GAAR,CAAY;AAAEC,QAAAA,GAAG,EAAHA;AAAF,OAAZ;AACAH,MAAAA,aAAa,CAACI,WAAd,CACE;AAAA,eACE,IAAIC,QAAJ,CAAa;AACXC,UAAAA,IAAI,EAAE,SADK;AAEX;AACAC,UAAAA,UAAU,EAAEJ,QAHD;AAIXK,UAAAA,cAAc,EAAEL;AAJL,SAAb,CADF;AAAA,OADF;AASD;;;WAED,mBAAUH,aAAV;AACE,UAAIS,qBAAqB,CAACT,aAAa,CAACU,SAAf,CAAzB,EAAoD;AAClDV,QAAAA,aAAa,CAACU,SAAd,CAAwBC,eAAxB,CAAwC,CAAC,KAAD,CAAxC,EAAiD;AAC/CC,UAAAA,KAAK,EAAE,kCADwC;AAE/CC,UAAAA,IAAI,EAAEC,MAFyC;AAG/CC,UAAAA,OAAO,EAAE,iBAACC,OAAD;AACPA,YAAAA,OAAO,CAACC,OAAR,CAAgB,SAAhB,EAA2B,EAA3B;AACD;AAL8C,SAAjD;AAOD;AACF;;;;EA3BwCC;;;;"}