@@ -562,7 +562,7 @@ type Layout() =
562562 | StyleParam.SubPlotId.YAxis _ ->
563563 let axis ' =
564564 match Layout.tryGetLinearAxisById id layout with
565- | Some a -> ( DynObj.combine a axis) :?> LinearAxis
565+ | Some a -> DynObj.combine a axis
566566 | None -> axis
567567 layout
568568 |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) axis'
@@ -639,7 +639,7 @@ type Layout() =
639639 ( fun ( layout : Layout ) ->
640640 let scene ' =
641641 match Layout.tryGetSceneById id layout with
642- | Some a -> ( DynObj.combine a scene) :?> Scene
642+ | Some a -> DynObj.combine a scene
643643 | None -> scene
644644 layout
645645 |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) scene'
@@ -695,7 +695,7 @@ type Layout() =
695695 ( fun ( layout : Layout ) ->
696696 let geo ' =
697697 match Layout.tryGetGeoById id layout with
698- | Some a -> ( DynObj.combine a geo) :?> Geo
698+ | Some a -> DynObj.combine a geo
699699 | None -> geo
700700
701701 layout|> DynObj.withProperty ( StyleParam.SubPlotId.toString id) geo'
@@ -750,7 +750,7 @@ type Layout() =
750750 ( fun ( layout : Layout ) ->
751751 let mapbox ' =
752752 match Layout.tryGetMapboxById id layout with
753- | Some a -> ( DynObj.combine a mapbox) :?> Mapbox
753+ | Some a -> DynObj.combine a mapbox
754754 | None -> mapbox
755755
756756 layout |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) mapbox'
@@ -806,7 +806,7 @@ type Layout() =
806806
807807 let polar ' =
808808 match layout |> Layout.tryGetPolarById ( id) with
809- | Some a -> ( DynObj.combine a polar) :?> Polar
809+ | Some a -> DynObj.combine a polar
810810 | None -> polar
811811
812812 layout |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) polar'
@@ -861,8 +861,8 @@ type Layout() =
861861 ( fun ( layout : Layout ) ->
862862
863863 let smith ' =
864- match layout |> Layout.tryGetPolarById ( id) with
865- | Some a -> ( DynObj.combine a smith) :?> Smith
864+ match layout |> Layout.tryGetSmithById ( id) with
865+ | Some a -> DynObj.combine a smith
866866 | None -> smith
867867
868868 layout |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) smith'
@@ -918,7 +918,7 @@ type Layout() =
918918
919919 let colorAxis ' =
920920 match layout |> Layout.tryGetColorAxisById ( id) with
921- | Some a -> ( DynObj.combine a colorAxis) :?> ColorAxis
921+ | Some a -> DynObj.combine a colorAxis
922922 | None -> colorAxis
923923
924924 layout |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) colorAxis'
@@ -974,7 +974,7 @@ type Layout() =
974974
975975 let ternary ' =
976976 match layout |> Layout.tryGetTernaryById ( id) with
977- | Some a -> ( DynObj.combine a ternary) :?> Ternary
977+ | Some a -> DynObj.combine a ternary
978978 | None -> ternary
979979
980980 layout |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) ternary'
@@ -1038,7 +1038,7 @@ type Layout() =
10381038 static member updateLayoutGrid ( layoutGrid : LayoutGrid ) =
10391039 ( fun ( layout : Layout ) ->
10401040 let combined =
1041- ( DynObj.combine ( layout |> Layout.getLayoutGrid) layoutGrid) :?> LayoutGrid
1041+ DynObj.combine ( layout |> Layout.getLayoutGrid) layoutGrid
10421042
10431043 layout |> Layout.setLayoutGrid combined)
10441044
@@ -1076,7 +1076,7 @@ type Layout() =
10761076
10771077 let legend ' =
10781078 match Layout.tryGetLegendById id layout with
1079- | Some l -> ( DynObj.combine l legend) :?> Legend
1079+ | Some l -> DynObj.combine l legend
10801080 | None -> legend
10811081
10821082 layout |> DynObj.withProperty ( StyleParam.SubPlotId.toString id) legend'
0 commit comments