Object
This property provides control over the layout-related properties of design elements, including controlling the size, position, and layout behavior of elements to ensure their correct display and layout on the page.
Property | Type | Required |
---|---|---|
class | string | Required |
id | string | Required |
layout | oneOf< | Optional |
itemInLayout | oneOf< | Optional |
width | Width | Required |
maxWidth | MaxWidth | Optional |
minWidth | MinWidth | Optional |
height | Height | Required |
maxHeight | MaxHeight | Optional |
minHeight | MinHeight | Optional |
aspectRatio | number | Optional |
id​
RequiredDescription
This property is used in the layout to uniquely identify a specific object. Use this value to associate objects in VGG Vector Graphics Specification.
Type
string
layout​
OptionalDescription
This property describes the layout characteristics of the current object and can be used to determine its layout type.
Type
oneOf<
FlexboxLayout
GridLayout
>
itemInLayout​
OptionalDescription
This property refers to the layout information of the current object in the layout, which can be adjusted in terms of its position and style through corresponding layout properties. In Flex layout, it refers to the flex items within a flex container. In grid layout, it refers to individual grid items within a grid container.
Type
oneOf<
FlexboxItem
GridItem
>
aspectRatio​
OptionalDescription
This property refers to the proportional relationship between the width and height of an element. This property can be used to define the aspect ratio of an element, allowing you to set the desired width-to-height ratio. It ensures that the element maintains the same aspect ratio in containers of different sizes.
Type
number
Value
minimum (exclusive): the value of this number must be greater than: 0