GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - process-analytics/bpmn-visualization-js: A TypeScript library for visualizing process execution data on BPMN diagrams

BranchesTags
Open more actions menu

Latest commit

 

History

2,991 Commits
2,991 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
config
config
 
 
dev
dev
 
 
docs
docs
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.cjs
.eslintrc.cjs
 
 
.gitignore
.gitignore
 
 
.gitpod.Dockerfile
.gitpod.Dockerfile
 
 
.gitpod.yml
.gitpod.yml
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
.prettierrc.js
.prettierrc.js
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.cjs
postcss.config.cjs
 
 
rollup.config.mjs
rollup.config.mjs
 
 
sonar-project.properties
sonar-project.properties
 
 
tailwind.config.js
tailwind.config.js
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.npm-package.json
tsconfig.npm-package.json
 
 
tsconfig.test.json
tsconfig.test.json
 
 
tsconfig.typedoc.json
tsconfig.typedoc.json
 
 
tsconfig.utils.json
tsconfig.utils.json
 
 
typedoc.json
typedoc.json
 
 
vite.config.js
vite.config.js
 
 

Repository files navigation

bpmn-visualization TypeScript library

Examples of the bpmn-visualization TypeScript library

npm package GitHub release (latest by date including pre-releases) Live Demo Build Coverage Gitpod
PRs Welcome Contributor Covenant License


bpmn-visualization is a TypeScript library for visualizing process execution data on BPMN diagrams, with simplicity.

Based on the customization capability, it provides a set of diagram visualization features that includes additional display options for execution data (highlighting of some elements, adding customizable overlays, and more) as well as personalized interactive capabilities (mouse hover, click, and more).

We hope it will help you to create applications for process visualization and analysis 🙂

🎮 Demo and examples

Please check the ⏊ live environment.

You will find their basic usage as well as detailed examples showing possible rendering customizations.

🔆 Project Status

bpmn-visualization is actively developed and maintained.

Before the release of version 1.0.0, there may be some breaking changes. We avoid these as much as possible, and carefully document them in the release notes. As far as possible, we maintain compatibility for some minor versions.

🤩 Why using bpmn-visualization?

  • ✨ True opensource license without watermark display
  • âšĄī¸ Strong identity: the only BPMN viewer with a woman icon in the User Tasks
  • 🎸 Fully documented and with a lot of integration examples
  • 👓 Highly customizable rendering in a simple way
  • đŸ”Ĩ TypeScript support
  • đŸŽ¯ Battle tested: high test coverage, thousands of tests, including tests on all supported browsers for Linux, macOS and Windows

🎨 Features

Already available features:

  • Supported BPMN Elements.
  • Navigate through the BPMN diagram
  • Display execution data with interactive capabilities

đŸ”Ĩ Some add-on features are available through a dedicated package: ⏊ bpmn-visualization-addons

Planned new features:

  • Additional BPMN styling capabilities
  • Library extension points

🌏 Browsers Support

Chrome Chrome Firefox Firefox Safari Safari Edge Edge
âœ”ī¸ âœ”ī¸ âœ”ī¸ âœ”ī¸

Notes:

  • Chromium based browsers should work (automatic tests are run with Chromium canary releases). In particular, the following desktop browsers are known working with [email protected]:
    • Brave 1.83.112
    • Chromium 141.0.7390.70
    • Opera 122.0.5643.92
  • Support Chromium Edge but not Legacy Edge
  • The library may work with the other browsers. They must at least support ES2020.

â™ģī¸ Usage

The library is available from NPM.
We support various module formats such as:

  • ESM: dist/bpmn-visualization.esm.js
  • IIFE: dist/bpmn-visualization.js and its minified companion dist/bpmn-visualization.min.js

📌 Usage in applications and projects

Install bpmn-visualization:

npm i bpmn-visualization

Then use this snippet to load your BPMN diagram in a page:

import { BpmnVisualization } from 'bpmn-visualization';

// initialize `bpmn-visualization` and load the BPMN diagram
// 'bpmn-container' is the id of the HTMLElement that renders the BPMN Diagram
const bpmnVisualization = new BpmnVisualization({ container: 'bpmn-container' });
let bpmnContent; // your BPMN 2.0 XML content
try {
  bpmnVisualization.load(bpmnContent);
} catch (error) {
  console.error('Error loading BPMN content', error);
}

You can set the BPMN content using one of the following ways:

  • Copy/Paste directly the XML content in a variable
  • Load it from an url, like this example
  • Load from your computer, like the demo example

📜 TypeScript Support

The bpmn-visualization npm package includes type definitions, so the integration works out of the box in TypeScript projects. bpmn-visualization requires TypeScript 4.0 or greater. Past versions had the following requirements:

  • 0.21.0 to 0.27.1: TypeScript 4.5
  • 0.17.1 to 0.20.1: TypeScript 4.3

â„šī¸ If you are looking for examples of projects integrating bpmn-visualization with TypeScript, see the bpmn-visualization-examples repository.


NOTE

Prior version 0.27.0, bpmn-visualization required extra configuration for TypeScript projects as explained in the v0.26.2 README.


💠 Browser usage

In the HTML page:

  • Load bpmn-visualization (replace {version} by the recent version)
  • Define the container that displays the BPMN diagram, here bpmn-container
  • Load your BPMN diagram in a page
<script src="https://cdn.jsdelivr.net/npm/bpmn-visualization@{version}/dist/bpmn-visualization.min.js"></script>
...
<div id="bpmn-container"></div>
...
<script>
  // initialize `bpmn-visualization` and load the BPMN diagram
  // 'bpmn-container' is the id of the HTMLElement that renders the BPMN Diagram
  const bpmnVisualization = new bpmnvisu.BpmnVisualization({ container: 'bpmn-container'});
  let bpmnContent; // your BPMN 2.0 XML content
  try {
    bpmnVisualization.load(bpmnContent);
  } catch (error) {
    console.error('Error loading BPMN content', error);
  }
</script>

👤 User documentation

The User documentation (with the feature list & the public API) is available in the documentation site.

âš’ī¸ More

💡 Want to know more about bpmn-visualization usage and extensibility? Have a look at the ⏩ live examples site.

For more technical details and how-to, go to the bpmn-visualization-examples repository.

🚀 Repository Demo

This repository includes a Load and Navigation demo located in the dev directory, which is also featured on the example site and used for PR previews.

The demo supports customization through URL query parameters. For instance, you can set a specific theme by passing style.theme=light-blue, or enable a custom icon painter with renderer.iconPainter.use.custom=true.

For a complete list of configuration options, refer to the source code.

🔧 Contributing

To contribute to bpmn-visualization, fork and clone this repository locally and commit your code on a separate branch.
Please write tests for your code before opening a pull-request:

npm test  # run all tests

You can find more detail in our Contributing guide. Participation in this open source project is subject to a Code of Conduct.

✨ A BIG thanks to all our contributors 🙂

📃 License

bpmn-visualization is released under the Apache 2.0 license.
Copyright Š 2020-present, Bonitasoft S.A.

Some BPMN icons used by bpmn-visualization are derived from existing projects. See the BPMN Support documentation for more details:

  • draw.io (Apache-2.0)
  • flaticon (freepikcompany license)
  • noun project (mainly Creative Commons CCBY 3.0)

⚡ Powered by

statically.io logo

statically.io (demo and examples live environments)

surge.sh logo

surge.sh (demo and documentation preview environments)

About

A TypeScript library for visualizing process execution data on BPMN diagrams

process-analytics.github.io/bpmn-visualization-js/

Topics

analyticsbpmnbrowserhacktoberfestprocesstypescriptvisualization

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

291 stars

Watchers

19 watching

Forks

37 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.