-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plotlyjs v2.26: add new autorange options
- Add new options to the AutoRange StyleParam - Add `maxallowed` and `minallowed` to cartesian and radial axes - add new `AutoRangeOptions` object and respective settings to cartesian and radial axes - fix dependencies of tests projects: Expecto v10, F# update to 7 made tests undiscoverable
- Loading branch information
Showing
12 changed files
with
481 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
namespace Plotly.NET | ||
|
||
open Plotly.NET | ||
open DynamicObj | ||
open System | ||
open System.Runtime.InteropServices | ||
|
||
type AutoRangeOptions() = | ||
inherit DynamicObj() | ||
|
||
/// <summary> | ||
/// Returns a new AutoRangeOptions object with the given styling. | ||
/// </summary> | ||
/// <param name="ClipMax">Clip autorange maximum if it goes beyond this value. Has no effect when `autorangeoptions.maxallowed` is provided.</param> | ||
/// <param name="ClipMin">Clip autorange minimum if it goes beyond this value. Has no effect when `autorangeoptions.minallowed` is provided.</param> | ||
/// <param name="Include">Ensure this value is included in autorange.</param> | ||
/// <param name="MaxAllowed">Use this value exactly as autorange maximum.</param> | ||
/// <param name="MinAllowed">Use this value exactly as autorange minimum.</param> | ||
static member init | ||
( | ||
[<Optional; DefaultParameterValue(null)>] ?ClipMax: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?ClipMin: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?Include: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible | ||
) = | ||
AutoRangeOptions() | ||
|> AutoRangeOptions.style ( | ||
?ClipMax = ClipMax, | ||
?ClipMin = ClipMin, | ||
?Include = Include, | ||
?MaxAllowed = MaxAllowed, | ||
?MinAllowed = MinAllowed | ||
) | ||
|
||
/// <summary> | ||
/// Returns a function that applies the given styles to a AutoRangeOptions object. | ||
/// </summary> | ||
/// <param name="ClipMax">Clip autorange maximum if it goes beyond this value. Has no effect when `autorangeoptions.maxallowed` is provided.</param> | ||
/// <param name="ClipMin">Clip autorange minimum if it goes beyond this value. Has no effect when `autorangeoptions.minallowed` is provided.</param> | ||
/// <param name="Include">Ensure this value is included in autorange.</param> | ||
/// <param name="MaxAllowed">Use this value exactly as autorange maximum.</param> | ||
/// <param name="MinAllowed">Use this value exactly as autorange minimum.</param> | ||
static member style | ||
( | ||
[<Optional; DefaultParameterValue(null)>] ?ClipMax: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?ClipMin: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?Include: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?MaxAllowed: #IConvertible, | ||
[<Optional; DefaultParameterValue(null)>] ?MinAllowed: #IConvertible | ||
|
||
) = | ||
(fun (autoRangeOptions: AutoRangeOptions) -> | ||
|
||
ClipMax |> DynObj.setValueOpt autoRangeOptions "clipmax" | ||
ClipMin |> DynObj.setValueOpt autoRangeOptions "clipmin" | ||
Include |> DynObj.setValueOpt autoRangeOptions "include" | ||
MaxAllowed |> DynObj.setValueOpt autoRangeOptions "maxallowed" | ||
MinAllowed |> DynObj.setValueOpt autoRangeOptions "minallowed" | ||
|
||
autoRangeOptions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.