Interface for classes can resolve graph elements based on their GraphML id attribute(s).
Type Details
- yfiles module
- view-graphml
- yfiles-umd modules
- view-graphml, view
- Legacy UMD name
- yfiles.graphml.IGraphElementResolver
Methods
Resolve the GraphML id
to an IEdge instance.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
Resolve the GraphML id
to an IGraph instance.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
Resolve the GraphML id
to an INode instance.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
Resolve the GraphML id
to an IPort instance.
Remarks
ownerId
attribute.Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- ownerId - string
- The GraphML id of the port owner.
- id - string
- The id that should be resolved.
Returns
Static Methods
Creates an implementation of the interface IGraphElementResolver from the given definition.
Remarks
Parameters
A map of options to pass to the method.
- resolveNode - function(IParseContext, string):INode
Resolve the GraphML
id
to an INode instance.This property holds the implementation for resolveNode.
- resolveGraph - function(IParseContext, string):IGraph
Resolve the GraphML
id
to an IGraph instance.This property holds the implementation for resolveGraph.
- resolvePort - function(IParseContext, string, string):IPort
Resolve the GraphML
id
to an IPort instance.This property holds the implementation for resolvePort.
- resolveEdge - function(IParseContext, string):IEdge
Resolve the GraphML
id
to an IEdge instance.This property holds the implementation for resolveEdge.
Returns
- ↪IGraphElementResolver
- An instance of the IGraphElementResolver interface based on the given definition.