From 1369fb5ad6fd11e89ec53df3cb39a795224ba1a3 Mon Sep 17 00:00:00 2001 From: jdotzki Date: Tue, 29 Apr 2014 15:39:26 +0200 Subject: [PATCH] feat(bpmnrenderer): render group frame --- lib/draw/BpmnRenderer.js | 9 ++++++++- test/fixtures/bpmn/render/groups.bpmn | 13 +++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/bpmn/render/groups.bpmn diff --git a/lib/draw/BpmnRenderer.js b/lib/draw/BpmnRenderer.js index 79743bce..8fcacccd 100644 --- a/lib/draw/BpmnRenderer.js +++ b/lib/draw/BpmnRenderer.js @@ -866,8 +866,15 @@ function BpmnRenderer(events, styles, bpmnRegistry, pathMap) { 'bpmn:BoundaryEvent': function(p, data) { return renderer('bpmn:IntermediateInterruptedEvent')(p, data); }, - 'label': function(p, data) { + 'bpmn:Group': function(p, data) { + var group = drawRect(p, data.width, data.height, TASK_BORDER_RADIUS); + group.attr({ + 'stroke-width': 1, + 'stroke-dasharray': '8,3,1,3', + 'fill': 'None' + }); + return group; } }; diff --git a/test/fixtures/bpmn/render/groups.bpmn b/test/fixtures/bpmn/render/groups.bpmn new file mode 100644 index 00000000..1dc085e3 --- /dev/null +++ b/test/fixtures/bpmn/render/groups.bpmn @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file