This page is to document some historic (technical) architecture of OpenSCD. In the current setup; Mixins are used to extend OpenSCD.
Q&A
Why using the Lit library?
- Framework agnostic
- Lit is easy to use
Downsides of the current architecture
It is almost impossible to add a plug-in without checking out the complete OpenSCD code, this leads to:
- "Forking" to make the plug-ins work
- Hard to make your own distribution with your own plug-ins
- It is technical possible to create your own plug-in but his complex and you cannot rely on existing code. Your forced to use the lit framework for your plug-in a very good understanding of OpenSCD.
Example:
In order to make CoMPAS work with OpenSCD; addtional code was needed (e.g. login, acces to the database etc). This is way the "fork" exsists.