mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-31 14:25:16 +00:00
Some modifications to the OxyPlot library to simplify the use in the Open Hardware Monitor.
This commit is contained in:
17
External/OxyPlot/OxyPlot.WindowsForms/Plot.cs
vendored
17
External/OxyPlot/OxyPlot.WindowsForms/Plot.cs
vendored
@@ -841,24 +841,23 @@ namespace OxyPlot.WindowsForms
|
||||
bool xb2 = e.Button == MouseButtons.XButton2;
|
||||
|
||||
// MMB / control RMB / control+alt LMB
|
||||
if (mmb || (control && rmb) || (control && alt && lmb))
|
||||
if (mmb || (control && lmb) || (control && alt && rmb))
|
||||
{
|
||||
return new ZoomRectangleManipulator(this);
|
||||
}
|
||||
|
||||
// Right mouse button / alt+left mouse button
|
||||
if (lmb || (rmb && alt))
|
||||
{
|
||||
if (e.Clicks == 2)
|
||||
{
|
||||
return new ResetManipulator(this);
|
||||
}
|
||||
|
||||
return new ZoomRectangleManipulator(this);
|
||||
}
|
||||
|
||||
// Right mouse button / alt+left mouse button
|
||||
if (rmb || (lmb && alt))
|
||||
{
|
||||
return new PanManipulator(this);
|
||||
}
|
||||
|
||||
// Left mouse button
|
||||
if (lmb)
|
||||
if (rmb)
|
||||
{
|
||||
return new TrackerManipulator(this) { Snap = !control, PointsOnly = shift };
|
||||
}
|
||||
|
4
External/OxyPlot/OxyPlot/Axes/Axis.cs
vendored
4
External/OxyPlot/OxyPlot/Axes/Axis.cs
vendored
@@ -703,13 +703,13 @@ namespace OxyPlot.Axes
|
||||
/// Gets or sets the current view's maximum. This value is used when the user zooms or pans.
|
||||
/// </summary>
|
||||
/// <value> The view maximum. </value>
|
||||
protected double ViewMaximum { get; set; }
|
||||
public double ViewMaximum { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the current view's minimum. This value is used when the user zooms or pans.
|
||||
/// </summary>
|
||||
/// <value> The view minimum. </value>
|
||||
protected double ViewMinimum { get; set; }
|
||||
public double ViewMinimum { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Transforms the specified point to screen coordinates.
|
||||
|
Reference in New Issue
Block a user