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

Class. Rectangular Port

hoverFeedback

hoverFeedback: boolean = false

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

Inherited from

SPortImpl.hoverFeedback


id

id: string

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

Inherited from

SPortImpl.id


layoutOptions?

optional layoutOptions: ModelLayoutOptions

Defined in: packages/sprotty/src/features/bounds/model.ts:181

Inherited from

SPortImpl.layoutOptions


opacity

opacity: number = 1

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

Inherited from

SPortImpl.opacity


parent

readonly parent: SParentElementImpl

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

Inherited from

SPortImpl.parent


position

position: Point = Point.ORIGIN

Defined in: packages/sprotty/src/features/bounds/model.ts:179

Inherited from

SPortImpl.position


selected

selected: boolean = false

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

Inherited from

SPortImpl.selected


size

size: Dimension = Dimension.EMPTY

Defined in: packages/sprotty/src/features/bounds/model.ts:180

Inherited from

SPortImpl.size


strokeWidth

strokeWidth: number = 0

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

Inherited from

SPortImpl.strokeWidth


type

type: string

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

Inherited from

SPortImpl.type


DEFAULT_FEATURES

readonly static DEFAULT_FEATURES: symbol[]

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

Inherited from

SPortImpl.DEFAULT_FEATURES

Accessors

anchorKind

Get Signature

get anchorKind(): string

Defined in: packages/sprotty/src/lib/model.ts:66

Returns

string

Overrides

SPortImpl.anchorKind


bounds

Get Signature

get bounds(): Bounds

Defined in: packages/sprotty/src/features/bounds/model.ts:183

Returns

Bounds

Set Signature

set bounds(newBounds): void

Defined in: packages/sprotty/src/features/bounds/model.ts:192

Parameters
newBounds

Bounds

Returns

void

Inherited from

SPortImpl.bounds


incomingEdges

Get Signature

get incomingEdges(): FluentIterable<SEdgeImpl>

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

The incoming edges of this connectable element. They are resolved by the index, which must be an SGraphIndex for efficient lookup.

Returns

FluentIterable<SEdgeImpl>

Inherited from

SPortImpl.incomingEdges


index

Get Signature

get index(): ModelIndexImpl

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

Returns

ModelIndexImpl

Inherited from

SPortImpl.index


outgoingEdges

Get Signature

get outgoingEdges(): FluentIterable<SEdgeImpl>

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

The outgoing edges of this connectable element. They are resolved by the index, which must be an SGraphIndex for efficient lookup.

Returns

FluentIterable<SEdgeImpl>

Inherited from

SPortImpl.outgoingEdges


root

Get Signature

get root(): SModelRootImpl

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

Returns

SModelRootImpl

Inherited from

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

SPortImpl.add


canConnect()

canConnect(routable, role): boolean

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

Parameters

routable

SRoutableElementImpl

role

"source" | "target"

Returns

boolean

Inherited from

SPortImpl.canConnect


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

SPortImpl.hasFeature


localToParent()

localToParent(point): Bounds

Defined in: packages/sprotty/src/features/bounds/model.ts:203

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

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

SPortImpl.move


parentToLocal()

parentToLocal(point): Bounds

Defined in: packages/sprotty/src/features/bounds/model.ts:217

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

SPortImpl.parentToLocal


remove()

remove(child): void

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

Parameters

child

SChildElementImpl

Returns

void

Inherited from

SPortImpl.remove


removeAll()

removeAll(filter?): void

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

Parameters

filter?

(e) => boolean

Returns

void

Inherited from

SPortImpl.removeAll