Skip to content

Commit 6172c40

Browse files
committed
Fix #377
1 parent 364e1ad commit 6172c40

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Diff for: src/Plotly.NET.CSharp/Plotly.NET.CSharp.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<ItemGroup>
3939
<None Include="..\..\docs\img\logo.png" Pack="true" PackagePath="\" />
40-
<ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[4.0.0]" />
40+
<ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[4.0.0, 5.0.0)" />
4141
</ItemGroup>
4242
<Target Name="UseExplicitPackageVersions" BeforeTargets="GenerateNuspec">
4343
<ItemGroup>

Diff for: src/Plotly.NET.ImageExport/Plotly.NET.ImageExport.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
</ItemGroup>
3636

3737
<ItemGroup>
38-
<ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[4.0.0]" />
38+
<ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[4.0.0, 5.0.0)" />
3939
<PackageReference Include="DynamicObj" Version="2.0.0" />
4040
<PackageReference Include="PuppeteerSharp" Version="9.0.2" />
4141
</ItemGroup>

Diff for: src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type PuppeteerSharpRenderer() =
3636
DynObj.setValue l "width" "100%"
3737
DynObj.setValue l "height" "100%"
3838
l)
39-
|> GenericChart.toChartHTML
39+
|> GenericChart.toEmbeddedHTML
4040
|> fun html -> html.Replace("width: 600px; height: 600px;", "width: 100%; height: 100%;")
4141

4242
/// adapted from the original C# implementation by @ilyalatt : https://github.com/ilyalatt/Plotly.NET.PuppeteerRenderer

Diff for: src/Plotly.NET.Interactive/Plotly.NET.Interactive.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</ItemGroup>
5050

5151
<ItemGroup>
52-
<ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[4.0.0]" />
52+
<ProjectReference Include="..\Plotly.NET\Plotly.NET.fsproj" PackageVersion="[4.0.0, 5.0.0)" />
5353
<PackageReference Include="Microsoft.DotNet.Interactive" Version="1.0.0-beta.23102.2" />
5454
<PackageReference Include="Microsoft.DotNet.Interactive.Formatting" Version="1.0.0-beta.23102.2" />
5555
</ItemGroup>

Diff for: tests/Plotly.NET.ImageExport.Tests/ImageExport.fs

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ let ``Image export tests`` =
4848
testBase64PNG
4949
"Invalid base64 string for Chart.toBase64PNGStringAsync"
5050
}
51-
ptestCase "Chart.toBase64JPGString terminates" <| fun () ->
51+
testCase "Chart.toBase64JPGString terminates" <| fun () ->
5252
let actual = Chart.Point([1.,1.]) |> Chart.toBase64JPGString()
5353
Expect.isTrue (actual.Length > 100) ""
54-
ptestCase "Chart.toBase64PNGString terminates" <| fun () ->
54+
testCase "Chart.toBase64PNGString terminates" <| fun () ->
5555
let actual = Chart.Point([1.,1.]) |> Chart.toBase64PNGString()
5656
Expect.isTrue (actual.Length > 100) ""
57-
ptestCase "Chart.toSVGString terminates" <| fun () ->
57+
testCase "Chart.toSVGString terminates" <| fun () ->
5858
let actual = Chart.Point([1.,1.]) |> Chart.toSVGString()
5959
Expect.isTrue (actual.Length > 100) ""
6060
]

0 commit comments

Comments
 (0)