diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.html b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.html
index 83ec775c87..c4de55c9cc 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.html
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.ts b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.ts
index 178b73e304..a13e637db7 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-event.component.ts
@@ -38,6 +38,7 @@ export class DiagramEventComponent {
onError = new EventEmitter();
center: any = {};
+ options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: '', radius: ''};
constructor(public elementRef: ElementRef,
private diagramColorService: DiagramColorService) {}
@@ -47,10 +48,10 @@ export class DiagramEventComponent {
this.center.x = this.data.x + (this.data.width / 2);
this.center.y = this.data.y + (this.data.height / 2);
- this.data.radius = this.radius;
- this.data.strokeWidth = this.strokeWidth;
- this.data.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.MAIN_STROKE_COLOR);
- this.data.fillColors = this.diagramColorService.getFillColour(this.data.id);
- this.data.fillOpacity = this.diagramColorService.getFillOpacity();
+ this.options.radius = this.radius;
+ this.options.strokeWidth = this.strokeWidth;
+ this.options.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.MAIN_STROKE_COLOR);
+ this.options.fillColors = this.diagramColorService.getFillColour(this.data.id);
+ this.options.fillOpacity = this.diagramColorService.getFillOpacity();
}
}
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.html b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.html
index 961479892a..fe7f52ec74 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.html
@@ -1,3 +1,4 @@
-
+
\ No newline at end of file
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.ts b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.ts
index eff9f54135..1efa86f934 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram-task.component.ts
@@ -28,33 +28,23 @@ export class DiagramTaskComponent {
@Input()
data: any;
- options: any = {};
-
@Output()
onError = new EventEmitter();
- stroke: number;
-
rectLeftCorner: any;
- radius: number = 4;
-
textPosition: any;
+ options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: '', radius: 4};
constructor(public elementRef: ElementRef,
private diagramColorService: DiagramColorService) {}
ngOnInit() {
- console.log(this.elementRef);
-
- this.data.fillColors = this.diagramColorService.getFillColour(this.data.id);
- this.data.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.ACTIVITY_STROKE_COLOR);
- this.data.strokeWidth = this.diagramColorService.getBpmnStrokeWidth(this.data);
- this.data.fillOpacity = this.diagramColorService.getFillOpacity();
-
this.rectLeftCorner = {x: this.data.x, y: this.data.y};
-
this.textPosition = {x: this.data.x + ( this.data.width / 2 ), y: this.data.y + ( this.data.height / 2 )};
- this.options['id'] = this.data.id;
+ this.options.fillColors = this.diagramColorService.getFillColour(this.data.id);
+ this.options.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.ACTIVITY_STROKE_COLOR);
+ this.options.strokeWidth = this.diagramColorService.getBpmnStrokeWidth(this.data);
+ this.options.fillOpacity = this.diagramColorService.getFillOpacity();
}
}
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram.component.html b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram.component.html
index c557f9758d..787c3e43cc 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/diagram.component.html
@@ -7,6 +7,9 @@
+
+
+
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.html b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.html
index 251eaef460..a00dc1cad3 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.html
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.ts b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.ts
index d1617c855d..d38da7d125 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-exclusive-gateway.component.ts
@@ -32,6 +32,9 @@ export class DiagramExclusiveGatewayComponent {
onError = new EventEmitter();
center: any = {};
+ width: any;
+ height: any;
+ options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 3};
constructor(public elementRef: ElementRef,
private diagramColorService: DiagramColorService) {}
@@ -39,10 +42,11 @@ export class DiagramExclusiveGatewayComponent {
ngOnInit() {
this.center.x = this.data.x;
this.center.y = this.data.y;
+ this.width = this.data.width;
+ this.height = this.data.height;
- this.data.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.MAIN_STROKE_COLOR);
- this.data.fillColors = this.diagramColorService.getFillColour(this.data.id);
- this.data.fillOpacity = this.diagramColorService.getFillOpacity();
- this.data.strokeWidth = 3;
+ this.options.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.MAIN_STROKE_COLOR);
+ this.options.fillColors = this.diagramColorService.getFillColour(this.data.id);
+ this.options.fillOpacity = this.diagramColorService.getFillOpacity();
}
}
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.html b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.html
index 24f216a19d..6550ba6dca 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.html
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.html
@@ -1,2 +1,2 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.ts b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.ts
index 7c056e8a00..a2c275586a 100644
--- a/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.ts
+++ b/ng2-components/ng2-activiti-analytics/src/components/diagrams/gateway/diagram-gateway.component.ts
@@ -32,6 +32,9 @@ export class DiagramGatewayComponent {
onError = new EventEmitter();
center: any = {};
+ width: any;
+ height: any;
+ options: any = {stroke: '', fillColors: '', fillOpacity: '', strokeWidth: 2};
constructor(public elementRef: ElementRef,
private diagramColorService: DiagramColorService) {}
@@ -39,10 +42,11 @@ export class DiagramGatewayComponent {
ngOnInit() {
this.center.x = this.data.x;
this.center.y = this.data.y;
+ this.width = this.data.width;
+ this.height = this.data.height;
- this.data.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.MAIN_STROKE_COLOR);
- this.data.fillColors = this.diagramColorService.getFillColour(this.data.id);
- this.data.fillOpacity = this.diagramColorService.getFillOpacity();
- this.data.strokeWidth = 2;
+ this.options.stroke = this.diagramColorService.getBpmnColor(this.data, DiagramColorService.MAIN_STROKE_COLOR);
+ this.options.fillColors = this.diagramColorService.getFillColour(this.data.id);
+ this.options.fillOpacity = this.diagramColorService.getFillOpacity();
}
}