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

Class. Foreign Object Element Impl

cssClasses?

optional cssClasses: string[]

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

Inherited from

ShapedPreRenderedElementImpl.cssClasses


features?

optional features: FeatureSet

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

Inherited from

ShapedPreRenderedElementImpl.features


id

id: string

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

Inherited from

ShapedPreRenderedElementImpl.id


namespace

namespace: string

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


parent

readonly parent: SParentElementImpl

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

Inherited from

ShapedPreRenderedElementImpl.parent


position

position: Point = Point.ORIGIN

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

Inherited from

ShapedPreRenderedElementImpl.position


selected

selected: boolean = false

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

Inherited from

ShapedPreRenderedElementImpl.selected


size

size: Dimension = Dimension.EMPTY

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

Inherited from

ShapedPreRenderedElementImpl.size


type

type: string

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

Inherited from

ShapedPreRenderedElementImpl.type


DEFAULT_FEATURES

readonly static DEFAULT_FEATURES: symbol[]

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

Inherited from

ShapedPreRenderedElementImpl.DEFAULT_FEATURES

Accessors

bounds

Get Signature

get bounds(): Bounds

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

Returns

Bounds

Overrides

ShapedPreRenderedElementImpl.bounds


index

Get Signature

get index(): ModelIndexImpl

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

Returns

ModelIndexImpl

Inherited from

ShapedPreRenderedElementImpl.index


root

Get Signature

get root(): SModelRootImpl

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

Returns

SModelRootImpl

Inherited from

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

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

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

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

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

ShapedPreRenderedElementImpl.parentToLocal


remove()

remove(child): void

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

Parameters

child

SChildElementImpl

Returns

void

Inherited from

ShapedPreRenderedElementImpl.remove


removeAll()

removeAll(filter?): void

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

Parameters

filter?

(e) => boolean

Returns

void

Inherited from

ShapedPreRenderedElementImpl.removeAll