
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
bpmn-js-color-picker
Advanced tools
This bpmn-js extension adds a simple color picker to an elements context pad. Colors are serialized to BPMN 2.0 according to the BPMN in Color proposal.
bpmn-js@8.7+
)Fetch bpmn-js-color-picker
as a dependency:
npm install bpmn-js-color-picker --save
Extend your BPMN modeler with colors:
import BpmnModeler from 'bpmn-js/lib/Modeler';
import BpmnColorPickerModule from 'bpmn-js-color-picker';
const modeler = new BpmnModeler({
additionalModules: [
BpmnColorPickerModule
]
});
Add diagram-js, bpmn-font and color picker stylesheets:
<link rel="stylesheet" href="https://unpkg.com/bpmn-js/dist/assets/diagram-js.css" />
<link rel="stylesheet" href="https://unpkg.com/bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css" />
<link rel="stylesheet" href="https://unpkg.com/bpmn-js-color-picker/colors/color-picker.css" />
To run the live demo in the ./example
directory (as shown in the screenshot above) execute:
npm start
0.7.1
FIX
: correct positioning of color picker (#40)FAQs
A color picker for bpmn-js
The npm package bpmn-js-color-picker receives a total of 5,996 weekly downloads. As such, bpmn-js-color-picker popularity was classified as popular.
We found that bpmn-js-color-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.