Constructor

PathObject

new PathObject(root)

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

Parameter

root

SVGElement

The root SVG element.

Value must not be null.

Implements
Blockly.blockRendering.IPathObject

Properties

svgPath

package

SVGElement

The primary path of the block.

svgPathDark

package

SVGElement

The dark path of the block.

svgPathLight

package

SVGElement

The light path of the block.

Methods

flipRTL

package

flipRTL()

Flip the SVG paths in RTL.

setPaths

package

setPaths(mainPath, highlightPath)

Set each of the paths generated by the renderer onto the respective SVG element.

Parameter

mainPath

string

The main path.

highlightPath

string

The highlight path.