SVG Preview failure with miro.board.ui.initDraggableItemsContainer()

  • 25 November 2021
  • 0 replies
  • 6 views

Hi,

I am having some problems with `miro.board.ui.initDraggableItemsContainer()` which I’ve demostrated in an example plugin:

GitHub Repository

Plugin

Steps to reproduce

  1. Install the plugin
  2. Create a new board
  3. Click on the three dots (···) in the library toolbar on the left
  4. Scroll down in the library panel that opens, click on the link “🐞 Library”
  5. Drag any of the items onto the canvas

What I expect

A preview of the selected element should show that includes the text of the element that is being dragged (e.g. “Please drag me (A)”).

What happens instead

Only the color shows. The text does not get rendered. Additionally the positioning is very weird when the width and height of the image are returned as part of the preview URI (see https://github.com/marijn/miro-draggable-plugin-failure/commit/c89c57a06e2d628fb413e49adc4eedc0b56141b4). Providing the encoding results in no preview at all (see https://github.com/marijn/miro-draggable-plugin-failure/commit/2883280a96c85d23ff960d35269537733d1ff59d)
 

What is going on here? Any tips? Or is this a bug?

Cheers, Marijn


0 replies

No replies yet...

Reply