Skip to main content

Home > blockly > thrasos > RenderInfo

thrasos.RenderInfo class

An object containing all sizing information needed to draw this block.

This measure pass does not propagate changes to the block (although fields may choose to rerender when getSize() is called). However, calling it repeatedly may be expensive.

Signature:

export declare class RenderInfo extends BaseRenderInfo 

Extends: BaseRenderInfo

Constructors

ConstructorModifiersDescription
(constructor)(renderer, block)Constructs a new instance of the RenderInfo class

Properties

PropertyModifiersTypeDescription
renderer_protectedRenderer

Methods

MethodModifiersDescription
addElemSpacing_()
finalize_()
getElemCenterline_(row, elem)
getInRowSpacing_(prev, next)
getRenderer()Get the block renderer in use.
getSpacerRowHeight_(prev, next)