grafana/public/app/plugins/panel
Drew Slobodnjak 2502fe4d19
Canvas: Add Pan and Zoom (#76705)
* Canvas: Add Zoom

* Scale selecto components based on zoom state

* Fix pan by reverting to 3.1.0 for zoom-pan

* Update to latest library that fixes pan regression

* Add mini map to canvas pan zoom

* Fix selecto and anchors on hover

* Update naming to be more clear

* Switch back to contentComponent

* Apply transformScale to drag and resize

* Update connection source and target scaling

* Add option to display mini map

* Update yarn lock

* Revert "Update yarn lock"

This reverts commit 3d1dd65d57.

* Set yarn lock to main

* Revert "Set yarn lock to main"

This reverts commit 64bc50557e.

* Update to Yarn 4

* Add react-zoom-pan-pinch

* Update react-zoom-pan checksum

* Revert changes to json files

* Remove last line of api merged

* Remove last lines of all impacted jsons

* Update home json

* Update coordinate calc function to include scale

* Fix types in coordinate calc function

* Fix util calculation for transform

* Fix arrow anchor shift behavior

* Fix scale offset when adding elements during zoom

* Fix drag of selected group during zoom

* Add feature flag for canvas pan zoom

* Revert "Add feature flag for canvas pan zoom"

This reverts commit b026e31d8d.

* Regenerate feature flag after merge

* Apply feature flag to enable pan zoom wrappers

* Add mini map toggle behind feature flag

* Simplify minimap behavior

* Update feature flag registry

* Set minimap to false by default

* fix gen-cue

* Set toggles gen to main

Add blank line to toggle gen csv

* Add canvas pan zoom to csv

* Remove old comment

* Change ref parameter to be more descriptive

* Rename visibleFun to be more descriptive

* Consolidate transformScale transformRef in util

* Remove non-null assertion on connection parentRect

* Consolidate parentRect null coalescing into object

* Remove minimap and change toggle

* Add controls inline help for pan and zoom

* Clean up mouse events

* Pull scale out of ref and isolate transform

* Remove transform ref from scene div

* Fix context menu visible behavior

* Fix connections and update util functions

* Move transform component instance to util

* fix backend test

* minor updates

* Clean up connections / fix minor bug where offset of arrow wasn't being calculated correctly

* missed connection code cleanup

* cleanup scene code a bit more

* actually fix backend test

* move eslint disable line closer to actual issue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-02 11:52:21 -08:00
..
alertGroups Alerting: Use new "Label" components for alert instance labels (#70997) 2023-07-10 13:03:35 +02:00
alertlist Alerting: Add actions extension point to alert instances table view (#77900) 2023-11-20 17:43:36 +01:00
annolist Tooltip: Ensure tooltip text is correctly announced by screenreaders (#76683) 2023-10-18 16:05:20 +01:00
barchart Chore: uPlot v1.6.28 (#79732) 2023-12-29 13:43:15 -06:00
bargauge Gauges: Fixing broken auto sizing (#79926) 2024-01-02 16:55:48 +01:00
candlestick Tooltip: Improved Timeseries and Candlestick tooltips (#75841) 2023-12-13 16:34:56 -06:00
canvas Canvas: Add Pan and Zoom (#76705) 2024-01-02 11:52:21 -08:00
dashlist DashList: Update links with time range and variables change (#77850) 2023-11-08 14:08:59 +01:00
datagrid Chore: avoid using deprecated ArrayVector (#77581) 2023-11-02 18:24:57 +02:00
debug Plugins: Move alias support to plugin json (but still hardcoded) (#75129) 2023-09-29 08:20:37 -07:00
flamegraph Tempo: Embed flame graph in span details (#77537) 2023-11-23 13:36:53 +00:00
gauge Gauges: Fixing broken auto sizing (#79926) 2024-01-02 16:55:48 +01:00
geomap Chore: Improve typings (#78940) 2023-12-05 10:26:23 +00:00
gettingstarted Spinner: Fix so that the size property is correctly applied (#77135) 2023-10-25 15:39:32 +01:00
graph Chore: Move internal GraphNG+Timeseries components into core (#77525) 2023-11-01 21:59:55 -07:00
heatmap Heatmap / Status History: Enable annotations rendering (#79483) 2023-12-19 20:24:55 +02:00
histogram Chore: type fixes (#77618) 2023-11-06 11:28:44 +00:00
live Chore: Improve typings and ignore Graph (#75742) 2023-10-06 11:48:15 +01:00
logs logs: refactor: move logsModel to the logs folder (#70989) 2023-07-04 13:27:52 +02:00
news Skeleton: Abstract out attach/animation logic (#79309) 2023-12-12 11:05:36 +00:00
nodeGraph Chore: Refactor dataviz aria-label e2e selectors to data-testid (#78938) 2023-12-17 02:10:04 +02:00
piechart Chore: Refactor dataviz aria-label e2e selectors to data-testid (#78938) 2023-12-17 02:10:04 +02:00
stat Stat: Add Percent Change Option (#78250) 2023-12-15 16:15:31 -08:00
state-timeline VizTooltip: Improved StateTimeline tooltip (#79599) 2023-12-29 17:38:40 -06:00
status-history Chore: uPlot v1.6.28 (#79732) 2023-12-29 13:43:15 -06:00
table Table: Highlight row on shared crosshair (#78392) 2023-12-13 11:33:14 +02:00
table-old Chore: Improve typings and ignore Graph (#75742) 2023-10-06 11:48:15 +01:00
text Dashboard: Reduce scope of contain: strict to TextPanel (#75499) 2023-09-27 13:14:35 -05:00
timeseries Heatmap / Status History: Enable annotations rendering (#79483) 2023-12-19 20:24:55 +02:00
traces Tempo: Embed flame graph in span details (#77537) 2023-11-23 13:36:53 +00:00
trend Tooltip: Improved Timeseries and Candlestick tooltips (#75841) 2023-12-13 16:34:56 -06:00
welcome Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
xychart XYChart: Config cleanup and refactoring (#79915) 2023-12-31 16:50:53 -08:00