Skip to main content

Object

Typeobject
Backlinks1

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.

PropertyTypeRequired
classstringRequired
idstringRequired
layoutoneOf<FlexboxLayoutGridLayout>Optional
itemInLayoutoneOf<FlexboxItemGridItem>Optional
widthWidthRequired
maxWidthMaxWidthOptional
minWidthMinWidthOptional
heightHeightRequired
maxHeightMaxHeightOptional
minHeightMinHeightOptional
aspectRationumberOptional

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"object"

id​

Required

Description

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​

Optional

Description

This property describes the layout characteristics of the current object and can be used to determine its layout type.

itemInLayout​

Optional

Description

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.

width​

Required

Description

no description

Type

Width

maxWidth​

Optional

Description

no description

minWidth​

Optional

Description

no description

height​

Required

Description

no description

Type

Height

maxHeight​

Optional

Description

no description

minHeight​

Optional

Description

no description

aspectRatio​

Optional

Description

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