I have been going through the bpmn.js source code and after reading the walkthrough, I’m a little bit unclear on the role of the BaseViewer.js file.
Second, there seems to be no definition for the ‘‘registerProvider()’’ function which is used a few times. I’m in the process of recreating certain aspects of the bpmn-js software tool and I need this function in my implementation.
Thirdly, I want to add icons to the ‘‘Palette Provider’’ (and subsequently the ‘‘Context Pad Provider’’, but there doesn’t seem to be any reference or information on how the current ones (such as ‘bpmn-icon-lasso-tool’ and ‘bpmn-icon-hand-tool’) in the bpmn-js software tool were created or from which library they were imported from. Any assistance to that regard will be appreciated.
The BaseViewer acts as a barebones viewer instance. It defines the viewer API. The Viewer inherits from it and has a single job: Defining modules that the BaseViewer shall instantiate with (cf. module system).
If you are into rewriting parts of the core completely then BaseViewer maybe your destination. Otherwise resort to Viewer or Modeler distributions, depending on your use case.