Skip to content

892717: Orthogonal Segment Thumb Customization #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|c:\\users\\sriramtamilvanan\\source\\repos\\orthogonalthumbsetting\\orthogonalthumbsetting\\orthogonalthumbsetting.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|",
"RelativeMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|solutionrelative:orthogonalthumbsetting\\orthogonalthumbsetting.csproj||{FA3CD31E-987B-443A-9B81-186104E8DAC1}|"
},
{
"AbsoluteMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|c:\\users\\sriramtamilvanan\\source\\repos\\orthogonalthumbsetting\\orthogonalthumbsetting\\pages\\index.razor||{40D31677-CBC0-4297-A9EF-89D907823A98}",
"RelativeMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|solutionrelative:orthogonalthumbsetting\\pages\\index.razor||{40D31677-CBC0-4297-A9EF-89D907823A98}"
},
{
"AbsoluteMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|c:\\users\\sriramtamilvanan\\source\\repos\\orthogonalthumbsetting\\orthogonalthumbsetting\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|solutionrelative:orthogonalthumbsetting\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|c:\\users\\sriramtamilvanan\\source\\repos\\orthogonalthumbsetting\\orthogonalthumbsetting\\pages\\_layout.cshtml||{40D31677-CBC0-4297-A9EF-89D907823A98}",
"RelativeMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|solutionrelative:orthogonalthumbsetting\\pages\\_layout.cshtml||{40D31677-CBC0-4297-A9EF-89D907823A98}"
},
{
"AbsoluteMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|c:\\users\\sriramtamilvanan\\source\\repos\\orthogonalthumbsetting\\orthogonalthumbsetting\\shared\\mainlayout.razor||{40D31677-CBC0-4297-A9EF-89D907823A98}",
"RelativeMoniker": "D:0:0:{C465AF71-DCCE-446E-8412-B16CF1D45859}|OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj|solutionrelative:orthogonalthumbsetting\\shared\\mainlayout.razor||{40D31677-CBC0-4297-A9EF-89D907823A98}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Bookmark",
"Name": "ST:0:0:{34e76e81-ee4a-11d0-ae2e-00a0c90fffc3}"
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "OrthogonalThumbSetting",
"DocumentMoniker": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj",
"RelativeDocumentMoniker": "OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj",
"ToolTip": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj",
"RelativeToolTip": "OrthogonalThumbSetting\\OrthogonalThumbSetting.csproj",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA0AAAAAAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
"WhenOpened": "2024-08-13T10:39:02.859Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "MainLayout.razor",
"DocumentMoniker": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Shared\\MainLayout.razor",
"RelativeDocumentMoniker": "OrthogonalThumbSetting\\Shared\\MainLayout.razor",
"ToolTip": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Shared\\MainLayout.razor",
"RelativeToolTip": "OrthogonalThumbSetting\\Shared\\MainLayout.razor",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAAUAAAAEAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000759|",
"WhenOpened": "2024-08-13T10:08:32.387Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "_Layout.cshtml",
"DocumentMoniker": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Pages\\_Layout.cshtml",
"RelativeDocumentMoniker": "OrthogonalThumbSetting\\Pages\\_Layout.cshtml",
"ToolTip": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Pages\\_Layout.cshtml",
"RelativeToolTip": "OrthogonalThumbSetting\\Pages\\_Layout.cshtml",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA4AAAArAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000759|",
"WhenOpened": "2024-08-13T10:07:42.093Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "Program.cs",
"DocumentMoniker": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Program.cs",
"RelativeDocumentMoniker": "OrthogonalThumbSetting\\Program.cs",
"ToolTip": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Program.cs",
"RelativeToolTip": "OrthogonalThumbSetting\\Program.cs",
"ViewState": "AQIAAAAAAAAAAAAAAAAAAA4AAAAlAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-08-13T10:07:34.328Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "Index.razor",
"DocumentMoniker": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Pages\\Index.razor",
"RelativeDocumentMoniker": "OrthogonalThumbSetting\\Pages\\Index.razor",
"ToolTip": "C:\\Users\\SriRamTamilVanan\\source\\repos\\OrthogonalThumbSetting\\OrthogonalThumbSetting\\Pages\\Index.razor",
"RelativeToolTip": "OrthogonalThumbSetting\\Pages\\Index.razor",
"ViewState": "AQIAAAAAAAAAAAAAAAAAABkAAAABAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000759|",
"WhenOpened": "2024-08-13T10:07:06.791Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(MainLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Syncfusion.Blazor.Diagram" Version="*" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@page "/"

@using Syncfusion.Blazor.Diagram

<SfDiagramComponent @ref="Diagram" Width="1000px" Height="500px" Connectors="@connectors" ConnectorSegmentThumb="@segmentThumbSettings">
</SfDiagramComponent>

@code
{
SfDiagramComponent Diagram;
DiagramObjectCollection<Connector> connectors = new DiagramObjectCollection<Connector>();
SegmentThumbSettings segmentThumbSettings = new SegmentThumbSettings() { Shape = SegmentThumbShapes.Fletch };

protected override void OnInitialized()
{
Connector Connector = new Connector()
{
ID = "Connector2",
Constraints = ConnectorConstraints.Default | ConnectorConstraints.DragSegmentThumb | ConnectorConstraints.InheritSegmentThumbShape,
Type = ConnectorSegmentType.Orthogonal,
SourcePoint = new DiagramPoint { X = 400, Y = 100 },
TargetPoint = new DiagramPoint { X = 500, Y = 200 }
};
connectors.Add(Connector);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@page "/"
@namespace OrthogonalThumbSetting.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
Layout = "_Layout";
}

<component type="typeof(App)" render-mode="ServerPrerendered" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@using Microsoft.AspNetCore.Components.Web
@namespace OrthogonalThumbSetting.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="~/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link href="css/site.css" rel="stylesheet" />
<link href="OrthogonalThumbSetting.styles.css" rel="stylesheet" />
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
<script src="_content/Syncfusion.Blazor/scripts/syncfusion-blazor.min.js" type="text/javascript"></script>
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered" />
</head>
<body>
@RenderBody()

<div id="blazor-error-ui">
<environment include="Staging,Production">
An error has occurred. This application may no longer respond until reloaded.
</environment>
<environment include="Development">
An unhandled exception has occurred. See browser dev tools for details.
</environment>
<a href="" class="reload">Reload</a>
<a class="dismiss">🗙</a>
</div>

<script src="_framework/blazor.server.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Syncfusion.Blazor;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddSyncfusionBlazor();

var app = builder.Build();

// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}

app.UseHttpsRedirection();

app.UseStaticFiles();

app.UseRouting();

app.MapBlazorHub();
app.MapFallbackToPage("/_Host");

app.Run();
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:19894",
"sslPort": 44368
}
},
"profiles": {
"OrthogonalThumbSetting": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7206;http://localhost:5124",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@inherits LayoutComponentBase

<PageTitle>OrthogonalThumbSetting</PageTitle>

<div class="page">


<main>


<article class="content px-4">
@Body
</article>
</main>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
.page {
position: relative;
display: flex;
flex-direction: column;
}

main {
flex: 1;
}

.sidebar {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5;
justify-content: flex-end;
height: 3.5rem;
display: flex;
align-items: center;
}

.top-row ::deep a, .top-row .btn-link {
white-space: nowrap;
margin-left: 1.5rem;
}

.top-row a:first-child {
overflow: hidden;
text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
.top-row:not(.auth) {
display: none;
}

.top-row.auth {
justify-content: space-between;
}

.top-row a, .top-row .btn-link {
margin-left: 0;
}
}

@media (min-width: 641px) {
.page {
flex-direction: row;
}

.sidebar {
width: 250px;
height: 100vh;
position: sticky;
top: 0;
}

.top-row {
position: sticky;
top: 0;
z-index: 1;
}

.top-row, article {
padding-left: 2rem !important;
padding-right: 1.5rem !important;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@using System.Net.Http
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using OrthogonalThumbSetting
@using OrthogonalThumbSetting.Shared
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"DetailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading