@jbrowse/plugin-circular-view 2.2.1 → 2.3.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/README.md +13 -4
- package/dist/BaseChordDisplay/components/BaseChordDisplay.d.ts +11 -3
- package/dist/BaseChordDisplay/components/BaseChordDisplay.js +4 -6
- package/dist/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -1
- package/dist/BaseChordDisplay/components/DisplayError.js +1 -1
- package/dist/BaseChordDisplay/components/DisplayError.js.map +1 -1
- package/dist/BaseChordDisplay/components/Loading.js +1 -2
- package/dist/BaseChordDisplay/components/Loading.js.map +1 -1
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +6 -5
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js +198 -194
- package/dist/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -1
- package/dist/BaseChordDisplay/models/renderReaction.d.ts +2 -0
- package/dist/BaseChordDisplay/models/renderReaction.js +12 -3
- package/dist/BaseChordDisplay/models/renderReaction.js.map +1 -1
- package/dist/CircularView/components/CircularView.js +2 -2
- package/dist/CircularView/components/CircularView.js.map +1 -1
- package/dist/CircularView/index.d.ts +3 -0
- package/dist/CircularView/index.js +40 -0
- package/dist/CircularView/index.js.map +1 -0
- package/dist/LaunchCircularView/index.d.ts +3 -0
- package/dist/LaunchCircularView/index.js +22 -0
- package/dist/LaunchCircularView/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -50
- package/dist/index.js.map +1 -1
- package/esm/BaseChordDisplay/components/BaseChordDisplay.d.ts +11 -3
- package/esm/BaseChordDisplay/components/BaseChordDisplay.js +4 -6
- package/esm/BaseChordDisplay/components/BaseChordDisplay.js.map +1 -1
- package/esm/BaseChordDisplay/components/DisplayError.js +1 -1
- package/esm/BaseChordDisplay/components/DisplayError.js.map +1 -1
- package/esm/BaseChordDisplay/components/Loading.js +1 -2
- package/esm/BaseChordDisplay/components/Loading.js.map +1 -1
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.d.ts +6 -5
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js +199 -195
- package/esm/BaseChordDisplay/models/BaseChordDisplayModel.js.map +1 -1
- package/esm/BaseChordDisplay/models/renderReaction.d.ts +2 -0
- package/esm/BaseChordDisplay/models/renderReaction.js +9 -3
- package/esm/BaseChordDisplay/models/renderReaction.js.map +1 -1
- package/esm/CircularView/components/CircularView.js +2 -2
- package/esm/CircularView/components/CircularView.js.map +1 -1
- package/esm/CircularView/index.d.ts +3 -0
- package/esm/CircularView/index.js +12 -0
- package/esm/CircularView/index.js.map +1 -0
- package/esm/LaunchCircularView/index.d.ts +3 -0
- package/esm/LaunchCircularView/index.js +20 -0
- package/esm/LaunchCircularView/index.js.map +1 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +6 -26
- package/esm/index.js.map +1 -1
- package/package.json +6 -5
- package/src/BaseChordDisplay/components/BaseChordDisplay.tsx +16 -6
- package/src/BaseChordDisplay/components/DisplayError.tsx +41 -43
- package/src/BaseChordDisplay/components/Loading.tsx +55 -58
- package/src/BaseChordDisplay/models/BaseChordDisplayModel.ts +241 -232
- package/src/BaseChordDisplay/models/renderReaction.ts +9 -3
- package/src/CircularView/components/CircularView.tsx +73 -75
- package/src/CircularView/index.ts +16 -0
- package/src/LaunchCircularView/index.ts +48 -0
- package/src/index.ts +10 -55
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +0 -12
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js +0 -73
- package/dist/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +0 -1
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.d.ts +0 -12
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js +0 -48
- package/esm/BaseChordDisplay/components/RpcRenderedSvgGroup.js.map +0 -1
- package/src/BaseChordDisplay/components/RpcRenderedSvgGroup.tsx +0 -69
|
@@ -1,219 +1,223 @@
|
|
|
1
|
+
import clone from 'clone';
|
|
2
|
+
import { getParent, isAlive, types } from 'mobx-state-tree';
|
|
3
|
+
// jbrowse
|
|
1
4
|
import { getConf } from '@jbrowse/core/configuration';
|
|
2
5
|
import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
6
|
import CircularChordRendererType from '@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType';
|
|
4
|
-
import { getContainingView, getSession, getEnv, makeAbortableReaction, } from '@jbrowse/core/util';
|
|
5
|
-
import { isFeature } from '@jbrowse/core/util/simpleFeature';
|
|
7
|
+
import { getContainingView, getSession, getEnv, isFeature, makeAbortableReaction, } from '@jbrowse/core/util';
|
|
6
8
|
import { getParentRenderProps, getRpcSessionId, getTrackAssemblyNames, } from '@jbrowse/core/util/tracks';
|
|
7
|
-
import { getParent, isAlive, types } from 'mobx-state-tree';
|
|
8
9
|
// locals
|
|
9
10
|
import { renderReactionData, renderReactionEffect } from './renderReaction';
|
|
10
11
|
/**
|
|
11
12
|
* #stateModel BaseChordDisplay
|
|
12
13
|
* extends `BaseDisplay`
|
|
13
14
|
*/
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
16
|
+
export const BaseChordDisplayModel = types
|
|
17
|
+
.compose('BaseChordDisplay', BaseDisplay, types.model({
|
|
18
|
+
/**
|
|
19
|
+
* #property
|
|
20
|
+
*/
|
|
21
|
+
bezierRadiusRatio: 0.1,
|
|
22
|
+
/**
|
|
23
|
+
* #property
|
|
24
|
+
*/
|
|
25
|
+
assemblyName: types.maybe(types.string),
|
|
26
|
+
}))
|
|
27
|
+
.volatile(() => {
|
|
28
|
+
return {
|
|
29
|
+
// NOTE: all this volatile stuff has to be filled in at once
|
|
30
|
+
// so that it stays consistent
|
|
31
|
+
filled: false,
|
|
32
|
+
reactElement: undefined,
|
|
33
|
+
data: undefined,
|
|
34
|
+
html: undefined,
|
|
35
|
+
message: '',
|
|
36
|
+
renderingComponent: undefined,
|
|
37
|
+
refNameMap: undefined,
|
|
38
|
+
};
|
|
39
|
+
})
|
|
40
|
+
.actions(self => {
|
|
41
|
+
const { pluginManager } = getEnv(self);
|
|
42
|
+
const track = self;
|
|
43
|
+
return {
|
|
21
44
|
/**
|
|
22
|
-
* #
|
|
45
|
+
* #action
|
|
23
46
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
47
|
+
onChordClick(feature) {
|
|
48
|
+
getConf(self, 'onChordClick', { feature, track, pluginManager });
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
})
|
|
52
|
+
.views(self => ({
|
|
53
|
+
/**
|
|
54
|
+
* #getter
|
|
55
|
+
*/
|
|
56
|
+
get blockDefinitions() {
|
|
57
|
+
const origSlices = getContainingView(self)
|
|
58
|
+
.staticSlices;
|
|
59
|
+
if (!self.refNameMap) {
|
|
60
|
+
return origSlices;
|
|
61
|
+
}
|
|
62
|
+
const slices = clone(origSlices);
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
64
|
+
slices.forEach((slice) => {
|
|
65
|
+
const regions = slice.region.elided
|
|
66
|
+
? slice.region.regions
|
|
67
|
+
: [slice.region];
|
|
68
|
+
regions.forEach((region) => {
|
|
69
|
+
var _a;
|
|
70
|
+
const renamed = (_a = self.refNameMap) === null || _a === void 0 ? void 0 : _a[region.refName];
|
|
71
|
+
if (renamed && region.refName !== renamed) {
|
|
72
|
+
region.refName = renamed;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
return slices;
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* #method
|
|
80
|
+
*/
|
|
81
|
+
renderProps() {
|
|
82
|
+
const view = getContainingView(self);
|
|
27
83
|
return {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
refNameMap: undefined,
|
|
84
|
+
...getParentRenderProps(self),
|
|
85
|
+
rpcDriverName: self.rpcDriverName,
|
|
86
|
+
displayModel: self,
|
|
87
|
+
bezierRadius: view.radiusPx * self.bezierRadiusRatio,
|
|
88
|
+
radius: view.radiusPx,
|
|
89
|
+
blockDefinitions: this.blockDefinitions,
|
|
90
|
+
onChordClick: self.onChordClick,
|
|
36
91
|
};
|
|
37
|
-
}
|
|
38
|
-
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* #getter
|
|
95
|
+
* the pluggable element type object for this display's
|
|
96
|
+
* renderer
|
|
97
|
+
*/
|
|
98
|
+
get rendererType() {
|
|
99
|
+
const display = self;
|
|
39
100
|
const { pluginManager } = getEnv(self);
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
slices.forEach((slice) => {
|
|
63
|
-
const regions = slice.region.elided
|
|
64
|
-
? slice.region.regions
|
|
65
|
-
: [slice.region];
|
|
66
|
-
regions.forEach((region) => {
|
|
67
|
-
var _a;
|
|
68
|
-
const renamed = (_a = self.refNameMap) === null || _a === void 0 ? void 0 : _a[region.refName];
|
|
69
|
-
if (renamed && region.refName !== renamed) {
|
|
70
|
-
region.refName = renamed;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
return slices;
|
|
75
|
-
},
|
|
76
|
-
/**
|
|
77
|
-
* #method
|
|
78
|
-
*/
|
|
79
|
-
renderProps() {
|
|
80
|
-
const view = getContainingView(self);
|
|
81
|
-
return {
|
|
82
|
-
...getParentRenderProps(self),
|
|
83
|
-
rpcDriverName: self.rpcDriverName,
|
|
84
|
-
displayModel: self,
|
|
85
|
-
bezierRadius: view.radiusPx * self.bezierRadiusRatio,
|
|
86
|
-
radius: view.radiusPx,
|
|
87
|
-
blockDefinitions: this.blockDefinitions,
|
|
88
|
-
onChordClick: self.onChordClick,
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* #getter
|
|
93
|
-
* the pluggable element type object for this diplay's
|
|
94
|
-
* renderer
|
|
95
|
-
*/
|
|
96
|
-
get rendererType() {
|
|
97
|
-
const display = self;
|
|
98
|
-
const { pluginManager } = getEnv(self);
|
|
99
|
-
const ThisRendererType = pluginManager.getRendererType(self.rendererTypeName);
|
|
100
|
-
if (!ThisRendererType) {
|
|
101
|
-
throw new Error(`renderer "${display.rendererTypeName}" not found`);
|
|
102
|
-
}
|
|
103
|
-
if (!ThisRendererType.ReactComponent) {
|
|
104
|
-
throw new Error(`renderer ${display.rendererTypeName} has no ReactComponent, it may not be completely implemented yet`);
|
|
105
|
-
}
|
|
106
|
-
return ThisRendererType;
|
|
107
|
-
},
|
|
108
|
-
/**
|
|
109
|
-
* #method
|
|
110
|
-
*/
|
|
111
|
-
isCompatibleWithRenderer(renderer) {
|
|
112
|
-
return !!(renderer instanceof CircularChordRendererType);
|
|
113
|
-
},
|
|
114
|
-
/**
|
|
115
|
-
* #getter
|
|
116
|
-
* returns a string feature ID if the globally-selected object
|
|
117
|
-
* is probably a feature
|
|
118
|
-
*/
|
|
119
|
-
get selectedFeatureId() {
|
|
120
|
-
if (!isAlive(self)) {
|
|
121
|
-
return undefined;
|
|
122
|
-
}
|
|
123
|
-
const session = getSession(self);
|
|
124
|
-
if (!session) {
|
|
125
|
-
return undefined;
|
|
126
|
-
}
|
|
127
|
-
const { selection } = session;
|
|
128
|
-
// does it quack like a feature?
|
|
129
|
-
if (isFeature(selection)) {
|
|
130
|
-
return selection.id();
|
|
131
|
-
}
|
|
101
|
+
const ThisRendererType = pluginManager.getRendererType(self.rendererTypeName);
|
|
102
|
+
if (!ThisRendererType) {
|
|
103
|
+
throw new Error(`renderer "${display.rendererTypeName}" not found`);
|
|
104
|
+
}
|
|
105
|
+
if (!ThisRendererType.ReactComponent) {
|
|
106
|
+
throw new Error(`renderer ${display.rendererTypeName} has no ReactComponent, it may not be completely implemented yet`);
|
|
107
|
+
}
|
|
108
|
+
return ThisRendererType;
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
* #method
|
|
112
|
+
*/
|
|
113
|
+
isCompatibleWithRenderer(renderer) {
|
|
114
|
+
return !!(renderer instanceof CircularChordRendererType);
|
|
115
|
+
},
|
|
116
|
+
/**
|
|
117
|
+
* #getter
|
|
118
|
+
* returns a string feature ID if the globally-selected object
|
|
119
|
+
* is probably a feature
|
|
120
|
+
*/
|
|
121
|
+
get selectedFeatureId() {
|
|
122
|
+
if (!isAlive(self)) {
|
|
132
123
|
return undefined;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
124
|
+
}
|
|
125
|
+
const session = getSession(self);
|
|
126
|
+
if (!session) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
const { selection } = session;
|
|
130
|
+
// does it quack like a feature?
|
|
131
|
+
if (isFeature(selection)) {
|
|
132
|
+
return selection.id();
|
|
133
|
+
}
|
|
134
|
+
return undefined;
|
|
135
|
+
},
|
|
136
|
+
}))
|
|
137
|
+
.actions(self => ({
|
|
138
|
+
/**
|
|
139
|
+
* #action
|
|
140
|
+
*/
|
|
141
|
+
renderStarted() {
|
|
142
|
+
self.filled = false;
|
|
143
|
+
self.message = '';
|
|
144
|
+
self.reactElement = undefined;
|
|
145
|
+
self.data = undefined;
|
|
146
|
+
self.html = undefined;
|
|
147
|
+
self.error = undefined;
|
|
148
|
+
self.renderingComponent = undefined;
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
* #action
|
|
152
|
+
*/
|
|
153
|
+
renderSuccess({ message, data, reactElement, html, renderingComponent, }) {
|
|
154
|
+
if (message) {
|
|
140
155
|
self.filled = false;
|
|
141
|
-
self.message =
|
|
156
|
+
self.message = message;
|
|
142
157
|
self.reactElement = undefined;
|
|
143
158
|
self.data = undefined;
|
|
159
|
+
self.html = undefined;
|
|
144
160
|
self.error = undefined;
|
|
145
161
|
self.renderingComponent = undefined;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*/
|
|
150
|
-
renderSuccess({ message, data, reactElement, renderingComponent, }) {
|
|
151
|
-
if (message) {
|
|
152
|
-
self.filled = false;
|
|
153
|
-
self.message = message;
|
|
154
|
-
self.reactElement = undefined;
|
|
155
|
-
self.data = undefined;
|
|
156
|
-
self.error = undefined;
|
|
157
|
-
self.renderingComponent = undefined;
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
self.filled = true;
|
|
161
|
-
self.message = '';
|
|
162
|
-
self.reactElement = reactElement;
|
|
163
|
-
self.data = data;
|
|
164
|
-
self.error = undefined;
|
|
165
|
-
self.renderingComponent = renderingComponent;
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
/**
|
|
169
|
-
* #action
|
|
170
|
-
*/
|
|
171
|
-
renderError(error) {
|
|
172
|
-
console.error(error);
|
|
173
|
-
// the rendering failed for some reason
|
|
174
|
-
self.filled = false;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
self.filled = true;
|
|
175
165
|
self.message = '';
|
|
176
|
-
self.reactElement =
|
|
177
|
-
self.data =
|
|
178
|
-
self.
|
|
179
|
-
self.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
166
|
+
self.reactElement = reactElement;
|
|
167
|
+
self.data = data;
|
|
168
|
+
self.html = html;
|
|
169
|
+
self.error = undefined;
|
|
170
|
+
self.renderingComponent = renderingComponent;
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* #action
|
|
175
|
+
*/
|
|
176
|
+
renderError(error) {
|
|
177
|
+
console.error(error);
|
|
178
|
+
// the rendering failed for some reason
|
|
179
|
+
self.filled = false;
|
|
180
|
+
self.message = '';
|
|
181
|
+
self.reactElement = undefined;
|
|
182
|
+
self.html = undefined;
|
|
183
|
+
self.data = undefined;
|
|
184
|
+
self.error = error;
|
|
185
|
+
self.renderingComponent = undefined;
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* #action
|
|
189
|
+
*/
|
|
190
|
+
setRefNameMap(refNameMap) {
|
|
191
|
+
self.refNameMap = refNameMap;
|
|
192
|
+
},
|
|
193
|
+
}))
|
|
194
|
+
.actions(self => ({
|
|
195
|
+
afterAttach() {
|
|
196
|
+
makeAbortableReaction(self, renderReactionData,
|
|
197
|
+
// @ts-ignore
|
|
198
|
+
renderReactionEffect, {
|
|
199
|
+
name: `${self.type} ${self.id} rendering`,
|
|
200
|
+
// delay: self.renderDelay || 300,
|
|
201
|
+
fireImmediately: true,
|
|
202
|
+
}, self.renderStarted, self.renderSuccess, self.renderError);
|
|
203
|
+
makeAbortableReaction(self, () => ({
|
|
204
|
+
assemblyNames: getTrackAssemblyNames(self.parentTrack),
|
|
203
205
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
206
|
+
adapter: getConf(getParent(self, 2), 'adapter'),
|
|
207
|
+
assemblyManager: getSession(self).assemblyManager,
|
|
208
|
+
}),
|
|
209
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
210
|
+
async ({ assemblyNames, adapter, assemblyManager }, signal) => {
|
|
211
|
+
return assemblyManager.getRefNameMapForAdapter(adapter, assemblyNames[0], { signal, sessionId: getRpcSessionId(self) });
|
|
212
|
+
}, {
|
|
213
|
+
name: `${self.type} ${self.id} getting refNames`,
|
|
214
|
+
fireImmediately: true,
|
|
215
|
+
}, () => { }, refNameMap => {
|
|
216
|
+
self.setRefNameMap(refNameMap);
|
|
217
|
+
}, error => {
|
|
218
|
+
console.error(error);
|
|
219
|
+
self.setError(error);
|
|
220
|
+
});
|
|
221
|
+
},
|
|
222
|
+
}));
|
|
219
223
|
//# sourceMappingURL=BaseChordDisplayModel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChordDisplayModel.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/BaseChordDisplayModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAA;AACxE,OAAO,yBAAyB,MAAM,yEAAyE,CAAA;AAE/G,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,MAAM,EACN,qBAAqB,
|
|
1
|
+
{"version":3,"file":"BaseChordDisplayModel.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/BaseChordDisplayModel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAE3D,UAAU;AACV,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,C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AC,UAAU,CAAC,CAAA;QAChC,CAAC,EACD,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACpB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC,CACF,CAAA;IACH,CAAC;CACF,CAAC,CAAC,CAAA"}
|
|
@@ -16,10 +16,12 @@ export declare function renderReactionEffect(props: any, signal: AbortSignal, se
|
|
|
16
16
|
message: any;
|
|
17
17
|
html?: undefined;
|
|
18
18
|
data?: undefined;
|
|
19
|
+
reactElement?: undefined;
|
|
19
20
|
renderingComponent?: undefined;
|
|
20
21
|
} | {
|
|
21
22
|
html: any;
|
|
22
23
|
data: any;
|
|
24
|
+
reactElement: any;
|
|
23
25
|
renderingComponent: any;
|
|
24
26
|
message?: undefined;
|
|
25
27
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import clone from 'clone';
|
|
1
2
|
import { getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
2
3
|
import { getSession, getContainingView } from '@jbrowse/core/util';
|
|
3
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -12,9 +13,9 @@ export function renderReactionData(self) {
|
|
|
12
13
|
renderProps: self.renderProps(),
|
|
13
14
|
renderArgs: {
|
|
14
15
|
assemblyName: (_a = view.displayedRegions[0]) === null || _a === void 0 ? void 0 : _a.assemblyName,
|
|
15
|
-
adapterConfig:
|
|
16
|
+
adapterConfig: clone(self.adapterConfig),
|
|
16
17
|
rendererType: rendererType.name,
|
|
17
|
-
regions:
|
|
18
|
+
regions: clone(view.displayedRegions),
|
|
18
19
|
blockDefinitions: self.blockDefinitions,
|
|
19
20
|
sessionId: getRpcSessionId(self),
|
|
20
21
|
timeout: 1000000,
|
|
@@ -48,6 +49,11 @@ self) {
|
|
|
48
49
|
...renderProps,
|
|
49
50
|
signal,
|
|
50
51
|
});
|
|
51
|
-
return {
|
|
52
|
+
return {
|
|
53
|
+
html,
|
|
54
|
+
data,
|
|
55
|
+
reactElement: data.reactElement,
|
|
56
|
+
renderingComponent: rendererType.ReactComponent,
|
|
57
|
+
};
|
|
52
58
|
}
|
|
53
59
|
//# sourceMappingURL=renderReaction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderReaction.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/renderReaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAElE,8DAA8D;AAC9D,MAAM,UAAU,kBAAkB,CAAC,IAAS;;IAC1C,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACpC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IAC7B,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;IAEvC,OAAO;QACL,YAAY;QACZ,UAAU;QACV,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE;QAC/B,UAAU,EAAE;YACV,YAAY,EAAE,MAAA,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,0CAAE,YAAY;YACpD,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"renderReaction.js","sourceRoot":"","sources":["../../../src/BaseChordDisplay/models/renderReaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAElE,8DAA8D;AAC9D,MAAM,UAAU,kBAAkB,CAAC,IAAS;;IAC1C,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACpC,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IAC7B,MAAM,EAAE,UAAU,EA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F;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,YAAY,CAAC,cAAc,CAAC,UAAU,EAAE;QACtE,GAAG,UAAU;QACb,GAAG,WAAW;QACd,MAAM;KACP,CAAC,CAAA;IAEF,OAAO;QACL,IAAI;QACJ,IAAI;QACJ,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,kBAAkB,EAAE,YAAY,CAAC,cAAc;KAChD,CAAA;AACH,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
|
+
import { IconButton } from '@mui/material';
|
|
3
4
|
import { ResizeHandle, ErrorMessage } from '@jbrowse/core/ui';
|
|
4
5
|
import { assembleLocString } from '@jbrowse/core/util';
|
|
5
|
-
import { IconButton } from '@mui/material';
|
|
6
6
|
import { makeStyles } from 'tss-react/mui';
|
|
7
7
|
import { grey } from '@mui/material/colors';
|
|
8
8
|
// icons
|
|
@@ -62,7 +62,7 @@ const Slices = observer(({ model }) => {
|
|
|
62
62
|
return (React.createElement(display.RenderingComponent, { key: display.id, display: display, view: model }));
|
|
63
63
|
})));
|
|
64
64
|
});
|
|
65
|
-
const Controls = observer(({ model, showingFigure, })
|
|
65
|
+
const Controls = observer(function ({ model, showingFigure, }) {
|
|
66
66
|
const { classes } = useStyles();
|
|
67
67
|
return (React.createElement("div", { className: classes.controls },
|
|
68
68
|
React.createElement(IconButton, { onClick: model.zoomOutButton, className: classes.iconButton, title: model.lockedFitToWindow ? 'unlock to zoom out' : 'zoom out', disabled: !showingFigure || model.atMaxBpPerPx || model.lockedFitToWindow, color: "secondary" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircularView.js","sourceRoot":"","sources":["../../../src/CircularView/components/CircularView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACr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;oBACL,MAAM,EAAE,gBAAgB;oBACxB,QAAQ,EAAE,UAAU;oBACpB,MAAM,EAAE,CAAC;oBACT,IAAI,EAAE,CAAC;oBACP,UAAU,EAAE,MAAM;oBAClB,SAAS,EAAE,YAAY;oBACvB,SAAS,EAAE,mBAAmB;iBAC/B,GACD,CACH,CACA,CACF,CACJ,CACG,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import ViewType from '@jbrowse/core/pluggableElementTypes/ViewType';
|
|
3
|
+
import stateModelFactory from './models/CircularView';
|
|
4
|
+
export default (pluginManager) => {
|
|
5
|
+
pluginManager.addViewType(() => new ViewType({
|
|
6
|
+
ReactComponent: lazy(() => import('./components/CircularView')),
|
|
7
|
+
stateModel: stateModelFactory(pluginManager),
|
|
8
|
+
name: 'CircularView',
|
|
9
|
+
displayName: 'Circular view',
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CircularView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAE5B,OAAO,QAAQ,MAAM,8CAA8C,CAAA;AACnE,OAAO,iBAAiB,MAAM,uBAAuB,CAAA;AAErD,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,WAAW,CACvB,GAAG,EAAE,CACH,IAAI,QAAQ,CAAC;QACX,cAAc,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAC/D,UAAU,EAAE,iBAAiB,CAAC,aAAa,CAAC;QAC5C,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,eAAe;KAC7B,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { when } from 'mobx';
|
|
2
|
+
export default (pluginManager) => {
|
|
3
|
+
pluginManager.addToExtensionPoint('LaunchView-CircularView',
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
async ({ session, assembly, loc, tracks = [], }) => {
|
|
6
|
+
const { assemblyManager } = session;
|
|
7
|
+
const view = session.addView('CircularView', {});
|
|
8
|
+
await when(() => view.initialized);
|
|
9
|
+
if (!assembly) {
|
|
10
|
+
throw new Error('No assembly provided when launching circular genome view');
|
|
11
|
+
}
|
|
12
|
+
const asm = await assemblyManager.waitForAssembly(assembly);
|
|
13
|
+
if (!asm) {
|
|
14
|
+
throw new Error(`Assembly "${assembly}" not found when launching circular genome view`);
|
|
15
|
+
}
|
|
16
|
+
view.setDisplayedRegions(asm.regions || []);
|
|
17
|
+
tracks.forEach(track => view.showTrack(track));
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LaunchCircularView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,mBAAmB,CAC/B,yBAAyB;IACzB,aAAa;IACb,KAAK,EAAE,EACL,OAAO,EACP,QAAQ,EACR,GAAG,EACH,MAAM,GAAG,EAAE,GAMZ,EAAE,EAAE;QACH,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAA;QACnC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAQ,CAAA;QAEvD,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAElC,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CACb,0DAA0D,CAC3D,CAAA;SACF;QAED,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;QAC3D,IAAI,CAAC,GAAG,EAAE;YACR,MAAM,IAAI,KAAK,CACb,aAAa,QAAQ,iDAAiD,CACvE,CAAA;SACF;QAED,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;QAE3C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;IAChD,CAAC,CACF,CAAA;AACH,CAAC,CAAA"}
|
package/esm/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export default class CircularViewPlugin extends Plugin {
|
|
|
6
6
|
install(pluginManager: PluginManager): void;
|
|
7
7
|
configure(pluginManager: PluginManager): void;
|
|
8
8
|
}
|
|
9
|
-
export {
|
|
9
|
+
export { baseChordDisplayConfig, BaseChordDisplayModel, BaseChordDisplayComponent, } from './BaseChordDisplay';
|
|
10
10
|
export type { CircularViewModel, CircularViewStateModel };
|