Rectangle Object Simplified Format

Simplified format

Defined as a two-element JSON array: [ rectangle, unit ]

rectangle : four or five-element JSON array:
[ left, top, right, bottom ] or [ left, top, right, bottom, radius ]

left : number
top : number
right : number
bottom : number
radius : number (radius of rounded corners)

unit : string (among "distanceUnit", "percentUnit", "pixelsUnit")

Example

[ [ 10, 10, 90, 90, 10 ], "percentUnit" ]

Rounded Rectangle

Tags: , , ,

Comments are closed.