Home Reference Source
import {SizeResolver} from 'arva-js/utils/view/SizeResolver.js'
public class | source

SizeResolver

Extends:

eventemitter3~EventEmitter → SizeResolver

Used by the view to keep track of sizes. Emits events to communicate with the view to do certain actions

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public
public
public

getResolvedSize(renderableOrName: Renderable/Name): *

Gets the size used when displaying a renderable on the screen the last time the calculation was done.

public

getSurfaceTrueSizedInfo(surface: *): *

public
public
public
public

Determines the decorated size.

Public Constructors

public constructor source

Public Methods

public containsUncalculatedSurfaces(): boolean source

Return:

boolean

public doTrueSizedBookkeeping() source

public getResolvedSize(renderableOrName: Renderable/Name): * source

Gets the size used when displaying a renderable on the screen the last time the calculation was done.

Params:

NameTypeAttributeDescription
renderableOrName Renderable/Name

The renderable or the name of the renderable of which you need the size

Return:

*

public getSurfaceTrueSizedInfo(surface: *): * source

Params:

NameTypeAttributeDescription
surface *

Return:

*

public requestLayoutControllerReflow() source

public requestRecursiveReflow() source

public requestReflow() source

public settleDecoratedSize(): * source

Determines the decorated size. If there is true sizing involved, then it will not return the resolved true size. Instead, this can be accessed through getResolvedSize()

Params:

NameTypeAttributeDescription
renderable. Renderable

The renderable for which we need the size

renderableCounterpart. Renderable

The renderable counter-part (e.g. AnimationController, RenderNode, or ContainerSurface).

context. Object

The context, with a specified size. The size can be set to NaN in order to return NaN

specifiedSize. Array

The size to use which is specified as a decorator

Return:

*