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
GroupModelnow inheritsNodeModel, it became possible to have nested groups, but there are still problems with the order of links between groups. - A
Classparameter toGroupContainer.
Changed
- Only rerender groups when necessary.
- Receiving the same size from
ResizeObserverdoesn'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
GroupModelinstead ofGroupContainer(UI). This is because the padding is necessary to have accurate size/position in the group model directly.
Fixed
- Use
@keywhen 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,
MinimumandMaximum, to clamp the zoom value.
Changed
- [BREAKING] Grouped zoom related options into
DiagramZoomOptions, available unnderOptions.Zoom.- The option
AllowZoomingwas renamed toEnabled. - The option
InverseZoomwas 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 fromSelectableModeland represents models that can be move with the mouse (e.g. nodes and groups). - Groups widget customization using
RegisterModelComponent. SizeChangedevent onNodeModel.
Changed
SelectableModelis now abstract.- Groups:
- Renamed model
GrouptoGroupModel. - 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.ChangePantoUpdatePan. - [BREAKING] Renamed
DiagramManager.ChangeZoomtoSetZoom.
Fixed
ZoomToFitwasn't unhiding hidden nodes.
1.2.0
Added
DefaultLinkModelinDiagramLinkOptions(@joezearing).- Ability to change source/target ports of a link (
SetSourcePortandSetTargetPort).
The methods also trigger the new eventsSourcePortChangedandTargetPortChanged.
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 inDiagramManageris now public.
This is useful when developers want to create the link instance themselves,DiagramManangerwill setup ports and trigger appropriate events.
Fixed
GetMiddleTargetXandGetMiddleTargetYusingSourcePortinstead 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.
AllowZoomingandAllowPanningoptions.DefaultColorandDefaultSelectedColorlink 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.