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

Class. Srouting Handle Impl

editMode

editMode: boolean = false

Defined in: packages/sprotty/src/features/routing/model.ts:155

Whether the routing point is being dragged.


features?

optional features: FeatureSet

Defined in: packages/sprotty/src/base/model/smodel.ts:28

Inherited from

SChildElementImpl.features


hoverFeedback

hoverFeedback: boolean = false

Defined in: packages/sprotty/src/features/routing/model.ts:157

Implementation of

Hoverable.hoverFeedback


id

id: string

Defined in: packages/sprotty/src/base/model/smodel.ts:27

Inherited from

SChildElementImpl.id


kind

kind: RoutingHandleKind

Defined in: packages/sprotty/src/features/routing/model.ts:151

‘junction’ is a point where two line segments meet, ’line’ is a volatile handle placed on a line segment, ‘source’ and ’target’ are the respective anchors.


parent

readonly parent: SParentElementImpl

Defined in: packages/sprotty/src/base/model/smodel.ts:159

Inherited from

SChildElementImpl.parent


pointIndex

pointIndex: number

Defined in: packages/sprotty/src/features/routing/model.ts:153

The actual routing point index (junction) or the previous point index (line).


selected

selected: boolean = false

Defined in: packages/sprotty/src/features/routing/model.ts:158

Implementation of

Selectable.selected


type

type: string

Defined in: packages/sprotty/src/base/model/smodel.ts:26

Inherited from

SChildElementImpl.type


DEFAULT_FEATURES

readonly static DEFAULT_FEATURES: symbol[]

Defined in: packages/sprotty/src/features/routing/model.ts:144

Accessors

index

Get Signature

get index(): ModelIndexImpl

Defined in: packages/sprotty/src/base/model/smodel.ts:44

Returns

ModelIndexImpl

Inherited from

SChildElementImpl.index


root

Get Signature

get root(): SModelRootImpl

Defined in: packages/sprotty/src/base/model/smodel.ts:31

Returns

SModelRootImpl

Inherited from

SChildElementImpl.root

Methods

add()

add(child, index?): void

Defined in: packages/sprotty/src/base/model/smodel.ts:74

Parameters

child

SChildElementImpl

index?

number

Returns

void

Inherited from

SChildElementImpl.add


hasFeature()

hasFeature(feature): boolean

Defined in: packages/sprotty/src/features/routing/model.ts:165

SRoutingHandles are created using the constructor, so we hard-wire the default features

Parameters

feature

symbol

Returns

boolean

Overrides

SChildElementImpl.hasFeature


localToParent()

localToParent(point): Bounds

Defined in: packages/sprotty/src/base/model/smodel.ts:136

Transform the given bounds from the local coordinate system of this element to the coordinate system of its parent. This function should consider any transformation that is applied to the view of this element and its contents. The base implementation assumes that this element does not define a local coordinate system, so it leaves the bounds unchanged.

Parameters

point

Point | Bounds

Returns

Bounds

Inherited from

SChildElementImpl.localToParent


move()

move(child, newIndex): void

Defined in: packages/sprotty/src/base/model/smodel.ts:115

Parameters

child

SChildElementImpl

newIndex

number

Returns

void

Inherited from

SChildElementImpl.move


parentToLocal()

parentToLocal(point): Bounds

Defined in: packages/sprotty/src/base/model/smodel.ts:147

Transform the given bounds from the coordinate system of this element’s parent to its local coordinate system. This function should consider any transformation that is applied to the view of this element and its contents. The base implementation assumes that this element does not define a local coordinate system, so it leaves the bounds unchanged.

Parameters

point

Point | Bounds

Returns

Bounds

Inherited from

SChildElementImpl.parentToLocal


remove()

remove(child): void

Defined in: packages/sprotty/src/base/model/smodel.ts:88

Parameters

child

SChildElementImpl

Returns

void

Inherited from

SChildElementImpl.remove


removeAll()

removeAll(filter?): void

Defined in: packages/sprotty/src/base/model/smodel.ts:98

Parameters

filter?

(e) => boolean

Returns

void

Inherited from

SChildElementImpl.removeAll