Home

Awesome

postit-js-extensions

A collection of extensions for diagram-js based projects such as postit-js.

Installation

dependencies

npm install

You can install the project via npm directly from git:

npm install --save https://github.com/xanpj/postit-js-extensions

Then in your main loader choose the modules to import from the extensions.

import PostItExtensions from 'postit-js-extensions';
...
var modeler = new DiagramJsModeler({
    ...
    additionalModules: [
       ...
       PostItExtensions.DragDropImages,
       PostItExtensions.SelectionOrganizer,
     ]
 });

Manual install

Drag the folders of your chosen modules from this lib/features/ directory into your project's lib/features/ folder. Ensure you also drag any dependencies if necessary.

Your project needs to be a diagram-js based projects i.e. bpmn-js, postit-js etc.

Import the modules in your modeler.js (or the place where you add your modules)

import SelectionOrganizerModule from './features/selection-organizer';
import DragDropImagesModule from './features/drag-drop-images';

and add them as additionalModules (or _modelingModules in postit-js)

Modeler.prototype._modelingModules = [
  ...
  SelectionOrganizerModule,
  DragDropImagesModule
];

Modules

Drag-Drop-Images

drag-drop-images-1

drag-drop-images-2

Selection-Organizer

selection-organizer-1

selection-organizer-2

Properties-Panel

properties-panel-1

Properties-Panel v2

properties-panel-v2

Image-Selection v2

image-selection-v2