Browse Source

Merge pull request #219 from PixiEditor/pixiparser-update

Update PixiParser to 1.2.0.1
CPKreuz 4 years ago
parent
commit
dde4fc9cca
2 changed files with 7 additions and 8 deletions
  1. 6 7
      PixiEditor/Helpers/Extensions/ParserHelpers.cs
  2. 1 1
      PixiEditor/PixiEditor.csproj

+ 6 - 7
PixiEditor/Helpers/Extensions/ParserHelpers.cs

@@ -1,8 +1,7 @@
 using PixiEditor.Models.DataHolders;
 using PixiEditor.Models.DataHolders;
 using PixiEditor.Models.ImageManipulation;
 using PixiEditor.Models.ImageManipulation;
 using PixiEditor.Models.Layers;
 using PixiEditor.Models.Layers;
-using PixiEditor.Parser;
-using PixiEditor.Parser.Models;
+using PixiEditor.Parser;
 using System;
 using System;
 using System.Collections.ObjectModel;
 using System.Collections.ObjectModel;
 using System.Linq;
 using System.Linq;
@@ -14,7 +13,7 @@ namespace PixiEditor.Helpers.Extensions
 {
 {
     public static class ParserHelpers
     public static class ParserHelpers
     {
     {
-        public static Document ToDocument(this Parser.SerializableDocument serializableDocument)
+        public static Document ToDocument(this SerializableDocument serializableDocument)
         {
         {
             Document document = new Document(serializableDocument.Width, serializableDocument.Height)
             Document document = new Document(serializableDocument.Width, serializableDocument.Height)
             {
             {
@@ -43,7 +42,7 @@ namespace PixiEditor.Helpers.Extensions
             ObservableCollection<Layer> layers = new ObservableCollection<Layer>();
             ObservableCollection<Layer> layers = new ObservableCollection<Layer>();
             for (int i = 0; i < serializableDocument.Layers.Count; i++)
             for (int i = 0; i < serializableDocument.Layers.Count; i++)
             {
             {
-                Parser.SerializableLayer serLayer = serializableDocument.Layers[i];
+                SerializableLayer serLayer = serializableDocument.Layers[i];
                 Layer layer =
                 Layer layer =
                     new Layer(serLayer.Name, BitmapUtils.BytesToWriteableBitmap(serLayer.Width, serLayer.Height, serLayer.BitmapBytes))
                     new Layer(serLayer.Name, BitmapUtils.BytesToWriteableBitmap(serLayer.Width, serLayer.Height, serLayer.BitmapBytes))
                     {
                     {
@@ -65,7 +64,7 @@ namespace PixiEditor.Helpers.Extensions
 
 
         public static SerializableDocument ToSerializable(this Document document)
         public static SerializableDocument ToSerializable(this Document document)
         {
         {
-            Parser.SerializableDocument serializable = new Parser.SerializableDocument
+            SerializableDocument serializable = new SerializableDocument
             {
             {
                 Width = document.Width,
                 Width = document.Width,
                 Height = document.Height,
                 Height = document.Height,
@@ -89,9 +88,9 @@ namespace PixiEditor.Helpers.Extensions
             return serializedGroup;
             return serializedGroup;
         }
         }
 
 
-        public static Parser.SerializableLayer ToSerializable(this Layer layer)
+        public static SerializableLayer ToSerializable(this Layer layer)
         {
         {
-            Parser.SerializableLayer serializable = new Parser.SerializableLayer
+            SerializableLayer serializable = new SerializableLayer
             {
             {
                 LayerGuid = layer.LayerGuid,
                 LayerGuid = layer.LayerGuid,
                 Name = layer.Name,
                 Name = layer.Name,

+ 1 - 1
PixiEditor/PixiEditor.csproj

@@ -167,7 +167,7 @@
     </PackageReference>
     </PackageReference>
     <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
     <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
     <PackageReference Include="PixiEditor.ColorPicker" Version="3.1.0" />
     <PackageReference Include="PixiEditor.ColorPicker" Version="3.1.0" />
-    <PackageReference Include="PixiEditor.Parser" Version="1.1.3.1" />
+    <PackageReference Include="PixiEditor.Parser" Version="1.2.0.1" />
     <PackageReference Include="WriteableBitmapEx">
     <PackageReference Include="WriteableBitmapEx">
       <Version>1.6.7</Version>
       <Version>1.6.7</Version>
     </PackageReference>
     </PackageReference>