-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathGradient.fs
More file actions
31 lines (25 loc) · 826 Bytes
/
Gradient.fs
File metadata and controls
31 lines (25 loc) · 826 Bytes
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
namespace Plotly.NET.TraceObjects
open Plotly.NET
open Plotly.NET.LayoutObjects
open DynamicObj
open System
open System.Runtime.InteropServices
type Gradient() =
inherit DynamicObj()
static member init
(
?Color: Color,
?Type: StyleParam.GradientType,
?MultiTypes: seq<StyleParam.GradientType>
) =
Gradient() |> Gradient.style (?Color = Color, ?Type = Type, ?MultiTypes = MultiTypes)
static member style
(
?Color: Color,
?Type: StyleParam.GradientType,
?MultiTypes: seq<StyleParam.GradientType>
) =
fun (gradient: Gradient) ->
gradient
|> DynObj.withOptionalSingleOrMultiProperty "type" (Type, MultiTypes)
|> DynObj.setOptionalProperty "color" Color