-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load modeling styles #3031
Load modeling styles #3031
Conversation
6fc718e
to
025c341
Compare
I am wondering if we can automate this so that we don't need to update |
BTW I like the idea of preloading styles in one place instead of lazy-loading with each of the editor tabs. |
I like this idea; let's try it out. It should be possible around the |
Seems like it's a highly needed, but not yet supported feature to identify the generated There might be a workaround though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the workaround looks more complicated than our workaround. Let's merge this as is.
There might be other options using |
Related to https://github.com/bpmn-io/internal-docs/issues/590
Closes #3030
Summary
Find some more context in https://github.com/bpmn-io/internal-docs/issues/590#issuecomment-1181765569 and https://github.com/bpmn-io/internal-docs/issues/590#issuecomment-1185305654.
Instead of loading the
camunda-bpmn|dmn-js
modeling styles on the editor component level, and causing duplicated style definitions inhead
, it now loads everything in a central place. This has the advantage that we have full control of when and in which order the styles are loaded.Note that we do not use the "bundled" modeler styles from the packages, but the individual components to prevent duplicates. This only works under the assumption that we anyway want only one version of library styles in BPMN and DMN.
Artifacts
Todo