@jbrowse/plugin-linear-genome-view 1.7.0 → 1.7.4
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/dist/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +13 -13
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +18 -18
- package/dist/BaseLinearDisplay/components/Block.d.ts +15 -15
- package/dist/BaseLinearDisplay/components/Block.js +4 -4
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +12 -12
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +11 -11
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +4 -4
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +16 -16
- package/dist/BaseLinearDisplay/index.d.ts +5 -5
- package/dist/BaseLinearDisplay/index.js +2 -2
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +227 -230
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +32 -32
- package/dist/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.d.ts +1 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +96 -96
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +9 -9
- package/dist/LinearBareDisplay/configSchema.d.ts +2 -2
- package/dist/LinearBareDisplay/index.d.ts +2 -2
- package/dist/LinearBareDisplay/model.d.ts +192 -192
- package/dist/LinearBareDisplay/model.js +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +10 -10
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +11 -11
- package/dist/LinearBasicDisplay/configSchema.d.ts +2 -2
- package/dist/LinearBasicDisplay/configSchema.js +1 -1
- package/dist/LinearBasicDisplay/index.d.ts +2 -2
- package/dist/LinearBasicDisplay/index.js +2 -2
- package/dist/LinearBasicDisplay/model.d.ts +213 -213
- package/dist/LinearBasicDisplay/model.js +10 -10
- package/dist/LinearGenomeView/components/CenterLine.d.ts +14 -14
- package/dist/LinearGenomeView/components/CenterLine.js +5 -5
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +6 -6
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +16 -16
- package/dist/LinearGenomeView/components/Header.d.ts +7 -7
- package/dist/LinearGenomeView/components/Header.js +20 -20
- package/dist/LinearGenomeView/components/HelpDialog.d.ts +5 -5
- package/dist/LinearGenomeView/components/HelpDialog.js +4 -4
- package/dist/LinearGenomeView/components/ImportForm.d.ts +7 -7
- package/dist/LinearGenomeView/components/ImportForm.js +28 -28
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +7 -7
- package/dist/LinearGenomeView/components/LinearGenomeView.js +15 -15
- package/dist/LinearGenomeView/components/LinearGenomeView.test.js +9 -9
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.d.ts +4 -4
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js +40 -40
- package/dist/LinearGenomeView/components/MiniControls.d.ts +6 -6
- package/dist/LinearGenomeView/components/MiniControls.js +9 -9
- package/dist/LinearGenomeView/components/OverviewRubberBand.d.ts +22 -22
- package/dist/LinearGenomeView/components/OverviewRubberBand.js +19 -19
- package/dist/LinearGenomeView/components/OverviewScaleBar.d.ts +132 -124
- package/dist/LinearGenomeView/components/OverviewScaleBar.js +28 -28
- package/dist/LinearGenomeView/components/RefNameAutocomplete.d.ts +21 -21
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +27 -27
- package/dist/LinearGenomeView/components/RubberBand.d.ts +9 -20
- package/dist/LinearGenomeView/components/RubberBand.js +18 -18
- package/dist/LinearGenomeView/components/Ruler.d.ts +27 -27
- package/dist/LinearGenomeView/components/Ruler.js +11 -11
- package/dist/LinearGenomeView/components/ScaleBar.d.ts +401 -401
- package/dist/LinearGenomeView/components/ScaleBar.js +19 -19
- package/dist/LinearGenomeView/components/ScaleBar.test.js +3 -3
- package/dist/LinearGenomeView/components/SearchBox.d.ts +8 -8
- package/dist/LinearGenomeView/components/SearchBox.js +9 -9
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +8 -8
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +15 -15
- package/dist/LinearGenomeView/components/SequenceDialog.d.ts +8 -8
- package/dist/LinearGenomeView/components/SequenceDialog.js +21 -21
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +9 -9
- package/dist/LinearGenomeView/components/TrackContainer.js +14 -14
- package/dist/LinearGenomeView/components/TrackLabel.d.ts +44 -44
- package/dist/LinearGenomeView/components/TrackLabel.js +14 -14
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +10 -10
- package/dist/LinearGenomeView/components/TracksContainer.js +10 -10
- package/dist/LinearGenomeView/components/VerticalGuides.d.ts +9 -9
- package/dist/LinearGenomeView/components/VerticalGuides.js +11 -11
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +7 -7
- package/dist/LinearGenomeView/components/ZoomControls.js +9 -9
- package/dist/LinearGenomeView/components/util.d.ts +2 -2
- package/dist/LinearGenomeView/index.d.ts +292 -292
- package/dist/LinearGenomeView/index.js +35 -35
- package/dist/LinearGenomeView/index.test.js +19 -19
- package/dist/LinearGenomeView/util.d.ts +14 -14
- package/dist/index.d.ts +565 -565
- package/dist/index.js +18 -18
- package/package.json +5 -5
- package/dist/LinearBareDisplay/index.test.d.ts +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.test.d.ts +0 -1
- package/dist/plugin-linear-genome-view.cjs.development.js +0 -8121
- package/dist/plugin-linear-genome-view.cjs.development.js.map +0 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js +0 -2
- package/dist/plugin-linear-genome-view.cjs.production.min.js.map +0 -1
- package/dist/plugin-linear-genome-view.esm.js +0 -8105
- package/dist/plugin-linear-genome-view.esm.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ Object.defineProperty(exports, "baseLinearDisplayConfigSchema", {
|
|
|
37
37
|
return _BaseLinearDisplay.baseLinearDisplayConfigSchema;
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
exports
|
|
40
|
+
exports.default = void 0;
|
|
41
41
|
Object.defineProperty(exports, "linearBareDisplayConfigSchemaFactory", {
|
|
42
42
|
enumerable: true,
|
|
43
43
|
get: function get() {
|
|
@@ -111,29 +111,29 @@ var _LinearBasicDisplay = require("./LinearBasicDisplay");
|
|
|
111
111
|
|
|
112
112
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
113
113
|
|
|
114
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
114
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
115
115
|
|
|
116
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2
|
|
116
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
117
117
|
|
|
118
118
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
119
119
|
|
|
120
120
|
var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
121
|
-
(0, _inherits2
|
|
121
|
+
(0, _inherits2.default)(LinearGenomeViewPlugin, _Plugin);
|
|
122
122
|
|
|
123
123
|
var _super = _createSuper(LinearGenomeViewPlugin);
|
|
124
124
|
|
|
125
125
|
function LinearGenomeViewPlugin() {
|
|
126
126
|
var _this;
|
|
127
127
|
|
|
128
|
-
(0, _classCallCheck2
|
|
128
|
+
(0, _classCallCheck2.default)(this, LinearGenomeViewPlugin);
|
|
129
129
|
|
|
130
130
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
131
131
|
args[_key] = arguments[_key];
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
135
|
-
(0, _defineProperty2
|
|
136
|
-
(0, _defineProperty2
|
|
135
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "name", 'LinearGenomeViewPlugin');
|
|
136
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "exports", {
|
|
137
137
|
BaseLinearDisplayComponent: _BaseLinearDisplay.BaseLinearDisplayComponent,
|
|
138
138
|
BaseLinearDisplay: _BaseLinearDisplay.BaseLinearDisplay,
|
|
139
139
|
baseLinearDisplayConfigSchema: _BaseLinearDisplay.baseLinearDisplayConfigSchema
|
|
@@ -141,7 +141,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
141
141
|
return _this;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
(0, _createClass2
|
|
144
|
+
(0, _createClass2.default)(LinearGenomeViewPlugin, [{
|
|
145
145
|
key: "install",
|
|
146
146
|
value: function install(pluginManager) {
|
|
147
147
|
pluginManager.addTrackType(function () {
|
|
@@ -149,7 +149,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
149
149
|
baseConfiguration: (0, _models.createBaseTrackConfig)(pluginManager),
|
|
150
150
|
explicitIdentifier: 'trackId'
|
|
151
151
|
});
|
|
152
|
-
return new _TrackType
|
|
152
|
+
return new _TrackType.default({
|
|
153
153
|
name: 'FeatureTrack',
|
|
154
154
|
configSchema: configSchema,
|
|
155
155
|
stateModel: (0, _models.createBaseTrackModel)(pluginManager, 'FeatureTrack', configSchema)
|
|
@@ -160,7 +160,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
160
160
|
baseConfiguration: (0, _models.createBaseTrackConfig)(pluginManager),
|
|
161
161
|
explicitIdentifier: 'trackId'
|
|
162
162
|
});
|
|
163
|
-
return new _TrackType
|
|
163
|
+
return new _TrackType.default({
|
|
164
164
|
name: 'BasicTrack',
|
|
165
165
|
configSchema: configSchema,
|
|
166
166
|
stateModel: (0, _models.createBaseTrackModel)(pluginManager, 'BasicTrack', configSchema)
|
|
@@ -168,7 +168,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
168
168
|
});
|
|
169
169
|
pluginManager.addDisplayType(function () {
|
|
170
170
|
var configSchema = (0, _LinearBareDisplay.configSchemaFactory)(pluginManager);
|
|
171
|
-
return new _DisplayType
|
|
171
|
+
return new _DisplayType.default({
|
|
172
172
|
name: 'LinearBareDisplay',
|
|
173
173
|
configSchema: configSchema,
|
|
174
174
|
stateModel: (0, _LinearBareDisplay.stateModelFactory)(configSchema),
|
|
@@ -179,7 +179,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
179
179
|
});
|
|
180
180
|
pluginManager.addDisplayType(function () {
|
|
181
181
|
var configSchema = (0, _LinearBasicDisplay.configSchema)(pluginManager);
|
|
182
|
-
return new _DisplayType
|
|
182
|
+
return new _DisplayType.default({
|
|
183
183
|
name: 'LinearBasicDisplay',
|
|
184
184
|
configSchema: configSchema,
|
|
185
185
|
stateModel: (0, _LinearBasicDisplay.modelFactory)(configSchema),
|
|
@@ -189,7 +189,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
pluginManager.addViewType(function () {
|
|
192
|
-
return new _ViewType
|
|
192
|
+
return new _ViewType.default({
|
|
193
193
|
name: 'LinearGenomeView',
|
|
194
194
|
stateModel: (0, _LinearGenomeView.stateModelFactory)(pluginManager),
|
|
195
195
|
ReactComponent: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
@@ -203,10 +203,10 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
203
203
|
/*#__PURE__*/
|
|
204
204
|
// @ts-ignore
|
|
205
205
|
function () {
|
|
206
|
-
var _ref2 = (0, _asyncToGenerator2
|
|
206
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref) {
|
|
207
207
|
var session, assembly, loc, _ref$tracks, tracks, assemblyManager, view, asm, idsNotFound;
|
|
208
208
|
|
|
209
|
-
return _regenerator
|
|
209
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
210
210
|
while (1) {
|
|
211
211
|
switch (_context.prev = _context.next) {
|
|
212
212
|
case 0:
|
|
@@ -281,7 +281,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
281
281
|
if ((0, _util.isAbstractMenuManager)(pluginManager.rootModel)) {
|
|
282
282
|
pluginManager.rootModel.appendToSubMenu(['Add'], {
|
|
283
283
|
label: 'Linear genome view',
|
|
284
|
-
icon: _LineStyle
|
|
284
|
+
icon: _LineStyle.default,
|
|
285
285
|
onClick: function onClick(session) {
|
|
286
286
|
session.addView('LinearGenomeView', {});
|
|
287
287
|
}
|
|
@@ -290,6 +290,6 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
290
290
|
}
|
|
291
291
|
}]);
|
|
292
292
|
return LinearGenomeViewPlugin;
|
|
293
|
-
}(_Plugin2
|
|
293
|
+
}(_Plugin2.default);
|
|
294
294
|
|
|
295
|
-
exports
|
|
295
|
+
exports.default = LinearGenomeViewPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"prepack": "yarn build; yarn useDist",
|
|
30
30
|
"postpack": "yarn useSrc",
|
|
31
31
|
"useDist": "node ../../scripts/useDist.js",
|
|
32
|
-
"useSrc": "node ../../scripts/useSrc.js"
|
|
32
|
+
"useSrc": "node ../../scripts/useSrc.js",
|
|
33
|
+
"postbuild": "tsc --build tsconfig.build.json"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
36
|
+
"@babel/runtime": "^7.17.9",
|
|
35
37
|
"@material-ui/icons": "^4.9.1",
|
|
36
38
|
"@popperjs/core": "^2.11.0",
|
|
37
39
|
"clone": "^2.1.2",
|
|
38
40
|
"clsx": "^1.0.4",
|
|
39
41
|
"copy-to-clipboard": "^3.3.1",
|
|
40
42
|
"file-saver": "^2.0.0",
|
|
41
|
-
"is-object": "^1.0.1",
|
|
42
|
-
"json-stable-stringify": "^1.0.1",
|
|
43
43
|
"normalize-wheel": "^1.0.1",
|
|
44
44
|
"react-popper": "^2.0.0"
|
|
45
45
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0a3e0c58055bbab8e3ab0270c139291b96eff403"
|
|
61
61
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|