Skip to content

Commit 368b8c1

Browse files
committed
updated SVG.NET
1 parent be8b760 commit 368b8c1

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

SvgFileType/SvgFileType.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ private static void RenderElements(IReadOnlyCollection<SvgVisualElement> element
333333
// Turn off visibility of all elements
334334
foreach (var elemntToChange in elements)
335335
{
336-
elemntToChange.Visible = false;
336+
elemntToChange.Visibility = "hidden";
337337
}
338338

339339
var itemShouldBeIgnored = false;
@@ -344,7 +344,7 @@ private static void RenderElements(IReadOnlyCollection<SvgVisualElement> element
344344
{
345345
if (toCheck is SvgVisualElement visual)
346346
{
347-
visual.Visible = true;
347+
visual.Visibility = "visible";
348348
// Check, maybe parent group was initially hidden
349349
if (!importHiddenLayers)
350350
{
@@ -386,7 +386,7 @@ private static void RenderElement(SvgElement element, Document outputDocument, b
386386
if (importHiddenLayers)
387387
{
388388
// Set visible to render image and then item can be hidden.
389-
visualElement.Visible = true;
389+
visualElement.Visibility = "visible";
390390

391391
}
392392
else if (!visible)
@@ -542,7 +542,7 @@ private static IEnumerable<SvgElement> PrepareFlatElements(SvgElementCollection
542542
// Fix problem that SVG visual element lib style "display:none" is not recognized as visible state.
543543
if (visual.Visible && (visual.Display == "none" || visual.Display == "hidden"))
544544
{
545-
visual.Visible = false;
545+
visual.Visibility = "hidden";
546546
visual.Display = null;
547547
}
548548

SvgFileType/SvgFileTypePlugin.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<OutputType>Library</OutputType>
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>SvgFileTypePlugin</RootNamespace>
11-
<AssemblyName>SvgFileType</AssemblyName>
11+
<AssemblyName>SvgFileTypePlugin</AssemblyName>
1212
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
@@ -34,6 +34,9 @@
3434
<SignAssembly>false</SignAssembly>
3535
</PropertyGroup>
3636
<ItemGroup>
37+
<Reference Include="Fizzler, Version=1.2.0.0, Culture=neutral, PublicKeyToken=4ebff4844e382110, processorArchitecture=MSIL">
38+
<HintPath>..\packages\Fizzler.1.2.0\lib\netstandard2.0\Fizzler.dll</HintPath>
39+
</Reference>
3740
<Reference Include="PaintDotNet.Base">
3841
<HintPath>C:\Program Files\paint.net\PaintDotNet.Base.dll</HintPath>
3942
</Reference>
@@ -43,12 +46,13 @@
4346
<Reference Include="PaintDotNet.Data">
4447
<HintPath>C:\Program Files\paint.net\PaintDotNet.Data.dll</HintPath>
4548
</Reference>
46-
<Reference Include="Svg, Version=3.0.0.0, Culture=neutral, PublicKeyToken=12a0bac221edeae2, processorArchitecture=MSIL">
47-
<HintPath>..\packages\Svg.3.0.49\lib\net452\Svg.dll</HintPath>
49+
<Reference Include="Svg, Version=3.1.0.0, Culture=neutral, PublicKeyToken=12a0bac221edeae2, processorArchitecture=MSIL">
50+
<HintPath>..\packages\Svg.3.1.1\lib\net452\Svg.dll</HintPath>
4851
</Reference>
4952
<Reference Include="System" />
5053
<Reference Include="System.Core" />
5154
<Reference Include="System.Drawing" />
55+
<Reference Include="System.Web" />
5256
<Reference Include="System.Windows.Forms" />
5357
<Reference Include="System.Xml" />
5458
</ItemGroup>

SvgFileType/packages.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Svg" version="3.0.49" targetFramework="net47" />
3+
<package id="Fizzler" version="1.2.0" targetFramework="net47" />
4+
<package id="Svg" version="3.1.1" targetFramework="net47" />
45
</packages>

0 commit comments

Comments
 (0)