This repository has been archived by the owner on May 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phovea.js
68 lines (49 loc) · 1.94 KB
/
phovea.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* *****************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
**************************************************************************** */
//register all extensions in the registry following the given pattern
module.exports = function(registry) {
/// #if include('extension-type', 'extension-id')
//registry.push('extension-type', 'extension-id', function() { return import('./src/extension_impl'); }, {});
/// #endif
// generator-phovea:begin
registry.push('tdpView', 'hello-world', function() { return import('./src/HelloWorldView'); }, {
'name': 'Hello World',
'idtype': '.*',
'selection': 'some'
});
registry.push('tdpView', 'hello-ranking', function() { return import('./src/HelloRankingView'); }, {
'name': 'Hello Ranking',
'idtype': 'IDTypeA',
'selection': 'some'
});
registry.push('tdpScore', 'myScore', function() { return import('./src/MyScore'); }, {
'name': 'MyDB Score',
'idtype': 'IDTypeB'
});
registry.push('tdpScoreImpl', 'myScore', function() { return import('./src/MyScore'); }, {
'factory': 'new'
});
registry.push('dTilesSearchProvider', 'mydb', function() { return import('./src/MyDBSearchProvider'); }, {
'name': 'My DB',
'idType': 'MyIDType'
});
registry.push('tdpView', 'd3-view', function() { return import('./src/D3View'); }, {
'name': 'Hello D3 View',
'idtype': 'IDTypeA',
'selection': 'some'
});
registry.push('tdpView', 'chartjs', function() { return import('./src/ChartJS'); }, {
'name': 'Chart.js',
'idtype': 'IDTypeA',
'selection': 'some'
});
registry.push('tdpView', 'table-view', function() { return import('./src/TableView'); }, {
'name': 'Hello Table View',
'idtype': '.*',
'selection': 'some'
});
// generator-phovea:end
};