-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathCaps.fs
More file actions
55 lines (43 loc) · 1.12 KB
/
Caps.fs
File metadata and controls
55 lines (43 loc) · 1.12 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
namespace Plotly.NET.TraceObjects
open Plotly.NET
open Plotly.NET.LayoutObjects
open DynamicObj
open System
open System.Runtime.InteropServices
type CapFill() =
inherit DynamicObj()
static member init
(
?Fill: float,
?Show: bool
) =
CapFill() |> CapFill.style (?Fill = Fill, ?Show = Show)
static member style
(
?Fill: float,
?Show: bool
) =
fun (capFill: CapFill) ->
capFill
|> DynObj.withOptionalProperty "fill" Fill
|> DynObj.withOptionalProperty "show" Show
type Caps() =
inherit DynamicObj()
static member init
(
?X: CapFill,
?Y: CapFill,
?Z: CapFill
) =
Caps() |> Caps.style (?X = X, ?Y = Y, ?Z = Z)
static member style
(
?X: CapFill,
?Y: CapFill,
?Z: CapFill
) =
fun (caps: Caps) ->
caps
|> DynObj.withOptionalProperty "x" X
|> DynObj.withOptionalProperty "y" Y
|> DynObj.withOptionalProperty "z" Z