Class. Schild Element Impl
id:
string
Defined in: packages/sprotty/src/base/model/smodel.ts:27
readonly
parent:SParentElementImpl
Defined in: packages/sprotty/src/base/model/smodel.ts:159
type:
string
Defined in: packages/sprotty/src/base/model/smodel.ts:26
get index():
ModelIndexImpl
Defined in: packages/sprotty/src/base/model/smodel.ts:44
get root():
SModelRootImpl
Defined in: packages/sprotty/src/base/model/smodel.ts:31
add(
child
,index?
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:74
SChildElementImpl
number
void
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.
symbol
boolean
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.
Point
| Bounds
Bounds
SParentElementImpl
.localToParent
move(
child
,newIndex
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:115
SChildElementImpl
number
void
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.
Point
| Bounds
Bounds
SParentElementImpl
.parentToLocal
remove(
child
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:88
SChildElementImpl
void
removeAll(
filter?
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:98
(e
) => boolean
void