Class. Viewport Root Element Impl
optional
features:FeatureSet
Defined in: packages/sprotty/src/base/model/smodel.ts:28
id:
string
Defined in: packages/sprotty/src/base/model/smodel.ts:27
position:
Point
=Point.ORIGIN
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:33
optional
revision:number
Defined in: packages/sprotty/src/base/model/smodel.ts:167
scroll:
Point
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:31
Viewport.scroll
size:
Dimension
=Dimension.EMPTY
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:34
type:
string
Defined in: packages/sprotty/src/base/model/smodel.ts:26
zoom:
number
=1
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:32
Viewport.zoom
readonly
static
DEFAULT_FEATURES:symbol
[]
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:29
get bounds():
Bounds
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:40
Bounds
set bounds(
newBounds
):void
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:49
Bounds
void
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
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/features/viewport/viewport-root.ts:60
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
move(
child
,newIndex
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:115
number
void
parentToLocal(
point
):Bounds
Defined in: packages/sprotty/src/features/viewport/viewport-root.ts:74
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
remove(
child
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:88
void
removeAll(
filter?
):void
Defined in: packages/sprotty/src/base/model/smodel.ts:98
(e
) => boolean
void