618 Commits

Author SHA1 Message Date
szym-nuro f1b0792cd3 Fix MyDataGetter example after #319 (#532) 2024-12-26 11:22:16 -06:00
Samuele Mazzi 35f7955475 feat: add ImPlotPieChartFlags_Exploding (#592) 2024-12-24 08:09:05 -06:00
Stewart Mccready 2b2a6e4901 Added IMGUI_DISABLE_DEMO_WINDOWS support (#603)
Unlike ImGui only ShowDemoWindow of the public implot.h api is actually defined in implot_demo.cpp.

Refrained from moving ShowStyleEditor, ShowStyleSelector, ShowUserGuide, ShowMetricsWindow to implot_demo.cpp like ImGui.
2024-12-24 08:04:09 -06:00
Evan Pezent fc3b781634 Update build.yml to macos-latest 2024-12-21 11:39:24 -06:00
Evan Pezent 93ce4160a4 refactor a few time utils; add Now/Today (#605) 2024-12-21 11:32:57 -06:00
Evan Pezent 77674d270e Update README.md 2024-12-18 13:03:41 -06:00
ocornut 419a8a0f5f Added support for IMGUI_DISABLE. (#563) 2024-10-29 17:36:47 +01:00
Michael Böhme 9be791503c Added header guard for IMGUI_DEFINE_MATH_OPERATORS (#546, #449) 2024-10-29 17:29:17 +01:00
helmutbuhler 33811aae48 Fix typo in user guide 2024-10-29 17:26:20 +01:00
ocornut f156599fae Remove trailing blanks. 2024-01-22 11:32:06 +01:00
ocornut 1f7a8c0314 Using offsetof() instead of obsoleted IM_OFFSETOF()
Said macro has been using offsetof() for a long time now.
2023-11-09 16:45:57 +01:00
elvissteinjr 065acc3319 Fix EndPlot() not deducing auto color for ImPlotCol_PlotBorder (#517) 2023-09-26 10:16:40 -05:00
Ben 22ef01e8c6 Small Pie Chart enhancements (#412)
* Added ImPlotPieChartFlags_IgnoreHidden flag. Added PlotPieChart overload that accepts an ImPlotFormatter.

* Fixed a potential division by zero in PlotPieChart.

* Removed PlotPieChart overload code duplication
2023-09-26 10:14:14 -05:00
lighthouse 538a306162 fix: Fix indexing logic of GetterHeatmapColMaj::operator() (#511)
Change mod from Cols to Rows
2023-09-26 10:12:10 -05:00
ocornut 5e5e884a7d Fix using ImFloor() instead of IM_FLOOR().
Macro got renamed in IMGUI_VERSION_NUM 18993. Technically old ImFloor()/IM_FLOOR() was a trunc(). New ImFloor() is an actual floor(), works with signed value, so good for position.
2023-09-26 11:15:30 +02:00
Mikhail 7b9171569b Ability to query point, line and rect drags for their click, hovered and held states (#507)
* Added optional parameters to Drag.. functions to query state of items: clicked, hovered, held

See also #506

* Updated click/hover/held code

* Added demo
* DragRect is now report state of the entire rect

* Fix DragRect interaction; improve demo; some preferential changes

* Added held state handling for the DragRect rectangle

---------

Co-authored-by: epezent <epezent16@gmail.com>
2023-08-23 11:55:25 -05:00
epezent 4f47cdf6c4 ImPlotPoint::operator[] bounds checking and adopt constexpr constructors 2023-08-20 20:12:20 -05:00
epezent cb6026ac17 Merge branch 'master' of https://github.com/epezent/implot 2023-08-20 19:40:03 -05:00
epezent 2e469d58bc Early end items with count <= 0 2023-08-20 19:40:01 -05:00
Evan Pezent 95de2af2a7 Typo in README 2023-08-20 19:05:57 -05:00
epezent 35cf7092db Update README with Q&A on AA 2023-08-20 19:04:45 -05:00
epezent 433022038b fix division by zero in RendererShaded 2023-08-20 18:07:56 -05:00
Evan Pezent a2632b9d0b Implement legend scrolling and update scroll capture behavior when zooming (#504)
* Fully functional legend scrolling

* refactor legend scroll capture

* remove ImPlotFlags_NoChild scroll capturing in favor of ImGui::SetKeyOwner

* change scroll capture behavior to only capture if scroll can be consumed

* rev version, add note about removal of ImPlotFlags_NoChild
2023-08-20 17:17:34 -05:00
epezent 18c72431f8 Update version and copyright year v0.16 2023-08-19 21:43:34 -05:00
epezent e3eab27545 Fix linked axes for case where Range.Min > previous Range.Max 2023-08-19 21:23:54 -05:00