Skip to content

Commit 7121b4d

Browse files
committed
apply formatting
1 parent 9491ce7 commit 7121b4d

File tree

6 files changed

+14
-25
lines changed

6 files changed

+14
-25
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"fantomas-tool": {
6-
"version": "4.7.5",
6+
"version": "4.7.8",
77
"commands": [
88
"fantomas"
99
]

src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ type PuppeteerSharpRenderer() =
136136
(this :> IGenericChartRenderer)
137137
.RenderJPGAsync(width, height, gChart)
138138

139-
return rendered |> getBytesFromBase64String |> fun base64 -> File.WriteAllBytes($"{path}.jpg", base64)
139+
return rendered |> getBytesFromBase64String |> (fun base64 -> File.WriteAllBytes($"{path}.jpg", base64))
140140
}
141141

142142
member this.SaveJPG(path: string, width: int, height: int, gChart: GenericChart.GenericChart) =
@@ -162,7 +162,7 @@ type PuppeteerSharpRenderer() =
162162
(this :> IGenericChartRenderer)
163163
.RenderPNGAsync(width, height, gChart)
164164

165-
return rendered |> getBytesFromBase64String |> fun base64 -> File.WriteAllBytes($"{path}.png", base64)
165+
return rendered |> getBytesFromBase64String |> (fun base64 -> File.WriteAllBytes($"{path}.png", base64))
166166
}
167167

168168
member this.SavePNG(path: string, width: int, height: int, gChart: GenericChart.GenericChart) =

src/Plotly.NET.Interactive/Extension.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
namespace Plotly.NET.Interactive
2+
23
open System
34
open System.Threading.Tasks
45
open Microsoft.DotNet.Interactive
@@ -12,7 +13,7 @@ type FormatterKernelExtension() =
1213
member _.OnLoadAsync _ =
1314

1415
Formatter.Register<GenericChart>(
15-
Action<_, _> (fun chart (writer: IO.TextWriter) -> writer.Write(Formatters.toInteractiveHTML chart)),
16+
Action<_, _>(fun chart (writer: IO.TextWriter) -> writer.Write(Formatters.toInteractiveHTML chart)),
1617
"text/html"
1718
)
1819

src/Plotly.NET.Interactive/Formatters.fs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ open Plotly.NET
44
open Plotly.NET.GenericChart
55

66
module Formatters =
7-
8-
let interactiveDoc = """
7+
8+
let interactiveDoc =
9+
"""
910
<div>
1011
[CHART]
1112
[DESCRIPTION]
@@ -17,4 +18,4 @@ module Formatters =
1718
let chartMarkup = toChartHTML gChart
1819
let displayOpts = getDisplayOptions gChart
1920

20-
interactiveDoc.Replace("[CHART]", chartMarkup) |> DisplayOptions.replaceHtmlPlaceholders displayOpts
21+
interactiveDoc.Replace("[CHART]", chartMarkup) |> DisplayOptions.replaceHtmlPlaceholders displayOpts

src/Plotly.NET/CommonAbstractions/Colors.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ type ARGB =
134134
sprintf "{Alpha: %i Red: %i Green: %i Blue: %i}" a r g b
135135

136136
static member fromKeyword(c: ColorKeyword) =
137-
c |> ColorKeyword.toRGB |> fun (r, g, b) -> ARGB.fromRGB r g b
137+
c |> ColorKeyword.toRGB |> (fun (r, g, b) -> ARGB.fromRGB r g b)
138138

139139
and ARGBConverter() =
140140
inherit JsonConverter()

src/Plotly.NET/Traces/Trace3D.fs

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,12 @@ open System.Runtime.InteropServices
1010
///
1111
/// These trace types are compatible with 3D subplots via the scene attribute, which contains special camera controls:
1212
///
13-
///- scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
13+
/// - scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
1414
///
15-
///- surface and mesh: 3d surface trace types
15+
/// - surface and mesh: 3d surface trace types
1616
///
17-
///- cone and streamtube: 3d vector field trace types
18-
///
19-
///- volume and isosurface: 3d volume trace types
20-
///- scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
21-
///- surface and mesh: 3d surface trace types
22-
///- cone and streamtube: 3d vector field trace types
23-
///- volume and isosurface: 3d volume trace types
24-
///- scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
25-
///- surface and mesh: 3d surface trace types
26-
///- cone and streamtube: 3d vector field trace types
27-
///- volume and isosurface: 3d volume trace types
28-
///- scatter3d, which can be used to draw individual markers, 3d bubble charts and lines and curves
29-
///- surface and mesh: 3d surface trace types
30-
///- cone and streamtube: 3d vector field trace types
31-
///- volume and isosurface: 3d volume trace types
17+
/// - cone and streamtube: 3d vector field trace types
18+
3219

3320
type Trace3D(traceTypeName) =
3421
inherit Trace(traceTypeName)

0 commit comments

Comments
 (0)