Geometry

Structure of the geometry object and its properties.

The geometry object contains geometrical information about the item, such as dimensions and rotation.

📘

If you update an item that fetches and displays a resource, such as an image, a document, a preview, you can:

  • Specify the updated resource, without specifying its updated width and height values.
    The updated resource is displayed on the board, based on the retrieved values for its width and height, which may be different from the corresponding dimensions of the previous resource.
  • Specify the updated resource, and its updated width and height values.
    The updated resource is displayed on the board, based on the explicitly specified width and height values.
    If necessary, the resource is scaled to try to accommodate the specified dimensions.
Property nameProperty typeDescription
widthNumberWidth of the item, in device-independent pixels (dp).
Default value card item: 320.0
heightNumberHeight of the item, in device-independent pixels (dp).
Default value card item: 94.0
rotationNumberRotation angle of an item, in degrees, relative to the board.
You can rotate items clockwise (right) and counterclockwise (left) by specifying positive and negative values, respectively.
Note: this property is not applicable to frame items.
"geometry": {
        "width": 200.0,
        "height": 200.0,
        "rotation": 0.0
    }