forked from plotly/Plotly.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBox.fs
More file actions
48 lines (37 loc) · 1.14 KB
/
Box.fs
File metadata and controls
48 lines (37 loc) · 1.14 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
namespace Plotly.NET
open System
/// Box type inherits from dynamic object (parent violin)
type Box () =
inherit DynamicObj ()
/// Initialized Line object
static member init
(
?Visible: bool,
?Width: float,
?FillColor: string,
?Line: Line
) =
Box ()
|> Box.style
(
?Visible = Visible,
?Width = Width,
?FillColor = FillColor,
?Line = Line
)
// Applies the styles to Line()
static member style
(
?Visible: bool,
?Width: float,
?FillColor: string,
?Line: Line
) =
(fun (box:Box) ->
Visible |> DynObj.setValueOpt box "visible"
Width |> DynObj.setValueOpt box "width"
FillColor |> DynObj.setValueOpt box "fillColor"
Line |> DynObj.setValueOpt box "line"
// out ->
box
)