Skip to main content

Home > blockly > geras > PathObject

geras.PathObject class

An object that handles creating and setting each of the SVG elements used by the renderer.

Signature:

export declare class PathObject extends BasePathObject 

Extends: BasePathObject

Constructors

ConstructorModifiersDescription
(constructor)(root, style, constants)Constructs a new instance of the PathObject class

Properties

PropertyModifiersTypeDescription
colourDarkstringThe colour of the dark path on the block in '#RRGGBB' format.
constantsConstantProvider
svgPathDarkSVGElement
svgPathLightSVGElement

Methods

MethodModifiersDescription
applyColour(block)
flipRTL()
setHighlightPath(highlightPath)Set the highlight path generated by the renderer onto the SVG element.
setPath(mainPath)
setStyle(blockStyle)
updateDisabled_(disabled)
updateHighlighted(highlighted)
updateShadow_(shadow)