Releases: Blazor-Diagrams/Blazor.Diagrams
Releases · Blazor-Diagrams/Blazor.Diagrams
1.5.0
Added
- The ability to have ports on groups.
- EXPERIMENTAL/INCOMPLETE Nested groups. Since
GroupModel
now inheritsNodeModel
, it became possible to have nested groups, but there are still problems with the order of links between groups. - A
Class
parameter toGroupContainer
.
Changed
- Only rerender groups when necessary.
- Receiving the same size from
ResizeObserver
doesn't trigger a rerender anymore. - Avoid rerendering ports twice to update positions.
- Avoid rerendering ports when their parent node is moving.
- Padding is now handled in
GroupModel
instead ofGroupContainer
(UI). This is because the padding is necessary to have accurate size/position in the group model directly.
Fixed
- Use
@key
when rendering the list of groups. Not using it caused big/weird render times. - Groups not showing in Navigator/Overview.
1.4.2
1.4.1
1.4.0
Added
- Two zoom related options,
Minimum
andMaximum
, to clamp the zoom value.
Changed
- [BREAKING] Grouped zoom related options into
DiagramZoomOptions
, available unnderOptions.Zoom
.- The option
AllowZooming
was renamed toEnabled
. - The option
InverseZoom
was renamed toInverse
.
- The option
Fixed
- The diagram canvas' container wasn't updated when the user scrolls (#51).
1.3.0
Added
- Abstract
MovableModel
, which inherits fromSelectableModel
and represents models that can be move with the mouse (e.g. nodes and groups). - Groups widget customization using
RegisterModelComponent
. SizeChanged
event onNodeModel
.
Changed
SelectableModel
is now abstract.- Groups:
- Renamed model
Group
toGroupModel
. - Rendered as a single entity (HTML div) with padding.
- Movable and Selectable.
- Selecting a node inside a group doesn't select the others anymore.
- Renamed model
- [BREAKING] Renamed
DiagramManager.ChangePan
toUpdatePan
. - [BREAKING] Renamed
DiagramManager.ChangeZoom
toSetZoom
.
Fixed
ZoomToFit
wasn't unhiding hidden nodes.
1.2.0
Added
DefaultLinkModel
inDiagramLinkOptions
(@joezearing).- Ability to change source/target ports of a link (
SetSourcePort
andSetTargetPort
).
The methods also trigger the new eventsSourcePortChanged
andTargetPortChanged
.
Changed
- Curved link paths now take into account the ports alignements and a margin (@joezearing).
- The
AddLink<T>(T link, PortModel source, PortModel? target = null)
overload inDiagramManager
is now public.
This is useful when developers want to create the link instance themselves,DiagramMananger
will setup ports and trigger appropriate events.
Fixed
GetMiddleTargetX
andGetMiddleTargetY
usingSourcePort
instead ofTargetPort
(@joezearing).
1.1.3
1.1.2
1.1.0
Added
- Track mouseup events on nodes @joriskalz.
- Zooming in/out will now trigger the nodes visibility check.
AllowZooming
andAllowPanning
options.DefaultColor
andDefaultSelectedColor
link options.- Custom ports/links demos/documentation.
- Options documentation.
Changed
- Group link related options into
DiagramLinkOptions
, available inDiagramOptions.Links
. - All link related calculations (e.g.
MiddleSourceX
) are now extension methods available inLinkModelExtensions
.
Removed
LinkWidget
's behind file is not needed anymore.