Stay organized with collections Save and categorize content based on your preferences.

blockly > geras > Highlighter

geras.Highlighter class

An object that adds highlights to a block based on the given rendering information.

Highlighting is interesting because the highlights do not fully enclose the block. Instead, they are positioned based on a light source in the top left. This means that rendering highlights requires exact information about the position of each part of the block. The resulting paths are not continuous or closed paths. The highlights for tabs and notches are loosely based on tab and notch shapes, but are not exactly the same.


export declare class Highlighter 


The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Highlighter class.


Property Modifiers Type Description
constants_ ConstantProvider
highlightConstants_ HighlightConstantProvider
info_ RenderInfo
inlineSteps_ string
insideCornerPaths_ InsideCorner
jaggedTeethPaths_ JaggedTeeth
notchPaths_ Notch
outsideCornerPaths_ OutsideCorner
puzzleTabPaths_ PuzzleTab
RTL_ boolean
startPaths_ StartHat
steps_ string