v0.1.36
Responsive layout
The feature viewer has now a responsive layout : on a window resize, the feature viewer will also be dynamically resized.
Initialize the feature-viewer with a length
You can now specify the length of the sequence instead of the sequence itself :
var ft = new FeatureViewer('MALWMRLLPLLALLALWGPGPGAGSLQPLALEG..', '#fv1', options);
OR
var ft = new FeatureViewer(213, '#fv1', options);
Specify an offset
If you just want to display a part of the sequence, you can add the option offset :
var ft = new FeatureViewer(213, '#fv1', {
...,
offset:{start:30, end:100},
...
});
New options for "line" features
- interpolation : 'basis', 'step', 'monotone',.. : You can specify how the "line" feature will be displayed.
- You can also give multiple data : data: [array1, array2] with corresponding colors : color: ['#C50063','#005572']
Check the documentation for more details :
https://cdn.rawgit.com/calipho-sib/feature-viewer/v0.1.36/examples/index.html