You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bpmn diagram with different icons for artifacts and data stores. Here's an example.
When I visualize this using the vite.js example in the examples repo I get this.
Here is the code I used to generate using vite
import'./style.css';// this is simple example of the BPMN diagram, loaded as string. The '?.raw' extension support is provided by Vite.// for other load methods, see https://github.com/process-analytics/bpmn-visualization-examplesimport*asdiagramsfrom'../../diagrams';import{BpmnVisualization,FitType,getVersion,mxgraph}from'bpmn-visualization';for(const[index,diagram]ofObject.entries(diagrams)){constlink=document.createElement('a');link.textContent=`Load diagram: ${index}`;link.href='#';link.addEventListener('click',(event)=>{event.preventDefault();//document.body.innerHTML = '';constbpmnVisualization=newBpmnVisualization({container: "bpmn-container",});// Load the BPMN diagram when the hyperlink is clickedbpmnVisualization.load(diagram,{fit: {type: FitType.Center,margin: 10}});// Clear the body, excluding the containerconstelementsToClear=document.body.querySelectorAll('a');elementsToClear.forEach(element=>element.remove());// Create a hyperlink to go back to the main pageconstbackLink=document.createElement('a');backLink.textContent='Go Back to Main Page';backLink.href='#';backLink.addEventListener('click',(event)=>{event.preventDefault();location.reload();});event.preventDefault();// Add the back hyperlink to the pagedocument.body.appendChild(backLink);});// Add the hyperlink to the pagedocument.body.appendChild(link);// Add a newline after the hyperlinkconstbr=document.createElement('br');document.body.appendChild(br);};
To Reproduce
Steps to reproduce the behavior:
npm start
navigate to page
BPMN diagram that reproduces the problem:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots or videos to help explain your problem.
Environment
Desktop or mobile: Desktop
OS and version: MacOS 14.4 (23E214)
Browser and version: Chrome
Node/npm version (if applicable): latest
Used frameworks (if applicable): vite
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a bpmn diagram with different icons for artifacts and data stores. Here's an example.
When I visualize this using the vite.js example in the examples repo I get this.
Here is the code I used to generate using vite
To Reproduce
Steps to reproduce the behavior:
BPMN diagram that reproduces the problem:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots or videos to help explain your problem.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: