Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Class. Bezier Ellipse Anchor

sprotty / BezierEllipseAnchor

Class: BezierEllipseAnchor

Defined in: packages/sprotty/src/features/routing/bezier-anchors.ts:23

Extends

Constructors

Constructor

new BezierEllipseAnchor(): BezierEllipseAnchor

Returns

BezierEllipseAnchor

Inherited from

EllipseAnchor.constructor

Accessors

kind

Get Signature

get kind(): string

Defined in: packages/sprotty/src/features/routing/bezier-anchors.ts:25

Returns

string

Overrides

EllipseAnchor.kind

Methods

getAnchor()

getAnchor(connectable, refPoint, offset): Point

Defined in: packages/sprotty/src/features/routing/polyline-anchors.ts:31

Compute an anchor position for routing an edge towards this element.

The default implementation returns the element’s center point. If edges should be connected differently, e.g. to some point on the boundary of the element’s view, the according computation should be implemented in a subclass by overriding this method.

Parameters

connectable

SConnectableElementImpl

The node or port an edge should be connected to.

refPoint

Point

offset

number = 0

An optional offset value to be considered in the anchor computation; positive values should shift the anchor away from this element, negative values should shift the anchor more to the inside. Use this to adapt ot arrow heads.

Returns

Point

Inherited from

EllipseAnchor.getAnchor