-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhex_plugin.js
More file actions
37 lines (27 loc) · 803 Bytes
/
hex_plugin.js
File metadata and controls
37 lines (27 loc) · 803 Bytes
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
;(function () {
class Plugin {
name = 'HexJexlPlugin'
version = '1.0'
install(pluginManager) {
pluginManager.jexl.addFunction('hex', (num1) => {
return num1.toString(16);
})
}
configure(pluginManager) {}
}
// the plugin will be included in both the main thread and web worker, so
// install plugin to either window or self (webworker global scope)
;(typeof self !== 'undefined' ? self : window).JBrowsePluginHexJexlPlugin =
{
default: Plugin,
}
})()
//const Plugin = JBrowseExports['@jbrowse/core/Plugin']
//export default class HexJexlPlugin extends Plugin {
// name = 'HexJexlPlugin'
// install(pluginManager) {
// pluginManager.jexl.addFunction('hex', (num1) => {
// return num1.toString(16);
// })
// }
//}