From df81658e252dd886f30e984f1aa4a5f3917cd134 Mon Sep 17 00:00:00 2001 From: Lvbo163 Date: Mon, 28 Aug 2017 14:19:17 +0800 Subject: WorkFlow Diagram Editor create workflow diagram editor area, install jsplumb package to support node drag and node connections. Change-Id: Ie68d0f88ef1cc855c1e55e51e918111c6fba4116 Issue-ID: SDC-70 Signed-off-by: Lvbo163 --- .../src/app/components/node/node.component.ts | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sdc-workflow-designer-ui/src/app/components/node/node.component.ts (limited to 'sdc-workflow-designer-ui/src/app/components/node/node.component.ts') diff --git a/sdc-workflow-designer-ui/src/app/components/node/node.component.ts b/sdc-workflow-designer-ui/src/app/components/node/node.component.ts new file mode 100644 index 00000000..12f23cc5 --- /dev/null +++ b/sdc-workflow-designer-ui/src/app/components/node/node.component.ts @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2017 ZTE Corporation. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * and the Apache License 2.0 which both accompany this distribution, + * and are available at http://www.eclipse.org/legal/epl-v10.html + * and http://www.apache.org/licenses/LICENSE-2.0 + * + * Contributors: + * ZTE - initial API and implementation and/or initial documentation + */ + +import { Component, AfterViewInit, Input } from '@angular/core'; + +import { JsPlumbService } from '../../services/jsplumb.service'; + +/** + * workflow node component + */ +@Component({ + selector: 'b4t-node', + styleUrls: ['./node.component.css'], + templateUrl: 'node.component.html', +}) +export class NodeComponent { + @Input() public node: Node; + + constructor(private jsPlumbService: JsPlumbService) { + + } + +} -- cgit 1.2.3-korg