alignmentFocus property

Spot alignmentFocus

Gets or sets the spot on this GraphObject to be used as the alignment point in Spot and Fixed Panels. Value must be of the Spot.

The default value is Spot.Default, which means that the Panel type can decide the effective alignment spot.

The #alignment is often used along with this property to specify where this object should be positioned in a Panel.

For Panel.Graduated, the alignmentFocus spot determines the spot on a child element to be aligned with some point along the main element.

When you want a link label Node to be positioned by its location spot rather than by this alignmentFocus spot, you can set this property to Spot.None, only on Nodes.

For examples of alignments in different panels, see the Introduction page on Panels.

WARNING: Since 2.0, for Spot Panels, the offsetX/offsetY of #alignmentFocus has been reversed. The offsetX/Y now describes offset distance from the alignmentFocus point to the alignment point, rather than the opposite. This is what it has always described when using #alignmentFocus with Link Labels.

Implementation

_i3.Spot get alignmentFocus => _i4.getProperty(
      this,
      'alignmentFocus',
    );
void alignmentFocus=(Spot value)

Implementation

set alignmentFocus(_i3.Spot value) {
  _i4.setProperty(
    this,
    'alignmentFocus',
    value,
  );
}