Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
1332c77
update readme
matatouille May 1, 2023
f2224a3
test githib actions
matatouille May 2, 2023
4c76616
revert readme change
matatouille May 2, 2023
f1a3e0c
ficed readme reverted change
matatouille May 2, 2023
ef9eced
rename
matatouille May 2, 2023
f64ebd6
addd dotnet 3.1.x
matatouille May 2, 2023
c787a65
build debug and release
matatouille May 2, 2023
310d913
upload artifact
matatouille May 2, 2023
8460752
added retention days for packages
matatouille May 2, 2023
c14e810
Merge pull request #1 from WiseTechGlobal/matt/githubactions
matatouille May 8, 2023
2ef2e73
Rebase WTG.Blazor.Diagram from v3.0.0.0
gnawisetech Aug 18, 2023
4b67e27
Update build.yml
matatouille Sep 5, 2023
5858f8b
Merge pull request #9 from WiseTechGlobal/gna/WTGBlazorDiagram
matatouille Sep 5, 2023
a3a86d2
update asp net core compoents package version
Heathermcx Dec 8, 2023
9edfbc9
Merge pull request #12 from WiseTechGlobal/heather/updatePackages
dou867 Dec 8, 2023
c9844ed
Fix link hover stroke opacity
Dec 6, 2022
87d8464
Add Radius example to Path Generators documentation
zHaytam Sep 30, 2023
b4f10e5
fix type of diagram
suraj-desai-wtg Oct 16, 2023
83cb01e
Adding check for target being a portModel
K0369 Oct 16, 2023
92df6fe
Fixing nodes not updating on change of the link target
K0369 Oct 16, 2023
0a424a8
fixing NRE of onLinkRemoved in landing showcase diagram
K0369 Oct 22, 2023
f4e9b33
refactoring link target refreshing in landing showcase diagram
K0369 Oct 22, 2023
302e31e
Demo-site: changing signature of onChange to reflect actual values
K0369 Oct 22, 2023
92c5854
Add Route property to BaseLinkModel
zHaytam Oct 22, 2023
bf3dbac
Adding check for "ShouldDelete"-constraint to remove control
K0369 Oct 23, 2023
a90b859
Adding unit tests
K0369 Oct 23, 2023
45747a7
Fixing #369 by adding invariant culture conversion
K0369 Oct 23, 2023
1ba36f7
Adding functionality for GroupModel Removal to RemoveControl
K0369 Oct 26, 2023
f9a0ae1
Update Versions and CHANGELOG
zHaytam Oct 27, 2023
2b69a4e
Add new workflow to push to nuget
zHaytam Oct 27, 2023
3b28ad0
Update push.yml
zHaytam Oct 27, 2023
7d72283
Update push.yml
zHaytam Oct 27, 2023
3beabc4
Use Controls to implement node resizing (#10)
Heathermcx Dec 11, 2023
822a1fb
Add configuration of mouse actions (#3)
matatouille May 24, 2023
b6e8f9f
Make Diagram.SetContainer accept null gracefully
MarcosCosmos Jun 2, 2023
cf435c1
Marcos/diagram set container null V2 (#7)
MarcosCosmos Jun 20, 2023
8561ff2
resolve build errors
Heathermcx Dec 13, 2023
56642ff
Added Tests
Alvarenga1 Dec 11, 2023
cb3c5db
First commit
Alvarenga1 Dec 13, 2023
b817d57
Updated test
Alvarenga1 Dec 13, 2023
f4dfbfb
Drag and scroll fixed
Alvarenga1 Dec 13, 2023
4d710a4
fixed cherry pick errors
Alvarenga1 Dec 13, 2023
191dd7c
Arrows now update when scrolling
Alvarenga1 Dec 14, 2023
5dbd019
Moved scroll test
Alvarenga1 Dec 14, 2023
56f36ff
Top Right and Bottom Right implemented
Alvarenga1 Dec 15, 2023
c0518e9
Bottom and top left implemented
Alvarenga1 Dec 15, 2023
d269017
Updated file to use spaces
Alvarenga1 Dec 18, 2023
346fbf4
Fixed all spacing
Alvarenga1 Dec 18, 2023
ca6b409
Removed some blank lines
Alvarenga1 Dec 18, 2023
f4a3d3e
Addressed PR comments
Alvarenga1 Dec 19, 2023
d204bb9
Added tests
Alvarenga1 Dec 19, 2023
8017874
Fixed implementation for DragMovablesBehavior
Alvarenga1 Jan 4, 2024
b6ac41b
Started using pan changed for resize controls
Alvarenga1 Jan 4, 2024
0e8e39a
Started using Pan Changed for DragNewLinkBehavior
Alvarenga1 Jan 4, 2024
7358342
Fixed error in test
Alvarenga1 Jan 4, 2024
d0deab7
Refactored ResizeProviders for better reusability
Alvarenga1 Jan 4, 2024
9f43a85
Finished fixing tests
Alvarenga1 Jan 5, 2024
f6e831b
Addressed PR comments
Alvarenga1 Jan 9, 2024
5f6626c
Account for diagram zoom when dragging resizers (#16)
Heathermcx Jan 9, 2024
ff00438
Introducing DisableDragNewLink property to disable draging a new link
AarthiNarayanan Jan 11, 2024
bc943bc
Addressed new PR comments
Alvarenga1 Jan 15, 2024
81435c0
Renamed Property to Enabled
AarthiNarayanan Jan 15, 2024
d9a3ace
Changed implmentation as per the name change
AarthiNarayanan Jan 16, 2024
0d65a43
Introduced cursor change based on allow panning.
shams-azam-wtg Jan 16, 2024
70eda6c
removed unnecessary usings from test class.
shams-azam-wtg Jan 17, 2024
4f97ed2
added cursor: -webkit-grab.
shams-azam-wtg Jan 17, 2024
4e993c0
Removed commas
AarthiNarayanan Jan 17, 2024
81a7838
Merge pull request #20 from WiseTechGlobal/M71/WI00642713/NCN-Cursors
shams-azam-wtg Jan 17, 2024
b76d767
Merge pull request #19 from WiseTechGlobal/AN9/WI00692027/NCN-BufferN…
AarthiNarayanan Jan 17, 2024
f1c37b4
Add GitHub action to create release (#18)
Heathermcx Jan 22, 2024
b6d3af7
add ControlsType.AlwaysOn for controls that should always be visible …
suraj-desai-wtg Jan 22, 2024
1fbddd1
Merged master, fixed conflicts
Alvarenga1 Jan 22, 2024
c2a1cb2
Fixed null
Alvarenga1 Jan 22, 2024
0086686
Addressed PR comments
Alvarenga1 Jan 23, 2024
fc7f059
Fixed using statements
Alvarenga1 Jan 23, 2024
7e33922
Fixed more usings
Alvarenga1 Jan 23, 2024
de5b50f
fix css for resizers
suraj-desai-wtg Jan 30, 2024
3ad39d9
Merge pull request #22 from WiseTechGlobal/SD5/WI00682740-fix-resizer…
suraj-desai-wtg Jan 31, 2024
232e9a0
Issue fixed
Alvarenga1 Feb 14, 2024
9a3a286
Fixed
Alvarenga1 Feb 15, 2024
74af42b
Added port Tests
Alvarenga1 Feb 15, 2024
7710b4d
Fixed PR comment
Alvarenga1 Feb 15, 2024
3fd2736
Fixed some PR comments
Alvarenga1 Feb 19, 2024
965a28b
reverted
Alvarenga1 Feb 19, 2024
97ae0b1
Merge pull request #15 from WiseTechGlobal/RAL/WI00681235/Pointer_bas…
Alvarenga1 Feb 20, 2024
24d06f1
GetBoundingClientRect don't throw on time out
dou867 Feb 21, 2024
2b804ae
Addressed pr comments
Alvarenga1 Feb 21, 2024
a6a3f2c
Addressed new PR comments
Alvarenga1 Feb 22, 2024
3525ce2
Fixed PR comments
Alvarenga1 Feb 22, 2024
d762ab7
convert tabs
dou867 Feb 25, 2024
ce49a3b
Merge pull request #25 from dou867/jstimeout
dou867 Feb 25, 2024
20989c8
Merge branch 'master' into pan_changed_backup
Alvarenga1 Feb 26, 2024
65f33e5
Updated PR
Alvarenga1 Feb 27, 2024
5d6906c
update the content path (#27)
Heathermcx Feb 27, 2024
3057948
Addressed PR comments
Alvarenga1 Feb 27, 2024
81b8b44
Removed extra blank line
Alvarenga1 Feb 27, 2024
3fb82b5
Resolved all PR comments
Alvarenga1 Feb 28, 2024
53a39dd
Addressed new comments
Alvarenga1 Feb 28, 2024
d9b1a63
Merge pull request #26 from WiseTechGlobal/pan_changed_backup
Alvarenga1 Feb 29, 2024
e3a4577
Addressed PR comments
Alvarenga1 Mar 5, 2024
8967512
Protected fields are now properties
Alvarenga1 Mar 6, 2024
02e3564
Merge pull request #28 from WiseTechGlobal/RAL/WI00655146/Refactor_Bl…
Alvarenga1 Mar 7, 2024
8d24804
Fixed properties access
Alvarenga1 Mar 7, 2024
a9ca5a1
Converted lastClient to fields
Alvarenga1 Mar 7, 2024
f4e4b46
Merge pull request #29 from WiseTechGlobal/RAL/WI00655146/Refactor_Bl…
Alvarenga1 Mar 7, 2024
0f8d6d0
Change DiagramCanvas to await unsubscription to Resizes subscription
LeonamAnjos Mar 20, 2024
7f92482
WI00697921-NCN-Removing_last_node_from_Workflow_Relationship_Designer…
LeonamAnjos Mar 21, 2024
faceea4
Revert changes to GetBoundingClientRect (#30)
Heathermcx Apr 17, 2024
d15aa50
Merge upstream/master into master (#35)
Heathermcx May 24, 2024
0afdbe7
Fix Release Action - *.nupkg version not being updated (#36)
Heathermcx May 27, 2024
6478de3
Fix references to make package compatible with our code (#37)
Heathermcx May 28, 2024
340530d
SelecrtionBos now updates when scrolling
Alvarenga1 Jun 12, 2024
fe69e73
WI00737678---RemoveDragNodesBehavior
gnawisetech Jun 12, 2024
37ee1a0
WI00737678---RemoveDragNodesBehavior---Update-1
gnawisetech Jun 12, 2024
c3df21f
WI00737678---RemoveDragNodesBehavior---Update-2
gnawisetech Jun 12, 2024
2866a8b
WI00737678---RemoveDragNodesBehavior---Update-3
gnawisetech Jun 12, 2024
9d6fc63
refine the existing tests for resizing to minimal dimension
archer0302 Jun 17, 2024
1952c74
fix calculation of resizing to minimal size
archer0302 Jun 17, 2024
6583d52
Fixed PR comments
Alvarenga1 Jun 17, 2024
497ec4e
Merge pull request #42 from WiseTechGlobal/archer/WI00715545/resizer-…
archer0302 Jun 18, 2024
7edf131
Added tests
Alvarenga1 Jun 19, 2024
63b8622
Fixed test issue
Alvarenga1 Jun 19, 2024
7182eaa
Merge pull request #41 from WiseTechGlobal/WI00737678---RemoveTheDrag…
gnawisetech Jun 19, 2024
eddd879
Merge pull request #40 from WiseTechGlobal/RAL/WI00655146/Implement_s…
Alvarenga1 Jun 20, 2024
dd5ca1e
experimenting with release.yml
vinnie-fialok Jul 2, 2024
eefdd34
WI00737678---RemoveDragNodesBehavior
gnawisetech Jul 2, 2024
ac98c3d
WI00737678---RemoveDragNodesBehavior---Update-1
gnawisetech Jul 2, 2024
fa33bfe
attempting to publish-pkg nuget-pack workflow
vinnie-fialok Jul 3, 2024
467a347
attempting to build first
vinnie-fialok Jul 3, 2024
475b8ad
removed whitespace from build.yml
vinnie-fialok Jul 3, 2024
c990435
alternative tag extraction using battila action
vinnie-fialok Jul 3, 2024
4392197
fixed tag extraction uses action
vinnie-fialok Jul 3, 2024
87fe8e3
printing tags
vinnie-fialok Jul 3, 2024
72068a7
useing sha for tag for testing
vinnie-fialok Jul 3, 2024
16f2898
removed build from release
vinnie-fialok Jul 3, 2024
70c2df8
added back build step include --no-restore and --no-build flags
vinnie-fialok Jul 3, 2024
3ff95b1
moved nuspec and build files, added targets file
vinnie-fialok Jul 3, 2024
56e41c7
release.yml just packs
vinnie-fialok Jul 3, 2024
029cbff
copying build.yml to build
vinnie-fialok Jul 3, 2024
4686bf5
removed nuspec reference from blazor.diagram.csproj
vinnie-fialok Jul 3, 2024
03b3819
dotnet pack step
vinnie-fialok Jul 3, 2024
5e9437c
packing seperately
vinnie-fialok Jul 3, 2024
1fd8415
only packing blazor.diagrams
vinnie-fialok Jul 3, 2024
227fad9
gets version from tag
vinnie-fialok Jul 3, 2024
2f6e70e
testing github ref_name
vinnie-fialok Jul 3, 2024
579b876
WI00737678---RemoveDragNodesBehavior---Update-2
gnawisetech Jul 3, 2024
b852ab2
WI00737678---RemoveDragNodesBehavior---Update-3
gnawisetech Jul 3, 2024
cfa5fec
WI00761833 - Updates for Blazor Diagrams mouse configuration
shams-azam-wtg Jul 4, 2024
4737280
testing with tags
vinnie-fialok Jul 4, 2024
2b7df6a
testing pushing to nuget
vinnie-fialok Jul 4, 2024
e7352b9
fixed .nupkg directory
vinnie-fialok Jul 4, 2024
1cf9029
removed this branch from on:push: event
vinnie-fialok Jul 5, 2024
9c30c92
re-added auto-versioning + testing it works
vinnie-fialok Jul 5, 2024
13eb146
removed this branch from on:push, ready
vinnie-fialok Jul 5, 2024
4a72b68
removed tags from workflow on:
vinnie-fialok Jul 5, 2024
227ee25
removed version data from Directory.Build.props
vinnie-fialok Jul 5, 2024
4275541
added to readme
vinnie-fialok Jul 5, 2024
45f1675
updated readme with WTG.Z.Blazor.Diagrams
vinnie-fialok Jul 5, 2024
225b54d
updated readme
vinnie-fialok Jul 5, 2024
1fe18c6
updated readment and release.yml
vinnie-fialok Jul 7, 2024
ef6a892
Merge pull request #44 from WiseTechGlobal/VFL/WI00764279/NCN-Diagram…
vinnie-fialok Jul 8, 2024
42411c3
WI00737678---RemoveDragNodesBehavior---Update-4
gnawisetech Jul 8, 2024
87b6778
WI00737678---RemoveDragNodesBehavior---Update-5
gnawisetech Jul 8, 2024
3d0517e
enabled wheel preventing only for scroll behavior, other pr suggestio…
shams-azam-wtg Jul 10, 2024
98da37e
fixed scroll behavior checking for preventing default wheel behavior
shams-azam-wtg Jul 10, 2024
5082e89
Merge pull request #43 from WiseTechGlobal/WI00737678---RemoveDragNod…
gnawisetech Jul 11, 2024
09f824d
updated documentation for BehaviorOptions.
shams-azam-wtg Jul 11, 2024
1d5a782
Merge pull request #45 from WiseTechGlobal/M71/WI00761833/Updates-for…
shams-azam-wtg Jul 15, 2024
5ac3162
Change how DiagramCanvas is disposed
LeonamAnjos Aug 16, 2024
f8c24c1
Catch JSDisconnected exceptions on Un-observeResizes call
LeonamAnjos Aug 18, 2024
b9819c0
Merge pull request #48 from WiseTechGlobal/LNS/Winzor/WI00745224-Java…
Alvarenga1 Aug 23, 2024
88e8cab
WI00856225 - Remove FluentAssertions from Blazor.Diagrams.Core.Tests
Srude-Vena Feb 4, 2025
5e6a578
WI00856226 - FluentAssertions removal from Blazor.Diagrams.Tests (#51)
Srude-Vena Feb 4, 2025
827fa87
new file, new implementation with separate thread to modify the colle…
dobretsberger Mar 25, 2025
adeeea4
added reference to SvgPathProperties
dobretsberger Apr 14, 2025
f9e3dd1
indentation change and hintpath removed to test if it builds without it
dobretsberger Apr 15, 2025
49056c5
put the Hintpath back - GitHub did not build without it
dobretsberger Apr 15, 2025
29487a3
reset commit without Reference
dobretsberger Apr 15, 2025
308024c
add manual trigger abulity for github actions
dobretsberger Apr 15, 2025
4a59e78
remove manual trigger (did not work)
dobretsberger Apr 15, 2025
81f8dbe
Merge pull request #52 from WiseTechGlobal/DTD/WI00772597/ControlsLay…
dobretsberger Apr 17, 2025
f852d25
Update release.yml
dobretsberger Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 36 additions & 40 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,43 @@
name: Build
name: Build and Test
on:
push:
branches:
- master
- develop
- 3.0.0
branches: [ master ]
pull_request:
types: [opened, synchronize, reopened]
branches: [ master ]

jobs:
build:
name: Build
name: Build - ${{ matrix.configuration }}

strategy:
matrix:
configuration: [ Debug, Release ]

runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarCloud scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
run: |
dotnet tool install --global dotnet-sonarscanner
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
dotnet-sonarscanner begin /k:"Blazor-Diagrams_Blazor.Diagrams" /o:"blazor-diagrams" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**\TestResults\*\*.xml" /d:sonar.exclusions="**/wwwroot/**"
dotnet build
dotnet test --no-build --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
- uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
6.0.x

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --configuration ${{ matrix.configuration }}

- name: Test
if: matrix.configuration == 'Debug'
run: dotnet test --no-build

- name: Upload packages
if: matrix.configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: package
path: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg
retention-days: 5
25 changes: 0 additions & 25 deletions .github/workflows/main.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Create release

# On push to master branch. i.e. when we merge a PR.
on:
push:
branches: [ master ]
workflow_dispatch:

env:
PACKAGE_PATH: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg

jobs:
release:
name: Build - Release

runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.0.x
6.0.x

# Finds the latest release and increases the version
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch

- name: Install version tool
run: dotnet tool install dotnetCampus.TagToVersion -g --version 1.0.11

# Writes the new version number to build/Version.props
- name: Set version
run: dotnet TagToVersion -t ${{ steps.version.outputs.version }}

- name: Install dependencies
run: dotnet restore

# Pacakge is created on build
- name: Build
run: dotnet build --configuration Release

# Upload package as an atrifact to the GitHub action
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: package
path: ${{ env.PACKAGE_PATH }}
retention-days: 5

# Create a new release and upload the package to the release
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ env.PACKAGE_PATH }}
tag_name: ${{ steps.version.outputs.version }}

- name: Push NuGet Package to NuGet Gallery
run: dotnet nuget push ${{ env.PACKAGE_PATH }} --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
13 changes: 13 additions & 0 deletions Blazor.Diagrams.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.0.32014.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EE32E278-A887-454E-987D-FFE9E37169FE}"
ProjectSection(SolutionItems) = preProject
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Diagrams.Core", "src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj", "{1A70B637-9EF8-4C25-970E-A681DEC9061C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{DA819127-3EF6-4EB9-A2DA-BC056B284A50}"
ProjectSection(SolutionItems) = preProject
samples\Directory.Build.props = samples\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wasm", "samples\Wasm\Wasm.csproj", "{A43942BD-FDA0-4E3D-8115-BBE9D0D75DE3}"
EndProject
Expand All @@ -23,15 +29,22 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.github\workflows\build.yml = .github\workflows\build.yml
CHANGELOG.md = CHANGELOG.md
Directory.Packages.props = Directory.Packages.props
.github\workflows\main.yml = .github\workflows\main.yml
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{CEEAE4C2-CE68-4FC3-9E0F-D4781B91F7F4}"
ProjectSection(SolutionItems) = preProject
tests\Directory.Build.props = tests\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Diagrams.Core.Tests", "tests\Blazor.Diagrams.Core.Tests\Blazor.Diagrams.Core.Tests.csproj", "{36B4DCCD-45AB-4338-9224-DDAF386A23A3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{A9FC9B20-A9F1-4066-8B59-83BD26D3B1C8}"
ProjectSection(SolutionItems) = preProject
docs\Directory.Build.props = docs\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Diagram-Demo", "docs\Diagram-Demo\Diagram-Demo.csproj", "{5F423724-5319-4DCE-B9F2-8B2D7E1FDC17}"
EndProject
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Diagram (3.0.0) - 2024-02-24

### Added

- Support for .NET 8 (thanks to @[SebastianWachsmuth](https://github.com/SebastianWachsmuth))

### Fixed

- Link labels not showing in Firefox
- NRE in the DemoSite's Options page (thanks to @[robertmclaws](https://github.com/robertmclaws))

## Diagrams (3.0.1) - 2023-10-27

### Added

- `Route` property to `BaseLinkModel` to hold the result of the executed router

### Fixed

- Constraints not checked when using `RemoveControl` (thanks to @[K0369](https://github.com/K0369))
- NRE Exception on the landing page demo when dragging a new link and not linking it to something (thanks to @[K0369](https://github.com/K0369))
- `LinkVertexWidgetTests` failing on cultures that are not using a dot as decimal separator (thanks to @[K0369](https://github.com/K0369))
- NRE exception in the Diagram Demo project (thanks to @[Suraj0500](https://github.com/Suraj0500))

## Diagrams (3.0.0) - 2023-08-14

Finally, the new documentation website is here!
Expand Down
34 changes: 34 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project>
<ItemGroup>
<PackageVersion Include="SvgPathProperties" Version="1.1.2" />
<PackageVersion Include="System.Net.Http.Json" Version="8.0.0" />
<PackageVersion Include="GraphShape" Version="1.2.1" />
<PackageVersion Include="MatBlazor" Version="2.10.0" />
<PackageVersion Include="bunit" Version="1.28.9" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="xunit" Version="2.6.3" />
<PackageVersion Include="Moq" Version="[4.18.4]" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.5" />
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="Brutal.Dev.StrongNameSigner" Version="3.5.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="6.0.25" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.25" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.25" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.14" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="[8, 9.0.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="[8, 9.0.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="[8,9.0.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="[8,9.0.0)" />
</ItemGroup>
</Project>
26 changes: 26 additions & 0 deletions PushNuget.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pushd $PSScriptRoot

$feedSource = "http://proget.wtg.zone/nuget/WTG-Internal/"
$apiKey = ""
$packagePath = "*.nupkg"

function Write-Log {
Write-Host "$(get-date -f "yyyy-MM-dd HH:mm:ss.fff")`t$args"
}

try {
$scriptSw = [System.Diagnostics.Stopwatch]::StartNew()
& nuget.exe push $packagePath -ApiKey $apiKey -Source $feedSource -Verbosity detailed
if (-not $?)
{
Write-Log "FAILED to deploy: $packagePath)"
}
else
{
Write-Log "Deployed $packagePath )"
}
}
finally {
popd
Write-Log "Finished (took: $($scriptSw.Elapsed))"
}
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

![](ZBD.png)

Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams library for Blazor (both Server Side and WASM). It was first inspired by the popular React library [react-diagrams](https://github.com/projectstorm/react-diagrams), but then evolved into something much bigger. ZBD can be used to make advanced diagrams with a custom design. Even the behavior of the library is "hackable" and can be changed to suit your needs.
Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams library for Blazor (both Server Side and WASM). It was first inspired by the popular React library [react-diagrams](https://github.com/projectstorm/react-diagrams), but then evolved into something much bigger. ZBD can be used to make advanced diagrams with a custom design. Even the behavior of the library is "hackable" and can be changed to suit your needs.

WTG.Z.Blazor.Diagarms is a fork of Z.Blazor.Diagrams with new features and bug fixes first targeting WiseTech Global products.

| NuGet Package | Version | Download |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Z.Blazor.Diagrams.Core | [![NuGet](https://img.shields.io/nuget/v/Z.Blazor.Diagrams.Core.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Core) | [![Nuget](https://img.shields.io/nuget/dt/Z.Blazor.Diagrams.Core.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Core) |
| Z.Blazor.Diagrams | [![NuGet](https://img.shields.io/nuget/v/Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams) | [![Nuget](https://img.shields.io/nuget/dt/Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams) |
| Z.Blazor.Diagrams.Algorithms | [![NuGet](https://img.shields.io/nuget/v/Z.Blazor.Diagrams.Algorithms.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Algorithms) | [![Nuget](https://img.shields.io/nuget/dt/Z.Blazor.Diagrams.Algorithms.svg)](https://www.nuget.org/packages/Z.Blazor.Diagrams.Algorithms) |
| WTG.Z.Blazor.Diagrams | [![NuGet](https://img.shields.io/nuget/v/WTG.Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/WTG.Z.Blazor.Diagrams) | [![Nuget](https://img.shields.io/nuget/dt/WTG.Z.Blazor.Diagrams.svg)](https://www.nuget.org/packages/WTG.Z.Blazor.Diagrams) |

| Badges | |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
Expand All @@ -30,7 +30,7 @@ Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams li
- Multi purpose
- Touch support
- SVG layer for links/nodes and HTML layer for nodes for maximum customizability
- Links between nodes directly or node ports
- Links between nodes, ports and even other links
- Link routers, path generators, markers and labels
- Panning, Zooming and Zooming to fit a set of nodes
- Multi selection, deletion and region selection
Expand All @@ -48,9 +48,7 @@ Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams li
You can get started very easily & quickly using:

- [Documentation](https://blazor-diagrams.zhaytam.com/)
- [Quick Start](https://blazor-diagrams.zhaytam.com/quickstart)
- [Samples](https://blazor-diagrams.zhaytam.com/demos/simple)
- [Docs/Demos](https://github.com/Blazor-Diagrams/Blazor.Diagrams/tree/master/docs)
- [Installation](https://blazor-diagrams.zhaytam.com/documentation/installation)

### Sample project

Expand All @@ -60,9 +58,16 @@ Repository: https://github.com/Blazor-Diagrams/Blazor.DatabaseDesigner

### Contributing

All kinds of contributions are welcome!
All kinds of contributions are welcome!
If you're interested in helping, please create an issue or comment on an existing one to explain what you will be doing. This is because multiple people can be working on the same problem.

## Feedback

If you find a bug or you want to see a functionality in this library, feel free to open an issue.

## Deployment

This project is hosted on NuGet. Merges to master will trigger a release action that will
- Build WTG.Z.Blazor.Diagrams
- Host the package on Github as a release
- Push it to the WTG.Z.Blazor.Diagrams NuGet Gallery
12 changes: 12 additions & 0 deletions WTGPublishPackageGuide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Publishing WTG.Z.Blazor.Diagrams for WTG usage
This doc explains how the package we use at WTG is updated.

When a PR is merged to master, the GitHub Action 'Create release' should run. It can also be run manually if needed. This action creates a GitHub Release and uploads the package to the release. The version number is also handled by the action. The package is created on build in the action and should contain Blazor.Diagrams.dll, Blazor.Diagrams.Core.dll and SvgPathProperties.dll

## To push package to proget
1. **Find the release**. Most likely the most recent release is the one to use. To find all releases, go to the repo main page then click 'Releases'.
2. **Download the package**. Expand the 'Assets' section of the release and download the *.nupkg file.
3. **Push to proget**. Modify the PushNuget.ps1 script so that it had the correct path to the downloaded *.nupkg file and the API key. Ask another team member if not sure. Once the script has all required information, run the script to push the package.
4. **Update package version in WTG**. In Directory.Packages.Props, update the version of WTG.Z.Blazor.Diagrams to match the package that was just uploaded to proget.


5 changes: 5 additions & 0 deletions build/Version.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<Version></Version>
</PropertyGroup>
</Project>
4 changes: 0 additions & 4 deletions docs/CustomNodesLinks/CustomNodesLinks.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams\Blazor.Diagrams.csproj" />
Expand Down
Loading