process-analytics / bv-experimental-add-ons

Add-ons for `bpmn-visualization`.
https://process-analytics.github.io/bv-experimental-add-ons/
Apache License 2.0
3 stars 0 forks source link

feat: introduce `StyleByNamePlugin` #281

Closed tbouffard closed 2 weeks ago

tbouffard commented 2 weeks ago

Provide the same API as StyleRegistry but pass names instead of ids to identify BPMN elements.

NOTE: To map names to ids, the plugin uses BpmnElementsSearcher. The mapping is currently not cached, nor pre-fetched after the BPMN source has been loaded. So the implementation is not very effective. Caching and pre-fetch features will be implemented in the future.

Notes

Closes #75 There is no demo of this plugin for now, it will be done as part of #78.

github-actions[bot] commented 2 weeks ago

🎊 PR Preview 58d74cf788bf43d6128faf4a1c11c2b24f9c3127 has been successfully built and deployed to https://process-analytics-bv-experimental-add-ons-demo-pr-281.surge.sh

🕐 Build time: 0.01s

🤖 By surge-preview

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud