Giter VIP home page Giter VIP logo

gokul3897 / create-a-diagram-component-in-a-blazor-server-application Goto Github PK

View Code? Open in Web Editor NEW

This project forked from syncfusionexamples/create-a-diagram-component-in-a-blazor-server-application

0.0 0.0 0.0 277 KB

This is a quick-start project that helps you create the Syncfusion Blazor Diagram using Visual Studio 2019. This example explains how to create a Blazor application, add the Syncfusion Blazor package, and add the Syncfusion Blazor Diagram component to the Blazor server application. It also explains how to create a simple flowchart using nodes and connectors.

Home Page: https://blazor.syncfusion.com/

HTML 59.45% C# 21.92% CSS 18.62%

create-a-diagram-component-in-a-blazor-server-application's Introduction

Create a Diagram Component in a Blazor Server Application

This is a quick-start project that helps you create the Syncfusion Blazor Diagram using Visual Studio 2019. This example explains how to create a Blazor application, add the Syncfusion Blazor package, and add the Syncfusion Blazor Diagram component to the Blazor server application. It also explains how to create a simple flowchart using nodes and connectors.

Project prerequisites

Make sure you have a compatible version of .NET Core on your machine before starting to work on this project. You also need the following:

How to run this application

To run this application, you need to first clone or download this ‘Create a Diagram Component in a Blazor Server Application’ repository and then open it in Visual Studio 2019. Now, build and run your project to view the output.

Overview

The Blazor Diagram is a feature-rich library for visualizing and creating diagrams. It supports creating flowcharts, organizational charts, mind maps, and BPMN charts either through code or a visual interface.

Flowchart

The Blazor Diagram component provides all the standard flowchart shapes as ready-made objects to build flowcharts, making it is easy to add them to a diagram surface in a single call.

{:.list-unstyled}

Organizational chart

Built-in automatic layout algorithm specifically made for organizational charts to arrange the parent and child node positions automatically.

{:.list-unstyled}

Mind map

The built-in automatic layout algorithm is also built for mind map diagrams, which allows you to define which node should be at the center and which nodes should be placed around the center node in the diagram surface.

{:.list-unstyled}

Nodes

Visualize any graphical object using nodes, which can be arranged and manipulated at the same time on a Blazor diagram page. They allow the following:

  • Use many predefined standard shapes
  • Create and add custom shapes easily.
  • Fully customize the appearance of a node.
  • Design a node UI template and reuse it across multiple nodes.

Connectors

A connector represents a relationship between two nodes. Some of the key features like connector types, bridging, and more.

Types

The Blazor Diagram component provides straight, orthogonal, polyline, and curved connector types. You can choose any of these based on the type of Blazor diagram or relationship between the connected nodes.

Bridging or line jumps

Use bridging (line jumps) to illustrate a connector’s route, making it easy to read where connectors overlap each other in a dense diagram.

Arrowheads

Use different types of predefined arrowheads to illustrate flow direction in flowchart diagrams. You can also build your own custom arrowheads.

Appearance

Like nodes, the connector look and feel can also be customized any way you want. The Blazor Diagram component provides a rich set of properties through which you can customize connector color, thickness, dash and dot appearance, rounded corners, and even decorators.

Ports (connection points)

Attach connectors to specific places on a node through different types of ports or connecting points.

Labels

Additional information can be shown by adding text or labels on nodes and connectors.

Edit

You can add and edit text at runtime and mark it read-only if it should not be edited.

Multiple labels

Add any number of labels and align them individually.

Alignment

Labels include sophisticated alignment options: Place inside or outside a node, or at the source or target end of a connector. Automatically align when a node or connector moves.

Interactive features

Use interactive features to improve the editing experience of a Blazor diagram at runtime. Furthermore, you can easily edit a Blazor diagram with mouse, touchscreen, or keyboard interfaces.

Select and drag

Select one or more nodes, connectors, or annotations and edit them using thumbs or handlers.

Resize

You can resize a node in eight different directions and lock a node’s aspect ratios to keep its shape. You can also resize multiple objects at the same time.

Rotate

Rotate selected nodes from 0 to 360 degrees.

Undo and redo

Don’t worry when you edit by mistake—undo and redo commands help to easily correct recent changes.

Clipboard

Cut, copy, paste, or duplicate selected objects within and across Blazor diagrams.

Z-order

When multiple objects overlap, the z-order controls which object is at the top and which is at the bottom.

Snap

Precisely align nodes, connectors, and annotations easily while dragging just by snapping to the nearest gridlines or objects.

Grouping

You can combine multiple nodes into a group and then interact with them as a single object. Nested groups are also possible with our Blazor Diagram control.

Quick commands

Frequently used commands like delete, connect, and duplicate can be shown as buttons near a selector. This makes it easy for users to quickly perform those operations instead of searching for the correct buttons in a toolbox.

Alignment

Our Blazor Diagram library has predefined alignment commands that enable you to align the selected objects nodes and connectors with respect to the selection boundary.

Spacing commands

Spacing commands enable you to place selected objects on the Blazor diagram at equal intervals from each other.

Sizing commands

Use sizing commands to equally size selected nodes with respect to the first selected object.

Align commands

All the nodes or connectors in the selection list can be aligned at the left, right, or center horizontally, or aligned at the top, bottom, or middle vertically with respect to the selection boundary.

Automatic layout

Use automatic layouts to arrange nodes automatically based on a predefined layout algorithm. Features built-in hierarchical tree, radial tree, and symmetric layouts.

Ruler

Rulers allow you to measure the distance of nodes or connectors from the origin of the page. This is especially useful in creating scale models.

Symbol palette

Includes a gallery of stencils, reusable symbols, and nodes that can be dragged onto the surface of a Blazor diagram.

Overview panel

The overview panel allows you to improve the navigation experience when exploring large Blazor diagrams. It displays a small preview of the full Blazor diagram page that allows users to zoom and pan within it.

Drawing tools

Draw all kinds of built-in nodes and connect them with connectors interactively by just clicking and dragging on the drawing area.

Zoom and pan tools

View a large diagram closely or assume a wider view by zooming in and out. Also, navigate from one region of a diagram to another by panning across the Blazor diagram.

Data binding

Populate Blazor diagrams with nodes and connectors created and positioned based on data from data sources. In addition, data in any format can be easily converted, mapped, and consumed in the Blazor diagram by setting a few properties, without having to write any code. The Blazor Diagram library also supports loading data from a list or IEnumerable collection.

Exporting

You can export the Blazor diagram to different image files such as PNG, JPEG, BMP, and SVG.

Printing

Print Blazor diagrams from the browser. You can also customize the page size, orientation, and page margin, and fit a Blazor diagram to a single page.

Serialization

You can save your Blazor diagram state in JSON format and load it back later for further editing using the serializer.

Miscellaneous

In addition to all the features listed thus far, there many more that enhance the diagramming experience.

Gridlines

Gridlines provide guidance when trying to align objects.

Page layout

Give a page-like appearance to the drawing surface using page size, orientation, and margins.

Tooltip

Use tooltips to provide additional information about a node.

Context menu

Easily map frequently used commands to the context menu.

Related Links

Learn about more Blazor Diagram

Download Free Trial

Pricing

Documentation

Online Examples

Community Forums

Suggest a feature

About Syncfusion Blazor Components

The Syncfusion's Blazor component library offers over 70 UI components to work with Blazor server-side and client-side (Blazor WebAssembly) projects seamlessly. In addition to Diagram, we provide popular Blazor Components such as DataGrid,Charts Scheduler, File Upload, Word Processor, and more.

About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 23,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1600+ controls and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (Windows Forms, WPF, WinUI(Preview) and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.


[email protected] | www.syncfusion.com | 1-888-9 DOTNET

create-a-diagram-component-in-a-blazor-server-application's People

Contributors

abooarulraj avatar gokul3897 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.