1+ namespace Plotly.NET.LayoutObjects
2+
3+ open Plotly.NET
4+ open DynamicObj
5+ open System
6+ open System.Runtime .InteropServices
7+
8+ /// Dimensions type inherits from dynamic object
9+ type LayoutImage () =
10+ inherit DynamicObj ()
11+
12+ static member init
13+ (
14+ ? Layer : StyleParam.Layer ,
15+ ? Name : string ,
16+ ? Opacity : float ,
17+ ? SizeX : int ,
18+ ? SizeY : int ,
19+ ? Sizing : StyleParam.LayoutImageSizing ,
20+ ? Source : string ,
21+ ? TemplateItemname : string ,
22+ ? Visible : bool ,
23+ ? X : #IConvertible ,
24+ ? XAnchor : StyleParam.XAnchorPosition ,
25+ ? XRef : string ,
26+ ? Y : #IConvertible ,
27+ ? YAnchor : StyleParam.YAnchorPosition ,
28+ ? YRef : string
29+ ) =
30+ LayoutImage ()
31+ |> LayoutImage.style
32+ (
33+ ?Layer = Layer ,
34+ ?Name = Name ,
35+ ?Opacity = Opacity ,
36+ ?SizeX = SizeX ,
37+ ?SizeY = SizeY ,
38+ ?Sizing = Sizing ,
39+ ?Source = Source ,
40+ ?TemplateItemname = TemplateItemname,
41+ ?Visible = Visible ,
42+ ?X = X ,
43+ ?XAnchor = XAnchor ,
44+ ?XRef = XRef ,
45+ ?Y = Y ,
46+ ?YAnchor = YAnchor ,
47+ ?YRef = YRef
48+ )
49+
50+ static member style
51+ (
52+ ? Layer : StyleParam.Layer ,
53+ ? Name : string ,
54+ ? Opacity : float ,
55+ ? SizeX : int ,
56+ ? SizeY : int ,
57+ ? Sizing : StyleParam.LayoutImageSizing ,
58+ ? Source : string ,
59+ ? TemplateItemname : string ,
60+ ? Visible : bool ,
61+ ? X : #IConvertible ,
62+ ? XAnchor : StyleParam.XAnchorPosition ,
63+ ? XRef : string ,
64+ ? Y : #IConvertible ,
65+ ? YAnchor : StyleParam.YAnchorPosition ,
66+ ? YRef : string
67+ ) =
68+ ( fun ( layoutImage : LayoutImage ) ->
69+
70+ Layer |> DynObj.setValueOptBy layoutImage " layer" StyleParam.Layer.convert
71+ Name |> DynObj.setValueOpt layoutImage " name"
72+ Opacity |> DynObj.setValueOpt layoutImage " opacity"
73+ SizeX |> DynObj.setValueOpt layoutImage " sizex"
74+ SizeY |> DynObj.setValueOpt layoutImage " sizey"
75+ Sizing |> DynObj.setValueOptBy layoutImage " sizing" StyleParam.LayoutImageSizing.convert
76+ Source |> DynObj.setValueOpt layoutImage " source"
77+ TemplateItemname |> DynObj.setValueOpt layoutImage " templateitemname"
78+ Visible |> DynObj.setValueOpt layoutImage " visible"
79+ X |> DynObj.setValueOpt layoutImage " x"
80+ XAnchor |> DynObj.setValueOptBy layoutImage " xanchor" StyleParam.XAnchorPosition.convert
81+ XRef |> DynObj.setValueOpt layoutImage " xref"
82+ Y |> DynObj.setValueOpt layoutImage " y"
83+ YAnchor |> DynObj.setValueOptBy layoutImage " yanchor" StyleParam.YAnchorPosition.convert
84+ YRef |> DynObj.setValueOpt layoutImage " yref"
85+
86+ layoutImage
87+ )
0 commit comments