documentationfor yFiles for HTML 2.6

FoldingEdgeState

A data container representing the state of an edge whose source and/or target node are collapsed.

Inheritance Hierarchy
FoldingLabelOwnerState
FoldingEdgeState

Remarks

When the properties of the state are changed, these changes are reflected immediately in the views.

Examples

const state = manager.getFoldingEdgeState(
  new FoldingEdgeStateId(
    masterEdge,
    masterSource,
    true,
    masterTarget,
    false
  )
)
state.style = new PolylineEdgeStyle({ stroke: Stroke.RED })
const state = manager.getFoldingEdgeState(
  new FoldingEdgeStateId(
    masterEdge,
    masterSource,
    true,
    masterTarget,
    false
  )
)
const portState = state.sourcePort
portState.locationParameter = FreeNodePortLocationModel.NODE_RIGHT_ANCHORED

Type Details

yfiles module
view-folding
yfiles-umd modules
view-folding, view-graphml, view
Legacy UMD name
yfiles.graph.FoldingEdgeState

See Also

Properties

Methods