panel
panel copied to clipboard
Limit Swipe to avoid hiding certain regions
Is your feature request related to a problem? Please describe.
Trying to overlay two data plots will hide their respective toolbars or other extra-viewport elements like colorbars:
curve = hv.Curve([0,1]).opts(toolbar='above', title='curve', frame_height=200)
img = hv.Image(np.array([[0, 1], [1, 0]])).opts(toolbar='below', title='img', frame_height=200)
pn.Column(pn.Swipe(curve, img))
Describe the solution you'd like
At least some mode/setting to limit the swipe-hiding to a certain region, so at least we could manually try to limit it to the viewport height and then put toolbars on top and bottom so as to have both always visible.
Describe alternatives you've considered
Since this is really case about swiping to reveal data, rather than an entire component, I'm wondering if the change should be in HoloViews or Bokeh instead of requesting this feature of Panel.