68 Commits

Author SHA1 Message Date
Nico Rehwaldt
b03014fc2c chore(project): update to new lint style 2018-02-27 10:08:31 +01:00
Nico Rehwaldt
d32da90013 chore(lint): bump eslint
...and fix lint errors
2018-01-28 20:35:04 +01:00
Nico Rehwaldt
562674e74b chore(project): bump diagram-js dependency
Fixes text sometimes being selected during dragging.

* makes a ContextPad hack obsolete, too.
2017-12-22 15:49:00 +01:00
Nico Rehwaldt
ae96f3714d feat(modeling): add auto placement from context menu
Elements will automatically be created at appropriate
positions when context menu create entries are being
clicked (rather than dragged).

This marks a major step forward for mobile modeling,
too as dragging, especially dragging out from very small
controls is very cumbersome to do.

Things we take into account:

* for bpmn:FlowNodes, we try to compute the current
  distance between elements on the flow based on
  connections going in and out of the flow nodes
  source element
* for bpmn:TextAnnotation we assume placement of the
  element top right of the source shape
* for bpmn:DataObject and friends we assume a
  placement bottom right of the source shape
* for all elements, we try not to place elements on
  top of each other; i.e. new elements will be pushed
  up or down accordingly, if an element at a chosen
  position does already exist

Integration into other services:

* context pad provider works with autoPlace, if
  available and defaults to drag start without
* auto placed elements are selected and direct editing
  may conditionally be activated based on element type
  (LabelEditingProvider knows the rules)

Users can out out of autoPlace by specifying the configuration
property `config.contextPad.autoPlace = false`.

Closes #563

BREAKING CHANGE:

* This breaks the default interaction from the context
  pad; if you rely on clicking to start the drag
  you can opt out of autoPlace:

  ```
  new BpmnJS({ contextPad: { autoPlace: false } });
  ```
2017-12-22 10:30:44 +01:00
Nico Rehwaldt
2b37cebeb6 chore(context-pad): remove unused argument 2017-12-08 11:40:55 +01:00
Nico Rehwaldt
029c3d76aa chore(context-pad): minor connect / remove tweek
* remove does not activate on dragstart
* connect does not trigger default drag behavior
2017-12-06 23:30:43 +01:00
Vladimirs Katusenoks
38c81146a3 fix(context-pad): use current context shape
Relates to camunda/camunda-modeler#415
2016-09-19 12:29:20 +02:00
Ricardo Matias
7575af4c0f feat(replace-menu): rework opening after element creation
Closes camunda/camunda-modeler#327
2016-08-31 11:02:19 +02:00
Ricardo Matias
810a107262 feat(context-pad): open the replace menu after creating a shape
Closes camunda/camunda-modeler#327
2016-08-19 16:36:14 +02:00
Nico Rehwaldt
0ba239bbce chore(project): switch to eslint
Use eslint instead of jshint for linting.

* better linting results
* test files linted, too
* consistent code style checks

Closes #568
2016-06-07 09:55:32 +02:00
pedesen
f15647edfd feat(context-pad): add text annotation option for data objects/stores
Closes #564
2016-05-31 11:04:55 +02:00
Jan Stümmel
4732dcfc74 feat(modeling): create collapsed pools via morph menu
You are now able to morph between collapsed and expanded pools

* Not possible to drop elements in a collapsed pool
* if a expanded pool collapses, the children are deleted

Closes #365
2016-03-14 16:28:23 +01:00
davcs86
49173abdad feat(i18n): add localization
* Palette, ContextPad, Errors...

Closes #491
2016-03-11 20:10:10 +01:00
Nico Rehwaldt
6b27ee4301 feat(context-pad): integrate DataStore pad
Related to #345
2016-01-27 12:01:16 +01:00
Nico Rehwaldt
acf9013bcb feat(context-pad): add compensation pad
Related to #291
2016-01-25 16:02:59 +01:00
Ricardo Matias
b233e7f6ed feat(context-pad): pass mouse position to the popup menu
Closes #414
2016-01-06 18:22:12 +01:00
pedesen
eb7b5d7bb4 chore(replace): separate popup menu from replace logic
This commit makes use of the provider concept introduced
in diagram-js. The replace menu entries are now created
in the replace menu provider. This separates BpmnReplace
from the entry creation in the popup menu.

Closes #428
2016-01-06 16:37:17 +01:00
Adam Brengesjö
9322a6a1e6 feat(context-pad): show delete only if allowed by rules
Related to bpmn-io/diagram-js#131
2015-12-02 15:56:09 +01:00
Nico Rehwaldt
a0d4b7807c chore(project): migrate to bpmn-icon prefixed font
Related to bpmn-io/bpmn-font#12
2015-11-16 15:28:21 +01:00
Nico Rehwaldt
fbcb8a92b5 fix(context-pad): disable split for small lanes 2015-10-20 17:57:41 +02:00
Nico Rehwaldt
e79e70acb4 fix(context-pad): reopen after Lane split
Closes #392
2015-10-20 16:29:13 +02:00
Nico Rehwaldt
7af6d916ce feat(context-pad): use #removeElements when deleting 2015-10-20 16:05:24 +02:00
Nico Rehwaldt
6a3bdd32ea chore(context-pad): make lane actions available
Lanes are going to be modeled via the parents context-pad only.

This commit

* removes lanes from the palette
* adds lane actions to the context-pad

Related to #379
2015-10-20 16:04:23 +02:00
pedesen
08c2ebc78f feat(modeling): add data objects
Closes #344
2015-10-07 15:15:57 +02:00
Ricardo Matias
fe7e8fe6d1 feat(replace): add conditional flows
Closes #369
2015-09-30 11:35:44 +02:00
Ricardo Matias
5a60c370a7 feat(replace): add default flows
Closes #272
2015-09-30 11:35:44 +02:00
pedesen
4af603e5be feat(modeling): add expanded event sub processes
Closes #302
2015-08-12 09:47:42 +02:00
pedesen
88f91d342b feat(replace): model collapsed subprocesses using the replace menu
Closes #303
2015-07-03 15:54:36 +02:00
pedesen
af991e89e9 feat(BpmnReplace): morphing between expanded sub processes and transactions
Closes #223
2015-06-26 15:36:33 +02:00
Mohsen Hariri
206457e764 fix(context-pad): fix context pad positioning in special case
context pad was misplaced when the canvas is placed with a left offset within the parent
2015-05-15 11:11:19 +02:00
Nico Rehwaldt
53a701da93 fix(context-pad): use correct icon 2015-05-12 15:25:35 +02:00
Nico Rehwaldt
a70778880f chore(palette+context-pad): update tooltips
Related to #259
2015-05-11 17:36:01 +02:00
Nico Rehwaldt
cb52a479e0 fix(palette): add missing create feature 2015-04-30 11:33:27 +02:00
Nico Rehwaldt
c14a87e5ad feat(modeling): add message flow modeling
Related to #199
Closes #201
2015-04-22 16:12:58 +02:00
Nico Rehwaldt
67d81c346c fix(replace): pre-build BPMN elements
This simplifies the ways we work with replacements.

Instead of monkey-patching the original replace functionality we

* create the business object / target object
* pass it to replace

A simple way that works well with our existing infrastructure.

Other changes:

* fixes redo / undo issues.
* splits context-pad + replace

Closes #180
2015-03-11 16:19:09 +01:00
Nico Rehwaldt
d1d42f3713 chore(project): upgrade to latest bpmn-font 2015-03-10 16:07:58 +01:00
jdotzki
2b8d8110fd fix(contextpad): prevent replace menu from opening multiple instances 2015-03-08 11:51:38 +01:00
jdotzki
2321caecd7 improve(contextpad): remove modeling options behind throwing link events
related #219
2015-03-07 12:59:22 +01:00
jdotzki
6aceab9dbf feature(contextpad): add catch events to pad for event based gateways
close #206
2015-03-06 09:27:18 +01:00
jdotzki
e665895448 improve(font): update to latest font
#186
2015-03-05 18:04:57 +01:00
jdotzki
6f85d3081f improve(contextpad): use receive-task icon instead just receive
close #214
2015-03-04 15:50:06 +01:00
jdotzki
7676b9f244 fix(context pad): correct position of replace menu
close #210
2015-03-04 15:27:13 +01:00
jdotzki
1c45d98f9a fix(contextpad): add missing events to replace menu
close #209
close #217
2015-03-04 12:28:18 +01:00
jdotzki
f527096ac2 fix(contextpad): add signal event to end event replace menu
close #211 #218
2015-03-03 17:09:54 +01:00
jdotzki
5604e13468 fix(contextpad): remove incorrect replace targets
close #207
2015-03-03 15:58:59 +01:00
jdotzki
22c0065d5d fix(context pad): remove instantiating gateways from replace menu
close #212
2015-03-03 15:15:00 +01:00
jdotzki
7207d010db feat(contextpad): add event to replace-menu
See #192
2015-03-02 13:43:06 +01:00
jdotzki
66801df111 feature(rules): add modeling rules for event based gateways
closes #193
2015-03-02 13:43:06 +01:00
jdotzki
18c2b0552e feat(contextpad): add replace-menu to context pad
Support for Gateways and Task Types was added.

See #130
2015-03-02 13:43:06 +01:00
Nico Rehwaldt
3996408404 chore(project): migrate to modularized lodash@3
* use specialized lodash utilities
* consistently apply 'use strict'

Related to #185
2015-02-02 14:46:21 +01:00