Okay, there is some misunderstanding present here.
Others involved and I have been coming from the extension developer’s perspective on how WE will “port” our desktop SketchUp extensions to SketchUp for Web.
How YOU (the team) support extensions is not what I’ve really been speaking about in any of my previous posts.
From the API implementation side of things, I assumed perhaps that Ruby namespace names would be mimicked in JS, with as close to the same method names as possible.
For a simple example, …
UI.messagebox() would be a wrapper around JS’
alert() call or perhaps a popup with a few more button choices.
Geom methods and subclasses would be wrappers around WebGL or ThreeJS method calls.
Yes this is more work than some automatic transpiler of your API C code, as it’d likely need to be done manually (unless something like SWIG can help here ?)