Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
saerdnaer opened this issue May 27, 2023 · 1 comment

Comments

@saerdnaer
Copy link

saerdnaer commented May 27, 2023

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"
}
@saerdnaer saerdnaer changed the title Shape/Widget type does not allow to access style attribute Shape/Widget type does not allow to access style attribute (when requested via Frame) May 27, 2023
@ashok-ayyarchamy
Copy link

facing same issue..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants