geras.PathObject 类
负责创建和设置渲染程序使用的每个 SVG 元素的对象。
Signature:
export declare class PathObject extends BasePathObject
构造函数
| 构造函数 | 修饰符 | 说明 |
|---|---|---|
| (构造函数)(root, style, 常量) | 构造 PathObject 类的新实例 |
属性
| 属性 | 修饰符 | 类型 | 说明 |
|---|---|---|---|
| colourDark | 字符串 | “#RRGGBB”图块上深色路径的颜色格式。 | |
| 常量 | ConstantProvider | ||
| svgPathDark | SVGElement | ||
| svgPathLight | SVGElement |
方法
| 方法 | 修饰符 | 说明 |
|---|---|---|
| applyColour(block) | ||
| flipRTL() | ||
| setHighlightPath(highlightPath) | 将渲染程序生成的突出显示路径设置为 SVG 元素。 | |
| setPath(mainPath) | ||
| setStyle(blockStyle) | ||
| updateDisabled_(disabled) | ||
| updateHighlighted(highlighted) | ||
| updateShadow_(shadow) |