-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathAutoRangeOptions.fs
More file actions
61 lines (55 loc) · 2.57 KB
/
AutoRangeOptions.fs
File metadata and controls
61 lines (55 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
(
?ClipMax: #IConvertible,
?ClipMin: #IConvertible,
?Include: #IConvertible,
?MaxAllowed: #IConvertible,
?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
(
?ClipMax: #IConvertible,
?ClipMin: #IConvertible,
?Include: #IConvertible,
?MaxAllowed: #IConvertible,
?MinAllowed: #IConvertible
) =
(fun (autoRangeOptions: AutoRangeOptions) ->
autoRangeOptions
|> DynObj.withOptionalProperty "clipmax" ClipMax
|> DynObj.withOptionalProperty "clipmin" ClipMin
|> DynObj.withOptionalProperty "include" Include
|> DynObj.withOptionalProperty "maxallowed" MaxAllowed
|> DynObj.withOptionalProperty "minallowed" MinAllowed
)