blockly > blockRendering > PathObject
blockRendering.PathObject class
An object that handles creating and setting each of the SVG elements used by the renderer.
Signature:
export declare class PathObject implements IPathObject
Implements: IPathObject
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the PathObject
class.
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
svgRoot | SVGElement |
Methods
Method | Modifiers | Description |
---|---|---|
setClass_(className, add) | protected |
Add or remove the given CSS class on the path object's root SVG element. |
updateDisabled_(disabled) | protected |
Updates the look of the block to reflect a disabled state. |
updateShadow_(shadow) | protected |
Updates the look of the block to reflect a shadow state. |