@jbrowse/plugin-linear-genome-view 1.7.3 → 1.7.6
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.js +18 -18
- package/dist/BaseLinearDisplay/components/Block.js +4 -4
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +11 -11
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +16 -16
- package/dist/BaseLinearDisplay/index.js +2 -2
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +1 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +42 -34
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +1 -0
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +11 -9
- package/dist/LinearBareDisplay/model.d.ts +1 -1
- package/dist/LinearBareDisplay/model.js +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +11 -11
- package/dist/LinearBasicDisplay/configSchema.js +1 -1
- package/dist/LinearBasicDisplay/index.js +2 -2
- package/dist/LinearBasicDisplay/model.d.ts +1 -1
- package/dist/LinearBasicDisplay/model.js +10 -10
- package/dist/LinearGenomeView/components/CenterLine.js +5 -5
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +16 -16
- package/dist/LinearGenomeView/components/Header.js +20 -20
- package/dist/LinearGenomeView/components/HelpDialog.js +4 -4
- package/dist/LinearGenomeView/components/ImportForm.js +28 -28
- package/dist/LinearGenomeView/components/LinearGenomeView.js +15 -15
- package/dist/LinearGenomeView/components/LinearGenomeView.test.js +9 -9
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js +40 -40
- package/dist/LinearGenomeView/components/MiniControls.js +9 -9
- package/dist/LinearGenomeView/components/OverviewRubberBand.js +19 -19
- package/dist/LinearGenomeView/components/OverviewScaleBar.js +28 -28
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +27 -27
- package/dist/LinearGenomeView/components/RubberBand.js +18 -18
- package/dist/LinearGenomeView/components/Ruler.js +11 -11
- package/dist/LinearGenomeView/components/ScaleBar.js +19 -19
- package/dist/LinearGenomeView/components/ScaleBar.test.js +3 -3
- package/dist/LinearGenomeView/components/SearchBox.js +9 -9
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +15 -15
- package/dist/LinearGenomeView/components/SequenceDialog.js +28 -37
- package/dist/LinearGenomeView/components/TrackContainer.js +14 -14
- package/dist/LinearGenomeView/components/TrackLabel.js +17 -19
- package/dist/LinearGenomeView/components/TracksContainer.js +10 -10
- package/dist/LinearGenomeView/components/VerticalGuides.js +11 -11
- package/dist/LinearGenomeView/components/ZoomControls.js +9 -9
- package/dist/LinearGenomeView/index.js +35 -35
- package/dist/LinearGenomeView/index.test.js +19 -19
- package/dist/index.d.ts +3 -3
- package/dist/index.js +18 -18
- package/package.json +3 -4
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +6 -0
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +3 -0
- package/src/LinearGenomeView/components/SequenceDialog.tsx +6 -13
- package/src/LinearGenomeView/components/TrackLabel.tsx +6 -6
|
@@ -9,20 +9,20 @@ exports.RESIZE_HANDLE_HEIGHT = exports.INTER_REGION_PADDING_WIDTH = exports.HEAD
|
|
|
9
9
|
Object.defineProperty(exports, "ReactComponent", {
|
|
10
10
|
enumerable: true,
|
|
11
11
|
get: function get() {
|
|
12
|
-
return _LinearGenomeView
|
|
12
|
+
return _LinearGenomeView.default;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "RefNameAutocomplete", {
|
|
16
16
|
enumerable: true,
|
|
17
17
|
get: function get() {
|
|
18
|
-
return _RefNameAutocomplete
|
|
18
|
+
return _RefNameAutocomplete.default;
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
exports.SPACING = exports.SCALE_BAR_HEIGHT = void 0;
|
|
22
22
|
Object.defineProperty(exports, "SearchBox", {
|
|
23
23
|
enumerable: true,
|
|
24
24
|
get: function get() {
|
|
25
|
-
return _SearchBox
|
|
25
|
+
return _SearchBox.default;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
exports.WIDGET_HEIGHT = void 0;
|
|
@@ -96,7 +96,7 @@ var _ExportSvgDialog = _interopRequireDefault(require("./components/ExportSvgDia
|
|
|
96
96
|
|
|
97
97
|
var _LinearGenomeView = _interopRequireDefault(require("./components/LinearGenomeView"));
|
|
98
98
|
|
|
99
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it
|
|
99
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
100
100
|
|
|
101
101
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
102
102
|
|
|
@@ -104,7 +104,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
104
104
|
|
|
105
105
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
106
106
|
|
|
107
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2
|
|
107
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
108
108
|
|
|
109
109
|
function calculateVisibleLocStrings(contentBlocks) {
|
|
110
110
|
if (!contentBlocks.length) {
|
|
@@ -159,15 +159,15 @@ function stateModelFactory(pluginManager) {
|
|
|
159
159
|
trackLabels: _mobxStateTree.types.optional(_mobxStateTree.types.string, function () {
|
|
160
160
|
return localStorageGetItem('lgv-trackLabels') || 'overlapping';
|
|
161
161
|
}),
|
|
162
|
-
showCenterLine: _mobxStateTree.types.optional(_mobxStateTree.types
|
|
162
|
+
showCenterLine: _mobxStateTree.types.optional(_mobxStateTree.types.boolean, function () {
|
|
163
163
|
var setting = localStorageGetItem('lgv-showCenterLine');
|
|
164
164
|
return setting !== undefined && setting !== null ? !!+setting : false;
|
|
165
165
|
}),
|
|
166
|
-
showCytobandsSetting: _mobxStateTree.types.optional(_mobxStateTree.types
|
|
166
|
+
showCytobandsSetting: _mobxStateTree.types.optional(_mobxStateTree.types.boolean, function () {
|
|
167
167
|
var setting = localStorageGetItem('lgv-showCytobands');
|
|
168
168
|
return setting !== undefined && setting !== null ? !!+setting : true;
|
|
169
169
|
})
|
|
170
|
-
}))
|
|
170
|
+
})).volatile(function () {
|
|
171
171
|
return {
|
|
172
172
|
volatileWidth: undefined,
|
|
173
173
|
minimumBlockWidth: 3,
|
|
@@ -314,7 +314,7 @@ function stateModelFactory(pluginManager) {
|
|
|
314
314
|
},
|
|
315
315
|
|
|
316
316
|
get assemblyNames() {
|
|
317
|
-
return (0, _toConsumableArray2
|
|
317
|
+
return (0, _toConsumableArray2.default)(new Set(self.displayedRegions.map(function (region) {
|
|
318
318
|
return region.assemblyName;
|
|
319
319
|
})));
|
|
320
320
|
},
|
|
@@ -476,7 +476,7 @@ function stateModelFactory(pluginManager) {
|
|
|
476
476
|
var trackInMap = allActions.get(track.type);
|
|
477
477
|
|
|
478
478
|
if (!trackInMap) {
|
|
479
|
-
var viewMenuActions = (0, _clone
|
|
479
|
+
var viewMenuActions = (0, _clone.default)(track.viewMenuActions);
|
|
480
480
|
|
|
481
481
|
_this2.rewriteOnClicks(track.type, viewMenuActions);
|
|
482
482
|
|
|
@@ -954,7 +954,7 @@ function stateModelFactory(pluginManager) {
|
|
|
954
954
|
* @returns array of Region[]
|
|
955
955
|
*/
|
|
956
956
|
getSelectedRegions: function getSelectedRegions(leftOffset, rightOffset) {
|
|
957
|
-
var simView = _Base1DViewModel
|
|
957
|
+
var simView = _Base1DViewModel.default.create(_objectSpread(_objectSpread({}, (0, _mobxStateTree.getSnapshot)(self)), {}, {
|
|
958
958
|
interRegionPaddingWidth: self.interRegionPaddingWidth
|
|
959
959
|
}));
|
|
960
960
|
|
|
@@ -1061,7 +1061,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1061
1061
|
var assemblyManager = session.assemblyManager;
|
|
1062
1062
|
|
|
1063
1063
|
if (!assemblyName) {
|
|
1064
|
-
var assemblyNames = (0, _toConsumableArray2
|
|
1064
|
+
var assemblyNames = (0, _toConsumableArray2.default)(new Set(self.displayedRegions.map(function (region) {
|
|
1065
1065
|
return region.assemblyName;
|
|
1066
1066
|
})));
|
|
1067
1067
|
|
|
@@ -1072,7 +1072,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1072
1072
|
|
|
1073
1073
|
;
|
|
1074
1074
|
|
|
1075
|
-
var _assemblyNames = (0, _slicedToArray2
|
|
1075
|
+
var _assemblyNames = (0, _slicedToArray2.default)(assemblyNames, 1);
|
|
1076
1076
|
|
|
1077
1077
|
assemblyName = _assemblyNames[0];
|
|
1078
1078
|
}
|
|
@@ -1101,7 +1101,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1101
1101
|
|
|
1102
1102
|
function slide(viewWidths) {
|
|
1103
1103
|
var _springAnimate = (0, _util.springAnimate)(self.offsetPx, self.offsetPx + self.width * viewWidths, self.scrollTo),
|
|
1104
|
-
_springAnimate2 = (0, _slicedToArray2
|
|
1104
|
+
_springAnimate2 = (0, _slicedToArray2.default)(_springAnimate, 2),
|
|
1105
1105
|
animate = _springAnimate2[0],
|
|
1106
1106
|
cancelAnimation = _springAnimate2[1];
|
|
1107
1107
|
|
|
@@ -1131,7 +1131,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1131
1131
|
self.zoomTo(targetBpPerPx);
|
|
1132
1132
|
self.setScaleFactor(1);
|
|
1133
1133
|
}),
|
|
1134
|
-
_springAnimate4 = (0, _slicedToArray2
|
|
1134
|
+
_springAnimate4 = (0, _slicedToArray2.default)(_springAnimate3, 2),
|
|
1135
1135
|
animate = _springAnimate4[0],
|
|
1136
1136
|
cancelAnimation = _springAnimate4[1];
|
|
1137
1137
|
|
|
@@ -1185,13 +1185,13 @@ function stateModelFactory(pluginManager) {
|
|
|
1185
1185
|
}];
|
|
1186
1186
|
});
|
|
1187
1187
|
},
|
|
1188
|
-
icon: _FolderOpen
|
|
1188
|
+
icon: _FolderOpen.default
|
|
1189
1189
|
}, {
|
|
1190
1190
|
label: 'Export SVG',
|
|
1191
|
-
icon: _PhotoCamera
|
|
1191
|
+
icon: _PhotoCamera.default,
|
|
1192
1192
|
onClick: function onClick() {
|
|
1193
1193
|
(0, _util.getSession)(self).queueDialog(function (handleClose) {
|
|
1194
|
-
return [_ExportSvgDialog
|
|
1194
|
+
return [_ExportSvgDialog.default, {
|
|
1195
1195
|
model: self,
|
|
1196
1196
|
handleClose: handleClose
|
|
1197
1197
|
}];
|
|
@@ -1203,39 +1203,39 @@ function stateModelFactory(pluginManager) {
|
|
|
1203
1203
|
icon: _Icons.TrackSelector
|
|
1204
1204
|
}, {
|
|
1205
1205
|
label: 'Horizontally flip',
|
|
1206
|
-
icon: _SyncAlt
|
|
1206
|
+
icon: _SyncAlt.default,
|
|
1207
1207
|
onClick: self.horizontallyFlip
|
|
1208
1208
|
}, {
|
|
1209
1209
|
type: 'divider'
|
|
1210
1210
|
}, {
|
|
1211
1211
|
label: 'Show all regions in assembly',
|
|
1212
|
-
icon: _Visibility
|
|
1212
|
+
icon: _Visibility.default,
|
|
1213
1213
|
onClick: self.showAllRegionsInAssembly
|
|
1214
1214
|
}, {
|
|
1215
1215
|
label: 'Show center line',
|
|
1216
|
-
icon: _Visibility
|
|
1216
|
+
icon: _Visibility.default,
|
|
1217
1217
|
type: 'checkbox',
|
|
1218
1218
|
checked: self.showCenterLine,
|
|
1219
1219
|
onClick: self.toggleCenterLine
|
|
1220
1220
|
}, {
|
|
1221
1221
|
label: 'Show header',
|
|
1222
|
-
icon: _Visibility
|
|
1222
|
+
icon: _Visibility.default,
|
|
1223
1223
|
type: 'checkbox',
|
|
1224
1224
|
checked: !self.hideHeader,
|
|
1225
1225
|
onClick: self.toggleHeader
|
|
1226
1226
|
}, {
|
|
1227
1227
|
label: 'Show header overview',
|
|
1228
|
-
icon: _Visibility
|
|
1228
|
+
icon: _Visibility.default,
|
|
1229
1229
|
type: 'checkbox',
|
|
1230
1230
|
checked: !self.hideHeaderOverview,
|
|
1231
1231
|
onClick: self.toggleHeaderOverview,
|
|
1232
1232
|
disabled: self.hideHeader
|
|
1233
1233
|
}, {
|
|
1234
1234
|
label: 'Track labels',
|
|
1235
|
-
icon: _Label
|
|
1235
|
+
icon: _Label.default,
|
|
1236
1236
|
subMenu: [{
|
|
1237
1237
|
label: 'Overlapping',
|
|
1238
|
-
icon: _Visibility
|
|
1238
|
+
icon: _Visibility.default,
|
|
1239
1239
|
type: 'radio',
|
|
1240
1240
|
checked: self.trackLabels === 'overlapping',
|
|
1241
1241
|
onClick: function onClick() {
|
|
@@ -1243,7 +1243,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}, {
|
|
1245
1245
|
label: 'Offset',
|
|
1246
|
-
icon: _Visibility
|
|
1246
|
+
icon: _Visibility.default,
|
|
1247
1247
|
type: 'radio',
|
|
1248
1248
|
checked: self.trackLabels === 'offset',
|
|
1249
1249
|
onClick: function onClick() {
|
|
@@ -1251,14 +1251,14 @@ function stateModelFactory(pluginManager) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
}, {
|
|
1253
1253
|
label: 'Hidden',
|
|
1254
|
-
icon: _Visibility
|
|
1254
|
+
icon: _Visibility.default,
|
|
1255
1255
|
type: 'radio',
|
|
1256
1256
|
checked: self.trackLabels === 'hidden',
|
|
1257
1257
|
onClick: function onClick() {
|
|
1258
1258
|
return self.setTrackLabels('hidden');
|
|
1259
1259
|
}
|
|
1260
1260
|
}]
|
|
1261
|
-
}].concat((0, _toConsumableArray2
|
|
1261
|
+
}].concat((0, _toConsumableArray2.default)(canShowCytobands ? [{
|
|
1262
1262
|
label: showCytobands ? 'Hide ideogram' : 'Show ideograms',
|
|
1263
1263
|
onClick: function onClick() {
|
|
1264
1264
|
self.setShowCytobands(!showCytobands);
|
|
@@ -1270,7 +1270,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1270
1270
|
|
|
1271
1271
|
try {
|
|
1272
1272
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1273
|
-
var _step$value = (0, _slicedToArray2
|
|
1273
|
+
var _step$value = (0, _slicedToArray2.default)(_step.value, 2),
|
|
1274
1274
|
_key2 = _step$value[0],
|
|
1275
1275
|
value = _step$value[1];
|
|
1276
1276
|
|
|
@@ -1300,7 +1300,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1300
1300
|
var stringifiedCurrentlyCalculatedStaticBlocks = '';
|
|
1301
1301
|
return {
|
|
1302
1302
|
get staticBlocks() {
|
|
1303
|
-
var ret = (0, _calculateStaticBlocks
|
|
1303
|
+
var ret = (0, _calculateStaticBlocks.default)(self);
|
|
1304
1304
|
var sret = JSON.stringify(ret);
|
|
1305
1305
|
|
|
1306
1306
|
if (stringifiedCurrentlyCalculatedStaticBlocks !== sret) {
|
|
@@ -1312,7 +1312,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1312
1312
|
},
|
|
1313
1313
|
|
|
1314
1314
|
get dynamicBlocks() {
|
|
1315
|
-
return (0, _calculateDynamicBlocks
|
|
1315
|
+
return (0, _calculateDynamicBlocks.default)(self);
|
|
1316
1316
|
},
|
|
1317
1317
|
|
|
1318
1318
|
get roundedDynamicBlocks() {
|
|
@@ -1365,9 +1365,9 @@ function stateModelFactory(pluginManager) {
|
|
|
1365
1365
|
return {
|
|
1366
1366
|
exportSvg: function exportSvg() {
|
|
1367
1367
|
var _arguments = arguments;
|
|
1368
|
-
return (0, _asyncToGenerator2
|
|
1368
|
+
return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
1369
1369
|
var opts, html, blob;
|
|
1370
|
-
return _regenerator
|
|
1370
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
1371
1371
|
while (1) {
|
|
1372
1372
|
switch (_context.prev = _context.next) {
|
|
1373
1373
|
case 0:
|
|
@@ -1396,7 +1396,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1396
1396
|
rubberBandMenuItems: function rubberBandMenuItems() {
|
|
1397
1397
|
return [{
|
|
1398
1398
|
label: 'Zoom to region',
|
|
1399
|
-
icon: _ZoomIn
|
|
1399
|
+
icon: _ZoomIn.default,
|
|
1400
1400
|
onClick: function onClick() {
|
|
1401
1401
|
var leftOffset = self.leftOffset,
|
|
1402
1402
|
rightOffset = self.rightOffset;
|
|
@@ -1407,7 +1407,7 @@ function stateModelFactory(pluginManager) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
}, {
|
|
1409
1409
|
label: 'Get sequence',
|
|
1410
|
-
icon: _MenuOpen
|
|
1410
|
+
icon: _MenuOpen.default,
|
|
1411
1411
|
onClick: function onClick() {
|
|
1412
1412
|
self.setSequenceDialogOpen(true);
|
|
1413
1413
|
}
|
|
@@ -33,13 +33,13 @@ function initialize() {
|
|
|
33
33
|
console.warn = jest.fn(); // a stub linear genome view state model that only accepts base track types.
|
|
34
34
|
// used in unit tests.
|
|
35
35
|
|
|
36
|
-
var stubManager = new _PluginManager
|
|
36
|
+
var stubManager = new _PluginManager.default();
|
|
37
37
|
stubManager.addTrackType(function () {
|
|
38
38
|
var configSchema = (0, _configuration.ConfigurationSchema)('BasicTrack', {}, {
|
|
39
39
|
baseConfiguration: (0, _models.createBaseTrackConfig)(stubManager),
|
|
40
40
|
explicitIdentifier: 'trackId'
|
|
41
41
|
});
|
|
42
|
-
return new _TrackType
|
|
42
|
+
return new _TrackType.default({
|
|
43
43
|
name: 'BasicTrack',
|
|
44
44
|
configSchema: configSchema,
|
|
45
45
|
stateModel: (0, _models.createBaseTrackModel)(stubManager, 'BasicTrack', configSchema)
|
|
@@ -49,7 +49,7 @@ function initialize() {
|
|
|
49
49
|
var configSchema = (0, _configuration.ConfigurationSchema)('LinearBareDisplay', {}, {
|
|
50
50
|
explicitlyTyped: true
|
|
51
51
|
});
|
|
52
|
-
return new _DisplayType
|
|
52
|
+
return new _DisplayType.default({
|
|
53
53
|
name: 'LinearBareDisplay',
|
|
54
54
|
configSchema: configSchema,
|
|
55
55
|
stateModel: (0, _LinearBareDisplay.stateModelFactory)(configSchema),
|
|
@@ -61,9 +61,9 @@ function initialize() {
|
|
|
61
61
|
stubManager.createPluggableElements();
|
|
62
62
|
stubManager.configure();
|
|
63
63
|
|
|
64
|
-
var Assembly = _mobxStateTree.types.model({})
|
|
64
|
+
var Assembly = _mobxStateTree.types.model({}).volatile(function () {
|
|
65
65
|
return {
|
|
66
|
-
regions: _volvoxDisplayedRegions
|
|
66
|
+
regions: _volvoxDisplayedRegions.default
|
|
67
67
|
};
|
|
68
68
|
}).views(function () {
|
|
69
69
|
return {
|
|
@@ -100,7 +100,7 @@ function initialize() {
|
|
|
100
100
|
assemblyManager: _mobxStateTree.types.optional(AssemblyManager, {
|
|
101
101
|
assemblies: {
|
|
102
102
|
volvox: {
|
|
103
|
-
regions: _volvoxDisplayedRegions
|
|
103
|
+
regions: _volvoxDisplayedRegions.default
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
})
|
|
@@ -235,10 +235,10 @@ test('can instantiate a model that has multiple displayed regions', function ()
|
|
|
235
235
|
});
|
|
236
236
|
expect(model.offsetPx).toEqual(79401);
|
|
237
237
|
});
|
|
238
|
-
test('can instantiate a model that tests navTo/moveTo', /*#__PURE__*/(0, _asyncToGenerator2
|
|
238
|
+
test('can instantiate a model that tests navTo/moveTo', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
239
239
|
var _initialize4, Session, LinearGenomeModel, session, width, model;
|
|
240
240
|
|
|
241
|
-
return _regenerator
|
|
241
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
242
242
|
while (1) {
|
|
243
243
|
switch (_context.prev = _context.next) {
|
|
244
244
|
case 0:
|
|
@@ -791,7 +791,7 @@ test('can perform pxToBp on human genome things with ellided blocks (zoomed in)'
|
|
|
791
791
|
}));
|
|
792
792
|
var width = 800;
|
|
793
793
|
model.setWidth(width);
|
|
794
|
-
model.setDisplayedRegions(_hg38DisplayedRegions
|
|
794
|
+
model.setDisplayedRegions(_hg38DisplayedRegions.default);
|
|
795
795
|
model.setNewView(6359.273152497633, 503862);
|
|
796
796
|
expect(model.pxToBp(0).refName).toBe('Y');
|
|
797
797
|
expect(model.pxToBp(400).refName).toBe('Y');
|
|
@@ -819,7 +819,7 @@ test('can perform pxToBp on human genome things with ellided blocks (zoomed out)
|
|
|
819
819
|
}));
|
|
820
820
|
var width = 800;
|
|
821
821
|
model.setWidth(width);
|
|
822
|
-
model.setDisplayedRegions(_hg38DisplayedRegions
|
|
822
|
+
model.setDisplayedRegions(_hg38DisplayedRegions.default);
|
|
823
823
|
model.setNewView(3209286.105, -225.5083315372467); // chr1 to the left
|
|
824
824
|
|
|
825
825
|
expect(model.pxToBp(0).refName).toBe('1');
|
|
@@ -836,10 +836,10 @@ test('can perform pxToBp on human genome things with ellided blocks (zoomed out)
|
|
|
836
836
|
expect(model.pxToBp(1500).refName).toBe('Y_KI270740v1_random');
|
|
837
837
|
expect(model.pxToBp(1500).oob).toBeTruthy();
|
|
838
838
|
});
|
|
839
|
-
test('can showAllRegionsInAssembly', /*#__PURE__*/(0, _asyncToGenerator2
|
|
839
|
+
test('can showAllRegionsInAssembly', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
840
840
|
var _initialize11, Session, LinearGenomeModel, session, width, model;
|
|
841
841
|
|
|
842
|
-
return _regenerator
|
|
842
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
843
843
|
while (1) {
|
|
844
844
|
switch (_context2.prev = _context2.next) {
|
|
845
845
|
case 0:
|
|
@@ -1088,9 +1088,9 @@ test('navToLocString with human assembly', function () {
|
|
|
1088
1088
|
var _initialize13 = initialize(),
|
|
1089
1089
|
LinearGenomeModel = _initialize13.LinearGenomeModel;
|
|
1090
1090
|
|
|
1091
|
-
var HumanAssembly = _mobxStateTree.types.model({})
|
|
1091
|
+
var HumanAssembly = _mobxStateTree.types.model({}).volatile(function () {
|
|
1092
1092
|
return {
|
|
1093
|
-
regions: _hg38DisplayedRegions
|
|
1093
|
+
regions: _hg38DisplayedRegions.default
|
|
1094
1094
|
};
|
|
1095
1095
|
}).views(function () {
|
|
1096
1096
|
return {
|
|
@@ -1126,7 +1126,7 @@ test('navToLocString with human assembly', function () {
|
|
|
1126
1126
|
assemblyManager: {
|
|
1127
1127
|
assemblies: {
|
|
1128
1128
|
hg38: {
|
|
1129
|
-
regions: _hg38DisplayedRegions
|
|
1129
|
+
regions: _hg38DisplayedRegions.default
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
},
|
|
@@ -1135,11 +1135,11 @@ test('navToLocString with human assembly', function () {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
});
|
|
1137
1137
|
model.view.setWidth(800);
|
|
1138
|
-
model.view.setDisplayedRegions(_hg38DisplayedRegions
|
|
1138
|
+
model.view.setDisplayedRegions(_hg38DisplayedRegions.default.slice(0, 1));
|
|
1139
1139
|
model.view.navToLocString('2');
|
|
1140
|
-
expect(model.view.bpPerPx).toBe(_hg38DisplayedRegions
|
|
1140
|
+
expect(model.view.bpPerPx).toBe(_hg38DisplayedRegions.default[1].end / model.view.width);
|
|
1141
1141
|
model.view.navToLocString('chr3');
|
|
1142
|
-
expect(model.view.bpPerPx).toBe(_hg38DisplayedRegions
|
|
1142
|
+
expect(model.view.bpPerPx).toBe(_hg38DisplayedRegions.default[2].end / model.view.width);
|
|
1143
1143
|
model.view.navToLocString('chr3:1,000,000,000-1,100,000,000');
|
|
1144
1144
|
expect(model.view.bpPerPx).toBe(0.02);
|
|
1145
1145
|
expect(model.view.offsetPx).toBe(9914777550);
|
|
@@ -1160,7 +1160,7 @@ test('multi region', function () {
|
|
|
1160
1160
|
}]
|
|
1161
1161
|
}));
|
|
1162
1162
|
model.setWidth(800);
|
|
1163
|
-
model.setDisplayedRegions(_volvoxDisplayedRegions
|
|
1163
|
+
model.setDisplayedRegions(_volvoxDisplayedRegions.default.slice(0, 1));
|
|
1164
1164
|
model.navToLocString('ctgA ctgB');
|
|
1165
1165
|
expect(model.displayedRegions[0].refName).toBe('ctgA');
|
|
1166
1166
|
expect(model.displayedRegions[1].refName).toBe('ctgB'); // [
|
package/dist/index.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
149
149
|
headers?: Record<string, string> | undefined;
|
|
150
150
|
signal?: AbortSignal | undefined;
|
|
151
151
|
filters?: string[] | undefined;
|
|
152
|
-
}): Promise<
|
|
152
|
+
}): Promise<{}>;
|
|
153
153
|
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
154
154
|
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
155
155
|
clearRegionStats(): void;
|
|
@@ -325,7 +325,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
325
325
|
headers?: Record<string, string> | undefined;
|
|
326
326
|
signal?: AbortSignal | undefined;
|
|
327
327
|
filters?: string[] | undefined;
|
|
328
|
-
}): Promise<
|
|
328
|
+
}): Promise<{}>;
|
|
329
329
|
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
330
330
|
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
331
331
|
clearRegionStats(): void;
|
|
@@ -511,7 +511,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
511
511
|
headers?: Record<string, string> | undefined;
|
|
512
512
|
signal?: AbortSignal | undefined;
|
|
513
513
|
filters?: string[] | undefined;
|
|
514
|
-
}): Promise<
|
|
514
|
+
}): Promise<{}>;
|
|
515
515
|
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
516
516
|
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
517
517
|
clearRegionStats(): void;
|
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.6",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -33,14 +33,13 @@
|
|
|
33
33
|
"postbuild": "tsc --build tsconfig.build.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
+
"@babel/runtime": "^7.17.9",
|
|
36
37
|
"@material-ui/icons": "^4.9.1",
|
|
37
38
|
"@popperjs/core": "^2.11.0",
|
|
38
39
|
"clone": "^2.1.2",
|
|
39
40
|
"clsx": "^1.0.4",
|
|
40
41
|
"copy-to-clipboard": "^3.3.1",
|
|
41
42
|
"file-saver": "^2.0.0",
|
|
42
|
-
"is-object": "^1.0.1",
|
|
43
|
-
"json-stable-stringify": "^1.0.1",
|
|
44
43
|
"normalize-wheel": "^1.0.1",
|
|
45
44
|
"react-popper": "^2.0.0"
|
|
46
45
|
},
|
|
@@ -58,5 +57,5 @@
|
|
|
58
57
|
"publishConfig": {
|
|
59
58
|
"access": "public"
|
|
60
59
|
},
|
|
61
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "dbd73f99714e395cf20877d5e05d26855857a0e3"
|
|
62
61
|
}
|
|
@@ -247,6 +247,11 @@ export const BaseLinearDisplay = types
|
|
|
247
247
|
|
|
248
248
|
const { rpcManager } = getSession(self)
|
|
249
249
|
const { adapterConfig } = self
|
|
250
|
+
if (!adapterConfig) {
|
|
251
|
+
// A track extending the base track might not have an adapter config
|
|
252
|
+
// e.g. Apollo tracks don't use adapters
|
|
253
|
+
return Promise.resolve({})
|
|
254
|
+
}
|
|
250
255
|
const sessionId = getRpcSessionId(self)
|
|
251
256
|
|
|
252
257
|
const params = {
|
|
@@ -409,6 +414,7 @@ export const BaseLinearDisplay = types
|
|
|
409
414
|
return
|
|
410
415
|
}
|
|
411
416
|
} catch (e) {
|
|
417
|
+
console.error(e)
|
|
412
418
|
self.setError(e)
|
|
413
419
|
}
|
|
414
420
|
},
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
assembleLocString,
|
|
7
7
|
getSession,
|
|
8
8
|
getContainingDisplay,
|
|
9
|
+
getContainingView,
|
|
9
10
|
getViewParams,
|
|
10
11
|
makeAbortableReaction,
|
|
11
12
|
Feature,
|
|
@@ -221,6 +222,7 @@ export function renderBlockData(
|
|
|
221
222
|
readConfObject(config)
|
|
222
223
|
|
|
223
224
|
const sessionId = getRpcSessionId(display)
|
|
225
|
+
const layoutId = getContainingView(display).id
|
|
224
226
|
const cannotBeRenderedReason = display.regionCannotBeRendered(self.region)
|
|
225
227
|
|
|
226
228
|
return {
|
|
@@ -240,6 +242,7 @@ export function renderBlockData(
|
|
|
240
242
|
adapterConfig,
|
|
241
243
|
rendererType: rendererType.name,
|
|
242
244
|
sessionId,
|
|
245
|
+
layoutId,
|
|
243
246
|
blockKey: self.key,
|
|
244
247
|
reloadFlag: self.reloadFlag,
|
|
245
248
|
timeout: 1000000, // 10000,
|