
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@bpmn-io/element-template-icon-renderer
Advanced tools
A bpmn-js extension to render element templates icons
A bpmn-js extension to render element template icons.
Install via npm:
npm install @bpmn-io/element-template-icon-renderer
Use in your bpmn-js powered editor:
import ElementTemplateIconRenderer from '@bpmn-io/element-template-icon-renderer';
const viewer = new BpmnViewer({
additionalModules: [
...,
ElementTemplateIconRenderer
]
});
Optionally you may configure where you read your icons from:
import ElementTemplateIconRenderer from '@bpmn-io/element-template-icon-renderer';
const viewer = new BpmnViewer({
additionalModules: [
...,
ElementTemplateIconRenderer
],
elementTemplateIconRenderer: {
iconProperty: 'foo:icon' // read from <bpmn:task foo:icon="..." />
}
});
In case you want to model with the element template icons, make sure you include the respective moddle extension to create the icon, i.e. zeebe-bpmn-moddle
:
import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json';
const modeler = new BpmnModeler({
additionalModules: [
...,
ElementTemplateIconRenderer
],
moddleExtensions: {
zeebe: zeebeModdle
}
});
To run the renderer example, execute:
npm start
1.0.0
Re-release of v0.6.0
.
FAQs
A bpmn-js extension to render element templates icons
We found that @bpmn-io/element-template-icon-renderer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.