documentationfor yFiles for HTML 2.6

GraphComponent

A component for displaying and editing an IGraph.

Inheritance Hierarchy
CanvasComponent
GraphComponent
Implemented Interfaces

Remarks

This is a specialized CanvasComponent that can hold, display, and edit an IGraph instance. It provides access to the graph and selection instances.

This class has bindings for the following ICommands.

The ZOOM_TO_CURRENT_ITEM is enabled, if navigationCommandsEnabled is true.

Related Reading in the Developer's Guide

The components that can be used to display and edit a model are discussed in the section The Component for Displaying Graphs.

Related Programming Samples

Graph Viewer
Displays sample graphs from various application domains.
Graph Editor
Shows the graph editing features of the graph component.
01 Creating the View
Introduces the GraphComponent class, the central UI element for working with graphs.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.view.GraphComponent

See Also

Constructors

Properties

Methods

Events