Hi, sorry for coming back so late on this.
- The ideal python type of the background image would be maybe a PIL.Image? If we send a raw numpy array, the component would have to guess the image type.
- The ultimate solution would be a layered approach. Along the lines of
add_layer(img=None)
. For drawing, one would need to select the active layer Defaulting to the last layer or first layer would be enough in most use cases. The compent then always returns the active layer as a numpy array, like currently implemented. Not sure though if this layered approach is feasible to add retrospectively.
Thanks for your quick reply and your time!
Cheers.