Skip to content

richig-vienna/camunda-modeler-bpmn-js-plugin-spectrum-color-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BPMN Spectrum ColorPicker Plugin

Compatible with Camunda Modeler version 5 Plugin Type Plugin Type

Functionality

A Spectrum Color Picker as a plugin for the Camunda Modeler.

This project was inspired by:

And uses:

Compatibility Notice

Plugin Version Compatible With Camunda Modeler
<= 0.1 2.2 - 4.x
>= 0.2 5.0.0+

How it looks like

Screenshot

Usage

Information to the used widget "Pickr" itself can be found at https://npm.io/package/@simonwep/pickr.

This Plugin uses two color types:

  • fill ... for the element's background color
  • stroke ... for the element's frame and text color

Spectrum Color Picker can be opened in 2 ways

  • from the menu bar > "Plugins" > "Spectrum Colorpicker" > "Toggle SpectrumColorpicker"
  • via keyboard shortcut "Alt + P"

Buttons

  1. pipette ... picks the colors from the selected element (if more than one are selected, the first one is elected). Both types (fill, stroke) are picked.
  2. paint bucket ... pastes the colors to all selected elements. Both types (fill, stroke) are pasted.
  3. frame (stroke) ... to change the element's frame and text color
  4. auto (auto stroke) ... to change the element's background color; the stroke (frame) color will be set to max. color saturation
  5. rectangle (fill) ... to change the element's background color

The "Clear" button sets the element's background color to "white" and frame/text color to "black".

Explanation

Installation

Put this directory into the plugins directory of the Camunda Modeler and you're ready to go.

Detailed steps:

  1. On github download the project (e.g. click on green "Code" button and select "Download ZIP").
  2. Extract the zip file into your plugins directory (e.g. /Camunda/camunda-modeler-5.0.0-linux-x64/resources/plugins/).
  3. Start/Restart modeler.

If you're interested in how to create your own plugins see the documentation and this example.