Skip to main content

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 of ProjectClient 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:

  1. The plugin sources are resolved and imported as plugin modules.
  2. From these plugin module, model modules are extracted and loaded. These add support to read and represent elements of different types.
  3. The ModelService is injected and used to load the model.
  4. Now, the extension modules provided by the plugin modules are loaded. Extension modules can define activation conditions, which are tested against the model.