From 25fa27babd1579593fd9646e25e6ca67b39058ba Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 11 Sep 2018 10:30:00 +0900 Subject: [PATCH] ing --- src/app/pages/home/home-page.component.html | 18 ++++++++++--- src/app/pages/home/home-page.component.ts | 4 +++ src/assets/image/icon/icon_background.svg | 11 ++++++++ src/assets/image/icon/icon_db.svg | 17 ++++++++++++ .../{icon_mai_imap.svg => icon_mail_imap.svg} | 0 .../{icon_mai_pop.svg => icon_mail_pop.svg} | 0 .../{icon_mai_smtp.svg => icon_mail_smtp.svg} | 0 src/assets/image/icon/icon_maria.svg | 27 +++++++++++++++++++ 8 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 src/assets/image/icon/icon_background.svg create mode 100644 src/assets/image/icon/icon_db.svg rename src/assets/image/icon/{icon_mai_imap.svg => icon_mail_imap.svg} (100%) rename src/assets/image/icon/{icon_mai_pop.svg => icon_mail_pop.svg} (100%) rename src/assets/image/icon/{icon_mai_smtp.svg => icon_mail_smtp.svg} (100%) create mode 100644 src/assets/image/icon/icon_maria.svg diff --git a/src/app/pages/home/home-page.component.html b/src/app/pages/home/home-page.component.html index 751f316..de6caad 100644 --- a/src/app/pages/home/home-page.component.html +++ b/src/app/pages/home/home-page.component.html @@ -22,9 +22,21 @@ - - - {{node.id}} + + + + + + + + + + + {{node.id}} + diff --git a/src/app/pages/home/home-page.component.ts b/src/app/pages/home/home-page.component.ts index f6fb37b..39d24f4 100644 --- a/src/app/pages/home/home-page.component.ts +++ b/src/app/pages/home/home-page.component.ts @@ -165,6 +165,7 @@ export class HomePageComponent implements OnInit, OnDestroy { }); svg.call(_zoom); + const __this = this; this.simulation = d3 .forceSimulation() .nodes(this.nodes) @@ -174,6 +175,9 @@ export class HomePageComponent implements OnInit, OnDestroy { .force('collision', d3.forceCollide().radius(function (node: Node) { return node.r * 1.4; })) + .on('tick', () => { + __this.changeDetector.markForCheck(); + }) ; } diff --git a/src/assets/image/icon/icon_background.svg b/src/assets/image/icon/icon_background.svg new file mode 100644 index 0000000..7c6332d --- /dev/null +++ b/src/assets/image/icon/icon_background.svg @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/src/assets/image/icon/icon_db.svg b/src/assets/image/icon/icon_db.svg new file mode 100644 index 0000000..c2559a4 --- /dev/null +++ b/src/assets/image/icon/icon_db.svg @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/src/assets/image/icon/icon_mai_imap.svg b/src/assets/image/icon/icon_mail_imap.svg similarity index 100% rename from src/assets/image/icon/icon_mai_imap.svg rename to src/assets/image/icon/icon_mail_imap.svg diff --git a/src/assets/image/icon/icon_mai_pop.svg b/src/assets/image/icon/icon_mail_pop.svg similarity index 100% rename from src/assets/image/icon/icon_mai_pop.svg rename to src/assets/image/icon/icon_mail_pop.svg diff --git a/src/assets/image/icon/icon_mai_smtp.svg b/src/assets/image/icon/icon_mail_smtp.svg similarity index 100% rename from src/assets/image/icon/icon_mai_smtp.svg rename to src/assets/image/icon/icon_mail_smtp.svg diff --git a/src/assets/image/icon/icon_maria.svg b/src/assets/image/icon/icon_maria.svg new file mode 100644 index 0000000..3b96d00 --- /dev/null +++ b/src/assets/image/icon/icon_maria.svg @@ -0,0 +1,27 @@ + + + + + + + + +