Core - Removed Fody

UI projects will follow
Not interested in becoming a Patreon with their attitude and fixes edit & continue in the core
This commit is contained in:
SpoinkyNL committed 2020-06-20 22:35:09 +02:00
1 parent ff8544bb23
commit 51ffc6543e
14 files changed
+234 -145

No files matched your search

@@ -6,9 +6,8 @@ namespace Artemis.Core.Models.Profile
{
public abstract class PropertiesProfileElement : ProfileElement
{
internal abstract PropertiesEntity PropertiesEntity { get; }
private SKPath _path;
internal abstract PropertiesEntity PropertiesEntity { get; }
/// <summary>
/// Gets the path containing all the LEDs this entity is applied to, any rendering outside the entity Path is
@@ -19,7 +18,7 @@ namespace Artemis.Core.Models.Profile
get => _path;
protected set
{
_path = value;
SetAndNotify(ref _path, value);
// I can't really be sure about the performance impact of calling Bounds often but
// SkiaSharp calls SkiaApi.sk_path_get_bounds (Handle, &rect); which sounds expensive
Bounds = value?.Bounds ?? SKRect.Empty;
@@ -29,12 +28,17 @@ namespace Artemis.Core.Models.Profile
/// <summary>
/// The bounds of this entity
/// </summary>
public SKRect Bounds { get; private set; }
public SKRect Bounds
{
get => _bounds;
private set => SetAndNotify(ref _bounds, value);
}
#region Property group expansion
protected List<string> _expandedPropertyGroups;
private SKRect _bounds;
public bool IsPropertyGroupExpanded(LayerPropertyGroup layerPropertyGroup)
{
return _expandedPropertyGroups.Contains(layerPropertyGroup.Path);
@@ -49,6 +53,5 @@ namespace Artemis.Core.Models.Profile
}
#endregion
}
}