Skip to content

Commit

Permalink
Merge pull request #70 from zHaytam/develop
Browse files Browse the repository at this point in the history
Version 1.5.2
  • Loading branch information
zHaytam authored Jan 18, 2021
2 parents 49311ac + 5b7fd00 commit 0dda9a8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ 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).

## Diagrams [1.5.2] - 2021-01-18

## Fixed

- Missing MouseUp event on links.

## Diagrams [1.5.1] - 2021-01-09

## Added
Expand Down
6 changes: 3 additions & 3 deletions src/Blazor.Diagrams.Core/Blazor.Diagrams.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>zHaytam</Authors>
<Description>A fully customizable and extensible all-purpose diagrams library for Blazor</Description>
<AssemblyVersion>1.5.1</AssemblyVersion>
<FileVersion>1.5.1</FileVersion>
<AssemblyVersion>1.5.2</AssemblyVersion>
<FileVersion>1.5.2</FileVersion>
<RepositoryUrl>https://github.com/zHaytam/Blazor.Diagrams</RepositoryUrl>
<Version>1.5.1</Version>
<Version>1.5.2</Version>
<PackageId>Z.Blazor.Diagrams.Core</PackageId>
<PackageTags>blazor diagrams diagramming svg drag</PackageTags>
<Product>Z.Blazor.Diagrams.Core</Product>
Expand Down
6 changes: 3 additions & 3 deletions src/Blazor.Diagrams/Blazor.Diagrams.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<RazorLangVersion>3.0</RazorLangVersion>
<Authors>zHaytam</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AssemblyVersion>1.5.1</AssemblyVersion>
<FileVersion>1.5.1</FileVersion>
<AssemblyVersion>1.5.2</AssemblyVersion>
<FileVersion>1.5.2</FileVersion>
<RepositoryUrl>https://github.com/zHaytam/Blazor.Diagrams</RepositoryUrl>
<Description>A fully customizable and extensible all-purpose diagrams library for Blazor</Description>
<Version>1.5.1</Version>
<Version>1.5.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageTags>blazor diagrams diagramming svg drag</PackageTags>
<PackageId>Z.Blazor.Diagrams</PackageId>
Expand Down
7 changes: 5 additions & 2 deletions src/Blazor.Diagrams/Components/Renderers/LinkRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ protected override void BuildRenderTree(RenderTreeBuilder builder)
builder.AddAttribute(1, "class", "link");
builder.AddAttribute(2, "onmousedown", EventCallback.Factory.Create<MouseEventArgs>(this, OnMouseDown));
builder.AddEventStopPropagationAttribute(3, "onmousedown", true);
builder.OpenComponent(4, componentType);
builder.AddAttribute(5, "Link", Link);
builder.AddAttribute(4, "onmouseup", EventCallback.Factory.Create<MouseEventArgs>(this, OnMouseUp));
builder.AddEventStopPropagationAttribute(5, "onmouseup", true);
builder.OpenComponent(6, componentType);
builder.AddAttribute(7, "Link", Link);
builder.CloseComponent();
builder.CloseElement();
}
Expand All @@ -56,5 +58,6 @@ private void Link_Changed()
}

private void OnMouseDown(MouseEventArgs e) => DiagramManager.OnMouseDown(Link, e);
private void OnMouseUp(MouseEventArgs e) => DiagramManager.OnMouseUp(Link, e);
}
}

0 comments on commit 0dda9a8

Please sign in to comment.