| 3941 | bool ImPlot3DAxis::IsAutoFitting() const { return ImPlot3D::ImHasFlag(Flags, ImPlot3DAxisFlags_AutoFit); } |
| 3942 | |
| 3943 | void ImPlot3DAxis::ExtendFit(double value) { |
| 3944 | // Only extend fit with values that are within the constraint range |
| 3945 | // This is critical for log scale where negative/zero values should be ignored |
| 3946 | if (!ImPlot3D::ImNanOrInf(value) && value >= ConstraintRange.Min && value <= ConstraintRange.Max) { |
| 3947 | FitExtents.Min = ImMin(FitExtents.Min, value); |
| 3948 | FitExtents.Max = ImMax(FitExtents.Max, value); |
| 3949 | } |
| 3950 | } |
| 3951 | |
| 3952 | void ImPlot3DAxis::ApplyFit() { |
| 3953 | if (!IsLockedMin() && !ImPlot3D::ImNanOrInf(FitExtents.Min)) |
no test coverage detected