API & Integration -> RenderScript

Shape properties in RenderScript

These properties extend the base element properties.

Dimensions

The width and height of the shape. With both set, the path is drawn inside that box. When either is null, the shape is as big as its path and the other value is ignored. Outside a flow composition, such a shape's path coordinates are measured from its x and y, and x_anchor and y_anchor have no effect. In a flow composition, it takes a slot the size of its path and is placed like any other element.

Example

"width": null, "height": null,

Defaults

"width": null, "height": null,

Path

The outline of the shape, in SVG path syntax with plain numbers. When the shape has a width and height, the coordinates run from 0 to 100 as a percentage of that box. When either is null, the coordinates are pixels.

Example

"path": "M 0 0 L 100 100",

Default

"path": "",