You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the relevant change is here. Indeed, reverting this function resolves the issue. @ahuang11
Notice that in the "After #101" video below, the erroneously created annotation also goes to the wrong axis. This remains the case even with #113. But I guess it doesn't matter because the intended behavior is to not allow new drag-created annotations when an existing annotation is selected, and edit mode is active.
Code
This code is a bit simpler than what is shown in the video because the tabulator app is not yet merged.
importholoviewsashv; hv.extension('bokeh')
importpanelaspn; pn.extension()
importnumpyasnpfromholonote.annotateimportAnnotatorfromholonote.appimportPanelWidgetsannotator=Annotator({"x": float, "y": float}, fields=["description"])
annotator_widgets=PanelWidgets(annotator)
bounds= (-1, -1, 1, 1)
data=np.array([[0, 1], [1, 0]])
img=hv.Image(data, kdims=['x', 'y'], bounds=bounds)
img_right=hv.Image(data, kdims=['z', 'y'], bounds=bounds) # y as second kdim! so HSpanleft_plot=annotator*imgright_plot=annotator*img_rightlayout=left_plot+right_plotannotator.set_regions(x=(-0.15, 0.15), y=(-0.25, 0.25))
annotator.add_annotation(description="Test")
pn.Column(annotator_widgets, layout)
Looks like the relevant change is here. Indeed, reverting this function resolves the issue. @ahuang11
Notice that in the "After #101" video below, the erroneously created annotation also goes to the wrong axis. This remains the case even with #113. But I guess it doesn't matter because the intended behavior is to not allow new drag-created annotations when an existing annotation is selected, and edit mode is active.
Code
This code is a bit simpler than what is shown in the video because the tabulator app is not yet merged.
Prior to #101 ✅
video1786144967.mp4
After #101 ❌
video2786144967.mp4
The text was updated successfully, but these errors were encountered: