@@ -85,14 +85,28 @@ type CameraUp() =
85
85
86
86
cameraUp
87
87
88
+ type CameraProjection () =
89
+ inherit DynamicObj()
90
+
91
+ static member init ( [<Optional; DefaultParameterValue( null ) >] ? ProjectionType : StyleParam.CameraProjectionType ) =
92
+ CameraProjection() |> CameraProjection.style ( ?ProjectionType = ProjectionType)
93
+
94
+ static member style ( [<Optional; DefaultParameterValue( null ) >] ? ProjectionType : StyleParam.CameraProjectionType ) =
95
+
96
+ fun ( cameraProjection : CameraProjection ) ->
97
+
98
+ ProjectionType |> DynObj.setValueOptBy cameraProjection " type" StyleParam.CameraProjectionType.convert
99
+
100
+ cameraProjection
101
+
88
102
type Camera () =
89
103
inherit DynamicObj()
90
104
91
105
static member init
92
106
(
93
107
[<Optional; DefaultParameterValue( null ) >] ? Center : CameraCenter ,
94
108
[<Optional; DefaultParameterValue( null ) >] ? Eye : CameraEye ,
95
- [<Optional; DefaultParameterValue( null ) >] ? Projection : StyleParam. CameraProjection,
109
+ [<Optional; DefaultParameterValue( null ) >] ? Projection : CameraProjection ,
96
110
[<Optional; DefaultParameterValue( null ) >] ? Up : CameraUp
97
111
) =
98
112
Camera() |> Camera.style ( ?Center = Center, ?Eye = Eye, ?Projection = Projection, ?Up = Up)
@@ -101,15 +115,15 @@ type Camera() =
101
115
(
102
116
[<Optional; DefaultParameterValue( null ) >] ? Center : CameraCenter ,
103
117
[<Optional; DefaultParameterValue( null ) >] ? Eye : CameraEye ,
104
- [<Optional; DefaultParameterValue( null ) >] ? Projection : StyleParam. CameraProjection,
118
+ [<Optional; DefaultParameterValue( null ) >] ? Projection : CameraProjection ,
105
119
[<Optional; DefaultParameterValue( null ) >] ? Up : CameraUp
106
120
) =
107
121
108
122
fun ( camera : Camera ) ->
109
123
110
124
Center |> DynObj.setValueOpt camera " center"
111
125
Eye |> DynObj.setValueOpt camera " eye"
112
- Projection |> DynObj.setValueOptBy camera " projection" StyleParam.CameraProjection.convert
126
+ Projection |> DynObj.setValueOpt camera " projection"
113
127
Up |> DynObj.setValueOpt camera " up"
114
128
115
129
camera
0 commit comments