Skip to content

docs(Diagram): Add Diagram component documentation #3089

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

Merged
merged 23 commits into from
Aug 4, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
docs(Diagram): Continued
  • Loading branch information
dimodi committed Jul 2, 2025
commit a693ce633a98ee24b12f1ddae9cb40fe5adedc7c
15 changes: 14 additions & 1 deletion components/diagram/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To create the Telerik Diagram for Blazor declaratively:
1. [Define the Diagram layout](slug:diagram-layouts) through the `Type` parameter of the child `<DiagramLayout>` tag.
1. [Define shapes](slug:diagram-shapes) with `<DiagramShape>` tags inside `<DiagramShapes>`.
1. [Define the connections](slug:diagram-connections) between the shapes with `<DiagramConnection>` tags inside `<DiagramConnections>`.
1. (optional) Define the Diagram `Height`, `Width`, and initial `Zoom` for optimal display.
1. (optional) Define the Diagram `Height`, `Width`, and [initial `Zoom`](#zoom) for optimal display. The default height is `"600px"`.
1. (optional) Define the default type of all Diagram [shapes](slug:diagram-shapes#shape-types) and [connections](slug:diagram-connections#connection-types).

>caption Basic Blazor Diagram
Expand Down Expand Up @@ -216,6 +216,19 @@ The shapes are the graph nodes and the main building blocks of the Diagram compo

Connections link shapes or points in the Diagram. Users can create, modify or remove connections at runtime. See the [Diagram connection features and settings](slug:diagram-connections).

## Zoom

The Diagram allows users to zoom the graph in and out for better perception. The following code snippet shows the relevant parameters together with their default values. The default `Zoom` value is is effectively `100%` and the maximum zoom is `200%`. A `Zoom` value below `0.5.` may not be readable, unless the shapes use a large font size or users zoom their browser.

>caption Zoom-related Diagram parameters

````RAZOR.skip-repl
<TelerikDiagram Zoom="1"
ZoomRate="0.1"
MaxZoom="2"
MinZoom="0" />
````

## Events

The Telerik Diagram fires events that enable the app to detect and react to user interactions with the component. Find out more about the [Diagram events and event arguments](slug:diagram-events).
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy