2023-09-27 changelog
about 1 year ago by Mira Balani
What's new
Introducing enhanced image capabilities with Miro Web SDK
We're excited to announce that the Miro Web SDK now supports the following image capabilities:
- We now return the URL for all images on the board. This allows developers to download the image and perform other relevant tasks.
- You can now update image URLs instead of deleting and creating a new one. This allows you to seamlessly retain the same context such as comments on the image.
- You can now get a file object referencing the image item in the board. You can also optionally specify the format you want the image returned, such as the image in the original size that was uploaded to the board or a smaller version of the image used in higher zoom level.
- You can now obtain a data URL representation of the image item on a board.
For more information, see our Web SDK reference documentation on images.
Introducing layer capabilities with Miro Web SDK
We're excited to announce that the Miro Web SDK now supports the following layer capabilities for each item, such as image, card, app card, shape, sticky note, and other other types. This allows you to programatically layer various items on a board:
getLayerIndex(items)
method: returns the position of an item in the item stack.bringToFront(items)
method: in a stack of items, this method brings an item or an array of items to the front so that they are at the top of the stack. When they are at the front, items are fully visible. They can partially or completely hide underlying items in the same stack.sendToBack(items)
method: in a stack of items, this method sends an item or an array of items to the back so that they are at the bottom of the stack. When they are at the back, items are partially or completely hidden by overlying items in the same stack.bringInFrontOf(items, target)
method: In a stack of items, this method sends an item or array of items in front of another item (target). When the items are moved to the front, the items can partially or completely hide underlying items in the same stack.sendBehindOf(items, target)
method: In a stack of items, this method sends an item or array of items behind another item (target). When the items are moved to the back, the items can be partially or completely hidden by the overlying items in the top of the same stack.
For more information, see the Web SDK reference guide.