MSAGL Support

Added new tech tree layout implementation using Microsoft Automatic Graph Layouts
Added some functionality to the database editor tools
This commit is contained in:
hyperion51 2020-04-14 00:42:04 +01:00
commit 01a956eef6
1110 changed files with 119054 additions and 151 deletions

View file

@ -0,0 +1,35 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Msagl.Core.Layout;
namespace Microsoft.Msagl.Layout.LargeGraphLayout {
internal class SimpleEdgeCollection : EdgeCollection {
readonly List<Edge> edges;
public SimpleEdgeCollection(IEnumerable<Edge> collectionEdges) : base(null) {
edges = collectionEdges as List<Edge>??
collectionEdges.ToList();
}
public override IEnumerator<Edge> GetEnumerator() {
return edges.GetEnumerator();
}
public override int Count {
get { return edges.Count; }
}
public override void Add(Edge item) {
throw new NotImplementedException();
}
public override void Clear() {
throw new NotImplementedException();
}
public override bool Remove(Edge item) {
throw new NotImplementedException();
}
}
}