1fd28b1424
test(draw): cleanup left over log statement
2024-11-05 13:25:51 +01:00
3f2ec41204
feat: render markers as part of djs-visual
...
related to https://github.com/camunda/camunda-modeler/issues/4307
2024-05-28 15:14:47 +02:00
ec2ee691dd
fix(draw): don't fill multiple parallel events
...
Closes https://github.com/bpmn-io/bpmn-js/issues/2085
2024-01-29 12:09:36 +01:00
c93b2cfa10
feat(bpmn-renderer): render vertical pools and lanes
2023-12-04 10:51:15 +00:00
616018313c
chore: move tests to main describe
2023-10-30 14:52:52 +01:00
f77de3bc4d
feat(bpmn-renderer): allow overriding colors, width, and height
...
* fill, stroke, width and height can be overridden
* no other attributes can be overridden
* public API only exposes renderers for actual BPMN elements
Closes #1990
2023-10-30 14:52:52 +01:00
cd23850211
feat: allow event rendering without icons
...
Supports https://github.com/bpmn-io/element-template-icon-renderer/issues/6
2023-05-24 13:16:57 +02:00
3ea2852221
chore: simplify element type names
2023-04-19 12:18:42 +02:00
1d90ae636b
fix: fix remaining JSDocs
2023-04-19 12:18:42 +02:00
31b5af5aa1
style: improve test formatting
2023-04-19 12:18:42 +02:00
ac159ce584
test: drop various PhantomJS workarounds
2022-08-19 11:40:55 +02:00
b3db78cbfe
feat: change default black to off black
...
Related to https://github.com/bpmn-io/diagram-js/issues/571
2022-05-20 11:30:30 +02:00
e0a2b4164d
chore(draw): expose extension points
...
+ clearly documented as *UNSAFE*
+ add test cases
+ tested existing *UNSAFE* handler endpoint
2022-02-09 14:55:23 +01:00
4251e31af2
feat(bpmn-renderer): support displaying bpmn-in-color
2021-05-27 12:43:53 +00:00
1f0fdefe40
feat(message): show label on message flow
...
closes #777
2021-04-29 14:31:56 +02:00
04ca31fac9
feat(lib): Promisify public APIs
...
This commit promisifies following APIs:
BaseViewer#importXML
BaseViewer#importDefinitions
BaseViewer#open
BaseViewer#saveXML
BaseViewer#saveSVG
Modeler#createDiagram
Related to https://github.com/bpmn-io/bpmn-js/issues/812
BREAKING CHANGES:
* Users are now expected to have Promises either by default or
polyfilled as the APIs return a Promise now.
2020-04-29 11:12:23 +02:00
7a67ff95b2
chore(documentation): fix JSDoc string types
2020-04-07 06:52:55 +00:00
6527e7d116
fix(draw): render colored BPMN group elements
...
Related to https://github.com/camunda/camunda-modeler/issues/1598
2019-11-25 14:44:43 +00:00
e68978bf66
fix(bpmn-renderer): properly escape marker ids
...
Only characters and numbers are allowed. Anything else will be escaped.
Closes #1209
2019-11-07 21:58:09 +00:00
f6f9ac29f2
chore(draw): remove internal label for groups
2019-05-28 06:46:53 +00:00
76ed2b4c26
fix(tests): fix Firefox
2019-04-18 14:42:01 +00:00
65e4a1ab19
test(draw): double check marker coloring
...
* improves color detection to not fail on CI
* verifies message flow markers are being re-used
2019-04-18 14:42:01 +00:00
f106187a98
test(draw): in-source colors diagram
...
* don'r rely on diagram in fixtures
2019-04-18 14:42:01 +00:00
13e3752f94
fix(draw): render hex and rgb encoded color markers
...
Until now we did not properly sanitize the IDs we create for colored
markers. This would make the marker retrival fail with fill and
stroke colors encoded in hex and rgb(a, b, c) form.
This commit improves the situation by removing forbidden chars from
the marker ID.
Closes #981
Related to camunda/camunda-modeler#1342
2019-04-18 14:42:01 +00:00
acd2fe520b
feat(draw): render group names
...
Closes #844
2018-10-25 14:32:07 +02:00
e54a3a7692
test(draw): visually verify label rendering
2018-09-20 22:18:10 +02:00
100f3fb2ee
fix(label-behavior): text annotation resizing after text property change
...
Depends on bpmn-io/diagram-js#259
Related to camunda/camunda-modeler#631
2018-06-13 11:02:55 +02:00
891cf4ac0c
feat(draw+modeling): support lineHeight
...
* take numeric line height into account when
rendering text labels
* take line height into account when directly
editing labels
* use default line height of 1.2 for text rendering
Closes #803
2018-05-29 11:58:15 +02:00
4bb270f192
chore(draw): unify text rendering into service
...
A newly introduced TextRenderer is responsible for text
rendering and text related bounds computation.
This removes a bunch of code duplication, too.
2018-05-24 16:26:01 +02:00
0b66b77483
chore(draw): retrieve default colors from bpmnRenderer config
...
Related to #713
2018-05-24 15:03:52 +02:00
3a980af0e7
test(draw): run tests in test containers
2018-05-24 14:21:09 +02:00
dc1f18a497
feat(bpmn-renderer): accept default fill and stroke color
...
Related to #797
2018-05-24 07:39:30 +02:00
92b0d4eced
test(draw): unskip color spec
2018-05-17 11:26:38 +02:00
9be61259bd
chore(project): drop 'use strict'
...
We use ES modules, so 'use strict' is not necessary anymore.
2018-04-03 18:09:53 +02:00
d3449ca87c
chore(project): es6ify source code
...
* use ES6 import / export
* UTILS: export individual utilities
* TESTS: localize TestHelper includes
BREAKING CHANGE:
* all utilities export independent functions
* library sources got ported to ES6. You must now use
a ES module bundler such as Browserify + babelify or
Webpack to consume this library (or parts of it).
2018-04-03 16:32:14 +02:00
e4dbc422bf
chore(project): migrate to tiny-svg@1.x
2018-03-28 10:49:55 +02:00
e8e5e2ced9
chore(project): update to min-dom@2
2018-03-22 00:54:59 +01:00
37a06a378d
chore(tests): use absolute lib requires
2018-01-24 11:41:21 +01:00
6b5277b936
chore(draw): render connections without source
...
This allows us to renders temporary connections,
i.e. during create / connect.
2017-12-22 10:30:44 +01:00
408dd5383a
chore(tests): localize test file
2017-12-13 13:25:51 +01:00
36a12396fd
chore(renderer): extract BpmnRenderer utilities into util
...
Closes #731
2017-12-10 19:10:12 +01:00
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
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
9033094473
fix(renderer): prevent duplicate marker IDs
...
* when having more than one instance of bpmn-js on a page marker IDs got duplicated
2017-09-29 11:08:37 +02:00
27d65a6503
fix(draw): do not create multiple markers per (type-stoke-fill)
2016-12-20 16:57:09 +01:00
e35248c5fd
test(draw): add skipped test for color rendering
2016-12-05 16:55:36 +01:00
404c35c97f
fix(BpmnRenderer): revert text annotations automatic content fitting
...
This reverts commit a53562e1d5ff37b91ad1e70d1069c15308802389.
Closes #635
2016-12-01 13:27:30 +01:00
42a40494a7
fix(BpmnRenderer): draw instantiated receive task properly
...
* fix drawCircle parameter issue
* make BpmnRenderer test cases more restrictive
* revise inconsistent fixture diagrams to avoid warnings
Closes #627
2016-11-09 10:59:58 +01:00
a53562e1d5
feat(BpmnRenderer): text annotations automatically fit their content
...
Closes #600
2016-11-09 08:23:34 +01:00
db0ce65aa4
feat(graphics): remove snapsvg
...
Related to bpmn-io/diagram-js#50
2016-11-01 15:20:22 +01:00