华为项目Tree canvas画图 数据

var radarLeftRight = {
"Reusability": [
"System Coupling", "Service Complexity", "Service Coupling", "System Consistency",
"Component Coupling","Component Complexity","Module Independency",
"Construct Complexity","Module Independency",
"File Complexity","Module Independency"
],
"Constructability": [
"System Coupling", "Service Complexity", "Service Coupling", "System Consistency",
"Sub-System Consistency", "Component Coupling","Component Complexity","Module Independency",
"Construct Complexity", "Construct Redundancy","Module Independency",
"File Size", "File Complexity","Module Independency"
],
"Evolutionability": [
"System Coupling", "System Redundancy", "Service Coupling",
"Sub-System Redundancy","Sub-System Consistency","Component Coupling","Component Complexity","Module Independency",
"Service Redundancy","Module Independency","Component Redundancy",
"Module Redundancy","File Size","File Complexity","Interface Rationality","Function Complexity"
],
"Testability": [
"System Coupling", "", "Service Complexity", "Service Coupling",
"Component Coupling","Component Complexity","Module Independency",
"Module Independency",
"File Size","File Complexity","Function Complexity"
]
};

/*1
var system = {
"Reusability": ["System Coupling", "Service Complexity", "Service Coupling", "System Consistancy"],
"Constructability": [ "System Coupling", "Service Complexity", "Service Coupling", "System Consistancy"],
"Modifiability": ["System Coupling", "System Redundancy", "Service Coupling"],
"Testability": ["System Coupling", "", "Service Complexity", "Service Coupling"]
};

var subsystem ={
"Reusability": ["Component Coupling","Component Complexity","Module Independency"],
"Constructability": ["Sub-System Consistancy", "Component Coupling","Component Complexity","Module Independency"],
"Modifiability": ["Sub-System Redundancy","Sub-System Consistancy","Component Coupling","Component Complexity","Module Independency"],
"Testability": ["Component Coupling","Component Complexity","Module Independency"]
};
3
var service ={
"Reusability": ["Construct Complexity","Module Independency"],
"Constructability": ["Construct Complexity", "Construct Redundancy","Module Independency"],
"Modifiability": ["Service Redundancy","Module Independency"],
"Testability": ["Module Independency"]
};
4
var component ={
"Reusability": ["Construct Complexity","Module Independency"],
"Constructability": ["Construct Complexity", "Construct Redundancy","Module Independency"],
"Modifiability": ["Component Redundancy","Module Independency"],
"Testability": ["Module Independency"]
};
5
var module ={
"Reusability": ["File Complexity","Module Independency"],
"Constructability": ["File Size", "File Complexity","Module Independency"],
"Modifiability": ["Module Redundancy","File Size","File Complexity","Interface Rationality","Function Complexity"],
"Testability": ["File Size","File Complexity","Function Complexity"]
};
*/
/*var dates = {
"code": "0",
"message": "success",
"data": {
"top10ProjectDefect": [
{
"description_en": "The over-complexity function means its cyclomatic complexity exceeds 15. The more the over-complexity functions in the system, the more difficult to understand and maintain.",
"other": "",
"name": "Over-Complexity Function",
"value": 6.0
},
{
"description_en": "The implements of a single module should be concentrated in an independent directory, otherwise it‘s fragile in configuration or maintaining.",
"other": "",
"name": "The Overlapped Module",
"value": 2.0
},
{
"description_en": "The Insufficient Module means the count of the sibling modules are less than 4.",
"other": "",
"name": "Insufficient Module",
"value": 2.0
},
{
"description_en": "An instance of \"cyclic dependency\" is detected by identifying a cycle in the subsystem dependency graph.",
"other": "",
"name": "Cyclic Dependencies",
"value": 2.0
},
{
"description_en": "The over-large Module means its size exceeds 40% of the parent module total LOC. ",
"other": "",
"name": "Over-Large Module",
"value": 2.0
},
{
"description_en": "The reduplicate code means more than 10 continuous lines of code are similar.",
"other": "",
"name": "Reduplicate Code",
"value": 89.0
},
{
"description_en": "Functions or methods seem more interested in the data of other capsules than the data of those in which they reside.",
"other": "",
"name": "Feature Envy",
"value": 2.0
},
{
"description_en": "The mismatch between a subsystem‘s stability and its level of abstractness.",
"other": "",
"name": "SAP Breakers",
"value": 1.0
},
{
"description_en": "large(head) file exceed some value.",
"other": "",
"name": "LargeFile",
"value": 7.0
},
{
"description_en": "A \"god class\" is a class that manipulates data that belongs to other classes in the system, and tends to concentrate functionality from several unrelated classes.",
"other": "",
"name": "God Class",
"value": 1.0
}
],
"saiDetail": [
{
"name": "ARCHATTRIBUTE",
"children": [
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Constructability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可重构性",
"score": 5.11,
"dataIndex": "Constructability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Reusability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可重用性",
"score": 35.24,
"dataIndex": "Reusability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Modifiability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可修改性",
"score": 7.058,
"dataIndex": "Modifiability"
},
{
"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.",
"name_en": "Testability",
"description": "通常要求是代码重复率不应该超过0.5%,超过则说明软件中存在较多冗余,不利于软件维护。",
"name": "可测试性",
"score": 8.19,
"dataIndex": "Testability"
}
]
},
{

时间: 2024-11-13 07:29:55

华为项目Tree canvas画图 数据的相关文章

华为项目Tree canvas画图 数据2

"name": "Structure","children": [{"description_en": "Indicates the overall dissemination cost of the software. It is the average dependency degree among software units based on the statistical values of the dir

华为项目Tree canvas画图 数据3

"name": "ARCHATTRIBUTE","children": [{"description_en": "The code duplication rate should not exceed 5%. A higher duplication rate means that the software is redundant and software maintenance is difficult.&quo

华为项目Tree canvas画图 数据4

"description_en": "consistency of logic architecture and code directories ","name_en": "Consistency of LA and CD","description": "牵引产品软件规范化设置软件开发的目录,提升软件配置管理效率","name": "逻辑与代码目录一致性

canvas 画图工具 -- CanvasDraw

最近有些项目中用到了canvas画图: 为了方便封装了一下: 他的强大之处是 处理了各种偏针的问题: 1,css 强制宽高的变形 造成的偏针 2,给canvas加边 造成的偏针 3,上层父级缩放 造成的偏针 ( 前两种函数自行校正,第3种要传参) 更多去 github 吧,记得点赞谢谢 CanvasDraw:https://github.com/songyijian/CanvasDraw var c2=new CanvasDraw('#canvas2',{ 'attr':{'width':400

Canvas画图之中级篇

前段时间介绍了canvas画图的初级篇,今天接着介绍中级篇了... 一.绘制形状 绘制图形不仅仅是利用线条来实现绘图, 还可以有快捷的绘制图形的办法 1.绘制矩形 2.绘制圆弧 1 绘制矩形 绘制矩形的方法 CanvasRenderingContext2D.strokeRect CanvasRenderingContext2D.fillRect CanvasRenderingContext2D.rect 注意: rect 方法就是矩形路径, 还需要使用 fill 或 stroke 才可以看到效果

Canvas画图在360浏览器中跑偏的问题

问题描述,canvas画图的js代码中编写的是画正方形的代码,结果在360浏览器上变成了长方形,不知道怎么回事,请问各位大神是否遇到过此类问题? 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 5 <title></title> 6

性能测试项目总结-虚拟数据的准备

摘 要:本文主要是面向性能测试的工程师,从实际项目中总结经验.教训,并且提出一些改善的建议,希望大家能在以后的性能测试的项目中吸取和借鉴,本文尤其在性能测试的前期数据准备方面给出了解决方案. 关键词:测试用例:性能测试:测试流程 项目介绍 该项目为两年前的一个项目,目前该系统的性能在一定的条件下速度极慢,当用户量达到一定程度时,整个程序会无法响应,所以需要对该项目进行性能测试,找到系统的瓶颈,为以后的系统升级做充分的准备. 项目延期的原因 XXX项目已经结束,在整个项目的测试过程中遇到了不少困难

项目架构开发:数据访问层之Query

接上文 项目架构开发:数据访问层之Repository 上一章我们讲了IRepository接口,这张我们来讲IQuery 根据字面意思就可以知道,这次主要讲数据查询,上一章我们只针对单表做了查询的操作,多表联查并没有实现 其实对于任何一个项目来说,多表联查都是比较麻烦的地方,因为项目的“读”操作,特别是多表的“读”,至少占据所有“读”的一半以上 然而至今,据我所知还没有哪一款ORM工具可以灵活处理多表联查:想要不写sql语句,又想性能高,还想用强类型的ling查询方法:这对于多表查询来说比较难

html5 Canvas画图3:1px线条模糊问题

点击查看原文地址: html5 Canvas画图3:1px线条模糊问题 本文属于<html5 Canvas画图系列教程> 接上一篇canvas画线条教程 上次我们讲到,canvas有时候会出现1像素的线条模糊不清且好像更宽的情况,如下图: 这样的线条显然不是我们想要的. 这篇文章的目的就是弄清楚里面的原理,以及解决它. 大家都知道屏幕上最小的显示尺寸就是1像素,虽然小于1像素的东西可能显示不出来,但计算机可不管,他会试着画一下. 其实像素终究来说也是一个单位,假如我们把画布放大到足够大,足以看