Skip to content

Commit 9addc31

Browse files
committed
Fix: add missing style params again
1 parent 4bc8a45 commit 9addc31

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/FSharp.Plotly/StyleParams.fs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,30 @@ module StyleParam =
5353
|LineOnly -> 8
5454
static member convert = ArrowHead.toEnum >> box
5555

56+
///
57+
[<RequireQualifiedAccess>]
58+
type AxisAnchorId =
59+
| X of int | Y of int | Z of int | Free
60+
61+
static member toString = function
62+
| X id -> if id < 2 then "x" else sprintf "x%i" id
63+
| Y id -> if id < 2 then "y" else sprintf "y%i" id
64+
| Z id -> if id < 2 then "z" else sprintf "z%i" id
65+
| Free -> "free"
66+
67+
static member convert = AxisAnchorId.toString >> box
68+
69+
[<RequireQualifiedAccess>]
70+
type AxisId =
71+
| X of int | Y of int | Z of int
72+
73+
static member toString = function
74+
| X id -> if id < 2 then "xaxis" else sprintf "xaxis%i" id
75+
| Y id -> if id < 2 then "yaxis" else sprintf "yaxis%i" id
76+
| Z id -> if id < 2 then "zaxis" else sprintf "zaxis%i" id
77+
78+
static member convert = AxisId.toString >> box
79+
5680
//--------------------------
5781
// #B#
5882
//--------------------------

0 commit comments

Comments
 (0)