From 4ea1c1909cd39abd92f9b0d9bb318eea10897fb4 Mon Sep 17 00:00:00 2001 From: Denny Lim Date: Tue, 17 Dec 2013 02:00:48 +0000 Subject: [PATCH] =?UTF-8?q?[=EC=9E=84=EB=8C=80=ED=98=84]=20[NOBTS]=20serve?= =?UTF-8?q?rMap=20link=EC=9D=98=20=ED=99=94=EC=82=B4=ED=91=9C=20=EC=83=89?= =?UTF-8?q?=20=EA=B0=99=EC=9D=B4=20=EB=B3=80=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EA=B0=9C=EB=B0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3028 84d0f5b1-2673-498c-a247-62c4ff18d310 --- .../pinpoint-servermap/js/jquery.ServerMap.js | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/components/pinpoint-servermap/js/jquery.ServerMap.js b/src/main/webapp/components/pinpoint-servermap/js/jquery.ServerMap.js index 5894b626e..378a20e3a 100644 --- a/src/main/webapp/components/pinpoint-servermap/js/jquery.ServerMap.js +++ b/src/main/webapp/components/pinpoint-servermap/js/jquery.ServerMap.js @@ -314,8 +314,9 @@ self.$( go.Shape, // the arrowhead { - toArrow: "standard", - fill: '#2F4F4F', // toArrow : kite, standard, OpenTriangle + name: "ARROW", + toArrow: "standard", // toArrow : kite, standard, OpenTriangle + fill: htOption.borderColor, stroke: null, scale: 1.5 } @@ -526,6 +527,7 @@ while (allLinks.next()) { this._highlightLink(allLinks.value.findObject("LINK"), allLinks.value.highlight); this._highlightLink(allLinks.value.findObject("LINK2"), allLinks.value.highlight); + this._highlightLink(allLinks.value.findObject("ARROW"), allLinks.value.highlight, true); } }, @@ -577,6 +579,13 @@ return false; }, + /** + * highlight node + * @param node + * @param nodeText + * @param theme + * @private + */ _hightlightNode: function (node, nodeText, theme) { if (node === null || nodeText === null) { return; @@ -590,14 +599,26 @@ } }, - _highlightLink: function (shape, theme) { + /** + * highlight link + * @param shape + * @param theme + * @private + */ + _highlightLink: function (shape, theme, toFill) { if (shape === null) { return; } + var color; if (theme) { - shape.stroke = this.option('htHighlightLink')[theme].borderColor; + color = this.option('htHighlightLink')[theme].borderColor; } else { - shape.stroke = this.option('htLinkTheme').default.borderColor; + color = this.option('htLinkTheme').default.borderColor; + } + if (toFill) { + shape.fill = color; + } else { + shape.stroke = color; } },