Skip to content

Releases

3.0.5

Choose a tag to compare

@zHaytam zHaytam released this 21 Nov 14:48
5624da3

Release 3.0.5

Promotes develop to master for the 3.0.5 release.

Added

  • .NET 11 support (net11.0) with Microsoft.AspNetCore.Components 11.x (#585, thanks @hjrb)

Removed

  • net6.0 and net7.0 (out of support). The library now targets net8.0 – net11.0.

Fixed

  • BL0016: JS interop calls tolerate a disconnected Blazor Server circuit (#585)
  • Builds are isolated from an enclosing repository's Directory.Build.targets (#585)

CI

  • Skip SonarCloud when SONAR_TOKEN is unavailable, so fork PRs build and test (#587)

Compatibility

Projects targeting net6.0/net7.0 will get NU1202 on restore and should stay on 3.0.4.1.

3.0.4.1

Choose a tag to compare

@zHaytam zHaytam released this 02 Mar 02:07
fceb36f
Update CHANGELOG.md

3.0.4

Choose a tag to compare

@zHaytam zHaytam released this 20 Dec 18:22
9609092
Merge pull request #560 from Blazor-Diagrams/develop

Version 3.0.4

3.0.3

Choose a tag to compare

@zHaytam zHaytam released this 03 Dec 11:54
f5f3d9d

Added

  • Support for .NET 9 (thanks to @PanayiotisTheodosiou)
  • registerDefaultBehaviors argument to BlazorDiagram constructor, it's true by default and can be disabled if you want to control what behaviors are added and their order.

Changed

  • Make DiagramCanvas await un-subscription to resizes subscription (thanks to @toluwtglobal)

Fixed

  • Exception thrown when node.Visible was false from the creation and the library was trying to observe its resizes when the element won't exist (fixes #476).

Removed

  • gzip versions of assets, it was causing an issue with .NET 9 (fixes #471, thanks a lot @robertmclaws)

3.0.2

Choose a tag to compare

@zHaytam zHaytam released this 24 Feb 11:52
ac4eef3

What's Changed

New Contributors

Full Changelog: 3.0.1...3.0.2

3.0.1

Choose a tag to compare

@zHaytam zHaytam released this 27 Oct 11:43
46d9800

Added

  • Route property to BaseLinkModel to hold the result of the executed router

Fixed

  • Constraints not checked when using RemoveControl (thanks to @K0369)
  • NRE Exception on the landing page demo when dragging a new link and not linking it to something (thanks to @K0369)
  • LinkVertexWidgetTests failing on cultures that are not using a dot as decimal separator (thanks to @K0369)
  • NRE exception in the Diagram Demo project (thanks to @Suraj0500)

3.0.0

Choose a tag to compare

@zHaytam zHaytam released this 14 Aug 14:46
c27ef34

Finally, the new documentation website is here!
Please don't hesitate to create issues for any problems or improvements.
PS: I suck at design.

Added

  • AddLabel method to links to easily create LinkLabelModel
  • AddVertex method to links to easily create LinkVertexModel
  • ControlledSize property to nodes. If true, the node will not be registered in the ResizeObserver (saves a JS call).
  • autoSize argument to SvgGroupModel constructor

Changed

  • Renamed Point.Substract to Subtract (duh)
  • Avoid rendering link selection helper on dragged link

Fixed

  • SmoothPathGenerator not working with LinkAnchor
  • Mouse overlapping dragged link
  • Useless Console Logs from GroupModel are now removed
  • JS exception in (un)oberve methods when the element doesn't exist anymore

Check out the other beta version for a complete CHANGELOG !

3.0.0 beta 7

3.0.0 beta 7 Pre-release
Pre-release

Choose a tag to compare

@zHaytam zHaytam released this 10 May 13:34
098c5b4

Fix a dumb issue by me regarding ordering

3.0.0 beta 6

3.0.0 beta 6 Pre-release
Pre-release

Choose a tag to compare

@zHaytam zHaytam released this 10 May 13:17
c153569

All NuGet packages have been updated.

Added

  • Style parameter to PortRenderer
  • TargetAttached to links, which triggers when a dragged link attaches to a target
    • If port snapping is enabled, it will trigger only once when you let go of the mouse
  • SuspendSorting to Diagram in order to suspend sorting models in each OrderChanged
    • If you know what you're doing, you could save some processing and avoid sorting everytime
  • RefreshOrders to be called after unsuspending sorting in order to sort the models again and refresh the diagram

Changed

  • BaseLayer.Add now returns the specific type given to it in argument
  • [BREAKING] CSS classes are now prefixed with diagram- to avoid clashes with other libraries
    • diagram-group, diagram-node, diagram-link, diagram-port, diagram-link-label, diagram-link-vertex, diagram-control

Fixed

  • Portless links in children not refreshing when moving the parent group
  • Link's GetBounds not returning a valid box
  • Port snapping choosing the first port in radius rather than the closest one
  • Remove Console.WriteLine from KeyboardShortcutsBehavior
  • Diagram overwriting Order when it's not zero (zero being the default int value, which we now consider as not set)

3.0.0 beta 5

3.0.0 beta 5 Pre-release
Pre-release

Choose a tag to compare

@zHaytam zHaytam released this 24 Nov 09:18

Added

  • AdditionalSvg option to DiagramCanvas in order to render any extra SVG content you want
  • AdditionalHtml option to DiagramCanvas in order to render any extra HTML content you want
  • DistanceTo overload method to Point that takes x and y
  • MoveAlongLine method to Point
  • FullPath to PathGeneratorResult to represent the full path without cuts
  • Fallback router to Orthogonal router
  • Margin options to OrthogonalRouter
  • radius option to StraightPathGenerator in order to generate rounded bends
  • Support for custom vertices
  • AutoSize option to groups to control whether moving children resizes the group

Changed

  • All routers are now classes instead of functions, they inherit from the new abstract class Router
  • All path generators are now classes instead of functions, they inherit from the new abstract class PathGenerator
  • Optimize Orthogonal router by using custom A* (x5 improvement)

Removed

  • Router delegate
  • PathGenerator delegate