Get drawn shape coordinates in PlotlyJS.jl

Hi,
My purpose is to get the coordinates of any drawn shape. From the docs (Shapes in Julia):

using PlotlyJS

# define dragmode and add modebar buttons
config = PlotConfig(
    modeBarButtonsToAdd=[
        "drawline",
        "drawopenpath",
        "drawclosedpath",
        "drawcircle",
        "drawrect",
        "eraseshape"
    ]
)

text="Click and drag here <br> to draw a rectangle <br><br> or select another shape <br>in the modebar"
fig = plot(Layout(
    annotations=[
        attr( x=0.5,
            y=0.5,
            text=text,
            xref="paper",
            yref="paper",
            showarrow=false,
            font_size=20)
    ],
    # shape defined programatically
    shapes=[
        attr(editable=true,
              x0=-1, x1=0, y0=2, y1=3,
              xref='x', yref='y'
        )
    ],
    dragmode="drawrect"
), config=config)

How can I extract that coordinates? The coordinates from the pre-drawn rectangle are available in the fig.shapes field, but, how about the user-drawn shapes? fig.shapes is not updated as I draw new shapes. Where is the information about these new shapes stored?

Thank you so much.
Cheers,
Pablo

HI @pvillacorta welcome to the forums.

I think you might access this via javascript. Related: