documentationfor yFiles for HTML 2.6

IPortOwner

The common interface for items in an IGraph that may own ports.

Inheritance Hierarchy
Implemented Interfaces

Remarks

Typically this interface is actively implemented by INode's in an IGraph. To get to the edge instances that connect to the ports, the edgesAt method can be used. Alternatively for each IPort in ports, one can use the edgesAt method provided by IGraph. Like all items in an IGraph, this item supports the lookup method that can be used to query additional aspects of the item.

Examples

Relationship between port and port owner
// add a port to the owner
const port = graph.addPort(owner)

// the port's Owner property is set to the owner
console.log(port.owner === owner) // true
// the port is in its owner's Ports collection
console.log(owner.ports.includes(port)) // true

Type Details

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

See Also

Properties

Methods