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

Class. Sedge Impl

hoverFeedback

hoverFeedback: boolean = false

Defined in: packages/sprotty/src/graph/sgraph.ts:126

Implementation of

Hoverable.hoverFeedback


id

id: string

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

Inherited from

SRoutableElementImpl.id


opacity

opacity: number = 1

Defined in: packages/sprotty/src/graph/sgraph.ts:127

Implementation of

Fadeable.opacity


parent

readonly parent: SParentElementImpl

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

Inherited from

SRoutableElementImpl.parent


routerKind?

optional routerKind: string

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

Inherited from

SRoutableElementImpl.routerKind


routingPoints

routingPoints: Point[] = []

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

Inherited from

SRoutableElementImpl.routingPoints


selected

selected: boolean = false

Defined in: packages/sprotty/src/graph/sgraph.ts:125

Implementation of

Selectable.selected


sourceAnchorCorrection?

optional sourceAnchorCorrection: number

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

Inherited from

SRoutableElementImpl.sourceAnchorCorrection


sourceId

sourceId: string

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

Inherited from

SRoutableElementImpl.sourceId


targetAnchorCorrection?

optional targetAnchorCorrection: number

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

Inherited from

SRoutableElementImpl.targetAnchorCorrection


targetId

targetId: string

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

Inherited from

SRoutableElementImpl.targetId


type

type: string

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

Inherited from

SRoutableElementImpl.type


DEFAULT_FEATURES

readonly static DEFAULT_FEATURES: symbol[]

Defined in: packages/sprotty/src/graph/sgraph.ts:122

Accessors

bounds

Get Signature

get bounds(): Bounds

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

Returns

Bounds

Implementation of

InternalBoundsAware.bounds

Inherited from

SRoutableElementImpl.bounds


index

Get Signature

get index(): ModelIndexImpl

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

Returns

ModelIndexImpl

Inherited from

SRoutableElementImpl.index


root

Get Signature

get root(): SModelRootImpl

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

Returns

SModelRootImpl

Inherited from

SRoutableElementImpl.root


source

Get Signature

get source(): undefined | SConnectableElementImpl

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

Returns

undefined | SConnectableElementImpl

Inherited from

SRoutableElementImpl.source


target

Get Signature

get target(): undefined | SConnectableElementImpl

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

Returns

undefined | SConnectableElementImpl

Inherited from

SRoutableElementImpl.target

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

SRoutableElementImpl.add


hasFeature()

hasFeature(feature): boolean

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

A feature is a symbol identifying some functionality that can be enabled or disabled for a model element. The set of supported features is determined by the features property.

Parameters

feature

symbol

Returns

boolean

Inherited from

SRoutableElementImpl.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

SRoutableElementImpl.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

SRoutableElementImpl.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

SRoutableElementImpl.parentToLocal


remove()

remove(child): void

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

Parameters

child

SChildElementImpl

Returns

void

Inherited from

SRoutableElementImpl.remove


removeAll()

removeAll(filter?): void

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

Parameters

filter?

(e) => boolean

Returns

void

Inherited from

SRoutableElementImpl.removeAll