implot
implot copied to clipboard
Add x-axis drag/drop hover
Hey, could you add in an x-axis drag/drop hover box like there is for y-axes? Looks like this right after the y-axis boxes produces the gif below.
// render x-axis drag/drop hover
if (ImGui::IsDragDropPayloadBeingAccepted()) {
if (plot.XAxis.ExtHovered) {
ImVec2 p1(plot.PlotRect.Min.x - 5, plot.PlotRect.Max.y - 5);
ImVec2 p2(plot.PlotRect.Max.x + 5, plot.PlotRect.Max.y + 5);
DrawList.AddRect(p1, p2, ImGui::GetColorU32(ImGuiCol_DragDropTarget), 0.0f, ImDrawCornerFlags_All, 2.0f);
}
}

Added by #172