File tree Expand file tree Collapse file tree 2 files changed +63
-1
lines changed
Layout/ObjectAbstractions/Ternary Expand file tree Collapse file tree 2 files changed +63
-1
lines changed Original file line number Diff line number Diff line change 1+ namespace Plotly.NET.LayoutObjects
2+
3+ open Plotly.NET
4+ open DynamicObj
5+ open System
6+ open System.Runtime .InteropServices
7+
8+ type Ternary () =
9+ inherit DynamicObj ()
10+
11+ /// <summary>
12+ /// Initializes a ternary object
13+ /// </summary>
14+ /// <param name="AAxis">Sets the ternary A Axis</param>
15+ /// <param name="BAxis">Sets the ternary B Axis</param>
16+ /// <param name="CAxis">Sets the ternary C Axis</param>
17+ /// <param name="Domain">Sets the ternary domain</param>
18+ /// <param name="Sum">The number each triplet should sum to, and the maximum range of each axis</param>
19+ static member init
20+ (
21+ ? AAxis : LinearAxis ,
22+ ? BAxis : LinearAxis ,
23+ ? CAxis : LinearAxis ,
24+ ? Domain : Domain ,
25+ ? Sum : #IConvertible
26+ ) =
27+ Ternary()
28+ |> Ternary.style
29+ (
30+ ?AAxis = AAxis ,
31+ ?BAxis = BAxis ,
32+ ?CAxis = CAxis ,
33+ ?Domain = Domain,
34+ ?Sum = Sum
35+ )
36+
37+ /// <summary>
38+ /// Creates a function that applies the given style parameters to a Ternary object.
39+ /// </summary>
40+ /// <param name="AAxis">Sets the ternary A Axis</param>
41+ /// <param name="BAxis">Sets the ternary B Axis</param>
42+ /// <param name="CAxis">Sets the ternary C Axis</param>
43+ /// <param name="Domain">Sets the ternary domain</param>
44+ /// <param name="Sum">The number each triplet should sum to, and the maximum range of each axis</param>
45+ static member style
46+ (
47+ ? AAxis : LinearAxis ,
48+ ? BAxis : LinearAxis ,
49+ ? CAxis : LinearAxis ,
50+ ? Domain : Domain ,
51+ ? Sum : #IConvertible
52+ ) =
53+ ( fun ( ternary : Ternary ) ->
54+
55+ AAxis |> DynObj.setValueOpt ternary " aaxis"
56+ BAxis |> DynObj.setValueOpt ternary " baxis"
57+ CAxis |> DynObj.setValueOpt ternary " caxis"
58+ Domain |> DynObj.setValueOpt ternary " domain"
59+ Sum |> DynObj.setValueOpt ternary " sum"
60+
61+ ternary
62+ )
Original file line number Diff line number Diff line change 6666 <Compile Include =" Layout\ObjectAbstractions\Map\MapboxLayerSymbol.fs" />
6767 <Compile Include =" Layout\ObjectAbstractions\Map\MapboxLayer.fs" />
6868 <Compile Include =" Layout\ObjectAbstractions\Map\Mapbox.fs" />
69+ <Compile Include =" Layout\ObjectAbstractions\Ternary\Ternary.fs" />
6970 <Compile Include =" Layout\ObjectAbstractions\3D\Camera.fs" />
7071 <Compile Include =" Layout\ObjectAbstractions\3D\AspectRatio.fs" />
7172 <Compile Include =" Layout\ObjectAbstractions\3D\Scene.fs" />
130131 <ItemGroup >
131132 <Folder Include =" DisplayOptions\ObjectAbstractions\" />
132133 <Folder Include =" Layout\ObjectAbstractions\Carpet\" />
133- <Folder Include =" Layout\ObjectAbstractions\Ternary\" />
134134 </ItemGroup >
135135</Project >
You can’t perform that action at this time.
0 commit comments