You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Plotly.NET/CommonAbstractions/StyleParams.fs
+59-83Lines changed: 59 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -89,14 +89,12 @@ module StyleParam =
89
89
| False
90
90
| Reversed
91
91
92
-
static membertoString=
92
+
static memberconvert=
93
93
function
94
-
| True ->"true"
95
-
| False ->"false"
96
-
| Reversed ->"reversed"
94
+
| True ->box true
95
+
| False ->box false
96
+
| Reversed ->box "reversed"
97
97
98
-
static memberconvert= AutoRange.toString >> box
99
-
overridethis.ToString()= this |> AutoRange.toString
100
98
memberthis.Convert()= this |> AutoRange.convert
101
99
102
100
/// Sets the axis type. By default (Auto), plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question.
@@ -301,18 +299,16 @@ module StyleParam =
301
299
typeBoxPoints=
302
300
| Outliers
303
301
| All
304
-
|Suspectedoutliers
302
+
|SuspectedOutliers
305
303
| False
306
304
307
-
static membertoString=
305
+
static memberconvert=
308
306
function
309
-
| Outliers ->"outliers"
310
-
| All ->"all"
311
-
|Suspectedoutliers->"suspectedoutliers"
312
-
| False ->"false"
307
+
| Outliers ->box "outliers"
308
+
| All ->box "all"
309
+
|SuspectedOutliers-> box"suspectedoutliers"
310
+
| False ->box false
313
311
314
-
static memberconvert= BoxPoints.toString >> box
315
-
overridethis.ToString()= this |> BoxPoints.toString
316
312
memberthis.Convert()= this |> BoxPoints.convert
317
313
318
314
@@ -589,14 +585,12 @@ module StyleParam =
589
585
| OnOff
590
586
| OnOut
591
587
592
-
static membertoString=
588
+
static memberconvert=
593
589
function
594
-
| False ->"false"
595
-
| OnOff ->"onoff"
596
-
| OnOut ->"onout"
590
+
| False ->box false
591
+
| OnOff ->box "onoff"
592
+
| OnOut ->box "onout"
597
593
598
-
static memberconvert= ClickToShow.toString >> box
599
-
overridethis.ToString()= this |> ClickToShow.toString
600
594
memberthis.Convert()= this |> ClickToShow.convert
601
595
602
596
[<RequireQualifiedAccess>]
@@ -936,23 +930,21 @@ module StyleParam =
936
930
| TurnTable
937
931
| False
938
932
939
-
static membertoString=
933
+
static memberconvert=
940
934
function
941
-
| Zoom ->"zoom"
942
-
| Pan ->"pan"
943
-
| Select ->"select"
944
-
| Lasso ->"lasso"
945
-
| DrawClosedPath ->"drawclosedpath"
946
-
| DrawOpenPath ->"drawopenpath"
947
-
| DrawLine ->"drawline"
948
-
| DrawRect ->"drawrect"
949
-
| DrawCircle ->"drawcircle"
950
-
| Orbit ->"orbit"
951
-
| TurnTable ->"turntable"
952
-
| False ->"False"
935
+
| Zoom ->box "zoom"
936
+
| Pan ->box "pan"
937
+
| Select ->box "select"
938
+
| Lasso ->box "lasso"
939
+
| DrawClosedPath ->box "drawclosedpath"
940
+
| DrawOpenPath ->box "drawopenpath"
941
+
| DrawLine ->box "drawline"
942
+
| DrawRect ->box "drawrect"
943
+
| DrawCircle ->box "drawcircle"
944
+
| Orbit ->box "orbit"
945
+
| TurnTable ->box "turntable"
946
+
| False ->box false
953
947
954
-
static memberconvert= DragMode.toString >> box
955
-
overridethis.ToString()= this |> DragMode.toString
956
948
memberthis.Convert()= this |> DragMode.convert
957
949
958
950
/// Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the Delaunay triangulation.
overridethis.ToString()= this |> GeoFitBounds.toString
1202
1192
memberthis.Convert()= this |> GeoFitBounds.convert
1203
1193
1204
1194
///Used for the Layout.geo field. Sets the resolution of the base layers. The values have units of km/mm e.g. 110 corresponds to a scale ratio of 1:110,000,000.
@@ -1416,16 +1406,18 @@ module StyleParam =
1416
1406
| X
1417
1407
| Y
1418
1408
| False
1409
+
| XUnified
1410
+
| YUnified
1419
1411
1420
-
static membertoString=
1412
+
static memberconvert=
1421
1413
function
1422
-
| Closest ->"closest"
1423
-
| X ->"x"
1424
-
| Y ->"y"
1425
-
| False ->"false"
1414
+
| Closest -> box "closest"
1415
+
| X -> box "x"
1416
+
| Y -> box "y"
1417
+
| False -> box false
1418
+
| XUnified -> box "x unified"
1419
+
| YUnified -> box "y unified"
1426
1420
1427
-
static memberconvert= HoverMode.toString >> box
1428
-
overridethis.ToString()= this |> HoverMode.toString
1429
1421
memberthis.Convert()= this |> HoverMode.convert
1430
1422
1431
1423
[<RequireQualifiedAccess>]
@@ -1898,16 +1890,14 @@ module StyleParam =
1898
1890
| All
1899
1891
| AllTicks
1900
1892
1901
-
static membertoString=
1893
+
static memberconvert=
1902
1894
function
1903
-
| True ->"true"
1904
-
| Ticks ->"ticks"
1905
-
| False ->"false"
1906
-
| All ->"all"
1907
-
| AllTicks ->"allticks"
1895
+
| True ->box true
1896
+
| Ticks ->box "ticks"
1897
+
| False ->box false
1898
+
| All ->box "all"
1899
+
| AllTicks ->box "allticks"
1908
1900
1909
-
static memberconvert= Mirror.toString >> box
1910
-
overridethis.ToString()= this |> Mirror.toString
1911
1901
memberthis.Convert()= this |> Mirror.convert
1912
1902
1913
1903
// | "lines", "markers", "text" joined with a "+" OR "none".
@@ -2666,14 +2656,12 @@ module StyleParam =
2666
2656
| Best
2667
2657
| Fast
2668
2658
2669
-
static membertoString=
2659
+
static memberconvert=
2670
2660
function
2671
-
| False ->"false"
2672
-
| Best ->"best"
2673
-
| Fast ->"fast"
2661
+
| False ->box false
2662
+
| Best ->box "best"
2663
+
| Fast ->box "fast"
2674
2664
2675
-
static memberconvert= SmoothAlg.toString >> box
2676
-
overridethis.ToString()= this |> SmoothAlg.toString
2677
2665
memberthis.Convert()= this |> SmoothAlg.convert
2678
2666
2679
2667
/// Determines the drawing mode for the spike line
0 commit comments