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

Class. Hbox Layouter

getDx()

protected getDx(hAlign, bounds, maxWidth): number

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:118

Parameters

hAlign

HAlignment

bounds

Bounds

maxWidth

number

Returns

number

Inherited from

AbstractLayout.getDx


getDy()

protected getDy(vAlign, bounds, maxHeight): number

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:129

Parameters

vAlign

VAlignment

bounds

Bounds

maxHeight

number

Returns

number

Inherited from

AbstractLayout.getDy


getFinalContainerBounds()

protected getFinalContainerBounds(container, lastOffset, options, maxWidth, maxHeight): Bounds

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:54

Parameters

container

SParentElementImpl & InternalLayoutContainer

lastOffset

Point

options

HBoxLayoutOptions

maxWidth

number

maxHeight

number

Returns

Bounds

Inherited from

AbstractLayout.getFinalContainerBounds


getFixedContainerBounds()

protected getFixedContainerBounds(container, layoutOptions, layouter): Bounds

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:67

Parameters

container

SModelElementImpl

layoutOptions

HBoxLayoutOptions

layouter

StatefulLayouter

Returns

Bounds

Inherited from

AbstractLayout.getFixedContainerBounds


getLayoutOptions()

protected getLayoutOptions(element): HBoxLayoutOptions

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:148

Parameters

element

SModelElementImpl

Returns

HBoxLayoutOptions

Inherited from

AbstractLayout.getLayoutOptions


layout()

layout(container, layouter): void

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:29

Parameters

container

SParentElementImpl & InternalLayoutContainer

layouter

StatefulLayouter

Returns

void

Inherited from

AbstractLayout.layout


layoutChild()

protected layoutChild(child, boundsData, bounds, childOptions, containerOptions, currentOffset, maxWidth, maxHeight): Point

Defined in: packages/sprotty/src/features/bounds/hbox-layout.ts:67

Parameters

child

SChildElementImpl

boundsData

BoundsData

bounds

Bounds

childOptions

HBoxLayoutOptions

containerOptions

HBoxLayoutOptions

currentOffset

Point

maxWidth

number

maxHeight

number

Returns

Point

Overrides

AbstractLayout.layoutChild


layoutChildren()

protected layoutChildren(container, layouter, containerOptions, maxWidth, maxHeight): Point

Defined in: packages/sprotty/src/features/bounds/abstract-layout.ts:93

Parameters

container

SParentElementImpl & InternalLayoutContainer

layouter

StatefulLayouter

containerOptions

HBoxLayoutOptions

maxWidth

number

maxHeight

number

Returns

Point

Inherited from

AbstractLayout.layoutChildren


spread()

protected spread(a, b): HBoxLayoutOptions

Defined in: packages/sprotty/src/features/bounds/hbox-layout.ts:104

Parameters

a

HBoxLayoutOptions

b

HBoxLayoutOptions

Returns

HBoxLayoutOptions

Overrides

AbstractLayout.spread