implot icon indicating copy to clipboard operation
implot copied to clipboard

Add x-axis drag/drop hover

Open nathandunk opened this issue 5 years ago • 1 comments

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);
    }
}

x_axis_hover

nathandunk avatar Feb 28 '21 22:02 nathandunk

Added by #172

epezent avatar Mar 01 '21 00:03 epezent