Commit Graph

1230 Commits

Author SHA1 Message Date
felixlinker 36a12396fd chore(renderer): extract BpmnRenderer utilities into util
Closes #731
2017-12-10 19:10:12 +01:00
Nico Rehwaldt e9eb9e374a fix(snapping): correct bendpoint snapping on shape move
Don't blindly snap first waypoint; instead, snap only bendpoints
that are manhattan layout aligned with other bendpoints (excluding
start and end).
2017-12-10 13:48:46 +01:00
Nico Rehwaldt f05ad02198 feat(layout): filter redundant connection waypoints 2017-12-10 12:29:54 +01:00
Nico Rehwaldt 357f3b3e96 chore(project): rebuild package-lock.json 2017-12-09 22:36:38 +01:00
Nico Rehwaldt 7ffb865023 chore(project): consistent async error handling
Async utilities properly propagate _all_ errors to the
specified _done_ callback. Failing in _done_ does not
re-invoke it.

Adjustments made in

* Viewer#importXML
* Viewer#saveSVG
* Importer#importBpmnDiagram

Tests cleaned up to remove un-necessary `if (err) { ...` snippets.
2017-12-09 22:31:15 +01:00
Nico Rehwaldt 105f326dad chore(project): bump bpmn-moddle dependency
* unused namespace does not get serialized anymore

Closes #469
2017-12-09 22:30:56 +01:00
Nico Rehwaldt 7e928ec709 fix(label-editing): use new isTouch detection for conditional activation
Chrome and other modern desktop browsers
ship with touch features out of the box.

Because of that, it is not possible to use
the check

```
'ontouchstart' in document.documentElement
```
2017-12-08 19:32:13 +01:00
Nico Rehwaldt 2b37cebeb6 chore(context-pad): remove unused argument 2017-12-08 11:40:55 +01:00
Nico Rehwaldt db64aa1377 chore(project): bump bpmn-moddle
Closes #735
2017-12-08 00:18:51 +01:00
Philipp Fromme bc0fd114d0 chore(project): bump diagram-js dependency
Closes camunda/camunda-modeler#463
Closes #734
2017-12-07 16:35:09 +01:00
Nico Rehwaldt c14be5d258 chore(test/util): remove snap.svg remainders 2017-12-07 13:19:02 +01:00
Nico Rehwaldt 50da47e1e1 fix(Viewer): trigger resized on attach
Ensure components get notified on `canvas.resized`, whenever
the Viewer instance gets attached.
2017-12-07 11:59:25 +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
Nico Rehwaldt e34ca2feb2 chore(project): remove grunt-release
We do <np **> to release things.
2017-11-29 12:23:14 +01:00
Nico Rehwaldt cbc3a7b3c5 chore(project): re-build package-lock 2017-11-29 12:19:05 +01:00
Nico Rehwaldt e02dd55493 chore(project): bump stringify dependency 2017-11-29 11:00:05 +01:00
Nico Rehwaldt 8de61c714a 0.25.2 2017-11-28 18:19:49 +01:00
Nico Rehwaldt c92cbda54e chore(project): bump bpmn-moddle dependency 2017-11-28 18:17:13 +01:00
Nico Rehwaldt e0104e3589 chore(Viewer): handle import error outside try/catch 2017-11-28 13:24:36 +01:00
Nico Rehwaldt 9b2a07d958 style(test): re-format test case 2017-11-23 11:00:23 +01:00
Nico Rehwaldt a6b26b0b59 chore(test): add missing custom Chrome headless launcher 2017-11-23 10:46:29 +01:00
Nico Rehwaldt 3908ac64c5 0.25.1 2017-11-23 09:54:47 +01:00
Nico Rehwaldt 2ef82970fd chore(Viewer): re-expose loaded definitions
The previous release kinda removed access to the currently
loaded definitions.

This restores access by exposing it by `Viewer#getDefinitions()`.
2017-11-23 09:49:54 +01:00
Nico Rehwaldt 6bb1128ccc 0.25.0 2017-11-21 09:29:58 +01:00
Nico Rehwaldt 8feb2eca97 chore(project): bump diagram-js version
* Fixes markers to be properly removed on connect/reconnect
  in Internet Explorer / Edge.

Related to bpmn-io/diagram-js#236
2017-11-21 09:27:33 +01:00
Nico Rehwaldt 642d7b88af chore(Viewer+Modeler): consistently name private instance variables
BREAKING CHANGE:

* definitions, container and moddle have been prefixed with
  an underscore (_) to denote they are private use.
2017-11-20 15:28:29 +01:00
Nico Rehwaldt 844bc9a922 chore(wiredeps): use saxen 2017-11-20 15:04:37 +01:00
Nico Rehwaldt cfcf5ddd41 chore(project): shrink bundle sizes
Reduces the size of bpmn-js {Viewer, NavigatedViewer, Modeler}
bundles by roughly eight percent:

* module concat / tree-shake produced production bundle
* bump diagram-js version to fix <this> used in ManhattanLayout
  utility
2017-11-20 15:04:37 +01:00
Nico Rehwaldt 2441b153f6 chore(project): rebuild package-lock.json 2017-11-20 10:34:18 +01:00
Nico Rehwaldt 447cb2be98 0.24.0 2017-11-15 20:29:17 +01:00
Nico Rehwaldt ce45e9081b chore(project): bump bpmn-moddle dep
This improves the import and export of BPMN 2.0 XML documents

+ improves di prefix collision handling
+ proper deconflicting of prefixes during export
+ validate and detect non-BPMN root elements
+ replace underlying XML parser for higher speed and smaller
  bundle size
+ pass parse warnings with errors

NOTE:

* some error messages on broken XML may have changed
  due to changes in the underlying XML parser
2017-11-15 19:55:34 +01:00
Nico Rehwaldt 0227eb2d3c chore(tasks/stages): attempt fix 2017-11-15 08:46:18 +01:00
Nico Rehwaldt 24dad2eb54 0.23.3 2017-11-14 23:51:00 +01:00
Nico Rehwaldt f838e6dd0e chore(project): update .gitignore 2017-11-14 23:46:21 +01:00
felixlinker 0cb46183eb chore(draw/BpmnRenderer): exposed _drawPath helper
This allows extensions to reuse the internal drawPath utility.

Cf. #722 for context.
2017-11-13 09:56:02 +01:00
Nico Rehwaldt abddbb0889 chore(release): update bower.json version when publishing bundle 2017-11-06 23:29:49 +01:00
Nico Rehwaldt 3108df3505 0.23.2 2017-11-06 23:03:45 +01:00
Nico Rehwaldt 746683d401 chore(project): bump bpmn-moddle dep
+ allows roundtripping of unprefixed elements
+ makes all miwg tests pass
2017-11-06 22:59:19 +01:00
Nico Rehwaldt 1dc84c500f chore(project): add release build stages
* configure build stages on release tags

  + publish bpmn-io/bower-bpmn-js
  + update bpmn-io/bpmn-js-seed
  + update bpmn-io/bpmn-js-integration
2017-10-27 22:05:52 +02:00
Nico Rehwaldt 1926ce4494 0.23.1 2017-10-27 10:44:31 +02:00
Nico Rehwaldt f6d46c0cdf chore(project): bump diagram-js version
+ fixes overlay { maxZoom: 1 }
2017-10-27 10:40:56 +02:00
Nico Rehwaldt dd3f9a1c57 0.23.0 2017-10-26 11:44:28 +02:00
Nico Rehwaldt f8a4427157 chore(project): bump diagram-js dependency 2017-10-26 11:32:37 +02:00
Nico Rehwaldt 56d9a8b152 chore(project): bump tiny-svg dependency 2017-10-26 11:26:57 +02:00
Philipp Fromme fa7c06801a fix(context-pad): remove icon margins introduced by Fontello
Closes bpmn-io/diagram-js#232
2017-10-25 15:18:11 +02:00
Nico Rehwaldt 9416eae126 chore(project): bump test dependency versions
* remove redundant karma-chai
2017-10-22 23:22:58 +02:00
Nico Rehwaldt 90ddaeef5e chore(tests): add Chrome headless as test browser
* include special non-sandbox launcher on Linux
* handle TEST_BROWSERS in karma config
2017-10-22 22:21:51 +02:00
Nico Rehwaldt d84d9fd22e chore(project): add package-lock.json 2017-10-11 15:19:53 +02:00
Nico Rehwaldt 92aac008b8 chore(ci): use latest node for testing
This ensures we run against npm v5:

* bump wiredeps dependency version
* rebuild .wiredeps
* internalize test helpers from diagram-js
2017-10-11 15:19:36 +02:00
Nico Rehwaldt 04e33bd2f6 chore(project): update year in LICENSE 2017-10-07 09:19:32 +02:00