Refresh the panel or change variables and reload from typescript

Im creating a custom plugin in SVG (Figure 1). I would like to implement Drag and Drop of the different elements (actually done via translate), is there a way to refresh the visual panel from the code or change the x and y from the device in the options pane and reload the graph to accomplish this (Figure 2).

I’m a bit new to Grafana.

image

Thx in advance.