Skip to content

Commit fabc618

Browse files
committed
2 parents 71cbc38 + a33fa63 commit fabc618

File tree

19 files changed

+714
-95
lines changed

19 files changed

+714
-95
lines changed

.github/workflows/agl.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
on:
2+
push:
3+
tags:
4+
- v* # You will need to provide a tag of the form 'v* ...' with your push command:
5+
# For example git tag -a v11 -m "bug fix" && git push origin v11
6+
name: Create Release
7+
8+
jobs:
9+
build:
10+
name: Create Release
11+
runs-on: windows-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@master
15+
- name: Create Release
16+
id: create_release
17+
uses: actions/create-release@latest
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
20+
with:
21+
tag_name: ${{ github.ref }}
22+
release_name: Release ${{ github.ref }}
23+
draft: false
24+
prerelease: false
25+
26+
deploy:
27+
runs-on: windows-latest
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v1
31+
32+
33+
- name: Add msbuild to PATH
34+
uses: microsoft/[email protected]
35+
36+
- name: Setup NuGet
37+
uses: NuGet/[email protected]
38+
env:
39+
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
40+
41+
- name: Restore NuGet Packages
42+
run: nuget restore GraphLayout/GraphLayout.sln
43+
44+
- name: Build agl.csproj
45+
run: msbuild GraphLayout\tools\agl\agl.csproj /p:Configuration=Release /p:Platform="AnyCPU" /p:DeployOnBuild=true /p:PublishProfile=FolderProfile
46+
47+
- name: aglzip
48+
run: 7z a agl.zip .\GraphLayout\tools\agl\bin\Release -r
49+
50+
- name: Upload binaries to release
51+
uses: svenstaro/upload-release-action@v2
52+
with:
53+
repo_token: ${{ secrets.GITHUB_TOKEN }}
54+
file: agl.zip
55+
asset_name: agl.zip
56+
tag: ${{ github.ref }}
57+
overwrite: true
58+
body: "The zip file of agl driver"
59+

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will do a clean build of agl, build and test the solution
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
name: Test Status
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: windows-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@master
17+
18+
- name: Add msbuild to PATH
19+
uses: microsoft/[email protected]
20+
21+
- name: Restore NuGet Packages
22+
run: nuget restore GraphLayout/GraphLayout.sln
23+
24+
- name: Build release agl.csproj
25+
run: msbuild GraphLayout\GraphLayout.sln /p:Configuration=Release
26+
27+
- name: Build debug agl.csproj
28+
run: msbuild GraphLayout\GraphLayout.sln /p:Configuration=Debug
29+
30+
- name: Setup VSTest.exe
31+
uses: Malcolmnixon/Setup-VSTest@v4
32+
33+
- name : Test
34+
run: vstest.console GraphLayout\Test\MSAGLTests\bin\Debug\Microsoft.Msagl.UnitTests.dll

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,5 @@ $RECYCLE.BIN/
161161

162162
# Mac desktop service store files
163163
/sh.exe.stackdump
164+
/node_modules
165+
/package-lock.json

GraphLayout/MSAGL/Miscellaneous/LayoutHelpers.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,6 @@ public static void RouteAndLabelEdges(GeometryGraph geometryGraph, LayoutAlgorit
232232

233233

234234

235-
/// <summary>
236-
/// adaptes to the node boundary curve change
237-
/// </summary>
238-
public static void IncrementalLayout(GeometryGraph geometryGraph, Node node, SugiyamaLayoutSettings settings) {
239-
if (settings == null)
240-
return;
241-
var engine = geometryGraph.AlgorithmData as LayeredLayoutEngine;
242-
243-
if (engine != null) {
244-
engine.IncrementalRun(node);
245-
PostRunTransform(geometryGraph, settings);
246-
}
247-
}
248-
249235
static void PostRunTransform(GeometryGraph geometryGraph, SugiyamaLayoutSettings settings) {
250236
bool transform = !settings.Transformation.IsIdentity;
251237
if (transform) {

GraphLayout/Samples/EdgeDirectionTest/Form1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ private void viewer_MouseDown(object sender, MsaglMouseEventArgs e)
5353
Node n = new Node(this.FindNewId());
5454
IViewerNode iwn = gv.CreateIViewerNode(n, p, true);
5555
gv.AddNode(iwn, true);
56-
}
57-
else if (ob is IViewerNode) {
56+
gv.ResizeNodeToLabel(n);
57+
} else if (ob is IViewerNode) {
5858
IViewerNode existingNode = ob as IViewerNode;
5959
gv.RemoveNode(existingNode, true);
6060
}

0 commit comments

Comments
 (0)