Copy and pasting the web-plugin examples do not work.
I tried this example, and it give an error relating to ‘create’ being undefined.
const viewport = await miro.board.viewport.get()
const centeredX = viewport.x + viewport.width / 2
const centeredY = viewport.y + viewport.height / 2
miro.board.widgets.create({type:'sticker', x:centeredX, y:centeredY})
I looked through the miro.board object properties in the console, and ‘widgets’ does not exist.
I do however have a bunch of functions like ‘miro.board.createSticker’. Am i on and old version or something? How do i get these examples working?