forked from Caleydo/gapminder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphovea.js
40 lines (33 loc) · 1.69 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
/* *****************************************************************************
* 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) {
//registry.push('extension-type', 'extension-id', function() { return System.import('./src/extension_impl'); }, {});
// generator-phovea:begin
registry.push('view', 'gapminder', function() { return System.import('./src/gapminder'); }, {
'location': 'gapminder'
});
registry.push('actionFactory', 'gapminder', function() { return System.import('./src/gapminder'); }, {
'factory': 'createCmd',
'creates': '(setGapMinderAttribute|setGapMinderAttributeScale|toggleGapMinderTrails)'
});
registry.push('actionCompressor', 'gapminder-setGapMinderAttribute', function() { return System.import('./src/gapminder'); }, {
'factory': 'compressSetAttribute',
'matches': 'setGapMinderAttribute'
});
registry.push('actionCompressor', 'gapminder-setGapMinderAttribute', function() { return System.import('./src/gapminder'); }, {
'factory': 'compressToggleGapMinderTrails',
'matches': 'toggleGapMinderTrails'
});
registry.push('actionCompressor', 'gapminder-setGapMinderAttributeScale', function() { return System.import('./src/gapminder'); }, {
'factory': 'compressSetAttributeScale',
'matches': 'setGapMinderAttributeScale'
});
registry.push('app', 'gapminder', null, {
'name': 'GapMinder'
});
// generator-phovea:end
};