Skip to main content

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

Constructor

Modifiers

Description

(constructor)(renderer, block)

Constructs a new instance of the RenderInfo class

Properties

Property

Modifiers

Type

Description

renderer_

protected

Renderer

Methods

Method

Modifiers

Description

addElemSpacing_()

finalize_()

getElemCenterline_(row, elem)

getInRowSpacing_(prev, next)

getRenderer()

Get the block renderer in use.

getSpacerRowHeight_(prev, next)