NPellet / visualizer

Other
43 stars 23 forks source link

Customisation of highlight in jsgraph #926

Closed lpatiny closed 8 years ago

lpatiny commented 8 years ago

Customisation is possible using the following approach

SerieLine.prototype.setLineColor = function( color, selectionType, applyToSelected );
SerieLine.prototype.setLineWidth = function( width, selectionType, applyToSelected );
SerieLine.prototype.setLineStyle = function( number, selectionType, applyToSelected );
targos commented 8 years ago

This is already in use in the spectra_displayer. Are you asking to add user-defined options ?

NPellet commented 8 years ago

The third parameters (bool) allows the serie to take the same style when its style is set to "selected" (the default style name when the serie gets selected)

2016-06-29 10:52 GMT+02:00 Michaël Zasso notifications@github.com:

This is already in use in the spectra_displayer. Are you asking to add user-defined options ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NPellet/visualizer/issues/926#issuecomment-229296422, or mute the thread https://github.com/notifications/unsubscribe/ABal29CrO56lU4kv9LNj_W_RSZ5jIzpjks5qQjI3gaJpZM4JA4Z1 .

lpatiny commented 8 years ago

This is mainly to have a trace of this possibility ! I don't think we need it today but Norman example of jsNMR for the selected spectrum is very convincing.