chore(draw): retrieve default colors from bpmnRenderer config
Related to #713
This commit is contained in:
parent
290b2f6121
commit
0b66b77483
|
@ -73,8 +73,8 @@ export default function BpmnRenderer(
|
|||
|
||||
BaseRenderer.call(this, eventBus, priority);
|
||||
|
||||
var defaultFillColor = config.renderer && config.renderer.defaultFillColor,
|
||||
defaultStrokeColor = config.renderer && config.renderer.defaultStrokeColor;
|
||||
var defaultFillColor = config && config.defaultFillColor,
|
||||
defaultStrokeColor = config && config.defaultStrokeColor;
|
||||
|
||||
var rendererId = RENDERER_IDS.next();
|
||||
|
||||
|
@ -1842,7 +1842,7 @@ export default function BpmnRenderer(
|
|||
inherits(BpmnRenderer, BaseRenderer);
|
||||
|
||||
BpmnRenderer.$inject = [
|
||||
'config',
|
||||
'config.bpmnRenderer',
|
||||
'eventBus',
|
||||
'styles',
|
||||
'pathMap',
|
||||
|
|
|
@ -319,7 +319,7 @@ describe('draw - bpmn renderer', function() {
|
|||
};
|
||||
|
||||
beforeEach(bootstrapViewer(xml,{
|
||||
renderer: {
|
||||
bpmnRenderer: {
|
||||
defaultFillColor: defaultFillColor,
|
||||
defaultStrokeColor: defaultStrokeColor
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue