From 28f7145b32e7b4009d99421cb91db3050236ac92 Mon Sep 17 00:00:00 2001 From: pedesen Date: Mon, 18 Jul 2016 11:13:35 +0200 Subject: [PATCH] chore(draw): use lines insted of curves to render escalation events Closes #592 --- lib/draw/BpmnRenderer.js | 2 +- lib/draw/PathMap.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/draw/BpmnRenderer.js b/lib/draw/BpmnRenderer.js index 589113e8..0a8c3329 100644 --- a/lib/draw/BpmnRenderer.js +++ b/lib/draw/BpmnRenderer.js @@ -432,7 +432,7 @@ function BpmnRenderer(eventBus, styles, pathMap, priority) { containerHeight: event.height, position: { mx: 0.5, - my: 0.555 + my: 0.2 } }); diff --git a/lib/draw/PathMap.js b/lib/draw/PathMap.js index 08acdd96..fc816d81 100644 --- a/lib/draw/PathMap.js +++ b/lib/draw/PathMap.js @@ -55,12 +55,11 @@ function PathMap() { widthElements: [10, 20] }, 'EVENT_ESCALATION': { - d: 'm {mx},{my} c -{e.x1},{e.y0} -{e.x3},{e.y1} -{e.x5},{e.y4} {e.x1},-{e.y3} {e.x3},-{e.y5} {e.x5},-{e.y6} ' + - '{e.x0},{e.y3} {e.x2},{e.y5} {e.x4},{e.y6} -{e.x0},-{e.y0} -{e.x2},-{e.y1} -{e.x4},-{e.y4} z', + d: 'M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z', height: 36, width: 36, - heightElements: [2.382, 4.764, 4.926, 6.589333, 7.146, 13.178667, 19.768], - widthElements: [2.463, 2.808, 4.926, 5.616, 7.389, 8.424] + heightElements: [20, 7], + widthElements: [8] }, 'EVENT_CONDITIONAL': { d: 'M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z ' +