@jbrowse/plugin-circular-view 1.7.11 → 2.0.0
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/BaseChordDisplay/components/BaseChordDisplay.d.ts +2 -7
- package/dist/BaseChordDisplay/components/BaseChordDisplay.js +18 -48
- package/dist/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -0
- package/dist/BaseChordDisplay/components/DisplayError.d.ts +9 -4
- package/dist/BaseChordDisplay/components/DisplayError.js +24 -67
- package/dist/BaseChordDisplay/components/DisplayError.js.map +1 -0
- package/dist/BaseChordDisplay/components/Loading.d.ts +2 -3
- package/dist/BaseChordDisplay/components/Loading.js +98 -112
- package/dist/BaseChordDisplay/components/Loading.js.map +1 -0
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +3 -3
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js +80 -91
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +1 -0
- package/dist/BaseChordDisplay/index.d.ts +1 -1
- package/dist/BaseChordDisplay/index.js +12 -30
- package/dist/BaseChordDisplay/index.js.map +1 -0
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +10 -10
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js +204 -232
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -0
- package/dist/BaseChordDisplay/models/baseChordDisplayConfig.js +12 -18
- package/dist/BaseChordDisplay/models/baseChordDisplayConfig.js.map +1 -0
- package/dist/BaseChordDisplay/models/renderReaction.js +115 -138
- package/dist/BaseChordDisplay/models/renderReaction.js.map +1 -0
- package/dist/CircularView/components/CircularView.js +111 -185
- package/dist/CircularView/components/CircularView.js.map +1 -0
- package/dist/CircularView/components/ImportForm.js +77 -92
- package/dist/CircularView/components/ImportForm.js.map +1 -0
- package/dist/CircularView/components/Ruler.js +148 -194
- package/dist/CircularView/components/Ruler.js.map +1 -0
- package/dist/CircularView/models/CircularView.d.ts +3 -3
- package/dist/CircularView/models/CircularView.js +346 -409
- package/dist/CircularView/models/CircularView.js.map +1 -0
- package/dist/CircularView/models/slices.js +90 -104
- package/dist/CircularView/models/slices.js.map +1 -0
- package/dist/CircularView/models/viewportVisibleRegion.js +229 -264
- package/dist/CircularView/models/viewportVisibleRegion.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +147 -176
- package/dist/index.js.map +1 -0
- package/esm/BaseChordDisplay/components/BaseChordDisplay.d.ts +4 -0
- package/esm/BaseChordDisplay/components/BaseChordDisplay.js +17 -0
- package/esm/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -0
- package/esm/BaseChordDisplay/components/DisplayError.d.ts +9 -0
- package/esm/BaseChordDisplay/components/DisplayError.js +21 -0
- package/esm/BaseChordDisplay/components/DisplayError.js.map +1 -0
- package/esm/BaseChordDisplay/components/Loading.d.ts +9 -0
- package/esm/BaseChordDisplay/components/Loading.js +66 -0
- package/esm/BaseChordDisplay/components/Loading.js.map +1 -0
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +4 -0
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js +48 -0
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +1 -0
- package/esm/BaseChordDisplay/index.d.ts +3 -0
- package/esm/BaseChordDisplay/index.js +4 -0
- package/esm/BaseChordDisplay/index.js.map +1 -0
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +99 -0
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js +181 -0
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -0
- package/esm/BaseChordDisplay/models/baseChordDisplayConfig.d.ts +2 -0
- package/esm/BaseChordDisplay/models/baseChordDisplayConfig.js +11 -0
- package/esm/BaseChordDisplay/models/baseChordDisplayConfig.js.map +1 -0
- package/esm/BaseChordDisplay/models/renderReaction.d.ts +30 -0
- package/esm/BaseChordDisplay/models/renderReaction.js +52 -0
- package/esm/BaseChordDisplay/models/renderReaction.js.map +1 -0
- package/esm/CircularView/components/CircularView.d.ts +4 -0
- package/esm/CircularView/components/CircularView.js +121 -0
- package/esm/CircularView/components/CircularView.js.map +1 -0
- package/esm/CircularView/components/ImportForm.d.ts +5 -0
- package/esm/CircularView/components/ImportForm.js +40 -0
- package/esm/CircularView/components/ImportForm.js.map +1 -0
- package/esm/CircularView/components/Ruler.d.ts +5 -0
- package/esm/CircularView/components/Ruler.js +126 -0
- package/esm/CircularView/components/Ruler.js.map +1 -0
- package/esm/CircularView/models/CircularView.d.ts +97 -0
- package/esm/CircularView/models/CircularView.js +317 -0
- package/esm/CircularView/models/CircularView.js.map +1 -0
- package/esm/CircularView/models/slices.d.ts +27 -0
- package/esm/CircularView/models/slices.js +53 -0
- package/esm/CircularView/models/slices.js.map +1 -0
- package/esm/CircularView/models/viewportVisibleRegion.d.ts +6 -0
- package/esm/CircularView/models/viewportVisibleRegion.js +223 -0
- package/esm/CircularView/models/viewportVisibleRegion.js.map +1 -0
- package/esm/index.d.ts +10 -0
- package/esm/index.js +49 -0
- package/esm/index.js.map +1 -0
- package/package.json +19 -11
- package/src/BaseChordDisplay/components/BaseChordDisplay.tsx +13 -25
- package/src/BaseChordDisplay/components/DisplayError.js +64 -66
- package/src/BaseChordDisplay/components/Loading.tsx +104 -107
- package/src/BaseChordDisplay/components/RpcRenderedSvgGroup.js +44 -51
- package/src/BaseChordDisplay/index.ts +1 -1
- package/src/BaseChordDisplay/models/BaseChordDisplayModel.ts +2 -1
- package/src/CircularView/components/CircularView.js +17 -16
- package/src/CircularView/components/ImportForm.tsx +5 -5
- package/src/CircularView/components/Ruler.js +4 -3
- package/src/CircularView/models/CircularView.ts +29 -42
- package/src/CircularView/models/slices.ts +2 -7
- package/src/index.ts +5 -2
- package/dist/CircularView/models/slices.test.js +0 -83
- package/dist/CircularView/models/viewportVisibleRegion.test.js +0 -130
package/dist/index.js
CHANGED
|
@@ -1,182 +1,153 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
27
32
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
33
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
50
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
51
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
52
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
53
|
+
function step(op) {
|
|
54
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
55
|
+
while (_) try {
|
|
56
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
57
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
58
|
+
switch (op[0]) {
|
|
59
|
+
case 0: case 1: t = op; break;
|
|
60
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
61
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
62
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
63
|
+
default:
|
|
64
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
65
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
66
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
67
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
68
|
+
if (t[2]) _.ops.pop();
|
|
69
|
+
_.trys.pop(); continue;
|
|
70
|
+
}
|
|
71
|
+
op = body.call(thisArg, _);
|
|
72
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
73
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
77
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
78
|
+
};
|
|
79
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
80
|
+
exports.BaseChordDisplayComponent = exports.baseChordDisplayConfig = exports.BaseChordDisplayModel = void 0;
|
|
81
|
+
var react_1 = require("react");
|
|
82
|
+
var mobx_1 = require("mobx");
|
|
83
|
+
var util_1 = require("@jbrowse/core/util");
|
|
84
|
+
var Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
85
|
+
var ViewType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/ViewType"));
|
|
86
|
+
var DataUsage_1 = __importDefault(require("@mui/icons-material/DataUsage"));
|
|
87
|
+
var CircularView_1 = __importDefault(require("./CircularView/models/CircularView"));
|
|
88
|
+
var CircularViewPlugin = /** @class */ (function (_super) {
|
|
89
|
+
__extends(CircularViewPlugin, _super);
|
|
90
|
+
function CircularViewPlugin() {
|
|
91
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
_this.name = 'CircularViewPlugin';
|
|
93
|
+
return _this;
|
|
84
94
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
key: "install",
|
|
93
|
-
value: function install(pluginManager) {
|
|
94
|
-
pluginManager.addViewType(function () {
|
|
95
|
-
return new _ViewType.default({
|
|
96
|
-
ReactComponent: /*#__PURE__*/(0, _react.lazy)(function () {
|
|
97
|
-
return Promise.resolve().then(function () {
|
|
98
|
-
return _interopRequireWildcard(require('./CircularView/components/CircularView'));
|
|
95
|
+
CircularViewPlugin.prototype.install = function (pluginManager) {
|
|
96
|
+
var _this = this;
|
|
97
|
+
pluginManager.addViewType(function () {
|
|
98
|
+
return new ViewType_1.default({
|
|
99
|
+
ReactComponent: (0, react_1.lazy)(function () { return Promise.resolve().then(function () { return __importStar(require('./CircularView/components/CircularView')); }); }),
|
|
100
|
+
stateModel: (0, CircularView_1.default)(pluginManager),
|
|
101
|
+
name: 'CircularView',
|
|
99
102
|
});
|
|
100
|
-
}),
|
|
101
|
-
stateModel: (0, _CircularView.default)(pluginManager),
|
|
102
|
-
name: 'CircularView'
|
|
103
103
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
_context.next = 9;
|
|
134
|
-
return assemblyManager.waitForAssembly(assembly);
|
|
135
|
-
|
|
136
|
-
case 9:
|
|
137
|
-
asm = _context.sent;
|
|
138
|
-
|
|
139
|
-
if (asm) {
|
|
140
|
-
_context.next = 12;
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
throw new Error("Assembly \"".concat(assembly, "\" not found when launching circular genome view"));
|
|
145
|
-
|
|
146
|
-
case 12:
|
|
147
|
-
view.setDisplayedRegions(asm.regions || []);
|
|
148
|
-
tracks.forEach(function (track) {
|
|
149
|
-
return view.showTrack(track);
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
case 14:
|
|
153
|
-
case "end":
|
|
154
|
-
return _context.stop();
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}, _callee);
|
|
158
|
-
}));
|
|
159
|
-
|
|
160
|
-
return function (_x) {
|
|
161
|
-
return _ref2.apply(this, arguments);
|
|
162
|
-
};
|
|
163
|
-
}());
|
|
164
|
-
}
|
|
165
|
-
}, {
|
|
166
|
-
key: "configure",
|
|
167
|
-
value: function configure(pluginManager) {
|
|
168
|
-
if ((0, _util.isAbstractMenuManager)(pluginManager.rootModel)) {
|
|
169
|
-
pluginManager.rootModel.appendToSubMenu(['Add'], {
|
|
170
|
-
label: 'Circular view',
|
|
171
|
-
icon: _DataUsage.default,
|
|
172
|
-
onClick: function onClick(session) {
|
|
173
|
-
session.addView('CircularView', {});
|
|
174
|
-
}
|
|
104
|
+
pluginManager.addToExtensionPoint('LaunchView-CircularView',
|
|
105
|
+
// @ts-ignore
|
|
106
|
+
function (_a) {
|
|
107
|
+
var session = _a.session, assembly = _a.assembly, loc = _a.loc, _b = _a.tracks, tracks = _b === void 0 ? [] : _b;
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
+
var assemblyManager, view, asm;
|
|
110
|
+
return __generator(this, function (_c) {
|
|
111
|
+
switch (_c.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
assemblyManager = session.assemblyManager;
|
|
114
|
+
view = session.addView('CircularView', {});
|
|
115
|
+
return [4 /*yield*/, (0, mobx_1.when)(function () { return view.initialized; })];
|
|
116
|
+
case 1:
|
|
117
|
+
_c.sent();
|
|
118
|
+
if (!assembly) {
|
|
119
|
+
throw new Error('No assembly provided when launching circular genome view');
|
|
120
|
+
}
|
|
121
|
+
return [4 /*yield*/, assemblyManager.waitForAssembly(assembly)];
|
|
122
|
+
case 2:
|
|
123
|
+
asm = _c.sent();
|
|
124
|
+
if (!asm) {
|
|
125
|
+
throw new Error("Assembly \"".concat(assembly, "\" not found when launching circular genome view"));
|
|
126
|
+
}
|
|
127
|
+
view.setDisplayedRegions(asm.regions || []);
|
|
128
|
+
tracks.forEach(function (track) { return view.showTrack(track); });
|
|
129
|
+
return [2 /*return*/];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
175
133
|
});
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
134
|
+
};
|
|
135
|
+
CircularViewPlugin.prototype.configure = function (pluginManager) {
|
|
136
|
+
if ((0, util_1.isAbstractMenuManager)(pluginManager.rootModel)) {
|
|
137
|
+
pluginManager.rootModel.appendToSubMenu(['Add'], {
|
|
138
|
+
label: 'Circular view',
|
|
139
|
+
icon: DataUsage_1.default,
|
|
140
|
+
onClick: function (session) {
|
|
141
|
+
session.addView('CircularView', {});
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
return CircularViewPlugin;
|
|
147
|
+
}(Plugin_1.default));
|
|
148
|
+
exports.default = CircularViewPlugin;
|
|
149
|
+
var BaseChordDisplay_1 = require("./BaseChordDisplay");
|
|
150
|
+
Object.defineProperty(exports, "BaseChordDisplayModel", { enumerable: true, get: function () { return BaseChordDisplay_1.BaseChordDisplayModel; } });
|
|
151
|
+
Object.defineProperty(exports, "baseChordDisplayConfig", { enumerable: true, get: function () { return BaseChordDisplay_1.baseChordDisplayConfig; } });
|
|
152
|
+
Object.defineProperty(exports, "BaseChordDisplayComponent", { enumerable: true, get: function () { return BaseChordDisplay_1.BaseChordDisplayComponent; } });
|
|
153
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4B;AAC5B,6BAA2B;AAC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C,OAAO,CAAC,UAAA,KAAK,IAAI,OAAA,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAArB,CAAqB,CAAC,CAAA;;;;;SAC/C,CACF,CAAA;IACH,CAAC;IAED,sCAAS,GAAT,UAAU,aAA4B;QACpC,IAAI,IAAA,4BAAqB,EAAC,aAAa,CAAC,SAAS,CAAC,EAAE;YAClD,aAAa,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,EAAE;gBAC/C,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,mBAAa;gBACnB,OAAO,EAAE,UAAC,OAA6B;oBACrC,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAA;gBACrC,CAAC;aACF,CAAC,CAAA;SACH;IACH,CAAC;IACH,yBAAC;AAAD,CAAC,AAjED,CAAgD,gBAAM,GAiErD;;AAED,uDAI2B;AAHzB,yHAAA,qBAAqB,OAAA;AACrB,0HAAA,sBAAsB,OAAA;AACtB,6HAAA,yBAAyB,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { observer } from 'mobx-react';
|
|
3
|
+
import Loading from './Loading';
|
|
4
|
+
import DisplayError from './DisplayError';
|
|
5
|
+
import RpcRenderedSvgGroup from './RpcRenderedSvgGroup';
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
+
function BaseChordDisplay({ display }) {
|
|
8
|
+
if (display.error) {
|
|
9
|
+
return React.createElement(DisplayError, { model: display });
|
|
10
|
+
}
|
|
11
|
+
if (!display.filled) {
|
|
12
|
+
return React.createElement(Loading, { model: display });
|
|
13
|
+
}
|
|
14
|
+
return React.createElement(RpcRenderedSvgGroup, { model: display });
|
|
15
|
+
}
|
|
16
|
+
export default observer(BaseChordDisplay);
|
|
17
|
+
//# sourceMappingURL=BaseChordDisplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseChordDisplay.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/BaseChordDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,OAAO,MAAM,WAAW,CAAA;AAC/B,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,mBAAmB,MAAM,uBAAuB,CAAA;AACvD,8DAA8D;AAC9D,SAAS,gBAAgB,CAAC,EAAE,OAAO,EAAO;IACxC,IAAI,OAAO,CAAC,KAAK,EAAE;QACjB,OAAO,oBAAC,YAAY,IAAC,KAAK,EAAE,OAAO,GAAI,CAAA;KACxC;IACD,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;QACnB,OAAO,oBAAC,OAAO,IAAC,KAAK,EAAE,OAAO,GAAI,CAAA;KACnC;IACD,OAAO,oBAAC,mBAAmB,IAAC,KAAK,EAAE,OAAO,GAAI,CAAA;AAChD,CAAC;AACD,eAAe,QAAQ,CAAC,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { observer } from 'mobx-react';
|
|
3
|
+
import { makeStyles } from 'tss-react/mui';
|
|
4
|
+
const useStyles = makeStyles()({
|
|
5
|
+
errorMessage: {},
|
|
6
|
+
errorBackground: {},
|
|
7
|
+
errorText: {},
|
|
8
|
+
});
|
|
9
|
+
// 'repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.5) 5px, rgba(255,255,255,.5) 10px)',
|
|
10
|
+
const DisplayError = observer(({ model: { renderProps: { radius }, error, }, }) => {
|
|
11
|
+
const { classes } = useStyles();
|
|
12
|
+
return (React.createElement("g", { className: classes.errorMessage },
|
|
13
|
+
React.createElement("defs", null,
|
|
14
|
+
React.createElement("pattern", { id: "diagonalHatch", width: "10", height: "10", patternTransform: "rotate(45 0 0)", patternUnits: "userSpaceOnUse" },
|
|
15
|
+
React.createElement("line", { x1: "0", y1: "0", x2: "0", y2: "10", style: { stroke: 'rgba(255,0,0,0.5)', strokeWidth: 10 } }))),
|
|
16
|
+
React.createElement("circle", { className: classes.errorBackground, cx: "0", cy: "0", r: radius, fill: "#ffb4b4" }),
|
|
17
|
+
React.createElement("circle", { className: classes.errorPattern, cx: "0", cy: "0", r: radius, fill: "url(#diagonalHatch)" }),
|
|
18
|
+
React.createElement("text", { className: classes.errorText, x: "0", y: "0", transform: "rotate(90 0 0)", dominantBaseline: "middle", textAnchor: "middle" }, String(error))));
|
|
19
|
+
});
|
|
20
|
+
export default DisplayError;
|
|
21
|
+
//# sourceMappingURL=DisplayError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayError.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/DisplayError.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE1C,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC;IAC7B,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE;CACd,CAAC,CAAA;AAEF,yHAAyH;AACzH,MAAM,YAAY,GAAG,QAAQ,CAC3B,CAAC,EACC,KAAK,EAAE,EACL,WAAW,EAAE,EAAE,MAAM,EAAE,EACvB,KAAK,GACN,GACF,EAAE,EAAE;IACH,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,OAAO,CACL,2BAAG,SAAS,EAAE,OAAO,CAAC,YAAY;QAChC;YACE,iCACE,EAAE,EAAC,eAAe,EAClB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,gBAAgB,EAAC,gBAAgB,EACjC,YAAY,EAAC,gBAAgB;gBAE7B,8BACE,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,EACP,KAAK,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,WAAW,EAAE,EAAE,EAAE,GACvD,CACM,CACL;QACP,gCACE,SAAS,EAAE,OAAO,CAAC,eAAe,EAClC,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAE,MAAM,EACT,IAAI,EAAC,SAAS,GACd;QACF,gCACE,SAAS,EAAE,OAAO,CAAC,YAAY,EAC/B,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAE,MAAM,EACT,IAAI,EAAC,qBAAqB,GAC1B;QACF,8BACE,SAAS,EAAE,OAAO,CAAC,SAAS,EAC5B,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,SAAS,EAAC,gBAAgB,EAC1B,gBAAgB,EAAC,QAAQ,EACzB,UAAU,EAAC,QAAQ,IAElB,MAAM,CAAC,KAAK,CAAC,CACT,CACL,CACL,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { makeStyles } from 'tss-react/mui';
|
|
3
|
+
import { observer } from 'mobx-react';
|
|
4
|
+
const useStyles = makeStyles()(theme => {
|
|
5
|
+
const offset = 2;
|
|
6
|
+
const duration = 1.4;
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const { primary, secondary, tertiary, quaternary } = theme.palette;
|
|
9
|
+
return {
|
|
10
|
+
path: {
|
|
11
|
+
strokeDasharray: 187,
|
|
12
|
+
strokeDashoffset: 50,
|
|
13
|
+
animation: `$dash ${duration}s ease-in-out infinite, $colors ${duration * 4}s ease-in-out infinite`,
|
|
14
|
+
},
|
|
15
|
+
'@keyframes colors': {
|
|
16
|
+
'0%': {
|
|
17
|
+
stroke: primary.light,
|
|
18
|
+
},
|
|
19
|
+
'25%': {
|
|
20
|
+
stroke: secondary.light,
|
|
21
|
+
},
|
|
22
|
+
'50%': {
|
|
23
|
+
stroke: tertiary.light,
|
|
24
|
+
},
|
|
25
|
+
'75%': {
|
|
26
|
+
stroke: quaternary.light,
|
|
27
|
+
},
|
|
28
|
+
'100%': {
|
|
29
|
+
stroke: primary.light,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
'@keyframes dash': {
|
|
33
|
+
'0%': {
|
|
34
|
+
strokeDashoffset: offset,
|
|
35
|
+
},
|
|
36
|
+
'50%': {
|
|
37
|
+
strokeDashoffset: offset / 4,
|
|
38
|
+
transform: 'rotate(135deg)',
|
|
39
|
+
},
|
|
40
|
+
'100%': {
|
|
41
|
+
strokeDashoffset: offset,
|
|
42
|
+
transform: 'rotate(720deg)',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
// 'repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.5) 5px, rgba(255,255,255,.5) 10px)',
|
|
48
|
+
const Loading = observer(({ model: { renderProps: { radius }, }, }) => {
|
|
49
|
+
const { classes } = useStyles();
|
|
50
|
+
// only show the loading message after 400ms to prevent excessive flickering
|
|
51
|
+
const [shown, setShown] = useState(false);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
const timeout = setTimeout(() => setShown(true), 400);
|
|
54
|
+
return () => clearTimeout(timeout);
|
|
55
|
+
});
|
|
56
|
+
return !shown ? null : (React.createElement("g", null,
|
|
57
|
+
React.createElement("defs", null,
|
|
58
|
+
React.createElement("pattern", { id: "diagonalHatch", width: "10", height: "10", patternTransform: "rotate(45 0 0)", patternUnits: "userSpaceOnUse" },
|
|
59
|
+
React.createElement("line", { x1: "0", y1: "0", x2: "0", y2: "10", style: { stroke: 'rgba(255,255,255,0.5)', strokeWidth: 10 } }))),
|
|
60
|
+
React.createElement("circle", { cx: "0", cy: "0", r: radius, fill: "#f1f1f1" }),
|
|
61
|
+
React.createElement("circle", { cx: "0", cy: "0", r: radius, fill: "url(#diagonalHatch)" }),
|
|
62
|
+
React.createElement("text", { x: "0", y: "0", transform: "rotate(90 0 0)", dominantBaseline: "middle", textAnchor: "middle" }, "Loading\u2026"),
|
|
63
|
+
React.createElement("circle", { className: classes.path, fill: "none", strokeWidth: "4", strokeLinecap: "round", cx: "0", cy: "0", r: "60" })));
|
|
64
|
+
});
|
|
65
|
+
export default Loading;
|
|
66
|
+
//# sourceMappingURL=Loading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/Loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,SAAS,GAAG,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE;IACrC,MAAM,MAAM,GAAG,CAAC,CAAA;IAChB,MAAM,QAAQ,GAAG,GAAG,CAAA;IAEpB,aAAa;IACb,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC,OAAO,CAAA;IAClE,OAAO;QACL,IAAI,EAAE;YACJ,eAAe,EAAE,GAAG;YACpB,gBAAgB,EAAE,EAAE;YACpB,SAAS,EAAE,SAAS,QAAQ,mCAC1B,QAAQ,GAAG,CACb,wBAAwB;SACzB;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE;gBACJ,MAAM,EAAE,OAAO,CAAC,KAAK;aACtB;YACD,KAAK,EAAE;gBACL,MAAM,EAAE,SAAS,CAAC,KAAK;aACxB;YACD,KAAK,EAAE;gBACL,MAAM,EAAE,QAAQ,CAAC,KAAK;aACvB;YACD,KAAK,EAAE;gBACL,MAAM,EAAE,UA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E,EAAE,EAAE,GAC3D,CACM,CACL;QACP,gCAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,SAAS,GAAG;QAClD,gCAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAC,qBAAqB,GAAG;QAC9D,8BACE,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,SAAS,EAAC,gBAAgB,EAC1B,gBAAgB,EAAC,QAAQ,EACzB,UAAU,EAAC,QAAQ,oBAGd;QACP,gCACE,SAAS,EAAE,OAAO,CAAC,IAAI,EACvB,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,IAAI,GACN,CACA,CACL,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { isAlive } from 'mobx-state-tree';
|
|
3
|
+
import { observer } from 'mobx-react';
|
|
4
|
+
import { hydrate, unmountComponentAtNode } from 'react-dom';
|
|
5
|
+
import { rIC } from '@jbrowse/core/util';
|
|
6
|
+
function RpcRenderedSvgGroup({ model }) {
|
|
7
|
+
const { data, html, filled, renderingComponent } = model;
|
|
8
|
+
const ssrContainerNode = useRef(null);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
const domNode = ssrContainerNode.current;
|
|
11
|
+
function doHydrate() {
|
|
12
|
+
if (domNode && filled) {
|
|
13
|
+
if (domNode.innerHTML) {
|
|
14
|
+
domNode.style.display = 'none';
|
|
15
|
+
unmountComponentAtNode(domNode);
|
|
16
|
+
}
|
|
17
|
+
// setting outline:none fixes react "focusable" element issue. see
|
|
18
|
+
// https://github.com/GMOD/jbrowse-components/issues/2160
|
|
19
|
+
domNode.style.outline = 'none';
|
|
20
|
+
domNode.innerHTML = html;
|
|
21
|
+
// use requestIdleCallback to defer main-thread rendering
|
|
22
|
+
// and hydration for when we have some free time. helps
|
|
23
|
+
// keep the framerate up.
|
|
24
|
+
rIC(() => {
|
|
25
|
+
if (!isAlive(model)) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const mainThreadRendering = React.createElement(renderingComponent, { ...data, ...model.renderProps() }, null);
|
|
29
|
+
rIC(() => {
|
|
30
|
+
if (!isAlive(model)) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
hydrate(mainThreadRendering, domNode);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
doHydrate();
|
|
39
|
+
return () => {
|
|
40
|
+
if (domNode) {
|
|
41
|
+
unmountComponentAtNode(domNode);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
return React.createElement("g", { ref: ssrContainerNode });
|
|
46
|
+
}
|
|
47
|
+
export default observer(RpcRenderedSvgGroup);
|
|
48
|
+
//# sourceMappingURL=RpcRenderedSvgGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RpcRenderedSvgGroup.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/components/RpcRenderedSvgGroup.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAExC,SAAS,mBAAmB,CAAC,EAAE,KAAK,EAAE;IACpC,MAAM,EAAE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