glint-project-editor
The main component of the project editor. It loads all plugins before loading the project model and rendering the actual editor.
<glint-project-editor project="demoApp"
[iconStyle]="['material-symbols', 'fa-pro-light', 'fa-solid']"/>
Properties
[project]
: Name of the project[iconStyle]
: An array of icon styles to be used for component within the view. When multiple icon styles are supported in a component, the first matching style will be used.
Required Services
PROJECT_CLIENT
: An instance ofProjectClient
must be provided to handle the connection with the model server.PLUGIN_SOURCES
: A list of plugin sources so that they can be loaded by the bootstrapping service.
Startup
The project startup runs as follows:
- The plugin sources are resolved and imported as plugin modules.
- From these plugin module, model modules are extracted and loaded. These add support to read and represent elements of different types.
- The
ModelService
is injected and used to load the model. - Now, the extension modules provided by the plugin modules are loaded. Extension modules can define activation conditions, which are tested against the model.