aboutsummaryrefslogtreecommitdiffstats
path: root/umc-iui/src/main/resources/webroot/umc-drill/js/monitorHeadChart.js
diff options
context:
space:
mode:
Diffstat (limited to 'umc-iui/src/main/resources/webroot/umc-drill/js/monitorHeadChart.js')
-rw-r--r--umc-iui/src/main/resources/webroot/umc-drill/js/monitorHeadChart.js94
1 files changed, 0 insertions, 94 deletions
diff --git a/umc-iui/src/main/resources/webroot/umc-drill/js/monitorHeadChart.js b/umc-iui/src/main/resources/webroot/umc-drill/js/monitorHeadChart.js
deleted file mode 100644
index 67b9c15a..00000000
--- a/umc-iui/src/main/resources/webroot/umc-drill/js/monitorHeadChart.js
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * Created by 10184303 on 15-4-30.
- * */
-/*define("headchart",["require"],function(require){
- var $ = require("/ngict/iui/component/thirdparty/jquery/jquery-1.11.2.min");
- var d3 = require("/ngict/iui/component/ict/ict-dashboard/assets/js/d3.min");
- return {
- width: function(){
- return $("#ItDeviceSvg").innerWidth();
- },
- SYBASEIQ: "M3.492,1C2.106,1,1,2.162,1,3.599V13.4C1,14.838,2.106,16,3.492,16h10.015 C14.895,16,16,14.838,16,13.4V3.599C16,2.162,14.895,1,13.507,1H3.492z M8.5,2.364c3.319,0,6.024,1.141,6.115,2.579 c0.001,0.009,0,0.034,0,0.042c0.001,0.015,0,0.026,0,0.042c0,1.472-2.74,2.663-6.115,2.663S2.384,6.498,2.384,5.027 S5.125,2.364,8.5,2.364z M2.363,5.091c0.015,0.164,0.043,0.446,0.043,0.533c0,1.469,2.74,2.662,6.116,2.662 c3.375,0,6.114-1.193,6.114-2.662v1.769c0,1.469-2.739,2.663-6.114,2.663c-3.376,0-6.116-1.194-6.116-2.663 c0-0.117-0.021-0.39-0.043-0.64V5.091z M2.363,7.691c0.015,0.164,0.043,0.424,0.043,0.51c0,1.471,2.74,2.664,6.116,2.664 c3.375,0,6.114-1.193,6.114-2.664v1.684c0,1.471-2.739,2.664-6.114,2.664c-3.376,0-6.116-1.193-6.116-2.664 c0-0.117-0.021-0.389-0.043-0.641V7.691z M2.363,10.184c0.015,0.162,0.043,0.424,0.043,0.51c0,1.471,2.74,2.664,6.116,2.664 c3.375,0,6.114-1.193,6.114-2.664v1.129c-0.008,0.043-0.021,0.123-0.021,0.15c0,1.471-2.741,2.662-6.116,2.662 s-6.115-1.191-6.115-2.662c0-0.031-0.016-0.107-0.021-0.15V10.184L2.363,10.184z",
- HOST: "M 0.8125,0 C 0.37159462,0 0,0.43557111 0,0.96875 l 0,14.0625 C 0,15.564429 0.37159462,16 0.8125,16 L 4.46875,16 4.5,16 9,16 c 0.4409055,0 0.78125,-0.435571 0.78125,-0.96875 l 0,-4.65625 0,-0.8125 0,-8.59375 C 9.78125,0.43557111 9.4721555,0 9.03125,0 L 0.8125,0 z m 9.71875,0.09375 c 0.296864,0.15740697 0.5,0.49280982 0.5,0.875 l 0,8.59375 0,0.8125 0,4.65625 c 0,0.314576 -0.153955,0.57279 -0.375,0.75 L 14.75,14.5625 C 15.409952,14.366037 16,14.078578 16,13.46875 L 16,2.4375 C 16,1.8276721 15.409912,1.540316 14.75,1.34375 l -4.21875,-1.25 z M 1.875,2.1875 l 6.0625,0 c 0.2970226,0 0.53125,0.2970662 0.53125,0.65625 l 0,3.28125 c 0,0.3591838 -0.2342274,0.625 -0.53125,0.625 l -6.0625,0 C 1.5779777,6.75 1.3125,6.4841838 1.3125,6.125 l 0,-3.28125 C 1.3125,2.4845662 1.5779777,2.1875 1.875,2.1875 z m 0.25,0.9375 c -0.133115,0 -0.25,0.1993258 -0.25,0.46875 0,0.2694242 0.116885,0.5 0.25,0.5 l 5.5625,0 c 0.1331154,0 0.21875,-0.2305758 0.21875,-0.5 C 7.90625,3.3243258 7.8206154,3.125 7.6875,3.125 l -5.5625,0 z m 0,1.75 c -0.133115,0 -0.25,0.1993258 -0.25,0.46875 0,0.2694242 0.116885,0.5 0.25,0.5 l 5.5625,0 c 0.1331154,0 0.21875,-0.2305758 0.21875,-0.5 C 7.90625,5.0743258 7.8206154,4.875 7.6875,4.875 l -5.5625,0 z M 4.90625,10.5 c 0.5522847,0 1,0.447715 1,1 0,0.552285 -0.4477153,1 -1,1 -0.5522847,0 -1,-0.447715 -1,-1 0,-0.552285 0.4477153,-1 1,-1 z",
- getChart: function(chartName){
- switch (chartName){
- case Constants.MOC_SYBASEIQ: return this.SYBASEIQ;
- case Constants.MOC_SUSE: return this.HOST;
- }
- },
- monitorHeadChartDraw: function(chartName){
- var chart = this.getChart(chartName);
- var svg = d3.select("#ItDeviceSvg")
- .append("svg")
- .attr("width", width);
- var root = svg.append("g")
- .attr("class", "gNode")
- .attr("id", "root")
- .attr("transform", "translate(100, 90)");
- root.append("circle")
- .attr("type", "wrapper")
- .attr("r", 70)
- .attr("style", "fill: rgb(144, 198, 192);");
- var img = root.append("g")
- .attr("transform", "translate(-50,-50)");
- img.append("g")
- .attr("transform", "scale(6, 6)")
- .append("path")
- .attr("d" , chart)
- .attr("style", "fill:#fff;fill-opacity:1;stroke:none");
- root.append("text")
- .attr("fill", "#ffffff")
- .attr("dx", -25)
- .attr("dy", 35);
- }
- }
-});*/
-var width = $("#ItDeviceSvg").innerWidth();
-var SYBASEIQ = "M3.492,1C2.106,1,1,2.162,1,3.599V13.4C1,14.838,2.106,16,3.492,16h10.015 C14.895,16,16,14.838,16,13.4V3.599C16,2.162,14.895,1,13.507,1H3.492z M8.5,2.364c3.319,0,6.024,1.141,6.115,2.579 c0.001,0.009,0,0.034,0,0.042c0.001,0.015,0,0.026,0,0.042c0,1.472-2.74,2.663-6.115,2.663S2.384,6.498,2.384,5.027 S5.125,2.364,8.5,2.364z M2.363,5.091c0.015,0.164,0.043,0.446,0.043,0.533c0,1.469,2.74,2.662,6.116,2.662 c3.375,0,6.114-1.193,6.114-2.662v1.769c0,1.469-2.739,2.663-6.114,2.663c-3.376,0-6.116-1.194-6.116-2.663 c0-0.117-0.021-0.39-0.043-0.64V5.091z M2.363,7.691c0.015,0.164,0.043,0.424,0.043,0.51c0,1.471,2.74,2.664,6.116,2.664 c3.375,0,6.114-1.193,6.114-2.664v1.684c0,1.471-2.739,2.664-6.114,2.664c-3.376,0-6.116-1.193-6.116-2.664 c0-0.117-0.021-0.389-0.043-0.641V7.691z M2.363,10.184c0.015,0.162,0.043,0.424,0.043,0.51c0,1.471,2.74,2.664,6.116,2.664 c3.375,0,6.114-1.193,6.114-2.664v1.129c-0.008,0.043-0.021,0.123-0.021,0.15c0,1.471-2.741,2.662-6.116,2.662 s-6.115-1.191-6.115-2.662c0-0.031-0.016-0.107-0.021-0.15V10.184L2.363,10.184z";
-var HOST = "M 0.8125,0 C 0.37159462,0 0,0.43557111 0,0.96875 l 0,14.0625 C 0,15.564429 0.37159462,16 0.8125,16 L 4.46875,16 4.5,16 9,16 c 0.4409055,0 0.78125,-0.435571 0.78125,-0.96875 l 0,-4.65625 0,-0.8125 0,-8.59375 C 9.78125,0.43557111 9.4721555,0 9.03125,0 L 0.8125,0 z m 9.71875,0.09375 c 0.296864,0.15740697 0.5,0.49280982 0.5,0.875 l 0,8.59375 0,0.8125 0,4.65625 c 0,0.314576 -0.153955,0.57279 -0.375,0.75 L 14.75,14.5625 C 15.409952,14.366037 16,14.078578 16,13.46875 L 16,2.4375 C 16,1.8276721 15.409912,1.540316 14.75,1.34375 l -4.21875,-1.25 z M 1.875,2.1875 l 6.0625,0 c 0.2970226,0 0.53125,0.2970662 0.53125,0.65625 l 0,3.28125 c 0,0.3591838 -0.2342274,0.625 -0.53125,0.625 l -6.0625,0 C 1.5779777,6.75 1.3125,6.4841838 1.3125,6.125 l 0,-3.28125 C 1.3125,2.4845662 1.5779777,2.1875 1.875,2.1875 z m 0.25,0.9375 c -0.133115,0 -0.25,0.1993258 -0.25,0.46875 0,0.2694242 0.116885,0.5 0.25,0.5 l 5.5625,0 c 0.1331154,0 0.21875,-0.2305758 0.21875,-0.5 C 7.90625,3.3243258 7.8206154,3.125 7.6875,3.125 l -5.5625,0 z m 0,1.75 c -0.133115,0 -0.25,0.1993258 -0.25,0.46875 0,0.2694242 0.116885,0.5 0.25,0.5 l 5.5625,0 c 0.1331154,0 0.21875,-0.2305758 0.21875,-0.5 C 7.90625,5.0743258 7.8206154,4.875 7.6875,4.875 l -5.5625,0 z M 4.90625,10.5 c 0.5522847,0 1,0.447715 1,1 0,0.552285 -0.4477153,1 -1,1 -0.5522847,0 -1,-0.447715 -1,-1 0,-0.552285 0.4477153,-1 1,-1 z";
-var getChart = function(chartName){
- switch (chartName){
- case Constants.MOC_SYBASEIQ: return SYBASEIQ;
- case Constants.MOC_SUSE: return HOST;
- }
-}
-var monitorHeadChartDraw = function(chartName){
- var chart = getChart(chartName);
- var svg = d3.select("#ItDeviceSvg")
- .append("svg")
- .attr("style", "width: 100%; height: 100%;");
- var root = svg.append("g")
- .attr("class", "gNode")
- .attr("id", "root")
- .attr("transform", "translate(95, 95)");
- root.append("circle")
- .attr("type", "wrapper")
- .attr("r", 70)
- .attr("style", "fill: rgb(144, 198, 192);");
- var img = root.append("g")
- .attr("transform", "translate(-45,-45)");
- img.append("g")
- .attr("transform", "scale(5.5, 5.5)")
- .append("path")
- .attr("d" , chart)
- .attr("style", "fill:#fff;fill-opacity:1;stroke:none");
- root.append("text")
- .attr("fill", "#ffffff")
- .attr("dx", -25)
- .attr("dy", 35);
-} \ No newline at end of file