From 9b2ceb347a3371819fcad6bbe2268203afecaf4e Mon Sep 17 00:00:00 2001 From: "Stone, Avi (as206k)" Date: Thu, 12 Apr 2018 16:36:39 +0300 Subject: DCAE-D fe initial commit DCAE-D fe initial commit Change-Id: Ica8ccb7c7ef769c969664d1e168d205eb9fc67f2 Issue-ID: SDC-1218 Signed-off-by: Stone, Avi (as206k) --- public/src/app/diagram/diagram.component.html | 19 ++++++++++++++++ public/src/app/diagram/diagram.component.scss | 28 ++++++++++++++++++++++++ public/src/app/diagram/diagram.component.spec.ts | 26 ++++++++++++++++++++++ public/src/app/diagram/diagram.component.ts | 12 ++++++++++ 4 files changed, 85 insertions(+) create mode 100644 public/src/app/diagram/diagram.component.html create mode 100644 public/src/app/diagram/diagram.component.scss create mode 100644 public/src/app/diagram/diagram.component.spec.ts create mode 100644 public/src/app/diagram/diagram.component.ts (limited to 'public/src/app/diagram') diff --git a/public/src/app/diagram/diagram.component.html b/public/src/app/diagram/diagram.component.html new file mode 100644 index 0000000..b3cb28a --- /dev/null +++ b/public/src/app/diagram/diagram.component.html @@ -0,0 +1,19 @@ + + + + + + {{item.source}} + + + + + + + + + {{item.target}} + + + diff --git a/public/src/app/diagram/diagram.component.scss b/public/src/app/diagram/diagram.component.scss new file mode 100644 index 0000000..57437d8 --- /dev/null +++ b/public/src/app/diagram/diagram.component.scss @@ -0,0 +1,28 @@ +svg { + height: 400px; + width: 100%; + margin: auto; + display: block; + .line { + stroke-dasharray: 1400; + animation: draw 5s ease-in; + } +} + +@keyframes draw { + from { + stroke-dashoffset: -1400; + } + to { + stroke-dashoffset: 0; + } +} + +@keyframes dude { + 0% { + width: 0; + } + 100% { + width: 100%; + } +} diff --git a/public/src/app/diagram/diagram.component.spec.ts b/public/src/app/diagram/diagram.component.spec.ts new file mode 100644 index 0000000..535f280 --- /dev/null +++ b/public/src/app/diagram/diagram.component.spec.ts @@ -0,0 +1,26 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DiagramComponent } from './diagram.component'; + +describe('DiagramComponent', () => { + let component: DiagramComponent; + let fixture: ComponentFixture; + + beforeEach( + async(() => { + TestBed.configureTestingModule({ + declarations: [DiagramComponent] + }).compileComponents(); + }) + ); + + beforeEach(() => { + fixture = TestBed.createComponent(DiagramComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/public/src/app/diagram/diagram.component.ts b/public/src/app/diagram/diagram.component.ts new file mode 100644 index 0000000..a0ae3a1 --- /dev/null +++ b/public/src/app/diagram/diagram.component.ts @@ -0,0 +1,12 @@ +import { Component, Input } from '@angular/core'; + +@Component({ + selector: 'app-diagram', + templateUrl: './diagram.component.html', + styleUrls: ['./diagram.component.scss'] +}) +export class DiagramComponent { + @Input() list; + maxWidth: number = 500; + constructor() {} +} -- cgit 1.2.3-korg