Class. Foreign Object Element Impl
optional
cssClasses:string
[]
Defined in: packages/sprotty/src/base/model/smodel.ts:29
ShapedPreRenderedElementImpl
.cssClasses
optional
features:FeatureSet
Defined in: packages/sprotty/src/base/model/smodel.ts:28
ShapedPreRenderedElementImpl
.features
id:
string
Defined in: packages/sprotty/src/base/model/smodel.ts:27
ShapedPreRenderedElementImpl
.id
namespace:
string
Defined in: packages/sprotty/src/lib/model.ts:168
readonly
parent:SParentElementImpl
Defined in: packages/sprotty/src/base/model/smodel.ts:159
ShapedPreRenderedElementImpl
.parent
position:
Point
=Point.ORIGIN
Defined in: packages/sprotty/src/lib/model.ts:126
ShapedPreRenderedElementImpl
.position
selected:
boolean
=false
Defined in: packages/sprotty/src/lib/model.ts:128
ShapedPreRenderedElementImpl
.selected
size:
Dimension
=Dimension.EMPTY
Defined in: packages/sprotty/src/lib/model.ts:127
ShapedPreRenderedElementImpl
.size
type:
string
Defined in: packages/sprotty/src/base/model/smodel.ts:26
ShapedPreRenderedElementImpl
.type
readonly
static
DEFAULT_FEATURES:symbol
[]
Defined in: packages/sprotty/src/lib/model.ts:124
ShapedPreRenderedElementImpl
.DEFAULT_FEATURES
get bounds():
Bounds
Defined in: packages/sprotty/src/lib/model.ts:169
Bounds
ShapedPreRenderedElementImpl
.bounds
get index():
ModelIndexImpl
Defined in: packages/sprotty/src/base/model/smodel.ts:44
ShapedPreRenderedElementImpl
.index
get root():
SModelRootImpl
Defined in: packages/sprotty/src/base/model/smodel.ts:31
ShapedPreRenderedElementImpl
.root
add(
child
,index?
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:74
number
void
ShapedPreRenderedElementImpl
.add
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
ShapedPreRenderedElementImpl
.hasFeature
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
ShapedPreRenderedElementImpl
.localToParent
move(
child
,newIndex
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:115
number
void
ShapedPreRenderedElementImpl
.move
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
ShapedPreRenderedElementImpl
.parentToLocal
remove(
child
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:88
void
ShapedPreRenderedElementImpl
.remove
removeAll(
filter?
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:98
(e
) => boolean
void