Skip to content

Shape/Widget type does not allow to access style attribute (when requested via Frame) #180

@saerdnaer

Description

@saerdnaer

Widgets/Shapes

The REST api return the style information of a shape, but the mapped api client entity does not map it:

image

https://api.miro.com/v2/boards/{boardId}/items?parent_item_id=345876…

{
  "size": 10,
  "limit": 10,
  "total": 130,
  "data": [
    {
      "id": "xxxxx",
      "type": "shape",
      "data": {
        "content": "<p>foo bar</p>",
        "shape": "round_rectangle"
      },
      "geometry": {
        "width": 444.088581871232,
        "height": 732.1054958788144
      },
      "position": {
        "x": 1762.7907113951542,
        "y": 727.6837648015721,
        "origin": "center",
        "relativeTo": "parent_top_left"
      },
      "style": {
        "fillColor": "#fdedc0",
        "fillOpacity": "1.0",
        "fontFamily": "open_sans",
        "fontSize": "14",
        "borderColor": "#fad978",
        "borderWidth": "3.0",
        "borderOpacity": "1.0",
        "borderStyle": "normal",
        "textAlign": "center",
        "textAlignVertical": "middle",
        "color": "#1a1a1a"
      },
      
    },
  ],
  
  "type": "cursor-list"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions