Calling Delphi dll from ElectronJS to 'draw'

I need to be able to use a delphi component from within ElectronJS.

It needs to draw on whatever Electron JS uses as a canvas.

Rewriting the delphi components in ElectronJS is not really an option, hundreds of thousands of lines says so.

Since putting the component in a dll will ‘include’ an instance of the VCL, perhaps all I need to do is pass a ‘delphi compatible parent’ to the dll, somehow.

Anyone got any ideas or suggestions as to if this is possible and how to do it?

I doubt it will be possible - there is an api for including C++ libraries in nodejs - but the canvas you speak of is an html page, as that’s essentially what electron is - a native host for a web site.