orb.widgets.chord_widget module¶
- class orb.widgets.chord_widget.ChordWidget(channels, *args, **kwargs)¶
Bases:
Widget
- draw_channel_chords(out_chan, col, chan_pos, matrix, offset, sec_w, sec_w2, chan_cols)¶
- get_line_points(out_chan_deg, in_chan_deg, inverted=False)¶
The liquidity paths need to bend inwards, this is done using bezier interpolation.
- get_total_liq(matrix, out_chan, in_chans, total_for_node=False)¶
- offset_to_pos(offset)¶
Channels positions come in degrees. compute an x, y coordinate in local space.
- show_chord(inst, chord)¶
- update(*args, **kwargs)¶