Miro REST API and Web SDK 2.0: ⚠ breaking changes! ⚠
style parameters (REST API); changes to item resizing (Web SDK).
|Miro Web SDK 2.0||Miro REST API 2.0|
We introduced a number of changes to improve support for board items, and to make Miro Web SDK and REST API 2.0 functionality more consistent.
The following table lists the changes related to item resizing.
Update your code for the relevant items, where necessary, so that they can keep working as expected.
|Item||Miro Web SDK 2.0|
|App card |
|When creating or resizing an app card, a card, or a text item, you can set:|
|When creating or resizing a frame or a shape item, you can set:|
If you try to resize a parent frame that results in one or more child items being placed outside the parent frame, the Web SDK throws an error. This is because resizing the parent frame to the dimensions specified breaks the parent-child relationship between the items.
|Preview||When creating a preview item, you can set:|
When resizing a preview item, you can update:
|Sticky note||⚠ This is a breaking change for sticky note items that use the Miro Web SDK 2.0 ⚠|
When creating or resizing a sticky note item, you can set:
Miro Web SDK 2.0: we added support for additional style properties for board items.
Miro REST API 2.0: we renamed a style property of shape and text items.
|Item||Miro Web SDK 2.0||Miro REST API 2.0|
|Frame||It's now possible to set and to update the fill color of a frame item: |
You can assign it any valid hex color code.
The default fill color value is
|It's now possible to set and to update the size of the font displaying the text assigned to the |
The default font size is
|N/A||⚠ This is a breaking change for shape and text items that use the Miro REST API 2.0 ⚠|
Changes in this section apply only to the Miro Web SDK 2.0.