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(pathString)

Set the path generated by the renderer onto the respective SVG element.

Parameter

pathString

string

The path.