From d115bbd6d6e19418049ca7f0587e2a47cbe32773 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Mon, 18 Feb 2019 20:13:05 +0530 Subject: Designer component changes Changes to designer component Issue-ID: CCSDK-975 Change-Id: I64c0da9985e4b768bfd5610cb613b6c15b0ae208 Signed-off-by: Arundathi Patil --- .../modify-template/designer/designer.component.ts | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/designer/designer.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/designer/designer.component.ts index 5e86a7eb7..b332f8fe4 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/designer/designer.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/designer/designer.component.ts @@ -112,21 +112,21 @@ export class DesignerComponent implements OnInit { d.x = xbyMath; d.y = ybyMath; - firstg.append('rect') - .attr('x', 95) - .attr('y', 20) - // .attr('r', 10) + firstg.append('circle') + .attr('cx', 97) + .attr('cy', 20) + .attr('r', 5) .attr('width', 10) .attr('height', 10) .attr('fill', 'orange') if(d.requirementsArray) { d.requirementsArray.forEach(requirement =>{ - firstg.append('rect') + firstg.append('circle') .attr('id', d.name+requirement.name) - .attr('x', 95) - .attr('y', 60) - // .attr('r', 10) + .attr('cx', 97) + .attr('cy', 60) + .attr('r', 5) .attr('width', 10) .attr('height', 10) .attr('fill', 'blue') @@ -137,16 +137,16 @@ export class DesignerComponent implements OnInit { if(d.capabilitiesArray) { d.capabilitiesArray.forEach(capability =>{ - firstg.append('rect') + firstg.append('circle') .attr('id', d.name+capability.name) - .attr('x', 95) - .attr('y', 40) - // .attr('r', 10) + .attr('cx', 97) + .attr('cy', 40) + .attr('r', 5) .attr('width', 10) .attr('height', 10) .attr('fill', 'green'); - capability.x = xbyMath + 95; - capability.y = ybyMath + 60; + capability.x = xbyMath + 97; + capability.y = ybyMath + 40; }); } @@ -237,7 +237,7 @@ export class DesignerComponent implements OnInit { .attr('x2', link.targetX) .attr('y2', link.targetY) .attr('stroke','gray') - .attr('stroke-width', 5); + .attr('stroke-width', 2); }); } -- cgit 1.2.3-korg