openscd / open-scd-core

Apache License 2.0
5 stars 8 forks source link

Bootstrap #87

Closed pascalwilbrink closed 1 year ago

pascalwilbrink commented 1 year ago

Adding a main.ts and bootstrap.ts forces that the entrypoint will always extend from the OpenSCD (you can create your own extension with mixins).

the entrypoint webcomponent will always have the same tag, so plugins / components can use the querySelector

ca-d commented 1 year ago

What is the ConfiguratingElement in here? It's not in the description of this pull request.

Also, is the intention of this just to allow a distributor to register the same tagName for a different component? If so, could we simply remove the tag name definition from open-scd.ts and have the distribution register the open-scd tagName itself to whatever (extended or not) class they wish? Would that save us the need for these "bootstrap" and "main" files? Sorry, I didn't really look at the files yet, just seemed like that was the intention.