aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-02-20 19:23:25 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-20 19:23:25 +0000
commit87ab634335deaa3901c5c8fc548aa89b08880659 (patch)
treeabd7b1c9d60965cab302fb681f9a4a9652f5cded /cds-ui/client/src/app
parent04e659efacd8e84e20563c6c14221618c2852780 (diff)
parent8f0563aed82049d36e2480dd2843d888bc0f2964 (diff)
Merge "Designer component changes"
Diffstat (limited to 'cds-ui/client/src/app')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/modify-template/designer/designer.component.ts14
1 files changed, 6 insertions, 8 deletions
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 b332f8fe4..b8f88d90c 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
@@ -19,7 +19,7 @@ limitations under the License.
============LICENSE_END============================================
*/
-import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
+import { Component, OnInit, ViewChild, ElementRef, Output, EventEmitter } from '@angular/core';
import * as d3 from 'd3';
import { text } from 'd3';
@@ -29,7 +29,7 @@ import { text } from 'd3';
styleUrls: ['./designer.component.scss']
})
export class DesignerComponent implements OnInit {
-
+ @Output() onNodeSelect = new EventEmitter();
@ViewChild('svgArea') graphContainer: ElementRef;
dataForsimulation;
svg;
@@ -116,8 +116,6 @@ export class DesignerComponent implements OnInit {
.attr('cx', 97)
.attr('cy', 20)
.attr('r', 5)
- .attr('width', 10)
- .attr('height', 10)
.attr('fill', 'orange')
if(d.requirementsArray) {
@@ -127,8 +125,6 @@ export class DesignerComponent implements OnInit {
.attr('cx', 97)
.attr('cy', 60)
.attr('r', 5)
- .attr('width', 10)
- .attr('height', 10)
.attr('fill', 'blue')
requirement.x = xbyMath + 95;
requirement.y = ybyMath + 60;
@@ -142,8 +138,6 @@ export class DesignerComponent implements OnInit {
.attr('cx', 97)
.attr('cy', 40)
.attr('r', 5)
- .attr('width', 10)
- .attr('height', 10)
.attr('fill', 'green');
capability.x = xbyMath + 97;
capability.y = ybyMath + 40;
@@ -245,4 +239,8 @@ export class DesignerComponent implements OnInit {
console.log('mouse over');
}
+ trigerNodeSelectEvent(d) {
+ this.onNodeSelect.emit(d);
+}
+
}