Skip to content

Collection of extensions for diagram-js based projects such as postit-js

License

Notifications You must be signed in to change notification settings

xanpj/postit-js-extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postit-js-extensions

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

Installation

dependencies

  • The extensions properties-panel, properties-panel-v2 and image-selection-v2 are dependent on functions in postit-js and the npm packages less, immutable, lodash
  • properties-panel-v2 and image-selection-v2 are dependent on the extension entry-factory

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

About

Collection of extensions for diagram-js based projects such as postit-js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published